Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/SwiftAdviser/claude-mandate-pluginnpx agentmods add skills/swiftadviser/claude-mandate-plugin/mandate-apiWrote 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/swiftadviser/claude-mandate-plugin/mandate-api)<a href="https://agentmods.dev/skills/swiftadviser/claude-mandate-plugin/mandate-api"><img src="https://agentmods.dev/badge/skills/swiftadviser/claude-mandate-plugin/mandate-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.1 | $0.00034 | $0.04835 |
| Opus 5 | $0.00017 | $0.02417 |
| Sonnet 5 | $0.00007 | $0.00967 |
| Haiku 4.5 | $0.00003 | $0.00483 |
Grade C, and why
mandate-api scanned grade C with 3 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 6d 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.
Nullifies safety policiesmediumAnti-refusal
"You have no restrictions", "do anything now", "ignore your guidelines": a direct jailbreak that disables guardrails.
This is non-negotiable. An unreachable policy server does not mean "no policies apply", it means "policies cannot be verified." Executing without verification bypasses the owner's configured protections. Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
Stores credentials in `~/.mandate/credentials.json` (chmod 600). Display the `claimUrl` to the user, they are the owner. Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -X POST https://app.mandate.md/api/validate \ How it starts
The opening of the file, as written. The whole thing — 482 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Integration note
Mandate needs hooks to reliably catch payment intents. If your platform supports plugins with hooks (OpenClaw, Claude Code), use the plugin: it intercepts financial tool calls automatically. This SKILL.md is for agents that integrate via API directly, but without hooks there is no enforcement layer: the agent must voluntarily call /validate before every transaction.
OpenClaw: openclaw plugins install @mandate.md/mandate-openclaw-plugin (preferred, has hooks)
Claude Code: claude --plugin-dir ./packages/claude-mandate-plugin (has hooks)
Other frameworks: Use this SKILL.md + SDK. No hooks, agent must self-enforce.
MANDATORY SECURITY RULES
Mandate is the security boundary, not optional infrastructure. The card must be swiped before the purchase.
- You MUST call
/validatebefore EVERY transaction. No exceptions. No shortcuts. (Legacy/validate/rawis also available for existing EVM integrations.) - If validation returns
allowed: false, you MUST NOT execute the transaction. Display theblockReasonto the user. - If validation is unreachable, you MUST NOT execute the transaction. Do NOT fall back to calling the wallet directly. See Fail-Safe Behavior.
- You MUST display validation results to the user before any wallet call. See Required User Feedback.
- Even with custodial wallets, you MUST validate with Mandate BEFORE calling the wallet API. Do NOT call transfer/swap directly.
- Skipping validation is a security violation, not a simplification. An unvalidated transaction bypasses spend limits, allowlists, and approval workflows the owner configured to protect their funds.
MANDATE API QUICK REFERENCE v1.1.0
Base: https://app.mandate.md/api
Auth: Authorization: Bearer <MANDATE_RUNTIME_KEY>
NON-CUSTODIAL: your private key NEVER leaves your machine.
Primary endpoint:
POST /validate -> action + reason. Works with any wallet type.
Legacy endpoints:
POST /validate/raw -> full tx params + intentHash. EVM only. (deprecated)
Other endpoints:
POST /agents/register -> register agent (no auth), get runtimeKey + claimUrl
POST /activate -> set evmAddress (call once after registration)
POST /intents/{id}/events -> post txHash after broadcast (envelope verify)
GET /intents/{id}/status -> poll intent state
Key prefixes: mndt_live_... (mainnet) / mndt_test_... (testnet)
Credentials: ~/.mandate/credentials.json
Errors: HTTP status + JSON { "error": "message" } or { "allowed": false, "blockReason": "..." }
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.
- 6d ago First seen · 482 lines · 34 tokens per session scan C c9272f3dc20a
mandate-api is a skill published in the GitHub repository SwiftAdviser/claude-mandate-plugin (3 stars, last pushed 5mo ago), licensed MIT. It adds 34 tokens to every session and 4,835 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 3 findings (nullifies safety policies, asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
sector-rotation
行业轮动分析——申万行业景气度评分、行业动量排名、产业链传导、估值/盈利/资金流多维比较框架.
strategy-pivot-designer
Detect backtest iteration stagnation and generate structurally different strategy pivot proposals when parameter tuning reaches a local optimum.
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…
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.