This template gives you a complete Context Engineering system:
- CLAUDE.md - Global rules for the AI assistant (edit this for your project)
- INITIAL.md - Template for describing features you want to build
- examples/ - Folder for code examples the AI should follow
- PRPs/ - Where generated implementation blueprints are stored
- .claude/ - Custom commands for generating and executing PRPs
Edit CLAUDE.md to add your project-specific rules:
- Coding standards
- Framework preferences
- Testing requirements
- Security guidelines
Place relevant code examples in the examples/ folder:
- API patterns
- Database models
- Testing patterns
- Any code the AI should mimic
Edit INITIAL.md with your feature:
## FEATURE:
Build a REST API for user authentication with JWT tokens
## EXAMPLES:
See examples/auth_api.py for our standard API structure
## DOCUMENTATION:
- FastAPI docs: https://fastapi.tiangolo.com/
- JWT best practices: [link]
## OTHER CONSIDERATIONS:
- Must support refresh tokens
- Use bcrypt for password hashingIn Claude Code, run:
/generate-prp INITIAL.md
This creates a comprehensive implementation blueprint in PRPs/
/execute-prp PRPs/your-feature.md
The AI will implement your feature following all the context you provided.
- More Examples = Better Results: The AI performs best when it has patterns to follow
- Be Specific in INITIAL.md: Don't assume the AI knows your preferences
- Use the Validation: PRPs include test commands that ensure working code
- Iterate: You can generate multiple PRPs and refine them before execution
- New Features: Describe what you want, provide examples, get implementation
- Refactoring: Show current code patterns, describe desired state
- Bug Fixes: Include error logs, expected behavior, relevant code
- Integration: Provide API docs, show existing integration patterns
- Start with a simple feature to test the workflow
- Build up your examples folder over time
- Refine CLAUDE.md as you discover patterns
- Use PRPs for all major features to ensure consistency