claude-cognitive / templates
CLAUDE.md449 starsChanged 11 months agoMITView on GitHub
Project: [Brief description] Status: [Development/Production/Research] Primary Goal: [What are you building?] Core Components: - [Component 1]: [Purpose, location] - [Component 2]: [Purpose, location] - [Component 3]: [Purpose, location] This project uses fractal documentation - information organized by attention level: When you start a session: 1. Check systems/ for deployment context 2. Check modules/ for code you're working on 3. Use integrations/ if touching external systems The context router will automatically: - Keep recently mentioned files HOT (full content) - Keep…
In this repositoryOne other file it gives its agents.
- .claude-dev/CLAUDE.mdCLAUDE.md
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
14 rules. About 0 are common, 9 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 45
Add more as needed
- Distinctive: line 52
Add per major module
- Distinctive: line 58
Add per integration point
- Very specific: line 65
Check systems/ for deployment context
- Very specific: line 66
Check modules/ for code you're working on
- Very specific: line 67
Use integrations/ if touching external systems
- Distinctive: line 70
Keep recently mentioned files HOT (full content)
- Distinctive: line 71
Keep related files WARM (headers only)
- Distinctive: line 159
Avoid hallucinating non-existent integrations
- Distinctive: line 165
Add sections specific to your project
- Distinctive: line 166
Keep it updated as architecture evolves
- Very specific: line 167
Use systems/*.md for detailed hardware/deployment docs
- Very specific: line 168
Use modules/*.md for detailed code documentation
- Distinctive: line 174
If you're running multiple Claude Code instances on this project:
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 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
[Your Project Name]
Project: [Brief description] Status: [Development/Production/Research] Primary Goal: [What are you building?]
Quick Reference
| What | Where | Command |
| Start | [entry_point.py] | python [entry_point.py] |
| Test | [test_directory] | pytest |
| Deploy | [deployment_script] | ./deploy.sh |
Architecture Overview
[Your system architecture diagram - text-based is fine]
Example:
Client → API Server → Database
↓
Background WorkersCore Components:
- [Component 1]: [Purpose, location]
- [Component 2]: [Purpose, location]
- [Component 3]: [Purpose, location]
Context Documentation Structure
This project uses fractal documentation - information organized by attention level:
Systems (systems/)
Hardware, deployment, infrastructure - changes slowly
systems/production.md- Production environmentsystems/development.md- Dev environment- Add more as needed
Modules (modules/)
Core code systems - changes frequently
modules/api.md- API layer documentationmodules/database.md- Data layermodules/auth.md- Authentication- Add per major module
Integrations (integrations/)
Cross-system communication
integrations/external-api.md- Third-party APIintegrations/websocket.md- Real-time communication- Add per integration point
Getting Started (for Claude)
When you start a session:
- Check
systems/for deployment context - Check
modules/for code you're working on - Use
integrations/if touching external systems
The context router will automatically:
- Keep recently mentioned files HOT (full content)
- Keep related files WARM (headers only)
- Evict unmentioned files as COLD
Development Workflow
Daily:
# [Your typical commands]
git pull
[run tests]
[start dev server]Deploy:
# [Your deploy process]
[build command]
[deploy command]Common Operations
Run tests:
[test command]Check logs:
[log command]Health check:
[health check command]Critical Files
| File | Purpose | Line |
[critical_file_1.py] | [Purpose] | [Key line numbers] |
[critical_file_2.py] | [Purpose] | [Key line numbers] |
Environment Variables
# Required
export [VAR_NAME]=[value]
# Optional
export [VAR_NAME]=[value]Dependencies on External Services
| Service | Purpose | Failure Impact | Health Check |
| [Service 1] | [Purpose] | [Impact] | curl [health_url] |
| [Service 2] | [Purpose] | [Impact] | ping [host] |
Recent Changes
[Keep a running log of major changes for context continuity]
[Date]:
- [Change description]
- [Affects: which systems]
- [Why: reasoning]
For New Developers
This file helps Claude Code:
- Understand your project structure
- Avoid hallucinating non-existent integrations
- Maintain context across long sessions
- Coordinate across multiple concurrent instances
Customize this template:
- Replace all
[placeholders]with your actual info - Add sections specific to your project
- Keep it updated as architecture evolves
- Use
systems/*.mdfor detailed hardware/deployment docs - Use
modules/*.mdfor detailed code documentation
Multi-Instance Coordination
If you're running multiple Claude Code instances on this project:
- Set instance ID:
export CLAUDE_INSTANCE=A # Or B, C, D, etc. - Signal when completing work:
INSTANCE: A ACTION: completed TOPIC: [Brief description] SUMMARY: [What changed] AFFECTS: [Files/systems touched] BLOCKS: [What this unblocks] - Other instances will see your updates at their next session start
Last Updated: [Date] Maintained By: [Your name/team]
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.

