Create plan and tasklist from planning discussion
Creates structured planning documents from a discussion for implementing a new feature.
/plugin marketplace add tordks/claude-workflow/plugin install cwf@claude-workflowFormalize the planning discussion from plan mode into structured documentation. This command is run AFTER iterating with Claude in plan mode. The user has already discussed and refined the approach. Your job is to capture and formalize what was discussed.
Assume the engineer using the plan has zero context for the codebase. Document everything they need: which files to touch, code/testing/docs to check, how to test. Assume they are skilled but know little about the toolset or problem domain.
Input: $ARGUMENTS
Expected format: /write-plan {feature-name} [planning context]
Parsing:
user-auth focus on OAuth2 and session managementFeature name requirements:
query-command, user-auth, auth, exportIf no feature name provided:
Feature name usage:
{feature-name} is a placeholder that gets replaced with the extracted feature name throughout this command.
Example file paths:
plans/{feature-name}-plan.mdplans/{feature-name}-tasklist.mdIf skill claude-workflow is not loaded, load it
Read the following if not already loaded:
references/plan-spec.mdreferences/tasklist-spec.mdContext Extraction:
Analyze the conversation to extract:
Review as much of the conversation as necessary to capture all planning context. Focus particularly on recent messages and any structured outputs (e.g., /brainstorm results, design summaries, input arguments to this command).
Complexity Assessment:
Assess feature complexity (Simple/Medium/Complex) using these criteria:
Simple:
Medium:
Complex:
Create plans/{feature-name}-plan.md:
Create plans/{feature-name}-tasklist.md:
Validate plan:
Validate tasklist:
Validate coherence between documents:
Confirm both files exist and are valid, then present summary:
Planning documents created successfully! ✅
Created:
- plans/{feature-name}-plan.md
- plans/{feature-name}-tasklist.md
Implementation Structure:
- {N} phases defined
- {M} total tasks
Next Steps:
Run `/implement-plan {feature-name}` to begin phase-by-phase implementation.
Done. Wait for user to run /implement-plan {feature-name}.