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 commands/guohao1020/docs-cockpit/migrategit clone --depth 1 https://github.com/Guohao1020/docs-cockpitWrote 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/guohao1020/docs-cockpit/migrate)<a href="https://agentmods.dev/commands/guohao1020/docs-cockpit/migrate"><img src="https://agentmods.dev/badge/commands/guohao1020/docs-cockpit/migrate.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.00040 | $0.01169 |
| Opus 5 | $0.00020 | $0.00584 |
| Sonnet 5 | $0.00008 | $0.00234 |
| Haiku 4.5 | $0.00004 | $0.00117 |
Grade A, and why
migrate 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 — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Explicit invocation of docs-cockpit migrate — for projects that don't already have docs/spec/module/*.md with frontmatter. Use this on legacy / bastion-style repos with scattered docs/plans/, docs/adrs/, docs/PRD/, etc.
When to use
- User says: "迁移这个项目到 docs-cockpit / 帮我用 docs-cockpit 跑起来 / set up dashboard for this legacy project"
docs-cockpit renderreports[WARN] 0 itemsbecause the project layout doesn't match defaults- The
docs-cockpit-buildskill's bootstrap workflow detects a non-canonical layout (e.g.docs/plans/+docs/adrs/instead ofdocs/spec/module/)
What it does
- Scans the project for MDs in known dirs:
docs/spec/module/,docs/plans/,docs/tasks/,docs/adrs/,docs/superpowers/{plans,specs}/→ modulesdocs/spec/concept/,docs/concepts/→ concepts- Root: README / CLAUDE.md / AGENTS.md / GEMINI.md / PROGRESS.md / CHANGELOG.md / PRE-LAUNCH-CHECKLIST.md / dogfood-onboarding.md / DESIGN.md → system_docs (each as own entry)
- Dirs:
docs/PRD/,docs/RFC/,docs/architecture/,docs/DESIGN/,docs/audits/,docs/review/→ system_docs (each as whole-dir entry)
- Assigns IDs (
M01,M02, ... for modules;C01, ... for concepts) - Generates frontmatter for each module/concept:
id(new),title(from H1 or filename),status: not-started,sprint: M0,progress: 0as defaults- Existing frontmatter fields are preserved (don't override user's
status/progressif already set)
- Physically moves files to
docs/spec/module/M{NN}-{slug}.md/docs/spec/concept/C{NN}-{slug}.md- Uses
git mvto preserve git history (falls back to plain rename if not in git) --keep-originalsto copy instead of move (preservesdocs/plans/etc.)
- Uses
- Writes
docs-cockpit.yamlwith project + paths + system_docs + modules/concepts + frontmatter blocks
Steps when user invokes /docs-cockpit:migrate
- Always start with dry-run. Run
docs-cockpit migrate(no--applyflag) and show the user the plan output. Highlight:- Number of modules / concepts / system_docs detected
- First 5-10 module file moves so they see the rename pattern
- Whether
docs-cockpit.yamlwill be overwritten
- Wait for explicit user confirmation. Don't auto-apply. The migration physically moves files.
- On confirmation, run with
--apply(or--apply --keep-originalsif user prefers to keep originals). - After apply succeeds, run
docs-cockpit renderautomatically to verify the dashboard generates correctly. - Report: counts of files moved + dashboard render status + any warnings.
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 · 63 lines · 40 tokens per session scan A 0b6ae8a8b487
migrate is a command published in the GitHub repository Guohao1020/docs-cockpit (2 stars, last pushed 2mo ago), licensed MIT. It adds 40 tokens to every session and 1,169 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 commands, from other repositories
nyann:route-docs
Change documentation storage routing (local, Obsidian, Notion, or per-type split) and regenerate the doc scaffold to match.
pause
Park this session's beacon — enter pause mode, with an optional note.
install-beacon
Bootstrap or refresh beacon's wrapper, completions, status line, and iTerm2 profiles.
deploy
Scaffold/compile/deploy a report to JasperReports Server and verify it renders.
export-latex
Export the current paper draft to production-ready LaTeX (.tex) and PDF using the arxiv-style template. Converts draft.md + references.bib + figures/ into a complete LaTeX project with resolved citations, tables, and figures. Compiles to PDF automatically.
export
Export the case study — PDF if a browser is installed, HTML either way.