Build features when user wants to implement PRDs, write code for specs, or develop functionality. Works incrementally substory-by-substory with automatic testing and code review. Automatically loads PRD context to maintain consistency. Also writes standalone tests for any file.
Ships in prd-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Write production-quality code for PRD substories with automatic testing, code review, and iterative refinement until ready.
Communication Style: In all interactions and commit messages, be extremely concise and sacrifice grammar for the sake of concision.
This skill activates when user says things like:
Critical: Substories follow this status lifecycle:
When to update status:
This skill includes advanced UX features. For full implementation details, read references/ux-enhancements.md:
See references/ux-enhancements.md for when and how to use each feature.
FIRST: Check for CLAUDE.md
if [[ ! -f "CLAUDE.md" ]]; then
echo "❌ ERROR: CLAUDE.md file not found in project root"
echo "This workflow requires a CLAUDE.md file. To create: type /init"
exit 1
fi
Configure session with Learning Mode:
✅ CLAUDE.md found
📋 Ready to implement
💡 Session Configuration:
Learning Mode: [Currently: ${learning_mode ? "ON" : "OFF"}]
When ON: I'll explain my approach before each substory
When OFF: I'll implement directly without explanations
Change Learning Mode? [yes/no/default: no]:
See references/ux-enhancements.md Section 1 for full Learning Mode implementation.
Mark first substory as "Implementing" once configuration complete and work begins.
1. PRD Implementation Mode - User mentions PRD or says "implement"
2. Standalone Test Mode - User says "write tests for [file/feature]"
Essential loading sequence:
# Ensure directory structure
mkdir -p .claude/prds/context .claude/prds/archive/context .claude/checkpoints
# Gitignore checkpoints
if ! grep -q "\.claude/checkpoints" .gitignore 2>/dev/null; then
echo ".claude/checkpoints/" >> .gitignore
fi
# Load PRD
prd_content=$(cat "$prd_file")
claude_md=$(cat "CLAUDE.md")
# Load or init context
if context_exists "$prd_file"; then
context=$(read_context "$prd_file")
else
init_context "$prd_file"
fi
Smart PRD Discovery - If no PRD specified:
See built-in workflow for Smart PRD Discovery details (lines 205-278 of original).
Determine PRD Type (Core / Expansion / Task):
For Core PRDs:
For Task PRDs:
For Expansion PRDs (CRITICAL - AUTO-LOAD CORE):
Validate core PRD exists and is complete
Load comprehensive core context:
Present findings before coding:
🔍 Core Implementation Analysis (AUTO-LOADED):
Core PRD: .claude/prds/YYYY-MM-DD-{feature}-core.md
Status: ✅ Complete
Implementation Files ([X] analyzed):
- [list files with descriptions]
Established Patterns ([Y] identified):
- [pattern name]: [description and examples]
Libraries: [Z] libraries
Architectural Decisions: [W] decisions
Code Analysis Insights:
- Naming conventions: [observed patterns]
- Error handling: [approach used]
- Validation: [approach used]
✅ Expansion will EXTEND these patterns consistently.
Before writing code:
Run automated quality analysis:
Show health check with quality score:
🔍 PRD Health Check
Quality Score: ${score}/100 [Excellent ✅ / Good 👍 / Acceptable ⚠️ / Needs Improvement ❌]
[If score < 60:]
⚠️ PRD quality below threshold
Options:
1. 🔧 Fix issues now
2. ⏭️ Implement anyway
3. 📋 Show detailed recommendations
See built-in workflow for full health check implementation (lines 432-543 of original).
Parse for:
Show plan with Progress Visualization:
📋 Implementation Plan: [Feature Name]
Overall Progress: ░░░░░░░░░░ 0% (0/4 substories)
Phase 1: [Phase Name] (4 substories)
├─ ⏳ Substory 1.1: [Name] - Not Started
├─ ⏳ Substory 1.2: [Name] - Not Started
├─ ⏳ Substory 1.3: [Name] - Not Started
└─ ⏳ Substory 1.4: [Name] - Not Started
Ready to begin Phase 1? [yes/show-details/skip-to]
For resuming in-progress:
Overall Progress: ████████░░ 66% (2/3 complete)
Phase 1: [Phase Name]
├─ ✅ Substory 1.1 - Completed
├─ ✅ Substory 1.2 - Completed
└─ 🔄 Substory 1.3 - Implementing
Resume at Substory 1.3? [yes/restart-substory]
For each substory:
📚 See references/ux-enhancements.md Section 1
If enabled, explain approach before implementing.
⚠️ See references/ux-enhancements.md Section 2
Check for blockers: API keys, external services, migrations, dependencies.
Update PRD:
🔄 Substory 1.1: [Name] - Implementing
Started: YYYY-MM-DD HH:MM
Current: [Brief status]
Update context:
set_current_phase "$prd_file" "Phase 1: Substory 1.1"
For Core PRDs: Establish clean, simple patterns.
For Expansion PRDs (USE LOADED PATTERNS):
Quality Requirements:
Track changes:
add_created_file "$prd_file" "src/models/user.model.ts"
add_decision "$prd_file" "[decision made]"
set_library "$prd_file" "[category]" "[library]"
set_pattern "$prd_file" "[pattern]" "[location/description]"
Update PRD:
✅ Substory 1.1: [Name] - Completed (YYYY-MM-DD)
Files: [list files]
Summary: [brief summary]
✅ Substory 1.1 complete!
📝 Files created/modified:
- [file list with descriptions]
📊 Progress: 1/4 substories (25% of Phase 1)
⏭️ Next: Substory 1.2 - [Name]
Continue to next substory until phase complete.
💾 See references/ux-enhancements.md Section 3
Before each new phase, create automatic checkpoint with rollback script.
When all substories in phase complete:
🎉 Phase 1 Complete: [Phase Name]
✅ Completed substories: [list]
📊 Phase Stats: [files, lines, patterns]
🧪 Now running testing and review...
🧪 See references/ux-enhancements.md Section 4 for Smart Test Suggestions
If testing disabled in CLAUDE.md:
ℹ️ Testing skipped (CLAUDE.md indicates no tests)
Proceeding to code review...
If testing enabled:
Identify framework (Jest, pytest, RSpec, Vitest, etc.)
Present configuration:
📊 Testing Framework: [Framework]
Test command: [command]
Test pattern: [pattern]
Coverage: [requirement from CLAUDE.md]
Write comprehensive tests:
Run tests:
$test_cmd
🧪 Tests Written and Executed:
✅ [X] tests passed
📊 Coverage: [Y]%
⏱️ Duration: [time]
If tests fail (and not skipped):
📋 See references/ux-enhancements.md Section 5 for Code Review Insights
Review Dimensions:
Categorize findings:
Show summary:
📋 Code Review Complete:
🔴 Critical: 0
🟠 Major: 2
🟡 Minor: 5
✅ Positive: 8 things done well
[List major/critical issues with file:line, risk, fix]
If critical/major issues found:
🔧 Fixing [N] issues automatically... (Iteration 1/3)
[Fix each issue, show progress]
Re-running review...
Auto-fix iterations:
If issues remain after 3 iterations:
⚠️ Unable to resolve all issues after 3 iterations.
Options:
1. approve-with-issues - Continue anyway
2. manual-fix - You fix manually
3. redo-substory - Re-implement with different approach
4. get-help - Document blocker
When review clean (no critical/major):
🎉 Phase 1 Ready for Approval!
📊 Summary:
✅ [X] substories completed
✅ [Y] tests passing ([Z]% coverage) [or "⚠️ Tests skipped"]
✅ Code review: No critical/major issues
📝 [N] files created/modified
Changes: [summary]
Patterns established: [list]
Approve Phase 1 and continue? [yes/show-changes/redo-phase/stop]
User options:
🔍 See references/ux-enhancements.md Section 6
Before next phase, check for parallel work on main branch to prevent conflicts.
If more phases: Continue to Step 4
If all phases complete:
Detect git state for contextual next steps:
current_branch=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)
base_branch=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@')
on_main=false
has_changes=false
if [[ "$current_branch" == "main" ]] || [[ "$current_branch" == "master" ]] || [[ "$current_branch" == "$base_branch" ]]; then
on_main=true
fi
if [[ -n $(git status --porcelain 2>/dev/null) ]]; then
has_changes=true
fi
Show completion with context-aware options:
For CORE PRD:
🎉 Core PRD Complete!
✅ All phases implemented
📊 Core Stats: [files, tests, patterns]
🌱 Core foundation ready!
Context saved: .claude/prds/context/{prd}.json
(Auto-loaded when creating expansion PRDs)
💡 Next steps:
[Contextual options based on git state:]
[If on_main && has_changes:]
1. 🚀 Create pull request
2. 📋 Plan expansion
3. ✏️ Continue coding
[If !on_main && has_changes:]
1. 💾 Commit changes
2. 📋 Plan expansion
3. ✏️ Continue coding
[If !on_main && !has_changes:]
1. 🚀 Create pull request
2. 💾 Commit more changes
3. 📋 Plan expansion
[If on_main && !has_changes:]
**🎯 See references/ux-enhancements.md Section 7 for Context-Aware Expansion Suggestions**
1. 📋 Plan expansion:
[Smart suggestions from code analysis]
2. ✏️ Start new feature
3. 🎯 Other
What would you like to do? [1/2/3 or describe]:
For EXPANSION PRD: Similar format with expansion-specific messaging.
When user says "write tests for [file/feature]":
No PRD updates, no context management - just tests.
If blocked:
This skill DOES:
This skill DOES NOT:
Workflow:
Substories (⏳ → 🔄 → ✅) → Phase complete →
Auto-test → Auto-review → Auto-fix → Approval →
Continue or stop
.claude/
├── prds/
│ ├── YYYY-MM-DD-feature-core.md
│ ├── context/
│ │ └── YYYY-MM-DD-feature-core.json
│ └── archive/
├── user-preferences.json (GITIGNORED)
└── checkpoints/ (GITIGNORED)
.gitignore additions:
.claude/user-preferences.json
.claude/checkpoints/
At each workflow step, refer to references/ux-enhancements.md for full implementation:
| Workflow Step | Enhancement | Section |
|---|---|---|
| Phase 0 | Learning Mode | Section 1 |
| Phase 0 | Adaptive Difficulty | Section 8 |
| Step 1 | Smart PRD Discovery | Built-in |
| Step 2a | PRD Health Check | Built-in |
| Step 3 | Progress Visualization | Built-in |
| Step 4.0 | Learning Mode Explanation | Section 1 |
| Step 4.1 | Dependency Warnings | Section 2 |
| Step 4.9 | Rollback Protection | Section 3 |
| Step 5a | Smart Test Suggestions | Section 4 |
| Step 5b | Code Review Insights | Section 5 |
| Step 6.5 | Parallel Work Detection | Section 6 |
| Step 7 | Context-Aware Expansions | Section 7 |
What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
Other plugins' skills for the same job
/navidemad-prd-skills-prd-plugin:code-prdfrom prd-skills
Claude Code refuses to install this plugin
Claude Code refuses to add this marketplace: The name 'claude-code-plugins' is reserved for official Anthropic marketplaces and can only be used with GitHub sources from the 'anthropics' organization.
Claude Code refuses to add this marketplace: The name 'claude-code-plugins' is reserved for official Anthropic marketplaces and can only be used with GitHub sources from the 'anthropics' organization.
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.