Desk Incident Response logo

Desk Incident Response

Organization
galleonlabs
desk-incident-response

What the desk does when something goes wrong on Hyperliquid - unknown send results, unexpected fills or positions, unprotected positions, stuck or orphaned orders, API outages, rate limiting, and suspected API wallet compromise. Contain first, reconcile from the exchange record, act only through approved tickets, then review. Use the moment anything does not match the ticket.

Overview

Publishergalleonlabs
Repositoryhypergrok-trading-desk
Skill namedesk-incident-response
Stars
145
Forks
31
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by galleonlabs on GitHub. Read the source before you install it.

Installation

Install the Desk Incident Response AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/galleonlabs/hypergrok-trading-desk/tree/main/skills/desk-incident-response
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/galleonlabs/hypergrok-trading-desk.git /tmp/hypergrok-trading-desk
mkdir -p .claude/skills
cp -r /tmp/hypergrok-trading-desk/skills/desk-incident-response .claude/skills/desk-incident-response
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Desk Incident Response in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Desk Incident Response on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Desk Incident Response is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Incident response

An incident is any moment when the exchange record and the desk's expectation disagree, or when the desk cannot see the exchange at all. The reflex is: stop adding, look, contain with approval, then review. Never widen the harm by improvising.

Declare

Any Bot can declare an incident. Post on the floor:

INCIDENT INC-20260817-01 | 11:40 UTC | HG-20260817-02 | send timeout, result unknown | owner: Execution Trader

The Desk Lead confirms an owner (usually the Execution Trader for order/position incidents, the Risk Manager for exposure incidents, the Desk Lead for access incidents). New proposals pause until the incident is contained.

Playbooks

A. Unknown send result (timeout, 5xx, exception after send)

  1. Do not resend.
  2. orderStatus by cloid; openOrders; userFills since the send; clearinghouseState.
  3. Found: continue reconciliation as normal; journal that the response was lost.
  4. Not found: that is not proof. Wait until the signed expiresAfter deadline has passed, then reconcile again. Expiry prevents later acceptance; it does not cancel an order accepted before the deadline or remove its fills.
  5. Without expiry, follow desk-execution-protocol: a noop needs an exact recovery ticket, Risk PASS, approval by id and native-gate coverage, and must use the original exact signed nonce, the same API wallet signer and network. Only the Execution Trader sends it, once. Confirm noop acceptance and reconcile the original; a newer nonce cannot invalidate it, and a nonce-reuse rejection does not prove what happened. Missing original nonce or an unconfirmed noop leaves the send reserved and new risk paused; escalate to the Desk Lead and user.
  6. A replacement waits until later acceptance is impossible and existing exposure is reconciled, then needs a fresh ticket, Risk PASS and approval by id. If the exchange later shows the original order after a second one was sent: the desk has double exposure. Go to playbook C.

B. Rejected order or partial fill

  • Rejection string in the response (error): quote it, map it via hyperliquid-api-reference (price precision, minimum notional, insufficient margin, reduce-only would increase position, invalid tif...). Fix is a new ticket, not a tweak-and-resend.
  • Partial fill on an IOC: the unfilled remainder is gone and the position is smaller than the ticket. Any normalTpsl children were never placed (children appear only when the parent fills fully, or is partially filled and then margin-cancelled), so the filled part is unprotected: report the actual size and get a stop for that size placed at priority (playbook D).
  • Partial fill on a resting order: normal; reconciliation continues.

C. Position does not match expectation (too big, wrong side, unexpected market)

  1. Read clearinghouseState and userFills for the last hour; establish the exact state.
  2. Risk Manager computes exposure and liquidation distance now.
  3. If exposure breaches limits: an emergency reduce ticket (reduce-only IOC at a slippage bound for the excess size) is written by the Risk Manager, approved by the user by id, sent by the Execution Trader. Priority handling, same protocol.
  4. Journal what happened and why the mismatch occurred once known.

D. Unprotected position (no resting stop)

  1. Risk Manager flags it; the Desk Lead treats it as priority.
  2. Protective stop ticket (trigger, reduce-only, correct side, sized to the position read live) through Risk PASS and user approval. This is also the path after any partial fill of an entry that carried normalTpsl children.
  3. If the user has pre-authorised protective stops in desk.md, the Execution Trader places it under that standing approval and journals it. This is the one standing approval the desk actively recommends the user grant at setup, on every network, because it can only ever reduce risk.
  4. Without that pre-authorisation the desk cannot act, and an unprotected position does not become safe while it waits. Do not alert indefinitely: state the exposure and the distance to liquidation in the first alert, escalate on a deadline the user set in desk.md (fifteen minutes is a reasonable default), and when that passes, tell the user plainly that the fastest fix is theirs - close or protect the position in the Hyperliquid app - rather than continuing to ping a channel nobody is reading.

E. Orphaned or stuck orders

  • Orphaned (position flat, stop still resting): cancel ticket, or the standing approval for orphan clean-up if written in desk.md. Confirm from openOrders.
  • Stuck (order the exchange shows that the desk cannot cancel): read orderStatus; check whether it is a trigger child of a grouped order; try cancelByCloid if cancel by oid fails; if still stuck, report with the exact response and stop.

F. Exchange unreachable, rate limited, or degraded

  • /info failing or slow: mark the desk blind; no new tickets; watches log the outage; check https://api.hyperliquid.xyz/info with a tiny allMids call every minute; report when back.
  • HTTP 429: back off (respect the response), reduce polling, prefer WebSocket for continuous data. Read userRateLimit for the account's remaining budget.
  • Blind with open positions: the user is told plainly that stops resting on the exchange still work while the desk cannot see; that is why stops are mandatory.
  • Connectivity returning is only the start of recovery. Follow hyperliquid-websocket's gap/restart procedure: restore account and detailed order snapshots, recover overlapping fills, reconcile reservations and protection, then let Risk recheck capacity before new risk resumes. A successful public price read or a restarted process cannot lift the account pause. Protection and exits still use verified live state and the normal approval gates.

G. Suspected API wallet compromise or misuse

Signs: orders or fills the desk did not send, leverage changes nobody approved, unfamiliar cloids.

  1. The user revokes the API wallet immediately in the Hyperliquid app (the API page, /API) - the desk cannot do this for them and must not delay them.
  2. Once revoked, the desk's key is dead; the Execution Trader confirms sends fail.
  3. Read the full historicalOrders and userFills since the last known-good time; Risk Manager assesses exposure; emergency reduce or protection tickets as needed after the user creates a fresh API wallet and re-provisions it through the secure secret store.
  4. Rotate: new key through the secure secret card only; nothing pasted in chat; journal the rotation time.
  5. Incident review with a timeline.

Remember the shared computer: every Bot could read the key's environment; that is why only an API wallet key (trade-only, cannot withdraw) is ever provisioned, and why testnet comes first.

H. Daily loss stop hit

Not an incident, but handled like one: Risk Manager posts it, desk.md gets status: no-new-risk, protective and exit tickets continue, new risk waits for the user's written reset.

Containment rules

  • Contain with the smallest reversible action. Reduce, don't flip. Cancel one, not all, unless the user has asked for a dead-man's switch and its condition has occurred.
  • Every containment action is still a ticket with approval by id (or a pre-written standing approval in desk.md).
  • Never withdraw, transfer or bridge as an incident response.
  • Never resend to "make sure".

Close the incident

The Trade Reviewer writes the incident review (desk-post-trade-review), the Desk Lead lifts the proposal pause and records the corrective action and its owner in desk.md.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Desk Incident Response AI skill do?

What the desk does when something goes wrong on Hyperliquid - unknown send results, unexpected fills or positions, unprotected positions, stuck or orphaned orders, API outages, rate limiting, and suspected API wallet compromise. Contain first, reconcile from the exchange record, act only through approved tickets, then review. Use the moment anything does not match the ticket.

Why use Desk Incident Response on TypingMind?

Because you install it once and use it with any model. Desk Incident Response is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Desk Incident Response in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/galleonlabs/hypergrok-trading-desk/tree/main/skills/desk-incident-response. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Desk Incident Response?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Desk Incident Response?

As many as you like. As long as a model supports skills, you can use Desk Incident Response with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Desk Incident Response AI skill free?

Yes. It is published on GitHub by galleonlabs under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇