feat(sw-plan): rewrite for per-unit specs with individual review#41
Merged
feat(sw-plan): rewrite for per-unit specs with individual review#41
Conversation
Inputs now reference design-level artifacts via {currentWork.id}.
Outputs section documents both single-unit flat layout (unchanged)
and multi-unit layout with per-unit spec/plan/context in units/.
Co-Authored-By: Claude <noreply@anthropic.com>
Adds 1-unit fallback to flat layout, requires user approval before creating unit directories, populates workUnits at status pending. Co-Authored-By: Claude <noreply@anthropic.com>
Adds the sequential per-unit loop: create unit dir, write curated context/plan/spec, present each for individual user approval via AskUserQuestion. Updates workUnits entry to planned after approval. Co-Authored-By: Claude <noreply@anthropic.com>
After all units approved: sets unitId, workDir, first unit to building, transitions planning→building, resets gates. Single-unit unchanged. Co-Authored-By: Claude <noreply@anthropic.com>
Compaction recovery checks workUnits statuses: skip planned, resume from first pending. Decomposition revision requires reset + re-run. Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
skills/sw-plan/SKILL.mdso each work unit gets its own directory with independentspec.md,plan.md, andcontext.mdAskUserQuestionbefore moving to the next unitAcceptance Criteria
units/{unit-id}/directoryworkUnitspopulated atpendingbefore loopplannedafter approvaldesigning→planningat startplanning→buildingwith unitId/workDir activation/sw-buildafter activationGate Results
Evidence
🤖 Generated with Claude Code