Borrowing it
Nothing to install: this file belongs to aidemd-mcp/server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/aidemd-mcp/server/main/.claude/commands/aide/spec.mdgit clone --depth 1 https://github.com/aidemd-mcp/serverWrote 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/commands/aidemd-mcp/server/spec)<a href="https://agentmods.dev/commands/aidemd-mcp/server/spec"><img src="https://agentmods.dev/badge/commands/aidemd-mcp/server/spec/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/commands/aidemd-mcp/server/spec"><img src="https://agentmods.dev/badge/commands/aidemd-mcp/server/spec.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.00000 | $0.00889 |
| Opus 5.5 | $0.00000 | $0.00356 |
| Sonnet 5.5 | $0.00000 | $0.00178 |
| Haiku 4.5 | $0.00000 | $0.00089 |
Grade A, and why
spec 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 — 36 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/aide:spec — Spec Phase
Agent: This command is executed by the
aide-spec-writeragent.
Produce the .aide intent spec frontmatter only. This is the spec-writing phase — the session that distills the orchestrator's delegation context into a falsifiable intent contract. The orchestrator owns the user conversation and passes the gathered context in the delegation prompt. Body sections (Context, Strategy, Good/Bad examples, References) are conditional — they exist only when the orchestrator routes through /aide:synthesize afterwards. Most modules are navigation stubs and skip synthesize entirely, going straight to /aide:plan. Signal whether synthesize is needed in your return.
Checklist
- Read the delegation context from the orchestrator. If insufficient to write specific outcomes (missing: what the module is for, who consumes its output, what success looks like, what failure looks like), return to the orchestrator listing what's missing
- For a spec below the project root, take its folder from the approved project tree the orchestrator passes (the structure gate). If the delegation names no approved place for the module, do not pick one — return to the orchestrator saying the tree is not settled
- Read the AIDE template before writing — copy the fenced template block from the canonical template doc into the new file
- Create the file with
aide_scaffold({ directory, type: "intent" }); it decides the filename, so never pick one:- The project root intent spec is always
.aide/intent.aide(pass directory.aide) - A module spec is
.aideif noresearch.aideexists in the target folder - It is
intent.aideifresearch.aideexists in the same folder (co-located research is an escape hatch — prefer the brain)
- The project root intent spec is always
- Fill the frontmatter ONLY against hard caps:
scope— the module path this spec governsdescription— one sentence, ≤ 200 charactersintent— one paragraph, ≤ 100 words, ten-second north staroutcomes.desired— 3-6 items, ≤ 2 sentences each, falsifiableoutcomes.undesired— 3-6 items, ≤ 2 sentences each, the almost-right-but-wrong kind
- Body sections are conditional. Default: produce a frontmatter-only file with NO body section headings. If the orchestrator's delegation prompt explicitly says synthesize will run, then preserve empty body section placeholders for the strategist; otherwise omit them entirely.
- No code in the spec — no file paths, no type signatures, no function names, no argument indexes. Domain vocabulary IS allowed (entity names, status enums, field names that name a domain concept).
- Every
outcomesentry must trace back to theintentparagraph. Cut any outcome that doesn't - Present the frontmatter to the orchestrator for relay to the user
- Run
aide_validateto check the spec for structural issues - Return two independent routing signals to the orchestrator:
Research needed: yes/no— is the domain genuinely unknown territory?Strategy needed: yes/no— is the feature a pipeline: several modules each doing one specific thing in a specific order, handing off through calls, events, a clock or state changes? (The pipeline test in.aide/docs/aide-spec.md.) Self-contained modules are NO. Never answer NO because hand-offs are settled insession.aideorbrief.aide.
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 Changed · +2 lines 0656ad268941
- 20d ago Changed · +5 lines ed52adb8c694
- 2mo ago First seen · 29 lines · 0 tokens per session scan A 9cbe99e59af9
spec is a command published in the GitHub repository aidemd-mcp/server (4 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 889 tokens. 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 commands, from other repositories
watchdog
Run a superskill watchdog pass. Input: $ARGUMENTS (empty = dig the latest session).
review
Run a superskill review. Scope: $ARGUMENTS (empty = the entire project).
worktree
Use the superskill worktree MCP tools. Input: $ARGUMENTS (empty = status).
superskill
route a task through superskill packs.
ijfw-audit
Run the IJFW audit gate for the current workflow phase. Usage: /ijfw-audit [phase name].
api-aqa-flow-execution-and-report-analysis
Phase 6 Execution & Report Analysis of api-aqa-flow (USER INTERACTION REQUIRED).