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/thebeardedbearsas/claude-craft/setup-project-contextgit clone --depth 1 https://github.com/TheBeardedBearSAS/claude-craftWrote 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/thebeardedbearsas/claude-craft/setup-project-context)<a href="https://agentmods.dev/commands/thebeardedbearsas/claude-craft/setup-project-context"><img src="https://agentmods.dev/badge/commands/thebeardedbearsas/claude-craft/setup-project-context.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.00018 | $0.02108 |
| Opus 5 | $0.00009 | $0.01054 |
| Sonnet 5 | $0.00004 | $0.00422 |
| Haiku 4.5 | $0.00002 | $0.00211 |
Grade A, and why
setup-project-context 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 5d 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 — 287 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Configuration du Contexte Projet
Configure .claude/rules/00-project-context.md en analysant la codebase et en posant des questions ciblees.
Execution
Phase 1 : Detection Automatique
Analyser les fichiers et repertoires suivants :
Fichiers de Configuration :
package.json→ Nom projet Node.js, dependances, scriptscomposer.json→ Nom projet PHP, dependances, frameworkpubspec.yaml→ Nom projet Flutter/Dart, dependancesrequirements.txt/pyproject.toml→ Dependances PythonCargo.toml→ Projet Rustgo.mod→ Module Go
Environnement & Config :
.env,.env.example→ Base de donnees, servicesconfig/→ Configuration frameworkdocker-compose.yml→ Services (DB, Redis, etc.)
Structure :
src/,lib/,app/→ Emplacement code sourcetests/,spec/→ Framework de testdocs/,specifications/→ Documentation.github/,.gitlab-ci.yml→ CI/CD
Domaine (si applicable) :
src/Entity/,src/Domain/→ Entites metier (PHP/Symfony)lib/models/,lib/domain/→ Modeles (Flutter/Dart)models/,schemas/→ Modeles de donneesmigrations/→ Schema base de donnees
Afficher les resultats d'analyse :
╔══════════════════════════════════════════════════════════════╗
║ RESULTATS D'ANALYSE DU PROJET ║
╚══════════════════════════════════════════════════════════════╝
✅ Informations Detectees :
┌─────────────────┬────────────────────────────────┐
│ Element │ Valeur │
├─────────────────┼────────────────────────────────┤
│ Nom du Projet │ {nom_detecte} │
│ Langage │ {langage_detecte} │
│ Framework │ {framework_detecte} │
│ Base de Donnees │ {database_detectee} │
│ Tests │ {tests_detectes} │
│ CI/CD │ {cicd_detecte} │
└─────────────────┴────────────────────────────────┘
📁 Structure du Projet :
{structure_detectee}
📄 Documentation Trouvee :
{docs_detectees}
❌ Non Detecte (sera demande) :
- {elements_manquants}
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.
- 5d ago First seen · 287 lines · 18 tokens per session scan A 52790e6d63f7
setup-project-context is a command published in the GitHub repository TheBeardedBearSAS/claude-craft (105 stars, last pushed 2d ago), licensed MIT. It adds 18 tokens to every session and 2,108 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
test-suite
Run comprehensive test suite with coverage analysis.
assemble-team
Assemble a pre-built agent team for parallel work - review, feature, debug, cross-platform, full-stack, or research.
standardize-claude-md
Add missing toolkit sections (Related Global Rules, Quick Start) to existing CLAUDE.md.
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.