[Issue #76] Add validation and interactive guidance to /create-capability #82

Closed
HugoNijhuis wants to merge 2 commits from issue-76-add-validation-and-interactive-guidance into main
Showing only changes of commit 502601bf21 - Show all commits

View File

@@ -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)" - "Create these files? (y/n)"
- If warnings exist: "There are warnings. Proceed anyway? (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 ### Phase 6: Create Files
**Only execute this phase after user approval in step 11.**
12. **Create directories** if needed: 12. **Create directories** if needed:
```bash ```bash
mkdir -p skills/<name> mkdir -p skills/<name>
mkdir -p agents/<name> mkdir -p agents/<name>
``` ```
If directory creation fails, report the error and stop.
13. **Write files** to correct locations: 13. **Write files** to correct locations:
- `skills/<name>/SKILL.md` - `skills/<name>/SKILL.md`
- `commands/<name>.md` - `commands/<name>.md`
- `agents/<name>/AGENT.md` - `agents/<name>/AGENT.md`
If any file write fails, report which files were created and which failed.
14. **Report success**: 14. **Report success**:
``` ```
## Capability Created ## Capability Created