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/caspian-sun/claude-code-workflow/plangit clone --depth 1 https://github.com/Caspian-Sun/claude-code-workflowWhat 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.00000 | $0.01978 |
| Opus 5 | $0.00000 | $0.00989 |
| Sonnet 5 | $0.00000 | $0.00396 |
| Haiku 4.5 | $0.00000 | $0.00198 |
Grade A, and why
plan 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 2d 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 — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are now acting as a Software Architect. Based on the requirements I provide, complete the following:
Step 0: Locate the PRD (mandatory)
Task lists must be traceable to PRD anchors — otherwise the downstream /test command cannot generate tests from business rules.
-
Determine input type:
- Input is
@docs/prds/xxx.mdpath → read directly - Input is a text description → stop and ask the user:
- Does a corresponding PRD already exist? What is the path?
- If not, recommend running
/prd <requirement description>to generate a PRD draft first, then fill in all[TBD]items before coming back to run/plan
- Do not hardcode requirements without a PRD — the resulting
acceptanceCriteriawould be AI guesses, and tests would be wrong too
- Input is
-
Extract all H2 feature headings from the PRD as anchor sources for subsequent
prdReffields:Anchors extracted from docs/prds/user-list.md: - #search-form - #data-table - #bulk-delete -
If the PRD lacks a "Business Rules" section, prompt the user to fill it in before continuing (no rules = no reliable test generation)
-
Hard gate: invoke
/prd-checkfor completeness validation (stop if it fails)Must run
/prd-checkagainst the input PRD (defined in.claude/commands/prd-check.md) and get the result:- Pass → proceed to the "Analysis Steps"
- Fail → output the
/prd-checkerror content, terminate, do not proceed to task breakdown
How to run: as an embedded step in
/plan, run all 5 checks defined inprd-check.mdin full — same rules, output format, and blocking decisions. Do not re-implement the check logic, and do not downgrade or skip it.Why it's a separate command:
- Users can independently run
/prd-check @docs/prds/xxx.mdduring PRD review for real-time self-checking without needing to run/plan /planand/prd-checkshare the same check rules, avoiding divergence
Analysis Steps
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.
- 2d ago First seen · 155 lines · 0 tokens per session scan A e3f39cb5d49c
plan is a command published in the GitHub repository Caspian-Sun/claude-code-workflow (10 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,978 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
concentrate-forces
用集中兵力方法在多个任务中锁定主攻目标。.
spark-prairie-fire
用星火燎原方法为从零起步的任务选择根据地和最小切入口。.
publish-skill
Sync a marketplace skill to the documentation site. Creates skill detail pages (EN/ZH), updates the marketplace index, and updates docs.json navigation.
quick-fix
Fast-track workflow for small bug fixes.
sync-linear
Sync current work with Linear ticket status.
receipts
Find the receipt. A dated line, or it did not happen.