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/clawd-aftermath/nunchi-for-aftermath/apinpx skills add clawd-aftermath/nunchi-for-aftermath --skill apigit clone --depth 1 https://github.com/clawd-aftermath/nunchi-for-aftermathWrote 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/clawd-aftermath/nunchi-for-aftermath/api)<a href="https://agentmods.dev/skills/clawd-aftermath/nunchi-for-aftermath/api"><img src="https://agentmods.dev/badge/skills/clawd-aftermath/nunchi-for-aftermath/api.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.00041 | $0.01700 |
| Opus 5 | $0.00020 | $0.00850 |
| Sonnet 5 | $0.00008 | $0.00340 |
| Haiku 4.5 | $0.00004 | $0.00170 |
Grade A, and why
aftermath-perpetuals 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 4d 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 — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Aftermath Perpetuals Skill
Production OpenAPI: https://aftermath.finance/api/openapi/spec.json
Last validated: 2026-07-28
Canonical docs UI: https://aftermath.finance/docs
Fast Routing
Choose one file first; do not load everything by default.
Default preference: start with native perpetuals endpoints (/api/perpetuals/*) because they expose the full Aftermath feature set. Use CCXT endpoints when you specifically need exchange-style compatibility.
- CCXT endpoint work ->
ccxt.md - Native perpetuals endpoint work ->
native.md - SDK method usage ->
sdk-reference.md - API failures/retries ->
error-handling.md - Trading safeguards ->
safety-and-risk.md - DCA and spot limit orders ->
dca-and-limit-orders.md - Staking ->
staking.md - AMM pools ->
pools.md - Coin and LP prices ->
prices.md - Builder codes/gas pool/referrals/rewards/rebates/router/metastable/birdeye/dynamic gas/zkLogin/coins ->
auxiliary-endpoints.md - Monitoring examples ->
monitoring-patterns.md - Edge-case pitfalls ->
gotchas.md
Integration Modes
Preferred by default: Native perpetuals (/api/perpetuals/*) for complete API coverage.
| Mode | Best for | Primary file |
|---|---|---|
CCXT compatibility (/api/ccxt/*) |
Exchange-style payloads and build-sign-submit bots | ccxt.md |
Native perpetuals (/api/perpetuals/*) |
Full account/vault previews + tx builders | native.md |
TypeScript SDK (@aftermath-finance/sdk) |
Typed app integrations | sdk-reference.md |
High-Risk Guardrails
- Sign
signingDigest, nottransactionBytes. - Keep ID types strict: CCXT write
accountId(object ID) vs nativeaccountId(numeric). - Send native BigInt fields using their exact
"...n"wire format where required. - Treat preview responses as success/error unions.
- Re-sync snapshots after stream reconnect before applying deltas.
- Serialize coin/gas-object-sensitive operations to avoid version conflicts.
Recent API Updates
Breaking (v3.0.0):
What ships with it
14 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- .api-spec-state.json 251 B
- auxiliary-endpoints.md 10 KB
- ccxt.md 4.9 KB
- dca-and-limit-orders.md 4.4 KB
- error-handling.md 5.4 KB
- gotchas.md 5.8 KB
- monitoring-patterns.md 4.9 KB
- native.md 15 KB
- pools.md 5.0 KB
- prices.md 1.6 KB
- safety-and-risk.md 12 KB
- scripts/check_api_changes.py 3.9 KB runs code
- sdk-reference.md 8.8 KB
- staking.md 4.2 KB
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.
- 4d ago First seen · 118 lines · 41 tokens per session scan A f2d0bcb48b53
aftermath-perpetuals is a skill published in the GitHub repository clawd-aftermath/nunchi-for-aftermath (2 stars, last pushed 16d ago), licensed MIT. It adds 41 tokens to every session and 1,700 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-31.
Other skills, from other repositories
mpp-agent
Pay HTTP 402 APIs via Machine Payments Protocol (MPP).
cobie-cycle-filter
Use when evaluating crypto decisions through a Cobie-style cycle filter: common-sense risk, narrative traps, leverage humility, and avoiding obvious stupid trades.
hyperliquid
Hyperliquid L1 perps DEX (69% market share).
bridge
Cross-chain token transfers using Wormhole and CCTP.
portfolio
Cross-chain DeFi portfolio discovery, rebalancing suggestions, and NEAR Intent construction. Activates when the user pastes a wallet address or asks about yield/positions/rebalancing. Bootstraps a per-user "portfolio" project, aggregates positions across all the user's addresses inside one project, and offers a…
marginfi
MarginFi — Solana lending and borrowing.