claude-bootstrap
CLAUDE.md708 starsChanged 5 months agoMITView on GitHub
- Write clear, concise commit messages - One logical change per commit - Run tests before committing - Update CHANGELOG.md in the same commit — every behaviour/config/docs/deps change ships a changelog entry (see rules/changelog.md). No commit without one. ALWAYS write tests before implementation. No exceptions. If asked to add a feature without tests, write the tests first then ask to proceed. If a PR diff shows untested code paths, flag them before continuing. Invoke: gemini --flash-lite "" Invoke: deepseek --flash…
1 other project uses a version of this.
Adopted by
Most recently taken up by
- alinaqi/maggyword for word, first seen Jun 12, 2026
Other versions1 project uses a version of this.
Word for word · 1
- alinaqi/maggy★ 711100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository75 other files it gives its agents.
- templates/AGENTS.mdAGENTS.md
- templates/CLAUDE.mdCLAUDE.md
- aeo-optimizationSkill
- agentic-developmentSkill
- agent-teamsSkill
- ai-modelsSkill
- android-javaSkill
- android-kotlinSkill
- autonomous-testingSkill
- aws-auroraSkill
- aws-dynamodbSkill
- azure-cosmosdbSkill
- baseSkill
- build-in-publicSkill
- cloudflare-d1Skill
- code-deduplicationSkill
- code-graphSkill
- code-reviewSkill
- codex-reviewSkill
- commit-hygieneSkill
- context-shuntSkill
- council-reviewSkill
- cpg-analysisSkill
- credentialsSkill
- cross-agent-delegationSkill
- database-schemaSkill
- dataforseoSkill
- demo-videoSkill
- existing-repoSkill
- external-model-delegationSkill
- firebaseSkill
- flutterSkill
- gemini-reviewSkill
- icpgSkill
- iterative-developmentSkill
- klaviyoSkill
- llm-patternsSkill
- maggySkill
- medusaSkill
- mnemosSkill
- model-routingSkill
- ms-teams-appsSkill
- nodejs-backendSkill
- playwright-testingSkill
- polyphonySkill
- posthog-analyticsSkill
- project-toolingSkill
- pwa-developmentSkill
- pythonSkill
- react-nativeSkill
- react-webSkill
- reddit-adsSkill
- reddit-apiSkill
- security-auditSkill
- securitySkill
- session-managementSkill
- shopify-appsSkill
- site-architectureSkill
- supabase-nextjsSkill
- supabase-nodeSkill
- The first 60 shown.
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
21 rules. About 0 are common, 19 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈19
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 6
Use TypeScript over JavaScript when possible
- Distinctive: line 7
Prefer functional programming patterns
- Distinctive: line 8
Write tests for new functionality
- Distinctive: line 20
Write clear, concise commit messages
- Distinctive: line 22
Run tests before committing
- Distinctive: line 38
ALWAYS write tests before implementation.
- Distinctive: line 41
Write failing tests that describe the expected behaviour
- Distinctive: line 42
Run tests — confirm they fail for the right reason
- Distinctive: line 43
Write the minimum implementation to pass
- Distinctive: line 45
Never write a function, class, or API endpoint without a corresponding test
- Distinctive: line 47
If asked to add a feature without tests, write the tests first then ask to proceed.
- Distinctive: line 48
If a PR diff shows untested code paths, flag them before continuing.
- Distinctive: line 109
Commit messages, changelogs, diff summaries
- Distinctive: line 152
When a task requires planning (CLAUDE tier), the full cycle is automated:
- Very specific: line 166
Multi-model validation: After writing a plan, run ~/bin/validate-plan which sends the plan to DeepSeek Pro, Codex, and Gemini Pro in …
- Distinctive: line 176
Before any PR is considered done:
- Distinctive: line 177
All tests pass locally
- Distinctive: line 181
Write a clear PR description: what, why, how
- Distinctive: line 196
Before PR → pr-review script
- Distinctive: line 202
When built-in tools (WebSearch, WebFetch) return errors or empty results, retry with external backends:
- Very specific: line 215
When WebSearch fails: run ~/bin/research "your search query"
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Global Claude Code Settings
General Preferences
- Concise responses preferred
- Use TypeScript over JavaScript when possible
- Prefer functional programming patterns
- Write tests for new functionality
Code Style
- 2 spaces for indentation (JS/TS)
- 4 spaces for Python
- Single quotes for strings (JS/TS)
- No trailing commas
- Meaningful variable names
Git Workflow
- Write clear, concise commit messages
- One logical change per commit
- Run tests before committing
- Update
CHANGELOG.mdin the same commit — every behaviour/config/docs/deps change ships a changelog entry (seerules/changelog.md). No commit without one.
Tools & Frameworks
- Package manager: npm (Node.js), pip (Python)
- Testing: Jest/Vitest (JS), pytest (Python)
- Linting: ESLint (JS), ruff/black (Python)
Engineering Policy
TDD — Non-Negotiable
ALWAYS write tests before implementation. No exceptions.
- Read the requirement
- Write failing tests that describe the expected behaviour
- Run tests — confirm they fail for the right reason
- Write the minimum implementation to pass
- Refactor, keep tests green
- Never write a function, class, or API endpoint without a corresponding test
If asked to add a feature without tests, write the tests first then ask to proceed. If a PR diff shows untested code paths, flag them before continuing.
Model Routing — Token Economy (13-Tier)
| Tier | Model | Cost (in/out per M) | Role |
| 1 | Gemini 2.5 Flash-Lite | $0.10 / $0.40 | Bulk extraction, classification, CIG pipelines |
| 2 | DeepSeek V4 Flash | $0.14 / $0.28 | Sub-agents, cheap internal calls |
| 3 | Gemini 2.5 Flash | $0.15 / $0.60 | Multimodal, video analysis, brand assets |
| 4 | DeepSeek V4 Pro | $0.435 / $0.87 | Main coding workhorse — ~80% of work |
| 5 | Gemini CLI (coding agent) | ~$0.25-1.25 / M | Agentic coding, multi-file impl, Google tier |
| 6 | AGY / Antigravity (Google) | Google tier | Terminal coding agent, end-to-end impl |
| 7 | Kimi K2.6 | $0.60 / $2.50 | Long agentic loops, routing alt |
| 8 | Gemini 3.1 Pro + Search | $1.25 / $10 | Deep research, Google grounding, 2M context |
| 9 | Grok 4.3 (xAI) | $5 / $15 | Competitor intel, CKG, deep reasoning |
| 10 | Codex | varies | Code review, bulk generation |
| 11 | Claude Sonnet/Opus | $3-5 / $15-25 | Quality-critical, security, architecture |
Use Gemini Flash-Lite (Tier 1) for:
- Bulk extraction and classification pipelines
- Cheap summarization, CIG data processing
- Non-code batch tasks (cheapest model at $0.10/M)
Invoke: gemini --flash-lite ""
Use DeepSeek Flash (Tier 2) for:
- Simple code tasks, boilerplate, CRUD, config changes
- Single-file additions, small bug fixes
Invoke: deepseek --flash ""
Use DeepSeek Pro (Tier 4) for:
- Multi-file features and refactors
- Debugging, API endpoints, test suites
- Documentation writing — main coding workhorse
Invoke: deepseek --pro ""
Use Gemini Flash (Tier 5) for:
- Multimodal tasks (image screenshots, brand assets)
- Video content processing and analysis
- Audio transcription review
Invoke: gemini --flash ""
Use Gemini CLI (Tier 5) for:
- Agentic coding tasks with file read/write
- Multi-file implementation within Google ecosystem
- Alternative coding agent for medium-complexity work
Invoke: gemini-cli --pro ""
Use AGY / Antigravity (Tier 6) for:
- End-to-end implementation (git operations, file edits, testing)
- Terminal coding agent tasks (Google's coding agent)
- Multi-step implementation with autonomous execution
Invoke: agy-delegate --print "" Invoke (headless): agy-delegate --headless ""
Use kimi (Tier 7) for:
- Commit messages, changelogs, diff summaries
- Research questions needing reasoning
- Quick single-model analysis
Invoke: kimi ""
Multi-Model Review
For architecture/code reviews, run DeepSeek + Kimi + Codex in parallel instead of single-model:
~/bin/review --all "review this implementation"
~/bin/review --deepseek --kimi "architecture review of auth module"- Agree/disagree analysis across all three reviewers
- Estimated cost: ~$0.02 per review (vs $3-5 for Claude solo)
- Review log:
~/.claude/review-log.jsonl
Use Gemini Pro Search (Tier 7) for:
- Deep research with native Google Search grounding
- Competitor intelligence and market research
- 2M context document analysis
Invoke: gemini --pro-search ""
Use Grok (Tier 9) for:
- Competitor intelligence and CKG building
- Deep reasoning and market analysis
- Truthful, insightful research
Invoke: grok ""
Use Codex (Tier 10) for:
- Large-scale boilerplate or test generation
- Mechanical changes across many files
- Code review (codex-review)
Use Claude (Tier 11) for:
- Architecture and system design
- Security-critical code
- Complex debugging, multi-service refactors
- Customer-facing quality-critical code
Autonomous Plan → Validate → Execute
When a task requires planning (CLAUDE tier), the full cycle is automated:
Goal detected → Enter plan mode → Write plan to ~/.claude/plans/
↓
~/bin/validate-plan --threshold 2 <plan-file>
↓ (DeepSeek Pro + Codex + Gemini Pro vote in parallel)
2+ APPROVED → Auto-approve → Execute immediately
1 APPROVED → Surface to user with reviewer feedback
0 APPROVED → Revise plan, re-validateGoal detection: The route-task-hook classifies tasks. CLAUDE tier (architecture, security, complex system design) → PLAN FIRST. DEEPSEEK_PRO/GEMINI_CLI (features, refactors) → EXECUTE DIRECTLY.
Multi-model validation: After writing a plan, run ~/bin/validate-plan which sends the plan to DeepSeek Pro, Codex, and Gemini Pro in parallel. Each evaluates approach completeness, edge cases, scope, and safety. Need 2+ approvals to auto-execute.
Approval thresholds:
- 3/3 approved → execute silently
- 2/3 approved → execute with minority feedback noted
- 1/3 approved → surface to user, show reviewer critiques
- 0/3 approved → revise plan, re-validate
PR Workflow — Required Steps
Before any PR is considered done:
- All tests pass locally
- Run: pr-review [base-branch]
- Fix all issues flagged by CodeRabbit and Codex review
- Confirm test coverage includes the new code paths
- Write a clear PR description: what, why, how
Routing heuristic:
- Lookup / one-liner → handle directly (no delegation)
- Bulk extraction / classification → Gemini Flash-Lite
- Simple code / boilerplate → DeepSeek Flash
- Multimodal / video / images → Gemini Flash
- Features / refactors / debugging → DeepSeek Pro
- Agentic coding / multi-file impl → Gemini CLI
- End-to-end impl / git+code+test → AGY (Antigravity)
- Review / reasoning → kimi
- Deep research / Google grounding → Gemini Pro Search
- Competitor intel / deep reasoning → Grok
- Bulk generation → Codex
- Architecture / security / quality-critical → Claude
- Before PR → pr-review script
DeepSeek handles ~80% of coding work. Gemini CLI and AGY handle agentic implementation. Gemini fills multimodal, research, and bulk extraction gaps. Reserve Claude for quality-critical tasks.
Tool Fallback Protocol
When built-in tools (WebSearch, WebFetch) return errors or empty results, retry with external backends:
| Failed Tool | Fallback 1 | Fallback 2 |
| WebSearch / WebFetch | ~/bin/research "query" | ~/bin/deepseek --pro "query" |
| Read / file access | cat via Bash | — |
| Grep | grep -r via Bash | — |
Research Tool (~/bin/research)
Multi-backend research with auto-evaluation:
- Tries deepseek-flash → deepseek-pro in sequence
- Scores results on 0-10 scale (content quality, structure, length)
- Auto-adjusts preferred backend based on evaluation scores
- When WebSearch fails: run
~/bin/research "your search query" - Evaluation stats:
~/bin/research --eval - Score log:
~/.claude/research-eval.jsonl
Followed Model & Pre-Analysis (hook signals)
The route-task hook injects two signals into every prompt — act on them:
FOLLOWED MODEL: <name>— the user's chosen primary model (/model-config). For substantial coding, prefer delegating to it.MINIMAX PRE-ANALYSIS: ...— a terse INTENT / SCOPE / RISKS / APPROACH brief. Use it to execute directly instead of re-deriving the task.
The choice lives in ~/.claude/model-config.json (primary, classifier, mode, analyze) and is shared by the hooks, Maggy, and srooter. See GETTING_STARTED.md for setup.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

