This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is a PRP (Product Requirement Prompt) Framework repository, not a traditional software project. The core concept: "PRP = PRD + curated codebase intelligence + agent/runbook" - designed to enable AI agents to ship production-ready code on the first pass.
- 28+ pre-configured Claude Code commands in
.claude/commands/ - Commands organized by function:
PRPs/- PRP creation and execution workflowsdevelopment/- Core development utilities (prime-core, onboarding, debug)code-quality/- Review and refactoring commandsrapid-development/experimental/- Parallel PRP creation and hackathon toolsgit-operations/- Conflict resolution and smart git operations
- PRP Templates in
PRPs/templates/follow structured format with validation loops - Context-Rich Approach: Every PRP must include comprehensive documentation, examples, and gotchas
- Validation-First Design: Each PRP contains executable validation gates (syntax, tests, integration)
PRPs/ai_docs/contains curated Claude Code documentation for context injectionclaude_md_files/provides framework-specific CLAUDE.md examples
# Interactive mode (recommended for development)
uv run PRPs/scripts/prp_runner.py --prp [prp-name] --interactive
# Headless mode (for CI/CD)
uv run PRPs/scripts/prp_runner.py --prp [prp-name] --output-format json
# Streaming JSON (for real-time monitoring)
uv run PRPs/scripts/prp_runner.py --prp [prp-name] --output-format stream-json/prp-base-create- Generate comprehensive PRPs with research/prp-base-execute- Execute PRPs against codebase/prp-planning-create- Create planning documents with diagrams/prime-core- Prime Claude with project context/review-staged-unstaged- Review git changes using PRP methodology
- Context is King: Include ALL necessary documentation, examples, and caveats
- Validation Loops: Provide executable tests/lints the AI can run and fix
- Information Dense: Use keywords and patterns from the codebase
- Progressive Success: Start simple, validate, then enhance
- Goal: Specific end state and desires
- Why: Business value and user impact
- What: User-visible behavior and technical requirements
- All Needed Context: Documentation URLs, code examples, gotchas, patterns
- Implementation Blueprint: Pseudocode with critical details and task lists
- Validation Loop: Executable commands for syntax, tests, integration
# Level 1: Syntax & Style
ruff check --fix && mypy .
# Level 2: Unit Tests
uv run pytest tests/ -v
# Level 3: Integration
uv run uvicorn main:app --reload
curl -X POST http://localhost:8000/endpoint -H "Content-Type: application/json" -d '{...}'
# Level 4: Deployment
# mcp servers, or other creative ways to self validate- L Don't create minimal context prompts - context is everything - the PRP must be comprehensive and self-contained, reference relevant documentation and examples.
- L Don't skip validation steps - they're critical for one-pass success - The better The AI is at running the validation loop, the more likely it is to succeed.
- L Don't ignore the structured PRP format - it's battle-tested
- L Don't create new patterns when existing templates work
- L Don't hardcode values that should be config
- L Don't catch all exceptions - be specific
- Context Process: New PRPs must consist of context sections, Context is King!
- Load PRP: Read and understand all context and requirements
- ULTRATHINK: Create comprehensive plan, break down into todos, use subagents, batch tool etc check prps/ai_docs/
- Execute: Implement following the blueprint
- Validate: Run each validation command, fix failures
- Complete: Ensure all checklist items done
- Read the .claude/commands directory
- Access via
/prefix in Claude Code - Commands are self-documenting with argument placeholders
- Use parallel creation commands for rapid development
- Leverage existing review and refactoring commands
PRPs-agentic-eng/
.claude/
commands/ # 28+ Claude Code commands
settings.local.json # Tool permissions
PRPs/
templates/ # PRP templates with validation
scripts/ # PRP runner and utilities
ai_docs/ # Curated Claude Code documentation
*.md # Active and example PRPs
claude_md_files/ # Framework-specific CLAUDE.md examples
pyproject.toml # Python package configuration
Remember: This framework is about one-pass implementation success through comprehensive context and validation. Every PRP should contain the exact context for an AI agent to successfully implement working code in a single pass.