diff --git a/commands/create-capability.md b/commands/create-capability.md index e4d14c0..2e9f80e 100644 --- a/commands/create-capability.md +++ b/commands/create-capability.md @@ -158,23 +158,31 @@ Create new capabilities for the architecture repository with validation and inte ``` ``` -11. **Ask for approval**: +11. **Ask for approval** (gate before file creation): - "Create these files? (y/n)" - If warnings exist: "There are warnings. Proceed anyway? (y/n)" + - **If user declines**: Stop here. Offer to adjust the generated content or cancel. + - **If user approves**: Proceed to Phase 6. ### Phase 6: Create Files +**Only execute this phase after user approval in step 11.** + 12. **Create directories** if needed: ```bash mkdir -p skills/ mkdir -p agents/ ``` + If directory creation fails, report the error and stop. + 13. **Write files** to correct locations: - `skills//SKILL.md` - `commands/.md` - `agents//AGENT.md` + If any file write fails, report which files were created and which failed. + 14. **Report success**: ``` ## Capability Created