plan-with-specs
Scannednpx machina-cli add skill datamaker-kr/synapse-claude-marketplace/plan-with-specs --openclawPlan with Specs
Skill Info
Part of the spec-manager agent. This skill generates detailed, actionable implementation plans from finalized specifications.
Input
The user provides a task slug (or task title) as arguments: $ARGUMENTS
If no arguments are provided:
- List all
*/specs.mdfiles inspecs/directory - Ask the user which one to generate a plan for
If a task title (not slug) is provided, convert it to a slug to find the matching files.
Process
Step 1: Read All Spec Documents
- Read
specs/{slug}/requirements.md- for original context and goals - Read
specs/{slug}/specs.md- for technical specifications - If either file doesn't exist or specs status is still "Pending", inform the user and suggest running the appropriate prior step
Step 2: Validate Specs Readiness
Check that specs are sufficiently detailed for planning:
- Status is not "Pending"
- Technical specifications are defined
- Architecture section is filled in
- No critical open questions remain
If specs have unresolved open questions, warn the user and ask whether to proceed or resolve them first.
Step 3: Analyze Codebase
Before generating the plan:
- Examine the existing codebase structure (project layout, frameworks, patterns)
- Identify existing files that need modification
- Find reusable components, utilities, or patterns
- Check test structure and conventions
- Review configuration and build setup
Step 4: Generate Implementation Plan
Update specs/{slug}/plans.md with the implementation plan:
# Plans: {Original Task Title}
> Created: {original date}
> Updated: {YYYY-MM-DD}
> Status: Ready
> Requirements: [requirements.md](./requirements.md)
> Specs: [specs.md](./specs.md)
## Overview
{Brief summary of what will be implemented and the approach}
## Prerequisites
- {Any setup, dependencies, or preparatory work needed before starting}
## Implementation Steps
### Step 1: {Step Name}
- **Goal**: {What this step achieves}
- **Specs Reference**: TS-{X}
- **Files**:
- `{path/to/file}` - {Create | Modify} - {What changes}
- **Details**:
{Detailed implementation instructions}
- **Validation**:
- {How to verify this step is complete}
- **Complexity**: Simple | Medium | Complex
### Step 2: {Step Name}
{Same structure}
{Continue for all steps...}
## Task Breakdown
Ordered checklist for tracking progress:
- [ ] **Step 1**: {Brief description}
- [ ] **Step 2**: {Brief description}
- [ ] ...
- [ ] **Final**: Verify all acceptance criteria
## File Change Summary
| File | Action | Step | Description |
|------|--------|------|-------------|
| `path/to/file` | Create/Modify/Delete | Step N | Brief description |
## Dependencies Between Steps
{Describe which steps depend on others and which can be parallelized}
Step 1 ─── Step 2 ─── Step 4 │ Step 3 ─── Step 5
## Testing Strategy
### Unit Tests
- {What to test and where}
### Integration Tests
- {What to test and where}
### Manual Verification
- {Steps to manually verify the feature works}
## Rollback Plan
{How to safely undo changes at each major checkpoint}
1. **After Step N**: {How to rollback}
2. **After Step M**: {How to rollback}
## Risk Assessment
| Risk | Likelihood | Impact | Mitigation |
|------|------------|--------|------------|
| {Risk} | Low/Medium/High | Low/Medium/High | {How to mitigate} |
## Progress Tracking
| Step | Status | Started | Completed | Notes |
|------|--------|---------|-----------|-------|
| Step 1 | Pending | | | |
| Step 2 | Pending | | | |
## Acceptance Criteria Checklist
From requirements:
- [ ] {Criterion from FR-1}
- [ ] {Criterion from FR-2}
- [ ] ...
Step 5: Report and Request Review
After generating the plan, display a summary:
Implementation plan generated for: "{Original Task Title}"
Updated: specs/{slug}/plans.md
Summary:
- {N} implementation steps
- {X} files to create, {Y} files to modify
- Estimated complexity: {overall assessment}
- {Z} risks identified
Please review the plan in specs/{slug}/plans.md
When ready to start implementation:
1. Follow the steps in order
2. Check off tasks as you complete them
3. Update the Progress Tracking table
During Implementation
When the user is implementing and discusses progress or issues:
- Update Progress: Mark steps as In Progress / Completed in the plans.md
- Update Specs: If implementation reveals spec changes needed, update specs.md
- Track Deviations: Log any deviations from the plan in the Notes column
- Adapt Plan: If the plan needs adjustment based on discoveries during implementation, update the remaining steps
Handling Changes
If user requests requirement changes:
- Update
specs/{slug}/requirements.mdwith new/changed requirements - Re-read and update
specs/{slug}/specs.mdto reflect changes - Regenerate affected sections of
specs/{slug}/plans.md - Clearly mark which steps changed and why
- Preserve progress on already-completed steps
If user requests spec changes:
- Update
specs/{slug}/specs.mdwith the changes - Regenerate affected sections of
specs/{slug}/plans.md - Clearly mark which steps changed and why
- Preserve progress on already-completed steps
If implementation reveals issues:
- Log the issue in the Progress Tracking table
- Update affected specs in
specs/{slug}/specs.mdif needed - Adjust remaining plan steps
- Add new risk entries if applicable
Important
- Always read both requirements AND specs before generating plans
- Examine the actual codebase - plans must be grounded in the real project structure
- Steps should be ordered by dependency, not arbitrary sequence
- Each step must be independently verifiable
- Include rollback strategies for risky steps
- Keep the plan actionable - avoid vague instructions like "implement the feature"
- Reference specific file paths based on the actual project layout
- Plans should be detailed enough that another developer could follow them
Source
git clone https://github.com/datamaker-kr/synapse-claude-marketplace/blob/main/plugins/sdd-helper/skills/plan-with-specs/SKILL.mdView on GitHub Overview
This skill, part of the spec-manager agent, generates a detailed, actionable implementation plan from finalized specifications. It reads specs.md and requirements.md, validates readiness, analyzes the codebase, and updates specs/{slug}/plans.md with step-by-step actions.
How This Skill Works
The skill reads specs and requirements for the given task, ensures they are ready for planning (not Pending, complete architecture, no open questions). It then analyzes the existing codebase to identify files to modify, reusable components, tests, and build/config considerations, and finally emits a structured implementation plan written into specs/{slug}/plans.md using a comprehensive template.
When to Use It
- After you have reviewed the specs and want a concrete, actionable plan
- When specs.md and requirements.md exist and are ready for implementation planning
- If you need to align the plan with the current codebase structure, tests, and build setup
- When there are open questions, and you want the plan to note decisions or indicate pending work
- To publish or refresh the ready-to-run plan in specs/{slug}/plans.md
Quick Start
- Step 1: Provide the task slug or title for planning
- Step 2: The tool reads specs.md and requirements.md, validates readiness, and analyzes the codebase
- Step 3: Review the generated plan in specs/{slug}/plans.md and start implementing
Best Practices
- Verify that the task status is not Pending before planning
- Ensure the architecture section is filled and any open questions are resolved or flagged
- Link each plan step to specific files and expected changes
- Define clear validation criteria and acceptance checks per step
- Keep the plan synchronized with spec updates by updating specs/{slug}/plans.md
Example Use Cases
- Plan a new feature in a product repo by converting API/UX specs into executable steps
- Generate an incremental rollout plan from a backend specs.md
- Create a frontend module implementation plan from UI/UX specs
- Outline database schema and migration steps from data model specs
- Update the plans.md file after final specs review to reflect approved changes