agentleFS
code-geekcode-geek/ai-project-template/CLAUDE.md

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

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
  1. Distinctive:

    Create todo list with checkable items

    line 8
  2. Distinctive:

    Check in with user before starting

    line 9
  3. Distinctive:

    Keep changes simple and minimal

    line 12
  4. Distinctive:

    Add review section to TODO.md when done

    line 13
  5. Distinctive:

    Test all changes: before marking complete

    line 19
  6. Distinctive:

    Run linting/formatting: after code changes

    line 20
  7. Distinctive:

    Update TODO.md with plan

    line 71
  8. Distinctive:

    Always run tests before completion

    line 81
  9. Distinctive:

    Use type hints (Python)

    line 85
  10. Distinctive:

    Prefer composition over inheritance

    line 87
  11. Distinctive:

    Update README for major features

    line 91
  12. Distinctive:

    Keep API documentation current

    line 92
  13. Distinctive:

    Document complex business logic

    line 93
  14. Distinctive:

    Add examples for new patterns

    line 94
  15. Distinctive:

    Never commit secrets or API keys

    line 109

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

🤖 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

  1. Think through problem, read codebase, write plan to docs/project_management/TODO.md
  2. Create todo list with checkable items
  3. Check in with user before starting
  4. Work on todos, marking complete as you go
  5. Give high-level explanations only
  6. Keep changes simple and minimal
  7. 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 code

Frontend

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

  1. Feature Development:
    • Create feature branch
    • Update TODO.md with plan
    • Implement backend API first
    • Create frontend UI
    • Write tests
    • Update documentation
  2. Testing Strategy:
    • Unit tests for services
    • Integration tests for APIs
    • E2E tests for critical flows
    • Always run tests before completion
  3. 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.