ai-engineering-init 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/code-reviewer.md +139 -0
- package/.claude/agents/project-manager.md +159 -0
- package/.claude/audio/completed.wav +0 -0
- package/.claude/commands/add-todo.md +255 -0
- package/.claude/commands/check.md +210 -0
- package/.claude/commands/crud.md +454 -0
- package/.claude/commands/dev.md +503 -0
- package/.claude/commands/init-docs.md +681 -0
- package/.claude/commands/next.md +251 -0
- package/.claude/commands/progress.md +242 -0
- package/.claude/commands/start.md +199 -0
- package/.claude/commands/sync.md +307 -0
- package/.claude/commands/update-status.md +428 -0
- package/.claude/docs/Mixin/344/275/277/347/224/250/346/214/207/345/215/227.md +299 -0
- package/.claude/docs/README.md +167 -0
- package/.claude/docs//345/211/215/347/253/257/345/274/200/345/217/221/346/214/207/345/215/227.md +599 -0
- package/.claude/docs//345/220/216/347/253/257/345/274/200/345/217/221/346/214/207/345/215/227.md +726 -0
- package/.claude/docs//345/267/245/344/275/234/346/265/201/345/274/200/345/217/221/346/214/207/345/215/227.md +714 -0
- package/.claude/docs//345/267/245/345/205/267/347/261/273/344/275/277/347/224/250/346/214/207/345/215/227.md +463 -0
- package/.claude/docs//346/225/260/346/215/256/345/272/223/350/256/276/350/256/241/350/247/204/350/214/203.md +390 -0
- package/.claude/docs//346/226/260/345/212/237/350/203/275/345/274/200/345/217/221/346/265/201/347/250/213/350/247/204/350/214/203.md +688 -0
- package/.claude/docs//346/226/260/351/241/271/347/233/256/345/274/200/345/217/221/346/265/201/347/250/213.md +365 -0
- package/.claude/docs//346/241/206/346/236/266/350/257/264/346/230/216.md +393 -0
- package/.claude/docs//350/267/257/347/224/261/351/205/215/347/275/256/346/214/207/345/215/227.md +246 -0
- package/.claude/framework-config.json +73 -0
- package/.claude/hooks/pre-tool-use.js +117 -0
- package/.claude/hooks/skill-forced-eval.js +167 -0
- package/.claude/hooks/stop.js +58 -0
- package/.claude/settings.json +41 -0
- package/.claude/skills/add-skill/SKILL.md +352 -0
- package/.claude/skills/api-development/SKILL.md +560 -0
- package/.claude/skills/architecture-design/SKILL.md +756 -0
- package/.claude/skills/backend-annotations/SKILL.md +674 -0
- package/.claude/skills/banana-image/CHANGELOG.md +37 -0
- package/.claude/skills/banana-image/README.md +146 -0
- package/.claude/skills/banana-image/SKILL.md +164 -0
- package/.claude/skills/banana-image/assets/logo.png +0 -0
- package/.claude/skills/banana-image/references/advanced-usage.md +189 -0
- package/.claude/skills/banana-image/scripts/apply_template.py +125 -0
- package/.claude/skills/banana-image/scripts/banana_image_exec.ts +412 -0
- package/.claude/skills/banana-image/scripts/batch_prep.py +82 -0
- package/.claude/skills/banana-image/scripts/package-lock.json +1437 -0
- package/.claude/skills/banana-image/scripts/package.json +18 -0
- package/.claude/skills/banana-image/scripts/requirements.txt +10 -0
- package/.claude/skills/banana-image/templates/poster.json +22 -0
- package/.claude/skills/banana-image/templates/product.json +17 -0
- package/.claude/skills/banana-image/templates/social.json +22 -0
- package/.claude/skills/banana-image/templates/thumbnail.json +17 -0
- package/.claude/skills/brainstorm/SKILL.md +648 -0
- package/.claude/skills/bug-detective/SKILL.md +1206 -0
- package/.claude/skills/code-patterns/SKILL.md +590 -0
- package/.claude/skills/collaborating-with-codex/SKILL.md +174 -0
- package/.claude/skills/collaborating-with-codex/scripts/codex_bridge.py +275 -0
- package/.claude/skills/collaborating-with-gemini/SKILL.md +194 -0
- package/.claude/skills/collaborating-with-gemini/scripts/gemini_bridge.py +275 -0
- package/.claude/skills/crud-development/SKILL.md +649 -0
- package/.claude/skills/data-permission/SKILL.md +599 -0
- package/.claude/skills/database-ops/SKILL.md +407 -0
- package/.claude/skills/error-handler/SKILL.md +371 -0
- package/.claude/skills/file-oss-management/SKILL.md +863 -0
- package/.claude/skills/git-workflow/SKILL.md +375 -0
- package/.claude/skills/json-serialization/SKILL.md +357 -0
- package/.claude/skills/leniu-api-development/SKILL.md +803 -0
- package/.claude/skills/leniu-architecture-design/SKILL.md +598 -0
- package/.claude/skills/leniu-backend-annotations/SKILL.md +664 -0
- package/.claude/skills/leniu-code-patterns/SKILL.md +365 -0
- package/.claude/skills/leniu-crud-development/SKILL.md +1110 -0
- package/.claude/skills/leniu-data-permission/SKILL.md +256 -0
- package/.claude/skills/leniu-database-ops/SKILL.md +426 -0
- package/.claude/skills/leniu-error-handler/SKILL.md +462 -0
- package/.claude/skills/leniu-java-amount-handling/SKILL.md +461 -0
- package/.claude/skills/leniu-java-code-style/SKILL.md +510 -0
- package/.claude/skills/leniu-java-concurrent/SKILL.md +400 -0
- package/.claude/skills/leniu-java-entity/SKILL.md +751 -0
- package/.claude/skills/leniu-java-export/SKILL.md +560 -0
- package/.claude/skills/leniu-java-logging/SKILL.md +832 -0
- package/.claude/skills/leniu-java-mq/SKILL.md +338 -0
- package/.claude/skills/leniu-java-mybatis/SKILL.md +640 -0
- package/.claude/skills/leniu-java-report-query-param/SKILL.md +291 -0
- package/.claude/skills/leniu-java-task/SKILL.md +367 -0
- package/.claude/skills/leniu-java-total-line/SKILL.md +195 -0
- package/.claude/skills/leniu-marketing-price-rule-customizer/SKILL.md +301 -0
- package/.claude/skills/leniu-marketing-recharge-rule-customizer/SKILL.md +285 -0
- package/.claude/skills/leniu-mealtime/SKILL.md +215 -0
- package/.claude/skills/leniu-redis-cache/SKILL.md +316 -0
- package/.claude/skills/leniu-security-guard/SKILL.md +520 -0
- package/.claude/skills/leniu-utils-toolkit/SKILL.md +380 -0
- package/.claude/skills/openspec-apply-change/SKILL.md +156 -0
- package/.claude/skills/openspec-archive-change/SKILL.md +114 -0
- package/.claude/skills/openspec-bulk-archive-change/SKILL.md +246 -0
- package/.claude/skills/openspec-continue-change/SKILL.md +118 -0
- package/.claude/skills/openspec-explore/SKILL.md +290 -0
- package/.claude/skills/openspec-ff-change/SKILL.md +101 -0
- package/.claude/skills/openspec-new-change/SKILL.md +74 -0
- package/.claude/skills/openspec-onboard/SKILL.md +529 -0
- package/.claude/skills/openspec-sync-specs/SKILL.md +138 -0
- package/.claude/skills/openspec-verify-change/SKILL.md +168 -0
- package/.claude/skills/performance-doctor/SKILL.md +627 -0
- package/.claude/skills/project-navigator/SKILL.md +305 -0
- package/.claude/skills/redis-cache/SKILL.md +839 -0
- package/.claude/skills/scheduled-jobs/SKILL.md +633 -0
- package/.claude/skills/security-guard/SKILL.md +748 -0
- package/.claude/skills/sms-mail/SKILL.md +766 -0
- package/.claude/skills/social-login/SKILL.md +668 -0
- package/.claude/skills/store-pc/SKILL.md +366 -0
- package/.claude/skills/task-tracker/SKILL.md +307 -0
- package/.claude/skills/tech-decision/SKILL.md +393 -0
- package/.claude/skills/tenant-management/SKILL.md +603 -0
- package/.claude/skills/test-development/SKILL.md +755 -0
- package/.claude/skills/ui-pc/SKILL.md +438 -0
- package/.claude/skills/utils-toolkit/SKILL.md +615 -0
- package/.claude/skills/websocket-sse/SKILL.md +716 -0
- package/.claude/skills/workflow-engine/SKILL.md +676 -0
- package/.claude/templates//345/276/205/345/212/236/346/270/205/345/215/225/346/250/241/346/235/277.md +56 -0
- package/.claude/templates//351/234/200/346/261/202/346/226/207/346/241/243/346/250/241/346/235/277.md +85 -0
- package/.claude/templates//351/241/271/347/233/256/347/212/266/346/200/201/346/250/241/346/235/277.md +43 -0
- package/.codex/skills/add-skill/SKILL.md +352 -0
- package/.codex/skills/add-todo/SKILL.md +269 -0
- package/.codex/skills/api-development/SKILL.md +693 -0
- package/.codex/skills/architecture-design/SKILL.md +628 -0
- package/.codex/skills/backend-annotations/SKILL.md +664 -0
- package/.codex/skills/banana-image/CHANGELOG.md +37 -0
- package/.codex/skills/banana-image/README.md +146 -0
- package/.codex/skills/banana-image/SKILL.md +164 -0
- package/.codex/skills/banana-image/assets/logo.png +0 -0
- package/.codex/skills/banana-image/references/advanced-usage.md +189 -0
- package/.codex/skills/banana-image/scripts/apply_template.py +125 -0
- package/.codex/skills/banana-image/scripts/banana_image_exec.ts +412 -0
- package/.codex/skills/banana-image/scripts/batch_prep.py +82 -0
- package/.codex/skills/banana-image/scripts/package-lock.json +1437 -0
- package/.codex/skills/banana-image/scripts/package.json +18 -0
- package/.codex/skills/banana-image/scripts/requirements.txt +10 -0
- package/.codex/skills/banana-image/templates/poster.json +22 -0
- package/.codex/skills/banana-image/templates/product.json +17 -0
- package/.codex/skills/banana-image/templates/social.json +22 -0
- package/.codex/skills/banana-image/templates/thumbnail.json +17 -0
- package/.codex/skills/brainstorm/SKILL.md +648 -0
- package/.codex/skills/bug-detective/SKILL.md +1206 -0
- package/.codex/skills/check/SKILL.md +367 -0
- package/.codex/skills/code-patterns/SKILL.md +442 -0
- package/.codex/skills/collaborating-with-codex/SKILL.md +174 -0
- package/.codex/skills/collaborating-with-codex/scripts/codex_bridge.py +275 -0
- package/.codex/skills/collaborating-with-gemini/SKILL.md +194 -0
- package/.codex/skills/collaborating-with-gemini/scripts/gemini_bridge.py +275 -0
- package/.codex/skills/crud/SKILL.md +265 -0
- package/.codex/skills/crud-development/SKILL.md +637 -0
- package/.codex/skills/data-permission/SKILL.md +591 -0
- package/.codex/skills/database-ops/SKILL.md +553 -0
- package/.codex/skills/dev/SKILL.md +187 -0
- package/.codex/skills/error-handler/SKILL.md +361 -0
- package/.codex/skills/file-oss-management/SKILL.md +863 -0
- package/.codex/skills/git-workflow/SKILL.md +375 -0
- package/.codex/skills/init-docs/SKILL.md +194 -0
- package/.codex/skills/json-serialization/SKILL.md +357 -0
- package/.codex/skills/leniu-api-development/SKILL.md +803 -0
- package/.codex/skills/leniu-architecture-design/SKILL.md +594 -0
- package/.codex/skills/leniu-backend-annotations/SKILL.md +662 -0
- package/.codex/skills/leniu-code-patterns/SKILL.md +365 -0
- package/.codex/skills/leniu-crud-development/SKILL.md +1110 -0
- package/.codex/skills/leniu-data-permission/SKILL.md +256 -0
- package/.codex/skills/leniu-database-ops/SKILL.md +426 -0
- package/.codex/skills/leniu-error-handler/SKILL.md +462 -0
- package/.codex/skills/leniu-java-amount-handling/SKILL.md +461 -0
- package/.codex/skills/leniu-java-code-style/SKILL.md +510 -0
- package/.codex/skills/leniu-java-concurrent/SKILL.md +400 -0
- package/.codex/skills/leniu-java-entity/SKILL.md +751 -0
- package/.codex/skills/leniu-java-export/SKILL.md +560 -0
- package/.codex/skills/leniu-java-logging/SKILL.md +832 -0
- package/.codex/skills/leniu-java-mq/SKILL.md +338 -0
- package/.codex/skills/leniu-java-mybatis/SKILL.md +640 -0
- package/.codex/skills/leniu-java-report-query-param/SKILL.md +291 -0
- package/.codex/skills/leniu-java-task/SKILL.md +367 -0
- package/.codex/skills/leniu-java-total-line/SKILL.md +195 -0
- package/.codex/skills/leniu-marketing-price-rule-customizer/SKILL.md +301 -0
- package/.codex/skills/leniu-marketing-recharge-rule-customizer/SKILL.md +285 -0
- package/.codex/skills/leniu-mealtime/SKILL.md +215 -0
- package/.codex/skills/leniu-redis-cache/SKILL.md +316 -0
- package/.codex/skills/leniu-security-guard/SKILL.md +520 -0
- package/.codex/skills/leniu-utils-toolkit/SKILL.md +378 -0
- package/.codex/skills/next/SKILL.md +137 -0
- package/.codex/skills/openspec-apply-change/SKILL.md +156 -0
- package/.codex/skills/openspec-archive-change/SKILL.md +114 -0
- package/.codex/skills/openspec-bulk-archive-change/SKILL.md +246 -0
- package/.codex/skills/openspec-continue-change/SKILL.md +118 -0
- package/.codex/skills/openspec-explore/SKILL.md +290 -0
- package/.codex/skills/openspec-ff-change/SKILL.md +101 -0
- package/.codex/skills/openspec-new-change/SKILL.md +74 -0
- package/.codex/skills/openspec-onboard/SKILL.md +529 -0
- package/.codex/skills/openspec-sync-specs/SKILL.md +138 -0
- package/.codex/skills/openspec-verify-change/SKILL.md +168 -0
- package/.codex/skills/performance-doctor/SKILL.md +627 -0
- package/.codex/skills/progress/SKILL.md +193 -0
- package/.codex/skills/project-navigator/SKILL.md +286 -0
- package/.codex/skills/redis-cache/SKILL.md +829 -0
- package/.codex/skills/scheduled-jobs/SKILL.md +633 -0
- package/.codex/skills/security-guard/SKILL.md +739 -0
- package/.codex/skills/sms-mail/SKILL.md +766 -0
- package/.codex/skills/social-login/SKILL.md +668 -0
- package/.codex/skills/start/SKILL.md +154 -0
- package/.codex/skills/store-pc/SKILL.md +491 -0
- package/.codex/skills/sync/SKILL.md +149 -0
- package/.codex/skills/task-tracker/SKILL.md +307 -0
- package/.codex/skills/tech-decision/SKILL.md +393 -0
- package/.codex/skills/tenant-management/SKILL.md +603 -0
- package/.codex/skills/test-development/SKILL.md +755 -0
- package/.codex/skills/ui-pc/SKILL.md +475 -0
- package/.codex/skills/update-status/SKILL.md +159 -0
- package/.codex/skills/utils-toolkit/SKILL.md +593 -0
- package/.codex/skills/websocket-sse/SKILL.md +716 -0
- package/.codex/skills/workflow-engine/SKILL.md +676 -0
- package/.cursor/agents/code-reviewer.md +139 -0
- package/.cursor/agents/project-manager.md +159 -0
- package/.cursor/commands/opsx-apply.md +152 -0
- package/.cursor/commands/opsx-archive.md +157 -0
- package/.cursor/commands/opsx-bulk-archive.md +242 -0
- package/.cursor/commands/opsx-continue.md +114 -0
- package/.cursor/commands/opsx-explore.md +174 -0
- package/.cursor/commands/opsx-ff.md +94 -0
- package/.cursor/commands/opsx-new.md +69 -0
- package/.cursor/commands/opsx-onboard.md +525 -0
- package/.cursor/commands/opsx-sync.md +134 -0
- package/.cursor/commands/opsx-verify.md +164 -0
- package/.cursor/mcp.json +22 -0
- package/.cursor/skills/add-skill/SKILL.md +352 -0
- package/.cursor/skills/api-development/SKILL.md +560 -0
- package/.cursor/skills/architecture-design/SKILL.md +756 -0
- package/.cursor/skills/backend-annotations/SKILL.md +674 -0
- package/.cursor/skills/banana-image/CHANGELOG.md +37 -0
- package/.cursor/skills/banana-image/README.md +146 -0
- package/.cursor/skills/banana-image/SKILL.md +164 -0
- package/.cursor/skills/banana-image/assets/logo.png +0 -0
- package/.cursor/skills/banana-image/references/advanced-usage.md +189 -0
- package/.cursor/skills/banana-image/scripts/apply_template.py +125 -0
- package/.cursor/skills/banana-image/scripts/banana_image_exec.ts +412 -0
- package/.cursor/skills/banana-image/scripts/batch_prep.py +82 -0
- package/.cursor/skills/banana-image/scripts/package-lock.json +1437 -0
- package/.cursor/skills/banana-image/scripts/package.json +18 -0
- package/.cursor/skills/banana-image/scripts/requirements.txt +10 -0
- package/.cursor/skills/banana-image/templates/poster.json +22 -0
- package/.cursor/skills/banana-image/templates/product.json +17 -0
- package/.cursor/skills/banana-image/templates/social.json +22 -0
- package/.cursor/skills/banana-image/templates/thumbnail.json +17 -0
- package/.cursor/skills/brainstorm/SKILL.md +648 -0
- package/.cursor/skills/bug-detective/SKILL.md +1206 -0
- package/.cursor/skills/code-patterns/SKILL.md +590 -0
- package/.cursor/skills/collaborating-with-codex/SKILL.md +174 -0
- package/.cursor/skills/collaborating-with-codex/scripts/codex_bridge.py +275 -0
- package/.cursor/skills/collaborating-with-gemini/SKILL.md +194 -0
- package/.cursor/skills/collaborating-with-gemini/scripts/gemini_bridge.py +275 -0
- package/.cursor/skills/crud-development/SKILL.md +649 -0
- package/.cursor/skills/data-permission/SKILL.md +599 -0
- package/.cursor/skills/database-ops/SKILL.md +407 -0
- package/.cursor/skills/error-handler/SKILL.md +371 -0
- package/.cursor/skills/file-oss-management/SKILL.md +863 -0
- package/.cursor/skills/git-workflow/SKILL.md +375 -0
- package/.cursor/skills/json-serialization/SKILL.md +357 -0
- package/.cursor/skills/leniu-api-development/SKILL.md +803 -0
- package/.cursor/skills/leniu-architecture-design/SKILL.md +598 -0
- package/.cursor/skills/leniu-backend-annotations/SKILL.md +664 -0
- package/.cursor/skills/leniu-code-patterns/SKILL.md +365 -0
- package/.cursor/skills/leniu-crud-development/SKILL.md +1110 -0
- package/.cursor/skills/leniu-data-permission/SKILL.md +256 -0
- package/.cursor/skills/leniu-database-ops/SKILL.md +426 -0
- package/.cursor/skills/leniu-error-handler/SKILL.md +462 -0
- package/.cursor/skills/leniu-java-amount-handling/SKILL.md +461 -0
- package/.cursor/skills/leniu-java-code-style/SKILL.md +510 -0
- package/.cursor/skills/leniu-java-concurrent/SKILL.md +400 -0
- package/.cursor/skills/leniu-java-entity/SKILL.md +751 -0
- package/.cursor/skills/leniu-java-export/SKILL.md +560 -0
- package/.cursor/skills/leniu-java-logging/SKILL.md +832 -0
- package/.cursor/skills/leniu-java-mq/SKILL.md +338 -0
- package/.cursor/skills/leniu-java-mybatis/SKILL.md +640 -0
- package/.cursor/skills/leniu-java-report-query-param/SKILL.md +291 -0
- package/.cursor/skills/leniu-java-task/SKILL.md +367 -0
- package/.cursor/skills/leniu-java-total-line/SKILL.md +195 -0
- package/.cursor/skills/leniu-marketing-price-rule-customizer/SKILL.md +301 -0
- package/.cursor/skills/leniu-marketing-recharge-rule-customizer/SKILL.md +285 -0
- package/.cursor/skills/leniu-mealtime/SKILL.md +215 -0
- package/.cursor/skills/leniu-redis-cache/SKILL.md +316 -0
- package/.cursor/skills/leniu-security-guard/SKILL.md +520 -0
- package/.cursor/skills/leniu-utils-toolkit/SKILL.md +380 -0
- package/.cursor/skills/openspec-apply-change/SKILL.md +156 -0
- package/.cursor/skills/openspec-archive-change/SKILL.md +114 -0
- package/.cursor/skills/openspec-bulk-archive-change/SKILL.md +246 -0
- package/.cursor/skills/openspec-continue-change/SKILL.md +118 -0
- package/.cursor/skills/openspec-explore/SKILL.md +290 -0
- package/.cursor/skills/openspec-ff-change/SKILL.md +101 -0
- package/.cursor/skills/openspec-new-change/SKILL.md +74 -0
- package/.cursor/skills/openspec-onboard/SKILL.md +529 -0
- package/.cursor/skills/openspec-sync-specs/SKILL.md +138 -0
- package/.cursor/skills/openspec-verify-change/SKILL.md +168 -0
- package/.cursor/skills/performance-doctor/SKILL.md +627 -0
- package/.cursor/skills/project-navigator/SKILL.md +305 -0
- package/.cursor/skills/redis-cache/SKILL.md +839 -0
- package/.cursor/skills/scheduled-jobs/SKILL.md +633 -0
- package/.cursor/skills/security-guard/SKILL.md +748 -0
- package/.cursor/skills/sms-mail/SKILL.md +766 -0
- package/.cursor/skills/social-login/SKILL.md +668 -0
- package/.cursor/skills/store-pc/SKILL.md +366 -0
- package/.cursor/skills/task-tracker/SKILL.md +307 -0
- package/.cursor/skills/tech-decision/SKILL.md +393 -0
- package/.cursor/skills/tenant-management/SKILL.md +603 -0
- package/.cursor/skills/test-development/SKILL.md +755 -0
- package/.cursor/skills/ui-pc/SKILL.md +438 -0
- package/.cursor/skills/utils-toolkit/SKILL.md +615 -0
- package/.cursor/skills/websocket-sse/SKILL.md +716 -0
- package/.cursor/skills/workflow-engine/SKILL.md +676 -0
- package/AGENTS.md +669 -0
- package/CLAUDE.md +205 -0
- package/README.md +205 -0
- package/bin/index.js +179 -0
- package/init.sh +178 -0
- package/package.json +27 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: openspec-ff-change
|
|
3
|
+
description: Fast-forward through OpenSpec artifact creation. Use when the user wants to quickly create all artifacts needed for implementation without stepping through each one individually.
|
|
4
|
+
license: MIT
|
|
5
|
+
compatibility: Requires openspec CLI.
|
|
6
|
+
metadata:
|
|
7
|
+
author: openspec
|
|
8
|
+
version: "1.0"
|
|
9
|
+
generatedBy: "1.1.1"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
Fast-forward through artifact creation - generate everything needed to start implementation in one go.
|
|
13
|
+
|
|
14
|
+
**Input**: The user's request should include a change name (kebab-case) OR a description of what they want to build.
|
|
15
|
+
|
|
16
|
+
**Steps**
|
|
17
|
+
|
|
18
|
+
1. **If no clear input provided, ask what they want to build**
|
|
19
|
+
|
|
20
|
+
Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
|
|
21
|
+
> "What change do you want to work on? Describe what you want to build or fix."
|
|
22
|
+
|
|
23
|
+
From their description, derive a kebab-case name (e.g., "add user authentication" → `add-user-auth`).
|
|
24
|
+
|
|
25
|
+
**IMPORTANT**: Do NOT proceed without understanding what the user wants to build.
|
|
26
|
+
|
|
27
|
+
2. **Create the change directory**
|
|
28
|
+
```bash
|
|
29
|
+
openspec new change "<name>"
|
|
30
|
+
```
|
|
31
|
+
This creates a scaffolded change at `openspec/changes/<name>/`.
|
|
32
|
+
|
|
33
|
+
3. **Get the artifact build order**
|
|
34
|
+
```bash
|
|
35
|
+
openspec status --change "<name>" --json
|
|
36
|
+
```
|
|
37
|
+
Parse the JSON to get:
|
|
38
|
+
- `applyRequires`: array of artifact IDs needed before implementation (e.g., `["tasks"]`)
|
|
39
|
+
- `artifacts`: list of all artifacts with their status and dependencies
|
|
40
|
+
|
|
41
|
+
4. **Create artifacts in sequence until apply-ready**
|
|
42
|
+
|
|
43
|
+
Use the **TodoWrite tool** to track progress through the artifacts.
|
|
44
|
+
|
|
45
|
+
Loop through artifacts in dependency order (artifacts with no pending dependencies first):
|
|
46
|
+
|
|
47
|
+
a. **For each artifact that is `ready` (dependencies satisfied)**:
|
|
48
|
+
- Get instructions:
|
|
49
|
+
```bash
|
|
50
|
+
openspec instructions <artifact-id> --change "<name>" --json
|
|
51
|
+
```
|
|
52
|
+
- The instructions JSON includes:
|
|
53
|
+
- `context`: Project background (constraints for you - do NOT include in output)
|
|
54
|
+
- `rules`: Artifact-specific rules (constraints for you - do NOT include in output)
|
|
55
|
+
- `template`: The structure to use for your output file
|
|
56
|
+
- `instruction`: Schema-specific guidance for this artifact type
|
|
57
|
+
- `outputPath`: Where to write the artifact
|
|
58
|
+
- `dependencies`: Completed artifacts to read for context
|
|
59
|
+
- Read any completed dependency files for context
|
|
60
|
+
- Create the artifact file using `template` as the structure
|
|
61
|
+
- Apply `context` and `rules` as constraints - but do NOT copy them into the file
|
|
62
|
+
- Show brief progress: "✓ Created <artifact-id>"
|
|
63
|
+
|
|
64
|
+
b. **Continue until all `applyRequires` artifacts are complete**
|
|
65
|
+
- After creating each artifact, re-run `openspec status --change "<name>" --json`
|
|
66
|
+
- Check if every artifact ID in `applyRequires` has `status: "done"` in the artifacts array
|
|
67
|
+
- Stop when all `applyRequires` artifacts are done
|
|
68
|
+
|
|
69
|
+
c. **If an artifact requires user input** (unclear context):
|
|
70
|
+
- Use **AskUserQuestion tool** to clarify
|
|
71
|
+
- Then continue with creation
|
|
72
|
+
|
|
73
|
+
5. **Show final status**
|
|
74
|
+
```bash
|
|
75
|
+
openspec status --change "<name>"
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**Output**
|
|
79
|
+
|
|
80
|
+
After completing all artifacts, summarize:
|
|
81
|
+
- Change name and location
|
|
82
|
+
- List of artifacts created with brief descriptions
|
|
83
|
+
- What's ready: "All artifacts created! Ready for implementation."
|
|
84
|
+
- Prompt: "Run `/opsx:apply` or ask me to implement to start working on the tasks."
|
|
85
|
+
|
|
86
|
+
**Artifact Creation Guidelines**
|
|
87
|
+
|
|
88
|
+
- Follow the `instruction` field from `openspec instructions` for each artifact type
|
|
89
|
+
- The schema defines what each artifact should contain - follow it
|
|
90
|
+
- Read dependency artifacts for context before creating new ones
|
|
91
|
+
- Use `template` as the structure for your output file - fill in its sections
|
|
92
|
+
- **IMPORTANT**: `context` and `rules` are constraints for YOU, not content for the file
|
|
93
|
+
- Do NOT copy `<context>`, `<rules>`, `<project_context>` blocks into the artifact
|
|
94
|
+
- These guide what you write, but should never appear in the output
|
|
95
|
+
|
|
96
|
+
**Guardrails**
|
|
97
|
+
- Create ALL artifacts needed for implementation (as defined by schema's `apply.requires`)
|
|
98
|
+
- Always read dependency artifacts before creating a new one
|
|
99
|
+
- If context is critically unclear, ask the user - but prefer making reasonable decisions to keep momentum
|
|
100
|
+
- If a change with that name already exists, suggest continuing that change instead
|
|
101
|
+
- Verify each artifact file exists after writing before proceeding to next
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: openspec-new-change
|
|
3
|
+
description: Start a new OpenSpec change using the experimental artifact workflow. Use when the user wants to create a new feature, fix, or modification with a structured step-by-step approach.
|
|
4
|
+
license: MIT
|
|
5
|
+
compatibility: Requires openspec CLI.
|
|
6
|
+
metadata:
|
|
7
|
+
author: openspec
|
|
8
|
+
version: "1.0"
|
|
9
|
+
generatedBy: "1.1.1"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
Start a new change using the experimental artifact-driven approach.
|
|
13
|
+
|
|
14
|
+
**Input**: The user's request should include a change name (kebab-case) OR a description of what they want to build.
|
|
15
|
+
|
|
16
|
+
**Steps**
|
|
17
|
+
|
|
18
|
+
1. **If no clear input provided, ask what they want to build**
|
|
19
|
+
|
|
20
|
+
Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
|
|
21
|
+
> "What change do you want to work on? Describe what you want to build or fix."
|
|
22
|
+
|
|
23
|
+
From their description, derive a kebab-case name (e.g., "add user authentication" → `add-user-auth`).
|
|
24
|
+
|
|
25
|
+
**IMPORTANT**: Do NOT proceed without understanding what the user wants to build.
|
|
26
|
+
|
|
27
|
+
2. **Determine the workflow schema**
|
|
28
|
+
|
|
29
|
+
Use the default schema (omit `--schema`) unless the user explicitly requests a different workflow.
|
|
30
|
+
|
|
31
|
+
**Use a different schema only if the user mentions:**
|
|
32
|
+
- A specific schema name → use `--schema <name>`
|
|
33
|
+
- "show workflows" or "what workflows" → run `openspec schemas --json` and let them choose
|
|
34
|
+
|
|
35
|
+
**Otherwise**: Omit `--schema` to use the default.
|
|
36
|
+
|
|
37
|
+
3. **Create the change directory**
|
|
38
|
+
```bash
|
|
39
|
+
openspec new change "<name>"
|
|
40
|
+
```
|
|
41
|
+
Add `--schema <name>` only if the user requested a specific workflow.
|
|
42
|
+
This creates a scaffolded change at `openspec/changes/<name>/` with the selected schema.
|
|
43
|
+
|
|
44
|
+
4. **Show the artifact status**
|
|
45
|
+
```bash
|
|
46
|
+
openspec status --change "<name>"
|
|
47
|
+
```
|
|
48
|
+
This shows which artifacts need to be created and which are ready (dependencies satisfied).
|
|
49
|
+
|
|
50
|
+
5. **Get instructions for the first artifact**
|
|
51
|
+
The first artifact depends on the schema (e.g., `proposal` for spec-driven).
|
|
52
|
+
Check the status output to find the first artifact with status "ready".
|
|
53
|
+
```bash
|
|
54
|
+
openspec instructions <first-artifact-id> --change "<name>"
|
|
55
|
+
```
|
|
56
|
+
This outputs the template and context for creating the first artifact.
|
|
57
|
+
|
|
58
|
+
6. **STOP and wait for user direction**
|
|
59
|
+
|
|
60
|
+
**Output**
|
|
61
|
+
|
|
62
|
+
After completing the steps, summarize:
|
|
63
|
+
- Change name and location
|
|
64
|
+
- Schema/workflow being used and its artifact sequence
|
|
65
|
+
- Current status (0/N artifacts complete)
|
|
66
|
+
- The template for the first artifact
|
|
67
|
+
- Prompt: "Ready to create the first artifact? Just describe what this change is about and I'll draft it, or ask me to continue."
|
|
68
|
+
|
|
69
|
+
**Guardrails**
|
|
70
|
+
- Do NOT create any artifacts yet - just show the instructions
|
|
71
|
+
- Do NOT advance beyond showing the first artifact template
|
|
72
|
+
- If the name is invalid (not kebab-case), ask for a valid name
|
|
73
|
+
- If a change with that name already exists, suggest continuing that change instead
|
|
74
|
+
- Pass --schema if using a non-default workflow
|
|
@@ -0,0 +1,529 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: openspec-onboard
|
|
3
|
+
description: Guided onboarding for OpenSpec - walk through a complete workflow cycle with narration and real codebase work.
|
|
4
|
+
license: MIT
|
|
5
|
+
compatibility: Requires openspec CLI.
|
|
6
|
+
metadata:
|
|
7
|
+
author: openspec
|
|
8
|
+
version: "1.0"
|
|
9
|
+
generatedBy: "1.1.1"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
Guide the user through their first complete OpenSpec workflow cycle. This is a teaching experience—you'll do real work in their codebase while explaining each step.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## Preflight
|
|
17
|
+
|
|
18
|
+
Before starting, check if OpenSpec is initialized:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
openspec status --json 2>&1 || echo "NOT_INITIALIZED"
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
**If not initialized:**
|
|
25
|
+
> OpenSpec isn't set up in this project yet. Run `openspec init` first, then come back to `/opsx:onboard`.
|
|
26
|
+
|
|
27
|
+
Stop here if not initialized.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Phase 1: Welcome
|
|
32
|
+
|
|
33
|
+
Display:
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
## Welcome to OpenSpec!
|
|
37
|
+
|
|
38
|
+
I'll walk you through a complete change cycle—from idea to implementation—using a real task in your codebase. Along the way, you'll learn the workflow by doing it.
|
|
39
|
+
|
|
40
|
+
**What we'll do:**
|
|
41
|
+
1. Pick a small, real task in your codebase
|
|
42
|
+
2. Explore the problem briefly
|
|
43
|
+
3. Create a change (the container for our work)
|
|
44
|
+
4. Build the artifacts: proposal → specs → design → tasks
|
|
45
|
+
5. Implement the tasks
|
|
46
|
+
6. Archive the completed change
|
|
47
|
+
|
|
48
|
+
**Time:** ~15-20 minutes
|
|
49
|
+
|
|
50
|
+
Let's start by finding something to work on.
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## Phase 2: Task Selection
|
|
56
|
+
|
|
57
|
+
### Codebase Analysis
|
|
58
|
+
|
|
59
|
+
Scan the codebase for small improvement opportunities. Look for:
|
|
60
|
+
|
|
61
|
+
1. **TODO/FIXME comments** - Search for `TODO`, `FIXME`, `HACK`, `XXX` in code files
|
|
62
|
+
2. **Missing error handling** - `catch` blocks that swallow errors, risky operations without try-catch
|
|
63
|
+
3. **Functions without tests** - Cross-reference `src/` with test directories
|
|
64
|
+
4. **Type issues** - `any` types in TypeScript files (`: any`, `as any`)
|
|
65
|
+
5. **Debug artifacts** - `console.log`, `console.debug`, `debugger` statements in non-debug code
|
|
66
|
+
6. **Missing validation** - User input handlers without validation
|
|
67
|
+
|
|
68
|
+
Also check recent git activity:
|
|
69
|
+
```bash
|
|
70
|
+
git log --oneline -10 2>/dev/null || echo "No git history"
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Present Suggestions
|
|
74
|
+
|
|
75
|
+
From your analysis, present 3-4 specific suggestions:
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
## Task Suggestions
|
|
79
|
+
|
|
80
|
+
Based on scanning your codebase, here are some good starter tasks:
|
|
81
|
+
|
|
82
|
+
**1. [Most promising task]**
|
|
83
|
+
Location: `src/path/to/file.ts:42`
|
|
84
|
+
Scope: ~1-2 files, ~20-30 lines
|
|
85
|
+
Why it's good: [brief reason]
|
|
86
|
+
|
|
87
|
+
**2. [Second task]**
|
|
88
|
+
Location: `src/another/file.ts`
|
|
89
|
+
Scope: ~1 file, ~15 lines
|
|
90
|
+
Why it's good: [brief reason]
|
|
91
|
+
|
|
92
|
+
**3. [Third task]**
|
|
93
|
+
Location: [location]
|
|
94
|
+
Scope: [estimate]
|
|
95
|
+
Why it's good: [brief reason]
|
|
96
|
+
|
|
97
|
+
**4. Something else?**
|
|
98
|
+
Tell me what you'd like to work on.
|
|
99
|
+
|
|
100
|
+
Which task interests you? (Pick a number or describe your own)
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
**If nothing found:** Fall back to asking what the user wants to build:
|
|
104
|
+
> I didn't find obvious quick wins in your codebase. What's something small you've been meaning to add or fix?
|
|
105
|
+
|
|
106
|
+
### Scope Guardrail
|
|
107
|
+
|
|
108
|
+
If the user picks or describes something too large (major feature, multi-day work):
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
That's a valuable task, but it's probably larger than ideal for your first OpenSpec run-through.
|
|
112
|
+
|
|
113
|
+
For learning the workflow, smaller is better—it lets you see the full cycle without getting stuck in implementation details.
|
|
114
|
+
|
|
115
|
+
**Options:**
|
|
116
|
+
1. **Slice it smaller** - What's the smallest useful piece of [their task]? Maybe just [specific slice]?
|
|
117
|
+
2. **Pick something else** - One of the other suggestions, or a different small task?
|
|
118
|
+
3. **Do it anyway** - If you really want to tackle this, we can. Just know it'll take longer.
|
|
119
|
+
|
|
120
|
+
What would you prefer?
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
Let the user override if they insist—this is a soft guardrail.
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## Phase 3: Explore Demo
|
|
128
|
+
|
|
129
|
+
Once a task is selected, briefly demonstrate explore mode:
|
|
130
|
+
|
|
131
|
+
```
|
|
132
|
+
Before we create a change, let me quickly show you **explore mode**—it's how you think through problems before committing to a direction.
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
Spend 1-2 minutes investigating the relevant code:
|
|
136
|
+
- Read the file(s) involved
|
|
137
|
+
- Draw a quick ASCII diagram if it helps
|
|
138
|
+
- Note any considerations
|
|
139
|
+
|
|
140
|
+
```
|
|
141
|
+
## Quick Exploration
|
|
142
|
+
|
|
143
|
+
[Your brief analysis—what you found, any considerations]
|
|
144
|
+
|
|
145
|
+
┌─────────────────────────────────────────┐
|
|
146
|
+
│ [Optional: ASCII diagram if helpful] │
|
|
147
|
+
└─────────────────────────────────────────┘
|
|
148
|
+
|
|
149
|
+
Explore mode (`/opsx:explore`) is for this kind of thinking—investigating before implementing. You can use it anytime you need to think through a problem.
|
|
150
|
+
|
|
151
|
+
Now let's create a change to hold our work.
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
**PAUSE** - Wait for user acknowledgment before proceeding.
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## Phase 4: Create the Change
|
|
159
|
+
|
|
160
|
+
**EXPLAIN:**
|
|
161
|
+
```
|
|
162
|
+
## Creating a Change
|
|
163
|
+
|
|
164
|
+
A "change" in OpenSpec is a container for all the thinking and planning around a piece of work. It lives in `openspec/changes/<name>/` and holds your artifacts—proposal, specs, design, tasks.
|
|
165
|
+
|
|
166
|
+
Let me create one for our task.
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
**DO:** Create the change with a derived kebab-case name:
|
|
170
|
+
```bash
|
|
171
|
+
openspec new change "<derived-name>"
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
**SHOW:**
|
|
175
|
+
```
|
|
176
|
+
Created: `openspec/changes/<name>/`
|
|
177
|
+
|
|
178
|
+
The folder structure:
|
|
179
|
+
```
|
|
180
|
+
openspec/changes/<name>/
|
|
181
|
+
├── proposal.md ← Why we're doing this (empty, we'll fill it)
|
|
182
|
+
├── design.md ← How we'll build it (empty)
|
|
183
|
+
├── specs/ ← Detailed requirements (empty)
|
|
184
|
+
└── tasks.md ← Implementation checklist (empty)
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
Now let's fill in the first artifact—the proposal.
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
## Phase 5: Proposal
|
|
193
|
+
|
|
194
|
+
**EXPLAIN:**
|
|
195
|
+
```
|
|
196
|
+
## The Proposal
|
|
197
|
+
|
|
198
|
+
The proposal captures **why** we're making this change and **what** it involves at a high level. It's the "elevator pitch" for the work.
|
|
199
|
+
|
|
200
|
+
I'll draft one based on our task.
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
**DO:** Draft the proposal content (don't save yet):
|
|
204
|
+
|
|
205
|
+
```
|
|
206
|
+
Here's a draft proposal:
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
## Why
|
|
211
|
+
|
|
212
|
+
[1-2 sentences explaining the problem/opportunity]
|
|
213
|
+
|
|
214
|
+
## What Changes
|
|
215
|
+
|
|
216
|
+
[Bullet points of what will be different]
|
|
217
|
+
|
|
218
|
+
## Capabilities
|
|
219
|
+
|
|
220
|
+
### New Capabilities
|
|
221
|
+
- `<capability-name>`: [brief description]
|
|
222
|
+
|
|
223
|
+
### Modified Capabilities
|
|
224
|
+
<!-- If modifying existing behavior -->
|
|
225
|
+
|
|
226
|
+
## Impact
|
|
227
|
+
|
|
228
|
+
- `src/path/to/file.ts`: [what changes]
|
|
229
|
+
- [other files if applicable]
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
Does this capture the intent? I can adjust before we save it.
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
**PAUSE** - Wait for user approval/feedback.
|
|
237
|
+
|
|
238
|
+
After approval, save the proposal:
|
|
239
|
+
```bash
|
|
240
|
+
openspec instructions proposal --change "<name>" --json
|
|
241
|
+
```
|
|
242
|
+
Then write the content to `openspec/changes/<name>/proposal.md`.
|
|
243
|
+
|
|
244
|
+
```
|
|
245
|
+
Proposal saved. This is your "why" document—you can always come back and refine it as understanding evolves.
|
|
246
|
+
|
|
247
|
+
Next up: specs.
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
---
|
|
251
|
+
|
|
252
|
+
## Phase 6: Specs
|
|
253
|
+
|
|
254
|
+
**EXPLAIN:**
|
|
255
|
+
```
|
|
256
|
+
## Specs
|
|
257
|
+
|
|
258
|
+
Specs define **what** we're building in precise, testable terms. They use a requirement/scenario format that makes expected behavior crystal clear.
|
|
259
|
+
|
|
260
|
+
For a small task like this, we might only need one spec file.
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
**DO:** Create the spec file:
|
|
264
|
+
```bash
|
|
265
|
+
mkdir -p openspec/changes/<name>/specs/<capability-name>
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
Draft the spec content:
|
|
269
|
+
|
|
270
|
+
```
|
|
271
|
+
Here's the spec:
|
|
272
|
+
|
|
273
|
+
---
|
|
274
|
+
|
|
275
|
+
## ADDED Requirements
|
|
276
|
+
|
|
277
|
+
### Requirement: <Name>
|
|
278
|
+
|
|
279
|
+
<Description of what the system should do>
|
|
280
|
+
|
|
281
|
+
#### Scenario: <Scenario name>
|
|
282
|
+
|
|
283
|
+
- **WHEN** <trigger condition>
|
|
284
|
+
- **THEN** <expected outcome>
|
|
285
|
+
- **AND** <additional outcome if needed>
|
|
286
|
+
|
|
287
|
+
---
|
|
288
|
+
|
|
289
|
+
This format—WHEN/THEN/AND—makes requirements testable. You can literally read them as test cases.
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
Save to `openspec/changes/<name>/specs/<capability>/spec.md`.
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
## Phase 7: Design
|
|
297
|
+
|
|
298
|
+
**EXPLAIN:**
|
|
299
|
+
```
|
|
300
|
+
## Design
|
|
301
|
+
|
|
302
|
+
The design captures **how** we'll build it—technical decisions, tradeoffs, approach.
|
|
303
|
+
|
|
304
|
+
For small changes, this might be brief. That's fine—not every change needs deep design discussion.
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
**DO:** Draft design.md:
|
|
308
|
+
|
|
309
|
+
```
|
|
310
|
+
Here's the design:
|
|
311
|
+
|
|
312
|
+
---
|
|
313
|
+
|
|
314
|
+
## Context
|
|
315
|
+
|
|
316
|
+
[Brief context about the current state]
|
|
317
|
+
|
|
318
|
+
## Goals / Non-Goals
|
|
319
|
+
|
|
320
|
+
**Goals:**
|
|
321
|
+
- [What we're trying to achieve]
|
|
322
|
+
|
|
323
|
+
**Non-Goals:**
|
|
324
|
+
- [What's explicitly out of scope]
|
|
325
|
+
|
|
326
|
+
## Decisions
|
|
327
|
+
|
|
328
|
+
### Decision 1: [Key decision]
|
|
329
|
+
|
|
330
|
+
[Explanation of approach and rationale]
|
|
331
|
+
|
|
332
|
+
---
|
|
333
|
+
|
|
334
|
+
For a small task, this captures the key decisions without over-engineering.
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
Save to `openspec/changes/<name>/design.md`.
|
|
338
|
+
|
|
339
|
+
---
|
|
340
|
+
|
|
341
|
+
## Phase 8: Tasks
|
|
342
|
+
|
|
343
|
+
**EXPLAIN:**
|
|
344
|
+
```
|
|
345
|
+
## Tasks
|
|
346
|
+
|
|
347
|
+
Finally, we break the work into implementation tasks—checkboxes that drive the apply phase.
|
|
348
|
+
|
|
349
|
+
These should be small, clear, and in logical order.
|
|
350
|
+
```
|
|
351
|
+
|
|
352
|
+
**DO:** Generate tasks based on specs and design:
|
|
353
|
+
|
|
354
|
+
```
|
|
355
|
+
Here are the implementation tasks:
|
|
356
|
+
|
|
357
|
+
---
|
|
358
|
+
|
|
359
|
+
## 1. [Category or file]
|
|
360
|
+
|
|
361
|
+
- [ ] 1.1 [Specific task]
|
|
362
|
+
- [ ] 1.2 [Specific task]
|
|
363
|
+
|
|
364
|
+
## 2. Verify
|
|
365
|
+
|
|
366
|
+
- [ ] 2.1 [Verification step]
|
|
367
|
+
|
|
368
|
+
---
|
|
369
|
+
|
|
370
|
+
Each checkbox becomes a unit of work in the apply phase. Ready to implement?
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
**PAUSE** - Wait for user to confirm they're ready to implement.
|
|
374
|
+
|
|
375
|
+
Save to `openspec/changes/<name>/tasks.md`.
|
|
376
|
+
|
|
377
|
+
---
|
|
378
|
+
|
|
379
|
+
## Phase 9: Apply (Implementation)
|
|
380
|
+
|
|
381
|
+
**EXPLAIN:**
|
|
382
|
+
```
|
|
383
|
+
## Implementation
|
|
384
|
+
|
|
385
|
+
Now we implement each task, checking them off as we go. I'll announce each one and occasionally note how the specs/design informed the approach.
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
**DO:** For each task:
|
|
389
|
+
|
|
390
|
+
1. Announce: "Working on task N: [description]"
|
|
391
|
+
2. Implement the change in the codebase
|
|
392
|
+
3. Reference specs/design naturally: "The spec says X, so I'm doing Y"
|
|
393
|
+
4. Mark complete in tasks.md: `- [ ]` → `- [x]`
|
|
394
|
+
5. Brief status: "✓ Task N complete"
|
|
395
|
+
|
|
396
|
+
Keep narration light—don't over-explain every line of code.
|
|
397
|
+
|
|
398
|
+
After all tasks:
|
|
399
|
+
|
|
400
|
+
```
|
|
401
|
+
## Implementation Complete
|
|
402
|
+
|
|
403
|
+
All tasks done:
|
|
404
|
+
- [x] Task 1
|
|
405
|
+
- [x] Task 2
|
|
406
|
+
- [x] ...
|
|
407
|
+
|
|
408
|
+
The change is implemented! One more step—let's archive it.
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
---
|
|
412
|
+
|
|
413
|
+
## Phase 10: Archive
|
|
414
|
+
|
|
415
|
+
**EXPLAIN:**
|
|
416
|
+
```
|
|
417
|
+
## Archiving
|
|
418
|
+
|
|
419
|
+
When a change is complete, we archive it. This moves it from `openspec/changes/` to `openspec/changes/archive/YYYY-MM-DD-<name>/`.
|
|
420
|
+
|
|
421
|
+
Archived changes become your project's decision history—you can always find them later to understand why something was built a certain way.
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
**DO:**
|
|
425
|
+
```bash
|
|
426
|
+
openspec archive "<name>"
|
|
427
|
+
```
|
|
428
|
+
|
|
429
|
+
**SHOW:**
|
|
430
|
+
```
|
|
431
|
+
Archived to: `openspec/changes/archive/YYYY-MM-DD-<name>/`
|
|
432
|
+
|
|
433
|
+
The change is now part of your project's history. The code is in your codebase, the decision record is preserved.
|
|
434
|
+
```
|
|
435
|
+
|
|
436
|
+
---
|
|
437
|
+
|
|
438
|
+
## Phase 11: Recap & Next Steps
|
|
439
|
+
|
|
440
|
+
```
|
|
441
|
+
## Congratulations!
|
|
442
|
+
|
|
443
|
+
You just completed a full OpenSpec cycle:
|
|
444
|
+
|
|
445
|
+
1. **Explore** - Thought through the problem
|
|
446
|
+
2. **New** - Created a change container
|
|
447
|
+
3. **Proposal** - Captured WHY
|
|
448
|
+
4. **Specs** - Defined WHAT in detail
|
|
449
|
+
5. **Design** - Decided HOW
|
|
450
|
+
6. **Tasks** - Broke it into steps
|
|
451
|
+
7. **Apply** - Implemented the work
|
|
452
|
+
8. **Archive** - Preserved the record
|
|
453
|
+
|
|
454
|
+
This same rhythm works for any size change—a small fix or a major feature.
|
|
455
|
+
|
|
456
|
+
---
|
|
457
|
+
|
|
458
|
+
## Command Reference
|
|
459
|
+
|
|
460
|
+
| Command | What it does |
|
|
461
|
+
|---------|--------------|
|
|
462
|
+
| `/opsx:explore` | Think through problems before/during work |
|
|
463
|
+
| `/opsx:new` | Start a new change, step through artifacts |
|
|
464
|
+
| `/opsx:ff` | Fast-forward: create all artifacts at once |
|
|
465
|
+
| `/opsx:continue` | Continue working on an existing change |
|
|
466
|
+
| `/opsx:apply` | Implement tasks from a change |
|
|
467
|
+
| `/opsx:verify` | Verify implementation matches artifacts |
|
|
468
|
+
| `/opsx:archive` | Archive a completed change |
|
|
469
|
+
|
|
470
|
+
---
|
|
471
|
+
|
|
472
|
+
## What's Next?
|
|
473
|
+
|
|
474
|
+
Try `/opsx:new` or `/opsx:ff` on something you actually want to build. You've got the rhythm now!
|
|
475
|
+
```
|
|
476
|
+
|
|
477
|
+
---
|
|
478
|
+
|
|
479
|
+
## Graceful Exit Handling
|
|
480
|
+
|
|
481
|
+
### User wants to stop mid-way
|
|
482
|
+
|
|
483
|
+
If the user says they need to stop, want to pause, or seem disengaged:
|
|
484
|
+
|
|
485
|
+
```
|
|
486
|
+
No problem! Your change is saved at `openspec/changes/<name>/`.
|
|
487
|
+
|
|
488
|
+
To pick up where we left off later:
|
|
489
|
+
- `/opsx:continue <name>` - Resume artifact creation
|
|
490
|
+
- `/opsx:apply <name>` - Jump to implementation (if tasks exist)
|
|
491
|
+
|
|
492
|
+
The work won't be lost. Come back whenever you're ready.
|
|
493
|
+
```
|
|
494
|
+
|
|
495
|
+
Exit gracefully without pressure.
|
|
496
|
+
|
|
497
|
+
### User just wants command reference
|
|
498
|
+
|
|
499
|
+
If the user says they just want to see the commands or skip the tutorial:
|
|
500
|
+
|
|
501
|
+
```
|
|
502
|
+
## OpenSpec Quick Reference
|
|
503
|
+
|
|
504
|
+
| Command | What it does |
|
|
505
|
+
|---------|--------------|
|
|
506
|
+
| `/opsx:explore` | Think through problems (no code changes) |
|
|
507
|
+
| `/opsx:new <name>` | Start a new change, step by step |
|
|
508
|
+
| `/opsx:ff <name>` | Fast-forward: all artifacts at once |
|
|
509
|
+
| `/opsx:continue <name>` | Continue an existing change |
|
|
510
|
+
| `/opsx:apply <name>` | Implement tasks |
|
|
511
|
+
| `/opsx:verify <name>` | Verify implementation |
|
|
512
|
+
| `/opsx:archive <name>` | Archive when done |
|
|
513
|
+
|
|
514
|
+
Try `/opsx:new` to start your first change, or `/opsx:ff` if you want to move fast.
|
|
515
|
+
```
|
|
516
|
+
|
|
517
|
+
Exit gracefully.
|
|
518
|
+
|
|
519
|
+
---
|
|
520
|
+
|
|
521
|
+
## Guardrails
|
|
522
|
+
|
|
523
|
+
- **Follow the EXPLAIN → DO → SHOW → PAUSE pattern** at key transitions (after explore, after proposal draft, after tasks, after archive)
|
|
524
|
+
- **Keep narration light** during implementation—teach without lecturing
|
|
525
|
+
- **Don't skip phases** even if the change is small—the goal is teaching the workflow
|
|
526
|
+
- **Pause for acknowledgment** at marked points, but don't over-pause
|
|
527
|
+
- **Handle exits gracefully**—never pressure the user to continue
|
|
528
|
+
- **Use real codebase tasks**—don't simulate or use fake examples
|
|
529
|
+
- **Adjust scope gently**—guide toward smaller tasks but respect user choice
|