Prompt templates for Claude Code to handle common software development tasks.
This repository contains prompts that help Claude Code work through software engineering tasks systematically. Each template provides a structured approach for specific development scenarios.
A learn-from-failure approach to implementing code changes. Tracks attempts and learnings through an iterative process.
Use for:
- Complex features requiring exploration
- Bug fixes with unclear root causes
- Performance optimizations
- Experimental refactoring
Structure:
- Goal setting with impact focus
- Code analysis and planning
- Implementation tracking with success/failure logs
- Iterative improvement cycles
Creates comprehensive documentation files (like llms.txt
) that provide complete context about a codebase.
Use for:
- Onboarding documentation
- Codebase reference materials
- Pre-refactoring analysis
- AI assistant context
Output includes:
- File purposes and relationships
- Function signatures with parameters
- Architecture diagrams
- Code conventions
- Data formats
Analyzes GitHub issues and creates implementation plans before coding begins.
Use for:
- New issue assessment
- Implementation planning
- Stakeholder alignment
- Risk evaluation
Process:
- Review issue details
- Examine codebase
- Create feature branch
- Develop implementation plan
- Request approval
Creates well-structured GitHub issues with varying detail levels based on complexity.
Use for:
- Feature requests
- Bug reports
- Architecture proposals
- Improvement suggestions
Detail levels:
- MINIMAL: Simple bugs or clear features
- MORE: Standard issues with technical details
- A LOT: Major features or architectural changes
Features:
- Repository convention research
- Best practices integration
- Stakeholder analysis
- Proper formatting and cross-references
Systematically addresses all PR feedback, comments, and requested changes.
Use for:
- Code review feedback
- Multiple PR comments
- Pre-merge cleanup
- Review response management
Workflow:
- Research - Find all comments and feedback
- Planning - Prioritize and track with TodoWrite
- Implementation - Address each item
- Verification - Test and validate changes
Features:
- Parallel processing for independent changes
- Comment priority classification
- GitHub API command examples
- Resolution tracking
Templates can be used as slash commands or copied directly:
# As slash command
/research Create OAuth authentication feature
# Or copy template content and replace placeholders
Most templates include:
- Clear objectives
- Step-by-step processes
- Decision criteria
- Output formats
- Usage examples
- Select templates based on task type and complexity
- Provide complete context when using templates
- Follow all phases in multi-step workflows
- Use TodoWrite for complex task tracking
- Run tests and linting after changes
When adding templates:
- Focus on specific use cases
- Include clear documentation
- Provide examples
- Test thoroughly
- Keep formatting consistent
- Adapt templates to match team conventions
- Save project-specific versions in
.claude/commands/
- Combine templates for complex workflows
- Share modifications with your team