// Generate and optimize PRDs, Implementation Plans, and Progress Tracking documents optimized as AI artifacts for development agents. Use when creating new feature plans, breaking down long planning docs (>800 lines), or setting up progress tracking. Supports: 1) Create PRD from feature request, 2) Create Implementation Plan from PRD with phase breakdown and subagent assignments, 3) Optimize existing plans by breaking into phase-specific files, 4) Create progress tracking with task assignments. Example: "Create a PRD for user authentication feature" or "Break down the sidebar-polish implementation plan into phase files" or "Create progress tracking for data-layer-fixes PRD".
| name | planning |
| description | Generate and optimize PRDs, Implementation Plans, and Progress Tracking documents optimized as AI artifacts for development agents. Use when creating new feature plans, breaking down long planning docs (>800 lines), or setting up progress tracking. Supports: 1) Create PRD from feature request, 2) Create Implementation Plan from PRD with phase breakdown and subagent assignments, 3) Optimize existing plans by breaking into phase-specific files, 4) Create progress tracking with task assignments. Example: "Create a PRD for user authentication feature" or "Break down the sidebar-polish implementation plan into phase files" or "Create progress tracking for data-layer-fixes PRD". |
The Planning Skill generates and optimizes Product Requirements Documents (PRDs) and Implementation Plans as AI artifacts - file-based context caches optimized for AI agent consumption rather than human reading.
# User provides feature description
User: "Create a PRD for advanced filtering on the prompts page"
# Skill generates PRD at:
# docs/project_plans/PRDs/[category]/advanced-filtering-v1.md
# Provide PRD path
User: "Create implementation plan for docs/project_plans/PRDs/harden-polish/advanced-filtering-v1.md"
# Skill generates:
# - Main plan: docs/project_plans/implementation_plans/harden-polish/advanced-filtering-v1.md
# - Phase files (if needed): docs/project_plans/implementation_plans/harden-polish/advanced-filtering-v1/phase-[N]-[name].md
# Provide existing plan path
User: "Optimize docs/project_plans/implementation_plans/harden-polish/sidebar-polish-v1.md"
# Skill:
# 1. Analyzes plan length (e.g., 1200 lines)
# 2. Breaks into phase-specific files (~400 lines each)
# 3. Updates parent plan with links to phase files
# Provide PRD or Implementation Plan
User: "Create progress tracking for data-layer-fixes PRD"
# Skill generates:
# .claude/progress/[feature-name]/all-phases-progress.md
# With task breakdown, subagent assignments, completion tracking
Input: Feature description or request from user
Process:
Analyze Request
Structure PRD
./templates/prd-template.md./references/mp-architecture.md)Add Implementation Context
Determine Location
docs/project_plans/PRDs/[category]/harden-polish, features, enhancements, refactors[feature-name]-v1.md (kebab-case)Generate File
Output:
docs/project_plans/PRDs/[category]/[feature-name]-v1.mdExample:
Input: "Add real-time collaboration features to prompt editing"
Output Location: docs/project_plans/PRDs/features/realtime-collaboration-v1.md
Sections:
1. Executive Summary - Real-time collaborative editing
2. Context & Background - Current single-user editing limitations
3. Problem Statement - Users can't collaborate on prompts
4. Goals & Success Metrics - Multiple concurrent editors, conflict resolution
5. Requirements - WebSocket connections, operational transforms, presence indicators
6. Implementation Phases - Phase 1: Backend infrastructure, Phase 2: Frontend integration
... (full PRD structure)
Input: Path to existing PRD or newly created PRD
Process:
Analyze PRD
Plan Phase Structure
Generate Task Breakdown
./templates/implementation-plan-template.mdAssign Subagents
./references/subagent-assignments.mddata-layer-expertpython-backend-engineer, backend-architectui-engineer-enhanced, frontend-developerui-designer, ui-engineerdocumentation-writer, documentation-complexOptimize for Token Efficiency
[feature-name]-v1/phase-[N]-[name].md./references/optimization-patterns.mdGenerate Files
docs/project_plans/implementation_plans/[category]/[feature-name]-v1.mddocs/project_plans/implementation_plans/[category]/[feature-name]-v1/phase-[N]-[name].mdOutput:
Example:
Input PRD: docs/project_plans/PRDs/features/realtime-collaboration-v1.md
Output:
Main Plan: docs/project_plans/implementation_plans/features/realtime-collaboration-v1.md
Phase Breakdown:
- Phase 1: Database Layer (websocket_sessions, edit_locks tables) - data-layer-expert
- Phase 2: Repository Layer (session management, lock management) - python-backend-engineer
- Phase 3: Service Layer (operational transforms, conflict resolution) - backend-architect
- Phase 4: API Layer (WebSocket endpoints, presence API) - python-backend-engineer
- Phase 5: UI Layer (collaborative editor, presence indicators) - ui-engineer-enhanced, frontend-developer
- Phase 6: Testing (unit, integration, E2E conflict scenarios) - testing agents
- Phase 7: Documentation (API docs, user guides) - documentation-writer
- Phase 8: Deployment (feature flags, monitoring) - DevOps
Phase Files (if plan >800 lines):
- realtime-collaboration-v1/phase-1-database.md
- realtime-collaboration-v1/phase-2-repository.md
- realtime-collaboration-v1/phase-3-5-backend.md (grouped related phases)
- realtime-collaboration-v1/phase-6-8-validation.md (grouped related phases)
Input: Path to existing PRD or Implementation Plan that's >800 lines
Process:
Analyze Plan
Determine Breakout Strategy
Create Breakout Files
[plan-name]/phase-[N]-[name].md[plan-name]/[domain]-tasks.mdUpdate Parent Plan
## Phase 2: Repository Layer
See [Phase 2 Implementation Details](./[plan-name]/phase-2-repository.md)
Validate Optimization
Output:
Example:
Input: docs/project_plans/implementation_plans/harden-polish/sidebar-polish-v1.md (1200 lines)
Analysis:
- 8 phases, ~150 lines each
- Can group related phases: 1-3 (backend), 4-5 (frontend), 6-8 (validation)
Output:
Parent: sidebar-polish-v1.md (200 lines - summary + links)
Phase Files:
- sidebar-polish-v1/phase-1-3-backend.md (450 lines)
- sidebar-polish-v1/phase-4-5-frontend.md (400 lines)
- sidebar-polish-v1/phase-6-8-validation.md (350 lines)
Token Efficiency:
- Before: Load 1200 lines for any query
- After: Load 200-line summary, then specific phase (450 max) = 67% reduction
Input: PRD or Implementation Plan
Process:
Extract Implementation Tasks
Structure Progress File
./templates/progress-tracking-template.md.claude/progress/[feature-name]/all-phases-progress.mdAdd Subagent Assignments
./references/subagent-assignments.mdSet Up Tracking Structure
Link from PRD
See progress tracking: .claude/progress/[feature-name]/all-phases-progress.mdOutput:
.claude/progress/[feature-name]/all-phases-progress.mdExample:
Input PRD: docs/project_plans/PRDs/harden-polish/data-layer-fixes-filtering-v1.md
Output: .claude/progress/data-layer-fixes-filtering-v1/all-phases-progress.md
Structure:
# All-Phases Progress: Data Layer Fixes & Filtering
**Status**: NOT STARTED
**Last Updated**: 2025-11-11
**Completion**: 0% (0 of 24 story points)
## Phase Overview
| Phase | Title | Effort | Status | Completion |
|-------|-------|--------|--------|-----------|
| 1 | Repository Layer - Transaction Mgmt | 8 pts | NOT STARTED | 0% |
| 2 | Repository Layer - Filter Queries | 8 pts | NOT STARTED | 0% |
| 3 | Service Layer - Validation & DTOs | 5 pts | NOT STARTED | 0% |
| 4 | Frontend Layer - React Query | 5 pts | NOT STARTED | 0% |
## Phase 1: Repository Layer - Transaction Management
**Assigned Subagent(s)**: data-layer-expert, python-backend-engineer
### Completion Checklist
- [ ] TX-001: Fix BaseRepository Rollback (3 pts)
Assigned Subagent(s): data-layer-expert
- [ ] TX-002: Update PromptRepository Error Handling (3 pts)
Assigned Subagent(s): python-backend-engineer
- [ ] TX-003: Add Transaction Telemetry (1 pt)
Assigned Subagent(s): backend-architect
- [ ] TX-004: Integration Tests (1 pt)
Assigned Subagent(s): testing-specialist
### Success Criteria
- [ ] All repository exceptions trigger automatic rollback
- [ ] Transaction state correctly reset after errors
...
Location: ./templates/prd-template.md
Based On: /docs/docs-v2/templates/PRD-TEMPLATE.md
Purpose: Standard PRD structure for MeatyPrompts features
Key Sections:
When to Use: Creating any new PRD
Location: ./templates/implementation-plan-template.md
Based On: /claude-export/templates/pm/implementation-plan-template.md
Purpose: Detailed phased implementation with task breakdown
Key Sections:
When to Use: Creating implementation plan from PRD
Location: ./templates/progress-tracking-template.md
Purpose: Track implementation progress across all phases
Key Sections:
When to Use: Setting up progress tracking for multi-phase work
Location: ./templates/phase-breakdown-template.md
Purpose: Template for individual phase files when breaking up long plans
Key Sections:
When to Use: Breaking long implementation plans into phase-specific files
All scripts are in ./scripts/ directory and use Node.js (NOT Python).
Purpose: Generate PRD from feature request
Usage:
./scripts/generate-prd.sh "Feature description" "category"
Process:
docs/project_plans/PRDs/[category]/[feature-name]-v1.mdOutput: PRD file path
Purpose: Generate implementation plan from PRD
Usage:
./scripts/generate-impl-plan.sh "path/to/prd.md"
Process:
Output: Implementation plan file path(s)
Purpose: Break long plan into phase-specific files
Usage:
./scripts/optimize-plan.sh "path/to/plan.md"
Process:
Output: List of created phase files
Purpose: Add subagent assignments to tasks in plan
Usage:
./scripts/assign-subagents.sh "path/to/plan.md"
Process:
./references/subagent-assignments.mdOutput: Updated plan with subagent assignments
Purpose: Create progress tracking document from plan
Usage:
./scripts/create-progress-tracking.sh "path/to/plan.md"
Process:
.claude/progress/[feature-name]/all-phases-progress.mdOutput: Progress tracking file path
Location: ./references/mp-architecture.md
Purpose: Summary of MeatyPrompts layered architecture
Content:
{ items, pageInfo }Used By: PRD generation, implementation planning
Location: ./references/subagent-assignments.md
Purpose: Mapping of task types to appropriate subagents
Content:
| Task Type | Subagents | Notes |
|---|---|---|
| Database Schema | data-layer-expert | Tables, indexes, RLS policies |
| Database Migrations | data-layer-expert, python-backend-engineer | Alembic migrations |
| Repository Layer | python-backend-engineer, data-layer-expert | DB I/O, transactions |
| Service Layer | python-backend-engineer, backend-architect | Business logic, DTOs |
| API Endpoints | python-backend-engineer, backend-architect | FastAPI routers |
| Frontend Components | ui-engineer-enhanced, frontend-developer | React components |
| UI Design | ui-designer, ux-researcher | Design system, wireframes |
| Testing | testing specialists | Unit, integration, E2E |
| Documentation | documentation-writer, documentation-complex | Based on complexity |
| Performance | react-performance-optimizer | React optimization |
| Accessibility | web-accessibility-checker | WCAG compliance |
Used By: Implementation planning, progress tracking creation
Location: ./references/file-structure.md
Purpose: Directory structure conventions for plans and progress
Content:
docs/project_plans/
├── PRDs/
│ ├── harden-polish/ # Bug fixes, polish
│ ├── features/ # New features
│ ├── enhancements/ # Feature enhancements
│ └── refactors/ # Architecture refactors
│
└── implementation_plans/
├── harden-polish/
│ ├── feature-name-v1.md # Main plan
│ └── feature-name-v1/ # Phase breakouts
│ ├── phase-1-database.md
│ ├── phase-2-3-backend.md
│ └── phase-4-5-frontend.md
├── features/
├── enhancements/
└── refactors/
.claude/
└── progress/
└── feature-name/
└── all-phases-progress.md # ONE file per feature
Naming Conventions:
[feature-name]-v1.md (kebab-case)[feature-name]-v1.mdphase-[N]-[name].md or phase-[N]-[M]-[name].md (grouped)all-phases-progress.md (one per feature)Used By: File creation, optimization
Location: ./references/optimization-patterns.md
Purpose: Patterns for breaking up long files into token-efficient chunks
Content:
Pattern 1: Break by Phase (Most Common)
Pattern 2: Break by Domain
Pattern 3: Break by Task Type
Pattern 4: Keep Together
Token Efficiency Gains:
Used By: Plan optimization workflow
Guideline: No file should exceed ~800 lines
Rationale:
Strategies:
PRDs: [feature-name]-v1.md
advanced-filtering-v1.md)Implementation Plans: [feature-name]-v1.md
Phase Files: phase-[N]-[name].md
phase-1-3-backend.mdProgress Files: all-phases-progress.md
.claude/progress/[feature-name]/PRDs:
docs/project_plans/PRDs/[category]/harden-polish, features, enhancements, refactorsImplementation Plans:
docs/project_plans/implementation_plans/[category]/[plan-name]/Progress Tracking:
.claude/progress/[feature-name]/all-phases-progress.mdMatch Task Type to Specialist:
Assignment Format:
- [ ] TASK-001: Task Name (3 pts)
Assigned Subagent(s): python-backend-engineer, backend-architect
Multiple Agents:
Progressive Disclosure:
Structured References:
Chunk by Logical Units:
PRDs:
---
title: "Feature Name - PRD"
description: "Brief summary (1-2 sentences)"
audience: [ai-agents, developers]
tags: [relevant, tags, for, search]
created: 2025-11-11
updated: 2025-11-11
category: "product-planning"
status: draft|published
related:
- /docs/architecture/ADRs/relevant-adr.md
- /docs/guides/relevant-guide.md
---
Implementation Plans:
---
title: "Feature Name - Implementation Plan"
description: "Brief summary of implementation approach"
audience: [ai-agents, developers]
tags: [implementation, planning, phases]
created: 2025-11-11
updated: 2025-11-11
category: "product-planning"
status: draft|in-progress|published
related:
- /docs/project_plans/PRDs/category/feature-name-v1.md
---
Progress Tracking:
No frontmatter required for .claude/progress/ files (per CLAUDE.md)
Input:
User: "Create a PRD for adding advanced filtering to the prompts page. Users need to filter by multiple criteria: model, provider, date range, tags, and favorites."
Process:
Output:
File: docs/project_plans/PRDs/features/advanced-filtering-v1.md
# Advanced Filtering - PRD
**Feature Name**: Advanced Filtering
**Date**: 2025-11-11
**Author**: Claude (Sonnet 4.5)
**Related**: Filtering guides, search ADRs
## 1. Executive Summary
Enable users to filter prompts by multiple criteria simultaneously (model, provider, date range, tags, favorites) with the ability to save and reuse filter sets.
## 2. Context & Background
Current filtering supports single criteria only. Users frequently need to filter by combinations (e.g., "OpenAI models from last week tagged 'production'").
... (full PRD structure)
Input:
User: "Create implementation plan for docs/project_plans/PRDs/features/advanced-filtering-v1.md"
Process:
Output:
Main Plan: docs/project_plans/implementation_plans/features/advanced-filtering-v1.md (200 lines)
# Implementation Plan: Advanced Filtering
## Phase Overview
| Phase | Title | Effort | Files |
|-------|-------|--------|-------|
| 1-3 | Backend Implementation | 18 pts | [Details](./advanced-filtering-v1/phase-1-3-backend.md) |
| 4-5 | Frontend Implementation | 12 pts | [Details](./advanced-filtering-v1/phase-4-5-frontend.md) |
| 6-7 | Validation & Deployment | 8 pts | [Details](./advanced-filtering-v1/phase-6-7-validation.md) |
... (executive summary, strategy)
---
Phase Files Created:
- advanced-filtering-v1/phase-1-3-backend.md (500 lines)
- Phase 1: Database (filter_sets table, indexes)
- Phase 2: Repository (query builder, filter sets repo)
- Phase 3: Service (filter validation, DTO mapping)
- advanced-filtering-v1/phase-4-5-frontend.md (400 lines)
- Phase 4: API (filter endpoints, saved sets API)
- Phase 5: UI (filter builder component, saved sets UI)
- advanced-filtering-v1/phase-6-7-validation.md (300 lines)
- Phase 6: Testing (unit, integration, E2E)
- Phase 7: Deployment (feature flags, monitoring)
Input:
User: "Optimize docs/project_plans/implementation_plans/harden-polish/sidebar-polish-v1.md - it's 1200 lines"
Process:
Output:
Updated: docs/project_plans/implementation_plans/harden-polish/sidebar-polish-v1.md (200 lines)
Created Phase Files:
- sidebar-polish-v1/phase-1-3-backend.md (450 lines)
Phase 1: Database - Sidebar state, user preferences
Phase 2: Repository - State management, RLS
Phase 3: Service - Preference sync, DTOs
- sidebar-polish-v1/phase-4-5-frontend.md (400 lines)
Phase 4: API - Endpoints for sidebar state
Phase 5: UI - Sidebar component, animations
- sidebar-polish-v1/phase-6-8-validation.md (350 lines)
Phase 6: Testing - Unit, integration, visual
Phase 7: Documentation - Component docs, API docs
Phase 8: Deployment - Feature flags, rollout
Token Efficiency: 67% reduction for targeted queries
Input:
User: "Create progress tracking for data-layer-fixes-filtering PRD"
Process:
Output:
Created: .claude/progress/data-layer-fixes-filtering-v1/all-phases-progress.md
Updated PRD Section:
## Implementation
See progress tracking: `.claude/progress/data-layer-fixes-filtering-v1/all-phases-progress.md`
Progress File Structure:
# All-Phases Progress: Data Layer Fixes & Filtering
**Status**: NOT STARTED
**Last Updated**: 2025-11-11
**Completion**: 0% (0 of 24 story points)
## Phase Overview
| Phase | Title | Effort | Status | Completion |
| 1 | Repository - Transaction Mgmt | 8 pts | NOT STARTED | 0% |
| 2 | Repository - Filter Queries | 8 pts | NOT STARTED | 0% |
...
## Phase 1: Repository Layer - Transaction Management
**Assigned Subagent(s)**: data-layer-expert, python-backend-engineer
### Completion Checklist
- [ ] TX-001: Fix BaseRepository Rollback (3 pts)
Assigned Subagent(s): data-layer-expert
- [ ] TX-002: Update PromptRepository Error Handling (3 pts)
Assigned Subagent(s): python-backend-engineer
...
### Success Criteria
- [ ] All repository exceptions trigger automatic rollback
- [ ] Transaction state correctly reset after errors
...
All plans follow MP layered architecture:
{ items, pageInfo }Plans integrate with 50+ MeatyPrompts subagents:
Architecture: lead-architect, backend-architect, data-layer-expert Development: python-backend-engineer, frontend-developer, ui-engineer-enhanced UI/UX: ui-designer, ux-researcher Review: code-reviewer, task-completion-validator Documentation: documentation-writer, documentation-complex Testing: testing specialists Performance: react-performance-optimizer, web-accessibility-checker
Follows CLAUDE.md documentation policy:
/docs/, not for .claude/PRDs: /docs/project_plans/PRDs/[category]/[feature-name]-v1.md
Plans: /docs/project_plans/implementation_plans/[category]/[feature-name]-v1.md
Progress: .claude/progress/[feature-name]/all-phases-progress.md
Phase Files: [plan-name]/phase-[N]-[name].md
Edit templates in ./templates/ to match project needs:
PRD Template Customization:
Implementation Plan Template Customization:
Progress Tracking Template Customization:
For complex initiatives spanning multiple PRDs:
For research-heavy features:
Regularly optimize plans as work progresses:
Problem: PRD missing key sections
Solution:
./templates/prd-template.md/docs/project_plans/PRDs/Problem: Generated plan exceeds 800 lines
Solution:
Problem: Not sure which subagent to assign to task
Solution:
./references/subagent-assignments.mdProblem: Not sure where to place generated files
Solution:
./references/file-structure.md/docs/project_plans/PRDs/[category]//docs/project_plans/implementation_plans/[category]/.claude/progress/[feature-name]/[plan-name]/Problem: Progress file created but not linked from PRD
Solution:
See progress tracking: .claude/progress/[feature-name]/all-phases-progress.md