A comprehensive rules template for AI coding assistants, supporting Cursor AI and Claude Code with Context Engineering.
This template provides a structured framework for AI-assisted development based on software engineering best practices and documentation-driven development. It helps AI coding assistants understand project context, follow conventions, and maintain code quality.
- Cursor AI Support:
.cursor/rules/directory with.mdcfiles for on-demand loading - Claude Code Support: Context Engineering workflow with PRP (Product Requirements Prompts)
- Memory Bank: Persistent documentation system in
docs/andtasks/ - Agile Workflow: Built on software engineering principles and best practices
- Auto-Documentation: Automatically updates documentation after changes
- Copy
.cursor/rules/to your project root - Start coding with Cursor AI
- Copy
.claude/directory andCLAUDE.mdto your project root - Install Claude Code from Anthropic
- Use PRP workflow:
- Write requirements in
INITIAL.md - Run
/generate-prp INITIAL.md - Run
/execute-prp PRPs/your-feature-name.md
- Write requirements in
project/
├── .cursor/rules/ # Cursor AI rules
├── .claude/ # Claude Code config
├── CLAUDE.md # Claude Code global rules
├── AGENTS.md # MiMoCode rules
├── MEMORY.md # Memory documentation system
├── docs/ # Documentation
│ ├── architecture.md
│ ├── technical.md
│ └── product_requirement_docs.md
├── tasks/ # Task management (general project tasks)
│ ├── active_context.md
│ ├── tasks_plan.md
│ └── changelog.md
├── PRPs/ # Product Requirements Prompts (Claude Code workflow)
│ ├── templates/
│ │ └── prp_base.md
│ └── EXAMPLE_multi_agent_prp.md
├── examples/ # Code examples
└── src/ # Source code
-
tasks/: General project task management for all AI assistants
active_context.md: Current development context and focustasks_plan.md: Task backlog and project progresschangelog.md: Change history and documentation
-
PRPs/: Claude Code-specific Product Requirements Prompts
templates/prp_base.md: PRP template with validation loopsEXAMPLE_multi_agent_prp.md: Complete PRP example- Used with
/generate-prpand/execute-prpcommands
.cursor/rules/
├── rules.mdc # Core rules
├── plan.mdc # Planning workflow
├── implement.mdc # Implementation workflow
├── debug.mdc # Debugging workflow
├── memory.mdc # Documentation system
└── directory-structure.mdc
MEMORY.md provides a comprehensive documentation system for persistent project memory:
- Core Files (required): Product requirements, architecture, technical specs, task plans, active context, error documentation, lessons learned
- Context Files (optional): Literature surveys, RFCs
- Workflow: PLAN/ACT modes for reading and writing memory files
- Auto-Updates: Documentation automatically updated after changes
.claude/
├── commands/
│ ├── generate-prp.md
│ └── execute-prp.md
└── settings.local.json
- Context Engineering: Provide comprehensive context for AI assistants
- Validation Loops: Self-correcting workflows with executable tests
- Documentation-Driven: Persistent memory through structured documentation
- Modular Design: Separation of concerns and incremental development
See CONTRIBUTING.md for guidelines.
This project is inspired by and references:
- rules_template by Bhartendu Kumar
- context-engineering-intro by Cole McMahan
MIT