Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add deonmenezes/opentradex --skill panic-flattengit clone --depth 1 https://github.com/deonmenezes/opentradexWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/deonmenezes/opentradex/panic-flatten)<a href="https://agentmods.dev/skills/deonmenezes/opentradex/panic-flatten"><img src="https://agentmods.dev/badge/skills/deonmenezes/opentradex/panic-flatten/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/deonmenezes/opentradex/panic-flatten"><img src="https://agentmods.dev/badge/skills/deonmenezes/opentradex/panic-flatten.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00042 | $0.00278 |
| Opus 5.5 | $0.00017 | $0.00111 |
| Sonnet 5.5 | $0.00008 | $0.00056 |
| Haiku 4.5 | $0.00004 | $0.00028 |
Grade A, and why
panic-flatten scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
allowed-tools: Bash(curl *), Bash(jq *) What it actually says
PANIC FLATTEN
This is the kill switch. It closes every open position in the OpenTradex harness immediately, regardless of mode.
Confirmation required
Before you run the POST, ask the user one short confirmation in chat:
⚠️ PANIC will flatten all open positions at market. Type
yes flattento confirm.
Only proceed if their next message is literally yes flatten (case-insensitive).
Execute
curl -s -X POST http://127.0.0.1:3210/api/panic --max-time 10 | jq .
Report
- Number of positions closed.
- Total realized P&L from the flatten.
- Halted state after (the gateway enforces a 10-second cooldown).
Why this exists
Every trader needs a single button they can hit when something's wrong — a stuck position, a news shock, a risk they didn't price in. This is that button. It is not a trading strategy.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 35 lines · 42 tokens per session scan A 177d97df74ae
panic-flatten is a skill published in the GitHub repository deonmenezes/opentradex (57 stars, last pushed 4mo ago), licensed MIT. It adds 42 tokens to every session and 278 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
panic-flatten compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| panic-flattendeonmenezes/opentradex | Skill | 57 | 4mo ago | MIT | A | 42 | Claude Code |
| sector-rotationHKUDS/Vibe-Trading | Skill | 38k | yesterday | MIT | A | 39 | Claude Code, Codex |
| twitter-readerhimself65/finance-skills | Skill | 3.5k | 2d ago | MIT | A | 110 | Claude Code |
| strategy-pivot-designertradermonty/claude-trading-skills | Skill | 3.7k | 2d ago | MIT | A | 28 | Claude Code, Codex |
| energy-procurementhashgraph-online/awesome-codex-plugins | Skill | 1.5k | yesterday | Apache-2.0 | A | 93 | Claude Code, Codex |
| airdrop-hunting-guidenirholas/three.ws | Skill | 269 | yesterday | Apache-2.0 | A | 54 | Claude Code, Codex |
| multi-expert-analyzerdigoal/blog | Skill | 8.6k | 2d ago | GPL-2.0 | A | 292 | Codex |