ai-project-template
CLAUDE.md9 starsChanged 16 months agoMITView on GitHub
Note: This is a template repository. When using this template for your own project, customize this file to match your specific workflow and requirements. This project includes helpful hooks that run automatically: See .claude/hooks/ for customizable hook scripts and .claude/settings.json for configuration.
- Installs packages
In this repository2 other files it gives its agents.
- backend/CLAUDE.mdCLAUDE.md
- frontend/CLAUDE.mdCLAUDE.md
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
15 rules. About 0 are common, 15 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
0
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 8
Create todo list with checkable items
- Distinctive: line 9
Check in with user before starting
- Distinctive: line 12
Keep changes simple and minimal
- Distinctive: line 13
Add review section to TODO.md when done
- Distinctive: line 19
Test all changes: before marking complete
- Distinctive: line 20
Run linting/formatting: after code changes
- Distinctive: line 71
Update TODO.md with plan
- Distinctive: line 81
Always run tests before completion
- Distinctive: line 85
Use type hints (Python)
- Distinctive: line 87
Prefer composition over inheritance
- Distinctive: line 91
Update README for major features
- Distinctive: line 92
Keep API documentation current
- Distinctive: line 93
Document complex business logic
- Distinctive: line 94
Add examples for new patterns
- Distinctive: line 109
Never commit secrets or API keys
≈ “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
🤖 AI Assistant Instructions
Note: This is a template repository. When using this template for your own project, customize this file to match your specific workflow and requirements.
📋 User's Preferred Workflow
- Think through problem, read codebase, write plan to docs/project_management/TODO.md
- Create todo list with checkable items
- Check in with user before starting
- Work on todos, marking complete as you go
- Give high-level explanations only
- Keep changes simple and minimal
- Add review section to TODO.md when done
🎯 Important Rules
- No comments in code unless explicitly asked
- Always use TodoWrite tool to track progress
- Test all changes before marking complete
- Run linting/formatting after code changes
- Commit only when explicitly asked
🏗️ Project Structure
- Backend: Django REST API with Django Ninja
- Frontend: Next.js with TypeScript and Tailwind CSS
- Database: PostgreSQL (dev: SQLite)
- Testing: pytest (backend), Playwright (e2e)
- Deployment: Docker + AWS (ECS/EC2)
🗂️ Key Locations
- Backend API:
backend/apps/*/api.py(Django Ninja endpoints) - Models:
backend/apps/*/models.py - Services:
backend/apps/*/services.py(business logic) - Frontend Pages:
frontend/src/app/(App Router) - Components:
frontend/src/components/ - API Client:
frontend/src/lib/api.ts - Types:
frontend/src/types/ - Tests:
backend/tests/,frontend/tests/e2e/
🔧 Common Commands
Backend
cd backend
uv sync # Install dependencies
uv run python manage.py migrate # Run migrations
uv run python manage.py runserver # Start dev server
uv run pytest # Run tests
uv run ruff check . # Lint codeFrontend
cd frontend
npm install # Install dependencies
npm run dev # Start dev server
npm run build # Build for production
npm run test:e2e # Run E2E tests
npm run lint # Lint code
npm run type-check # TypeScript check🚀 Development Workflow
- Feature Development:
- Create feature branch
- Update TODO.md with plan
- Implement backend API first
- Create frontend UI
- Write tests
- Update documentation
- Testing Strategy:
- Unit tests for services
- Integration tests for APIs
- E2E tests for critical flows
- Always run tests before completion
- Code Style:
- Follow existing patterns
- Use type hints (Python)
- Use TypeScript strictly
- Prefer composition over inheritance
📝 Documentation
- Update README for major features
- Keep API documentation current
- Document complex business logic
- Add examples for new patterns
🪝 Claude Code Hooks
This project includes helpful hooks that run automatically:
- Format on save: Python and TypeScript files are auto-formatted
- Security checks: Dangerous commands are blocked
- Model changes: Notifies when Django migrations may be needed
- Git context: Shows current branch and status with each prompt
See .claude/hooks/ for customizable hook scripts and .claude/settings.json for configuration.
🔒 Security Notes
- Never commit secrets or API keys
- Use environment variables
- Validate all user inputs
- Follow OWASP guidelines
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.

