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 agentmods add skills/crypto-com/cdcx-cli/recipe-emergency-flattennpx skills add crypto-com/cdcx-cli --skill recipe-emergency-flattengit clone --depth 1 https://github.com/crypto-com/cdcx-cliWrote 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/crypto-com/cdcx-cli/recipe-emergency-flatten)<a href="https://agentmods.dev/skills/crypto-com/cdcx-cli/recipe-emergency-flatten"><img src="https://agentmods.dev/badge/skills/crypto-com/cdcx-cli/recipe-emergency-flatten.svg" alt="Measured on agentmods" 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 | $0.00035 | $0.00586 |
| Opus 5 | $0.00017 | $0.00293 |
| Sonnet 5 | $0.00007 | $0.00117 |
| Haiku 4.5 | $0.00003 | $0.00059 |
Grade A, and why
recipe-emergency-flatten scanned grade A with 0 findings 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 5d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Emergency Flatten
When to Use
- Market is moving violently against current exposure
- Suspect API key compromise — reduce blast radius
- End-of-session sweep to go flat overnight
- Agent has behaved unexpectedly and the human wants a hard stop
This is a destructive workflow. Only run when the user asks for it explicitly.
Assumptions
- Authentication is configured (
CDCX_API_KEY/CDCX_API_SECRET, or a profile) - MCP mode: server must be started with
--allow-dangerous(this workflow uses tier-dangerouscommands) - CLI mode: use
--yesto skip prompts, or acknowledge each prompt
Workflow
# 1. Cancel every open order (dangerous)
cdcx trade cancel-all --yes -o json
# 2. Confirm no open orders remain
cdcx trade open-orders -o json
# 3. List every open position
cdcx account positions -o json
# 4. Close each position at market
# Run this per row returned in step 3
cdcx trade close-position <INSTRUMENT_NAME> --type MARKET --yes -o json
# 5. Verify positions are flat
cdcx account positions -o json
# 6. Also sweep advanced (OTO/OTOCO) orders — they live in a separate namespace
cdcx advanced cancel-all --yes -o json
cdcx advanced open-orders -o json
# 7. Final wallet check
cdcx account summary -o json
Automated One-Liner
cdcx trade cancel-all --yes && \
cdcx advanced cancel-all --yes && \
cdcx account positions -o json | \
jq -r '.data[].instrument_name' | \
while read i; do cdcx trade close-position "$i" --type MARKET --yes; done && \
cdcx account positions -o json
Notes
cancel-allwithout an instrument cancels every open order across the accountclose-positionis asynchronous — it returns an ack, not a fill. The position may remain open for a moment; step 5 confirms- Advanced orders (OTO/OTOCO) are not cancelled by
cdcx trade cancel-all— sweep them separately withcdcx advanced cancel-all - If you are in doubt about the current state, re-run
cdcx account positionsandcdcx trade open-ordersuntil both are empty - If API access itself is the concern, also rotate the API key at https://crypto.com/exchange/settings/api afterwards
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.
- 5d ago First seen · 68 lines · 35 tokens per session scan A 1ad6d6e2eb0d
recipe-emergency-flatten is a skill published in the GitHub repository crypto-com/cdcx-cli (25 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 35 tokens to every session and 586 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
sector-rotation
行业轮动分析——申万行业景气度评分、行业动量排名、产业链传导、估值/盈利/资金流多维比较框架.
twitter-reader
Read Twitter/X for financial research using opencli (read-only). Use this skill whenever the user wants to read their Twitter feed, search for financial tweets, view bookmarks, look up user profiles, or gather market sentiment from Twitter/X. Triggers include: "check my feed", "search Twitter for", "show my…
strategy-pivot-designer
Detect backtest iteration stagnation and generate structurally different strategy pivot proposals when parameter tuning reaches a local optimum.
chenhao-limit-up
Use when evaluating A-share limit-up (涨停板) setups through Chen Hao's sentiment and momentum lens: market emotion cycles, board strength, follow-through, and short-term aggressive momentum trading.
trading-risk-gate
Unified pre-trade safety gate: Ruin check (Law #1), ergodicity audit, and win-rate dominance validation. Absorbs: ergodicity-check, law-of-ruin, win-rate-dominance.
vectorbt
High-performance vectorized backtesting with parameter optimization, portfolio simulation, and rich performance metrics.