2.7 KiB
2.7 KiB
Create SPEC PRP (Advanced)
Generate a comprehensive specification-driven PRP with clear transformation goals.
Specification: $ARGUMENTS
Analysis Process
-
Current State Assessment
- Map existing implementation
- Identify pain points
- Document technical debt
- Note integration points
-
Desired State Research
- Best practices for target state
- Implementation examples
- Migration strategies
- Risk assessment
- Dependency mapping
-
User Clarification
- Confirm transformation goals
- Priority of objectives
- Acceptable trade-offs
PRP Generation
Using /PRPs/templates/prp_spec.md:
State Documentation
current_state:
files: [list affected files]
behavior: [how it works now]
issues: [specific problems]
desired_state:
files: [expected structure]
behavior: [target functionality]
benefits: [improvements gained]
Hierarchical Objectives
- High-Level: Overall transformation goal
- Mid-Level: Major milestones
- Low-Level: Specific tasks with validation
Task Specification with information dense keywords
Information dense keywords:
- MIRROR: Mirror the state of existing code to be mirrored to another use case
- COPY: Copy the state of existing code to be copied to another use case
- ADD: Add new code to the codebase
- MODIFY: Modify existing code
- DELETE: Delete existing code
- RENAME: Rename existing code
- MOVE: Move existing code
- REPLACE: Replace existing code
- CREATE: Create new code
Example:
task_name:
action: MODIFY/CREATE
file: path/to/file
changes: |
- Specific modifications
- Implementation details
- With clear markers
validation:
- command: "test command"
- expect: "success criteria"
Implementation Strategy
- Identify dependencies
- Order tasks by priority and implementation order and dependencies logic
- Include rollback plans
- Progressive enhancement
User Interaction Points
-
Objective Validation
- Review hierarchical breakdown
- Confirm priorities
- Identify missing pieces
-
Risk Review
- Document identified risks
- Find mitigations
- Set go/no-go criteria
Context Requirements
- Current implementation details
- Target architecture examples
- Migration best practices
- Testing strategies
Output
Save as: SPEC_PRP/PRPs/{spec-name}.md
Quality Checklist
- Current state fully documented
- Desired state clearly defined
- All objectives measurable
- Tasks ordered by dependency
- Each task has validation that AI can run
- Risks identified with mitigations
- Rollback strategy included
- Integration points noted
Remember: Focus on the transformation journey, not just the destination.