prp-core
by Wirasm
Complete PRP workflow automation - create, execute, commit, and PR commands with orchestration scripts
Commands
prp-codebase-questionResearch codebase questions using parallel agents - documents what exists, not what should change
prp-commitQuick commit with natural language file targeting
prp-debugDeep root cause analysis - finds the actual cause, not just symptoms
prp-implementExecute an implementation plan with rigorous validation loops
prp-issue-fixImplement a fix from investigation artifact - code changes, PR, and self-review
prp-issue-investigateInvestigate a GitHub issue or problem - analyze codebase, create plan, post to GitHub
prp-planCreate comprehensive feature implementation plan with codebase analysis and research
prp-prCreate a PR from current branch with unpushed commits
prp-prdInteractive PRD generator - problem-first, hypothesis-driven product spec
prp-ralph-cancelCancel active PRP Ralph loop
prp-ralphStart autonomous Ralph loop to execute PRP plan until all validations pass
prp-research-teamDesign a dynamic research team and plan using agent teams -- analyzes question, composes team, creates executable research plan
prp-review-agentsComprehensive PR review using specialized agents - comments, tests, errors, types, code quality, docs, and simplification
prp-reviewComprehensive PR code review - checks diff, patterns, runs validation, comments on PR
Documentation
# PRP Core Plugin
Complete PRP (Product Requirement Prompt) workflow automation for Claude Code.
## Overview
This plugin provides a comprehensive workflow for creating, executing, and shipping features using the PRP methodology - where **PRP = PRD + curated codebase intelligence + agent/runbook** designed to enable AI agents to ship production-ready code on the first pass.
## Commands
### Core Workflow
| Command | Description |
|---------|-------------|
| `/prp-prd` | Interactive PRD generator with implementation phases |
| `/prp-plan` | Create implementation plan (from PRD or free-form input) |
| `/prp-implement` | Execute a plan with validation loops |
### Issue Workflow
| Command | Description |
|---------|-------------|
| `/prp-issue-investigate` | Analyze GitHub issue, create implementation plan |
| `/prp-issue-fix` | Execute fix from investigation artifact |
### Research
| Command | Description |
|---------|-------------|
| `/prp-research-team` | Design dynamic research team and plan using agent teams |
### Git & Review
| Command | Description |
|---------|-------------|
| `/prp-commit` | Smart commit with natural language file targeting |
| `/prp-pr` | Create PR with template support |
| `/prp-review` | Comprehensive PR code review |
| `/prp-review-agents` | Multi-agent PR review (comments, tests, errors, types, code, docs, simplify) |
## Agents
Specialized agents for code analysis and review workflows.
### Codebase Analysis
| Agent | Description |
|-------|-------------|
| `codebase-analyst` | Documents HOW code works with file:line references |
| `codebase-explorer` | Finds WHERE code lives AND extracts patterns |
| `web-researcher` | Researches web for docs, APIs, best practices |
### Review Workflow
| Agent | Description |
|-------|-------------|
| `code-reviewer` | Project guidelines, bugs, type/module checks |
| `comment-analyzer` | Comment accuracy and maintainability |
| `pr-test-analyzer` | Test coverage quality and gaps |
| `silent-failure-hunter` | Error handling and silent failures |
| `type-design-analyzer` | Type encapsulation and invariants |
| `code-simplifier` | Clarity and maintainability improvements |
| `docs-impact-agent` | Updates stale documentation |
### Using Agents
Agents are invoked automatically by `/prp-review-agents` or manually via Task tool:
```
/prp-review-agents 123 # Full review of PR #123
/prp-review-agents 123 tests errors # Specific aspects only
```
## Workflow
### Large Features: PRD → Plan → Implement
```
/prp-prd "user authentication system"
↓
Creates PRD with Implementation Phases table
↓
/prp-plan .claude/PRPs/prds/user-auth.prd.md
↓
Auto-selects next pending phase, creates plan
↓
/prp-implement .claude/PRPs/plans/user-auth-phase-1.plan.md
↓
Executes plan, updates PRD progress, archives plan
↓
Repeat /prp-plan for next phase
```
### Medium Features: Direct to Plan
```
/prp-plan "add pagination to the API"
↓
/prp-implement .claude/PRPs/plans/add-pagination.plan.md
```
### Bug Fixes: Issue Workflow
```
/prp-issue-investigate 123
↓
/prp-issue-fix 123
```
## Installation
### Option 1: From GitHub (Recommended)
```bash
# Add marketplace from GitHub
/plugin marketplace add Wirasm/PRPs-agentic-eng
# Install plugin
/plugin install prp-core@prp-marketplace
```
### Option 2: Local Development/Testing
```bash
# Navigate to the repository root
cd /path/to/PRPs-agentic-eng
# Start Claude Code
claude
# Add local marketplace (use absolute path)
/plugin marketplace add /absolute/path/to/PRPs-agentic-eng
# Install plugin
/plugin install prp-core@prp-marketplace
# Restart Claude Code (required)
```
### Option 3: Team Automatic Installation
Add to your project's `.claude/settings.json`:
```json
{
"extraKnownMarketplaces": {
"prp-marketplace": {
"source": "Wirasm/PRPs-agentic-eng"
}
},
"enabledPlugins": [
"prp-core@prp-marketplace"
]
}
```
## Artifacts Structure
All artifacts are stored in `.claude/PRPs/`:
```
.claude/PRPs/
├── prds/ # Product requirement documents
├── plans/ # Implementation plans
│ └── completed/ # Archived completed plans
├── reports/ # Implementation reports
├── issues/ # Issue investigation artifacts
│ └── completed/ # Archived completed investigations
└── reviews/ # PR review reports
```
## PRD Phases
PRDs include an Implementation Phases table:
```markdown
| # | Phase | Description | Status | Parallel | Depends | PRP Plan |
|---|-------|-------------|--------|----------|---------|----------|
| 1 | Auth | User login | complete | - | - | [link] |
| 2 | API | Endpoints | in-progress | - | 1 | [link] |
| 3 | UI | Frontend | pending | with 4 | 2 | - |
```
- **Status**: `pending` → `in-progress` → `complete`
- **Parallel**: Phases that can run concurrently
- **Depends**: Phases that must complete first
## PRP Methodology
### What is a PRP?
**PRP = PRD + curated codebase intelligence + agent/runbook**
A PRP is a comprehensive implementation document containing:
1. **Context** - All necessary patterns, documentation, and examples
2. **Plan** - Step-by-step tasks with validation gates
3. **Validation** - Executable commands to verify correctness
### Core Principles
1. **Context is King** - Include ALL necessary information
2. **Validation Loops** - Provide executable tests the AI can run and fix
3. **Information Dense** - Use keywords and patterns from codebase
4. **Bounded Scope** - Each plan completable by AI in one loop
## Requirements
- Claude Code installed
- Git configured
- GitHub CLI (`gh`) for PR creation
## Troubleshooting
### Plugin Not Loading
```bash
/plugin
/plugin uninstall prp-core@marketplace
/plugin install prp-core@marketplace
# Restart Claude Code
```
### Commands Not Found
Ensure Claude Code restarted after installation:
```bash
/help
```
## License
MIT License
## Support
- **Issues**: https://github.com/Wirasm/PRPs-agentic-eng/issues
- **Documentation**: https://github.com/Wirasm/PRPs-agentic-eng