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/drobins25/craft/craft-initgit clone --depth 1 https://github.com/drobins25/craftWhat 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.00014 | $0.16824 |
| Opus 5 | $0.00007 | $0.08412 |
| Sonnet 5 | $0.00003 | $0.03365 |
| Haiku 4.5 | $0.00001 | $0.01682 |
Grade A, and why
init 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 3d 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 — 1,458 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Project Init
Set up the Craft harness for your project. Run once at the start.
Flow
Phase 0: Init
Before scanning or asking questions, check what the user needs.
Use AskUserQuestion:
question: "What kind of setup do you need?"
header: "Setup"
options:
- label: "Full setup (Recommended)"
description: "Scan project, extract patterns, configure tokens/conventions"
- label: "Quick setup"
description: "Just the .craft/ directory structure — for projects with strong existing docs (CLAUDE.md, etc.)"
Use these exact option labels and the (Recommended) marker as written. Do not reframe descriptions, swap the order, or move (Recommended) to a different option based on directory state. Quick setup is for users with a strong existing CLAUDE.md who explicitly want to skip scanning. Full setup is the default for everyone else, including empty directories — Phase 3 (the inspiration design session) is the project-DNA flow that runs regardless of whether code is present yet.
If "Quick setup":
Ask one follow-up for project type:
Use AskUserQuestion:
question: "What type of project is this?"
header: "Type"
options:
- label: "UI / Web app"
description: "Includes design tokens, inspiration, components templates"
- label: "CLI / Backend / Plugin"
description: "Includes naming conventions, schemas, code patterns"
Then:
- For UI projects: Run
${CLAUDE_PLUGIN_ROOT}/hooks/scripts/setup-craft.sh ui- Quick setup skips the scanner, so there's no visual file count. Tokens are deferred - the setup script never creates tokens.yaml.
- The user chose quick setup because they have strong existing docs. Tokens can be added later when you have visual code to reference.
- For CLI projects: Run
${CLAUDE_PLUGIN_ROOT}/hooks/scripts/setup-craft.sh cli- Conventions are deferred too - quick setup never scans, so there's nothing real to write yet.
- Go to Phase 6 (First Cycle Kickoff) and present its AskUserQuestion. Do NOT improvise a kickoff prompt here - Phase 6 owns the kickoff on every path.
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.
- 3d ago First seen · 1,458 lines · 14 tokens per session scan A 310f8e628982
init is a command published in the GitHub repository drobins25/craft (53 stars, last pushed 3d ago), licensed MIT. It adds 14 tokens to every session and 16,824 once invoked, about $0.0001 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-30.
Other commands, from other repositories
implement
Execute phased implementation with validation gates.
assess
Assess a local repo against the active wiki's research body and the broader market. Gap analysis, opportunities, competitive landscape.
loop
Iteratively fix issues until all resolved or max iterations reached.
project
Generate project documentation (product.md, structure.md, tech.md, codemaps/).
analyst
Use when performing local analyst review before pushing PR changes. Assesses code quality, impact analysis, and maintainability.
test-feature
Test a React Native feature on the running simulator/emulator. Verifies UI, user flows, and internal state. Generates a persistent Maestro test file.