@anionzo/skill 1.4.0 → 1.6.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.
Files changed (56) hide show
  1. package/CONTRIBUTING.md +2 -1
  2. package/README.md +21 -9
  3. package/docs/design-brief.md +19 -13
  4. package/i18n/CONTRIBUTING.vi.md +2 -1
  5. package/i18n/README.vi.md +21 -9
  6. package/i18n/design-brief.vi.md +19 -13
  7. package/knowledge/global/skill-triggering-rules.md +2 -1
  8. package/package.json +1 -1
  9. package/skills/brainstorming/SKILL.md +176 -13
  10. package/skills/brainstorming/meta.yaml +19 -10
  11. package/skills/code-review/SKILL.md +214 -19
  12. package/skills/code-review/meta.yaml +21 -9
  13. package/skills/commit/SKILL.md +187 -0
  14. package/skills/commit/examples.md +62 -0
  15. package/skills/commit/meta.yaml +30 -0
  16. package/skills/commit/references/output-template.md +14 -0
  17. package/skills/debug/SKILL.md +252 -0
  18. package/skills/debug/examples.md +83 -0
  19. package/skills/debug/meta.yaml +38 -0
  20. package/skills/debug/references/output-template.md +16 -0
  21. package/skills/docs-writer/SKILL.md +85 -10
  22. package/skills/docs-writer/meta.yaml +16 -12
  23. package/skills/extract/SKILL.md +161 -0
  24. package/skills/extract/examples.md +47 -0
  25. package/skills/extract/meta.yaml +27 -0
  26. package/skills/extract/references/output-template.md +24 -0
  27. package/skills/feature-delivery/SKILL.md +10 -5
  28. package/skills/feature-delivery/meta.yaml +5 -0
  29. package/skills/go-pipeline/SKILL.md +156 -0
  30. package/skills/go-pipeline/examples.md +56 -0
  31. package/skills/go-pipeline/meta.yaml +27 -0
  32. package/skills/go-pipeline/references/output-template.md +17 -0
  33. package/skills/planning/SKILL.md +128 -17
  34. package/skills/planning/meta.yaml +15 -6
  35. package/skills/refactor-safe/SKILL.md +10 -7
  36. package/skills/repo-onboarding/SKILL.md +11 -7
  37. package/skills/repo-onboarding/meta.yaml +2 -0
  38. package/skills/research/SKILL.md +100 -0
  39. package/skills/research/examples.md +79 -0
  40. package/skills/research/meta.yaml +27 -0
  41. package/skills/research/references/output-template.md +23 -0
  42. package/skills/test-driven-development/SKILL.md +194 -0
  43. package/skills/test-driven-development/examples.md +77 -0
  44. package/skills/test-driven-development/meta.yaml +31 -0
  45. package/skills/test-driven-development/references/.gitkeep +0 -0
  46. package/skills/test-driven-development/references/output-template.md +31 -0
  47. package/skills/using-skills/SKILL.md +32 -14
  48. package/skills/using-skills/examples.md +3 -3
  49. package/skills/using-skills/meta.yaml +8 -3
  50. package/skills/verification-before-completion/SKILL.md +127 -13
  51. package/skills/verification-before-completion/meta.yaml +24 -14
  52. package/templates/SKILL.md +8 -1
  53. package/skills/bug-triage/SKILL.md +0 -47
  54. package/skills/bug-triage/examples.md +0 -68
  55. package/skills/bug-triage/meta.yaml +0 -25
  56. package/skills/bug-triage/references/output-template.md +0 -26
package/CONTRIBUTING.md CHANGED
@@ -79,7 +79,7 @@ cp -r templates/ skills/<your-skill-name>/
79
79
  |---|---|---|
80
80
  | `name` | ✅ | Skill identifier (kebab-case) |
81
81
  | `version` | ✅ | Semantic version (`1.0.0`) |
82
- | `category` | ✅ | One of: `routing`, `discovery`, `planning`, `implementation`, `debugging`, `review`, `documentation`, `verification` |
82
+ | `category` | ✅ | One of: `routing`, `discovery`, `planning`, `implementation`, `troubleshooting`, `review`, `documentation`, `quality`, `knowledge`, `workflow` |
83
83
  | `summary` | ✅ | One-line English description |
84
84
  | `summary_vi` | 🟡 | One-line Vietnamese description |
85
85
  | `triggers` | 🟡 | When to activate this skill |
@@ -161,6 +161,7 @@ Knowledge files live in `knowledge/global/`. They contain principles, heuristics
161
161
  | 🔍 `review-heuristics.md` | Code review rules |
162
162
  | 🐛 `debugging-patterns.md` | Systematic debugging approaches |
163
163
  | 🧠 `skill-triggering-rules.md` | When to load which skill |
164
+ | 📋 `evidence-before-claims.md` | Evidence requirements before completion claims |
164
165
 
165
166
  When adding or editing knowledge:
166
167
 
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  **A vendor-neutral, multi-agent skill library for AI-powered software engineering**
6
6
 
7
- [![Skills](https://img.shields.io/badge/skills-10-blue?style=flat-square&logo=bookstack)](skills/)
7
+ [![Skills](https://img.shields.io/badge/skills-15-blue?style=flat-square&logo=bookstack)](skills/)
8
8
  [![Knowledge](https://img.shields.io/badge/knowledge-5_files-green?style=flat-square&logo=readme)](knowledge/)
9
9
  [![Platforms](https://img.shields.io/badge/platforms-5_agents-purple?style=flat-square&logo=robot-framework)](adapters/)
10
10
  [![License](https://img.shields.io/badge/license-MIT-yellow?style=flat-square)](LICENSE)
@@ -51,15 +51,20 @@ This repo is intentionally lighter than a full workflow product. It borrows the
51
51
  | | Skill | Purpose |
52
52
  |---|---|---|
53
53
  | 🧭 | `using-skills` | Route a request to the right skill and working mode |
54
- | 💡 | `brainstorming` | Refine rough ideas into a concrete direction before planning |
54
+ | 💡 | `brainstorming` | Explore ideas, lock decisions, optionally write a spec |
55
55
  | 🗺️ | `repo-onboarding` | Understand an unfamiliar codebase before acting |
56
- | 📐 | `planning` | Turn a request into an execution-ready plan |
56
+ | 🔎 | `research` | Explore existing code and patterns before implementing |
57
+ | 📐 | `planning` | Execution-ready plans with bite-sized steps and no placeholders |
57
58
  | 🚀 | `feature-delivery` | Implement a feature with minimal, repo-aligned change |
58
- | 🐛 | `bug-triage` | Investigate errors, regressions, and unclear failures |
59
+ | 🧪 | `test-driven-development` | Enforce test-first discipline with red-green-refactor |
60
+ | 🐛 | `debug` | 4-phase systematic debugging with root cause investigation |
59
61
  | ♻️ | `refactor-safe` | Restructure code without changing behavior |
60
- | ✅ | `verification-before-completion` | Require fresh evidence before claiming done |
61
- | 🔍 | `code-review` | Review diffs bugs, regressions, test gaps first |
62
- | 📝 | `docs-writer` | Update docs from verified source behavior |
62
+ | ✅ | `verification-before-completion` | Iron law: no completion claims without fresh evidence |
63
+ | 🔍 | `code-review` | Give and receive code reviews with severity triage |
64
+ | 📝 | `commit` | Create conventional commits with staged change review |
65
+ | 📖 | `docs-writer` | Update docs from verified source behavior |
66
+ | 🧬 | `extract` | Extract patterns, decisions, and learnings from work |
67
+ | ⚡ | `go-pipeline` | Execute a full spec-to-commit pipeline in one run |
63
68
 
64
69
  ### 🔄 Default Workflow
65
70
 
@@ -77,10 +82,13 @@ This repo is intentionally lighter than a full workflow product. It borrows the
77
82
  ┌────────────┼────────────┐
78
83
  ▼ ▼ ▼
79
84
  ┌────────────┐ ┌───────────┐ ┌──────────────┐
80
- │ feature- │ │ bug-triage│ │ refactor-safe│
85
+ │ feature- │ │ debug │ │ refactor-safe│
81
86
  │ delivery │ │ │ │ │
82
87
  └─────┬──────┘ └─────┬─────┘ └──────┬───────┘
83
88
  │ │ │
89
+ │ ┌──────┴──────┐ │
90
+ │ │ TDD │ │
91
+ │ └──────┬──────┘ │
84
92
  ▼ ▼ ▼
85
93
  ┌─────────────────────────────────────────┐
86
94
  │ verification-before-completion │
@@ -88,7 +96,11 @@ This repo is intentionally lighter than a full workflow product. It borrows the
88
96
 
89
97
  ┌─────────────┐
90
98
  │ code-review │
91
- └─────────────┘
99
+ └──────┬──────┘
100
+
101
+ ┌──────────┐
102
+ │ commit │
103
+ └──────────┘
92
104
  ```
93
105
 
94
106
  ### 📖 Research Highlights
@@ -73,19 +73,25 @@ A personal operating library with three layers:
73
73
  5. ⚙️ The first version uses simple shell scripts instead of introducing a build system
74
74
  6. ✅ Planning and verification are explicit phases for code-changing work
75
75
 
76
- ### 🎯 Initial Scope
77
-
78
- The first version focuses on the work patterns most likely to pay off immediately:
79
-
80
- - 🧭 Routing requests
81
- - 💡 Refining rough requests into a workable direction
82
- - 🗺️ Onboarding into repos
83
- - 🐛 Triaging bugs
84
- - 📐 Planning implementation work before code edits
85
- - 🚀 Delivering features
86
- - Verifying outcomes before claiming completion
87
- - 🔍 Reviewing code
88
- - 📝 Updating docs
76
+ ### 🎯 Current Scope
77
+
78
+ The library has expanded beyond the original v1 scope. The current skill set covers 15 repeatable work patterns:
79
+
80
+ - 🧭 Routing requests with `using-skills`
81
+ - 💡 Refining ideas and writing specs with `brainstorming`
82
+ - 🗺️ Onboarding into unfamiliar repos with `repo-onboarding`
83
+ - 🔎 Researching existing code and patterns with `research`
84
+ - 📐 Planning implementation work before code edits with `planning`
85
+ - 🚀 Delivering features with `feature-delivery`
86
+ - 🧪 Implementing with test-first discipline through `test-driven-development`
87
+ - 🐛 Systematically debugging failures with `debug`
88
+ - ♻️ Refactoring safely with `refactor-safe`
89
+ - ✅ Verifying outcomes before claiming completion with `verification-before-completion`
90
+ - 🔍 Giving and receiving code reviews with `code-review`
91
+ - 📝 Creating intentional commits with `commit`
92
+ - 📖 Updating docs with `docs-writer`
93
+ - 🧬 Extracting reusable learnings with `extract`
94
+ - ⚡ Running an approved spec-to-commit flow with `go-pipeline`
89
95
 
90
96
  ### 🔮 Next Steps
91
97
 
@@ -79,7 +79,7 @@ cp -r templates/ skills/<ten-skill>/
79
79
  |---|---|---|
80
80
  | `name` | ✅ | Định danh skill (kebab-case) |
81
81
  | `version` | ✅ | Phiên bản semantic (`1.0.0`) |
82
- | `category` | ✅ | Một trong: `routing`, `discovery`, `planning`, `implementation`, `debugging`, `review`, `documentation`, `verification` |
82
+ | `category` | ✅ | Một trong: `routing`, `discovery`, `planning`, `implementation`, `troubleshooting`, `review`, `documentation`, `quality`, `knowledge`, `workflow` |
83
83
  | `summary` | ✅ | Mô tả một dòng bằng tiếng Anh |
84
84
  | `summary_vi` | 🟡 | Mô tả một dòng bằng tiếng Việt |
85
85
  | `triggers` | 🟡 | Khi nào kích hoạt skill |
@@ -161,6 +161,7 @@ File knowledge nằm trong `knowledge/global/`. Chúng chứa nguyên tắc, heu
161
161
  | 🔍 `review-heuristics.md` | Quy tắc code review |
162
162
  | 🐛 `debugging-patterns.md` | Phương pháp debug có hệ thống |
163
163
  | 🧠 `skill-triggering-rules.md` | Khi nào load skill nào |
164
+ | 📋 `evidence-before-claims.md` | Yêu cầu bằng chứng trước tuyên bố hoàn thành |
164
165
 
165
166
  Khi thêm hoặc sửa knowledge:
166
167
 
package/i18n/README.vi.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  **Thư viện skill đa agent, vendor-neutral cho kỹ thuật phần mềm hỗ trợ AI**
6
6
 
7
- [![Skills](https://img.shields.io/badge/skills-10-blue?style=flat-square&logo=bookstack)](../skills/)
7
+ [![Skills](https://img.shields.io/badge/skills-15-blue?style=flat-square&logo=bookstack)](../skills/)
8
8
  [![Knowledge](https://img.shields.io/badge/knowledge-5_files-green?style=flat-square&logo=readme)](../knowledge/)
9
9
  [![Platforms](https://img.shields.io/badge/platforms-5_agents-purple?style=flat-square&logo=robot-framework)](../adapters/)
10
10
  [![License](https://img.shields.io/badge/license-MIT-yellow?style=flat-square)](../LICENSE)
@@ -51,15 +51,20 @@ Repo này nhẹ hơn một sản phẩm workflow đầy đủ. Nó lấy tư duy
51
51
  | | Skill | Mục đích |
52
52
  |---|---|---|
53
53
  | 🧭 | `using-skills` | Phân loại request và chọn đúng skill |
54
- | 💡 | `brainstorming` | Làm ý tưởng hồ trước khi lập plan |
54
+ | 💡 | `brainstorming` | Khám phá ý tưởng, khóa quyết định, viết spec nếu cần |
55
55
  | 🗺️ | `repo-onboarding` | Hiểu codebase lạ trước khi hành động |
56
- | 📐 | `planning` | Biến request thành plan thực thi trước khi code |
56
+ | 🔎 | `research` | Tìm hiểu code pattern sẵn trước khi implement |
57
+ | 📐 | `planning` | Plan thực thi với bước nhỏ gọn, không placeholder |
57
58
  | 🚀 | `feature-delivery` | Triển khai feature với thay đổi tối thiểu, phù hợp repo |
58
- | 🐛 | `bug-triage` | Điều tra lỗi, regression, failure chưa nguyên nhân |
59
+ | 🧪 | `test-driven-development` | Kỷ luật test-first với chu trình red-green-refactor |
60
+ | 🐛 | `debug` | Gỡ lỗi hệ thống 4 giai đoạn với điều tra nguyên nhân gốc |
59
61
  | ♻️ | `refactor-safe` | Tái cấu trúc code mà không thay đổi hành vi |
60
- | ✅ | `verification-before-completion` | Yêu cầu bằng chứng trước khi tuyên bố xong |
61
- | 🔍 | `code-review` | Review diff ưu tiên bug, regression, test gap |
62
- | 📝 | `docs-writer` | Cập nhật docs từ hành vi thực tế đã xác minh |
62
+ | ✅ | `verification-before-completion` | Luật sắt: không tuyên bố xong mà không có bằng chứng mới |
63
+ | 🔍 | `code-review` | Cho nhận code review với phân loại mức độ |
64
+ | 📝 | `commit` | Tạo commit conventional với review thay đổi staged |
65
+ | 📖 | `docs-writer` | Cập nhật docs từ hành vi thực tế đã xác minh |
66
+ | 🧬 | `extract` | Trích xuất pattern, quyết định, bài học từ công việc |
67
+ | ⚡ | `go-pipeline` | Thực thi pipeline spec-to-commit trong một lượt |
63
68
 
64
69
  ### 🔄 Workflow Mặc Định
65
70
 
@@ -77,10 +82,13 @@ Repo này nhẹ hơn một sản phẩm workflow đầy đủ. Nó lấy tư duy
77
82
  ┌────────────┼────────────┐
78
83
  ▼ ▼ ▼
79
84
  ┌────────────┐ ┌───────────┐ ┌──────────────┐
80
- │ feature- │ │ bug-triage│ │ refactor-safe│
85
+ │ feature- │ │ debug │ │ refactor-safe│
81
86
  │ delivery │ │ │ │ │
82
87
  └─────┬──────┘ └─────┬─────┘ └──────┬───────┘
83
88
  │ │ │
89
+ │ ┌──────┴──────┐ │
90
+ │ │ TDD │ │
91
+ │ └──────┬──────┘ │
84
92
  ▼ ▼ ▼
85
93
  ┌─────────────────────────────────────────┐
86
94
  │ verification-before-completion │
@@ -88,7 +96,11 @@ Repo này nhẹ hơn một sản phẩm workflow đầy đủ. Nó lấy tư duy
88
96
 
89
97
  ┌─────────────┐
90
98
  │ code-review │
91
- └─────────────┘
99
+ └──────┬──────┘
100
+
101
+ ┌──────────┐
102
+ │ commit │
103
+ └──────────┘
92
104
  ```
93
105
 
94
106
  ### 📖 Nghiên Cứu Tham Khảo
@@ -73,19 +73,25 @@ Thư viện vận hành cá nhân với ba lớp:
73
73
  5. ⚙️ Phiên bản đầu dùng shell script đơn giản thay vì build system
74
74
  6. ✅ Planning và verification là các pha rõ ràng cho công việc thay đổi code
75
75
 
76
- ### 🎯 Phạm Vi Ban Đầu
77
-
78
- Phiên bản đầu tập trung vào các pattern giá trị ngay:
79
-
80
- - 🧭 Phân loại request
81
- - 💡 Làm rõ request hồ thành hướng đi cụ thể
82
- - 🗺️ Onboard vào repo
83
- - 🐛 Triage bug
84
- - 📐 Lập plan trước khi code
85
- - 🚀 Triển khai feature
86
- - Xác minh kết quả trước khi tuyên bố hoàn thành
87
- - 🔍 Review code
88
- - 📝 Cập nhật docs
76
+ ### 🎯 Phạm Vi Hiện Tại
77
+
78
+ Thư viện đã mở rộng vượt quá phạm vi v1 ban đầu. Bộ skill hiện tại bao phủ 15 pattern công việc lặp lại:
79
+
80
+ - 🧭 Phân loại request với `using-skills`
81
+ - 💡 Làm rõ ý tưởng viết spec với `brainstorming`
82
+ - 🗺️ Onboard vào repo lạ với `repo-onboarding`
83
+ - 🔎 Nghiên cứu code và pattern có sẵn với `research`
84
+ - 📐 Lập plan trước khi code với `planning`
85
+ - 🚀 Triển khai feature với `feature-delivery`
86
+ - 🧪 Implement theo test-first với `test-driven-development`
87
+ - 🐛 Gỡ lỗi có hệ thống với `debug`
88
+ - ♻️ Refactor an toàn với `refactor-safe`
89
+ - ✅ Xác minh kết quả trước khi tuyên bố hoàn thành với `verification-before-completion`
90
+ - 🔍 Cho và nhận code review với `code-review`
91
+ - 📝 Tạo commit có chủ đích với `commit`
92
+ - 📖 Cập nhật tài liệu với `docs-writer`
93
+ - 🧬 Trích xuất bài học tái sử dụng với `extract`
94
+ - ⚡ Chạy luồng spec-to-commit đã được duyệt với `go-pipeline`
89
95
 
90
96
  ### 🔮 Bước Tiếp Theo
91
97
 
@@ -10,7 +10,8 @@ These notes keep the library behavior consistent across agents and sessions.
10
10
  - Use `brainstorming` when the request is still fuzzy and the user is really asking for a clarified direction.
11
11
  - Use `planning` before code changes for multi-file, ambiguous, or higher-risk work.
12
12
  - Use `feature-delivery` only after the implementation path is concrete enough to execute.
13
- - Use `bug-triage` before fixing an issue whose cause is not yet grounded.
13
+ - Use `debug` before fixing an issue whose cause is not yet grounded.
14
+ - Use `test-driven-development` when implementing with TDD discipline (red-green-refactor).
14
15
  - Use `verification-before-completion` before any strong success claim.
15
16
  - Use `code-review` for review requests and post-implementation risk checks.
16
17
  - Use `repo-onboarding` when entering an unfamiliar codebase before productive work can begin.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anionzo/skill",
3
- "version": "1.4.0",
3
+ "version": "1.6.0",
4
4
  "description": "Personal AI Skill Library — vendor-neutral, multi-agent skill library for AI-powered software engineering",
5
5
  "bin": {
6
6
  "anionzo-skill": "scripts/install-opencode-skills"
@@ -2,7 +2,9 @@
2
2
 
3
3
  ## Purpose
4
4
 
5
- Refine a fuzzy request into a concrete direction that is clear enough to plan.
5
+ Refine a fuzzy request into a concrete direction, and when needed, lock decisions into a specification before implementation begins.
6
+
7
+ This skill combines idea exploration with spec-driven development: first clarify what to build, then optionally formalize it into a spec with locked decisions and acceptance criteria.
6
8
 
7
9
  ## When To Use
8
10
 
@@ -11,35 +13,196 @@ Load this skill when:
11
13
  - the user has an idea but not a settled approach
12
14
  - the scope or success criteria are still unclear
13
15
  - multiple reasonable options exist and the tradeoff matters
14
- - starting implementation immediately would force too many assumptions
16
+ - the user says "spec this", "define requirements", or "what should we build"
17
+ - planning a non-trivial feature that has ambiguous requirements
18
+ - multiple stakeholders need to agree on behavior before code is written
15
19
 
16
20
  Skip this skill and go directly to `planning` when the request is already specific: a named feature with clear scope, a known code path, or an explicit task with acceptance criteria.
17
21
 
18
- ## Workflow
22
+ ## Workflow Overview
23
+
24
+ **Phase 0: Explore** — clarify the idea, surface tradeoffs, extract decisions
25
+ **Phase 1: Lock Direction** — lock the recommended direction and scope boundary
26
+ **Phase 2: Write Spec** (optional) — formalize into a spec document with ACs
27
+ **Phase 3: Review** — get user approval before handoff
28
+
29
+ For simple clarifications, Phase 0 + Phase 1 is sufficient. For non-trivial features, continue through Phase 2 + Phase 3.
30
+
31
+ ## Phase 0: Explore
32
+
33
+ ### 0.1 Scope Assessment
34
+
35
+ Assess the request complexity:
36
+
37
+ - **Quick** — bounded, low ambiguity (rename a flag, tweak a label). Clarify and hand off to `planning`.
38
+ - **Standard** — normal feature with decisions to extract. Run full exploration.
39
+ - **Deep** — cross-cutting, strategic, or highly ambiguous. Run exploration with extra depth, then write a spec.
40
+
41
+ ### 0.2 Restate and Question
19
42
 
20
43
  1. Restate the request in plain language.
21
44
  2. Ask focused questions that reduce ambiguity quickly.
22
45
  3. Surface the most important tradeoffs, not every possible one.
23
- 4. Propose one or two viable directions with clear consequences.
24
- 5. Lock the current best direction, scope boundary, and open questions.
25
- 6. End with a handoff into `planning` when the request is concrete enough.
46
+
47
+ **HARD RULE: Ask ONE question at a time. Wait for the user's response before asking the next.**
48
+
49
+ Rules:
50
+
51
+ - One question per message — never bundled
52
+ - Single-select multiple choice preferred over open-ended
53
+ - Start broad (what/why/for whom) then narrow (constraints, edge cases)
54
+ - 3-4 questions per topic area, then checkpoint:
55
+ > "More questions about [area], or move on? (Remaining: [unvisited areas])"
56
+
57
+ ### 0.3 Gray Area Identification
58
+
59
+ Generate 2-4 gray areas — decisions that affect implementation but were not stated in the request. A gray area is a decision that would force the planner to make an assumption without it.
60
+
61
+ Quick codebase scout (grep, not deep analysis):
62
+
63
+ - check what already exists that is related
64
+ - annotate options with what the codebase already has
65
+
66
+ Filter OUT:
67
+
68
+ - technical implementation details (architecture, library choices) — that is `planning`'s job
69
+ - performance concerns
70
+ - scope expansion (new capabilities not requested)
71
+
72
+ ### 0.4 Decision Locking
73
+
74
+ After each gray area is resolved, lock the decision:
75
+
76
+ > "Lock decision D[N]: [summary]. Confirmed?"
77
+
78
+ Assign stable IDs: D1, D2, D3... These IDs carry forward into the spec.
79
+
80
+ **Scope creep response** — when the user suggests something outside scope:
81
+
82
+ > "[Feature X] is a new capability — noted as a separate work item. Back to [current area]: [question]"
83
+
84
+ ## Phase 1: Lock Direction
85
+
86
+ Summarize the exploration output. All three of the following must be written down explicitly:
87
+
88
+ 1. **Recommended direction** — the approach to take
89
+ 2. **At least one key constraint** — what limits or shapes the solution
90
+ 3. **Scope boundary** — what is in and what is out
91
+
92
+ Present viable options with consequences if multiple exist, but recommend one.
93
+
94
+ **For quick scope:** This is the final output. Hand off to `planning`.
95
+
96
+ **For standard/deep scope:** Continue to Phase 2.
97
+
98
+ ## Phase 2: Write Spec (For Standard/Deep Scope)
99
+
100
+ ### Spec Document Structure
101
+
102
+ ```markdown
103
+ ## Overview
104
+
105
+ Brief description of the feature and its purpose.
106
+
107
+ ## Locked Decisions
108
+
109
+ - D1: [Decision summary]
110
+ - D2: [Decision summary]
111
+
112
+ ## Requirements
113
+
114
+ ### Functional Requirements
115
+ - FR-1: [Requirement description]
116
+ - FR-2: [Requirement description]
117
+
118
+ ### Non-Functional Requirements
119
+ - NFR-1: [Performance, security, etc.]
120
+
121
+ ## Acceptance Criteria
122
+
123
+ - [ ] AC-1: [Testable criterion]
124
+ - [ ] AC-2: [Testable criterion]
125
+
126
+ ## Scenarios
127
+
128
+ ### Scenario 1: [Happy Path]
129
+ **Given** [context]
130
+ **When** [action]
131
+ **Then** [expected result]
132
+
133
+ ### Scenario 2: [Edge Case]
134
+ **Given** [context]
135
+ **When** [action]
136
+ **Then** [expected result]
137
+
138
+ ## Open Questions
139
+
140
+ - [ ] Question 1?
141
+ ```
142
+
143
+ ### Spec Quality Rules
144
+
145
+ - Requirements must be testable.
146
+ - Acceptance criteria must be observable outcomes, not vague goals.
147
+ - Scenarios should cover the happy path plus important edge cases.
148
+ - Open questions must stay explicit, not buried in prose.
149
+ - Keep the spec focused on WHAT, not HOW (implementation is `planning`'s job).
150
+
151
+ ## Phase 3: Review
152
+
153
+ Present the spec (or the locked direction for quick scope) and ask:
154
+
155
+ > Please review:
156
+ > - **Approve** if complete
157
+ > - **Edit** if you want to modify something
158
+ > - **Add more** if requirements are missing
159
+
160
+ Handle the response:
161
+
162
+ - **Approved** → hand off to next skill
163
+ - **Edit requested** → update, return to review
164
+ - **Add more** → gather additional requirements, update, return to review
26
165
 
27
166
  ## Output Format
28
167
 
29
- - clarified goal
30
- - constraints and assumptions
31
- - viable options considered
32
- - recommended direction
33
- - unresolved questions
34
- - next skill to invoke
168
+ Present results using the Shared Output Contract:
169
+
170
+ 1. **Goal/Result** the clarified direction, spec (if written), and approval status
171
+ 2. **Key Details:**
172
+ - locked decisions (D1, D2...)
173
+ - scope boundary (in/out)
174
+ - viable options considered with tradeoffs
175
+ - acceptance criteria (if spec written)
176
+ - open questions
177
+ 3. **Next Action** — after approval:
178
+ - to review each step: `planning` (with spec reference)
179
+ - to execute everything at once: `go-pipeline` (with spec reference)
180
+ - if requirements still unclear: state what decision is still needed
35
181
 
36
182
  ## Red Flags
37
183
 
38
184
  - diving into file-level implementation too early
39
185
  - asking many questions that do not change the decision
186
+ - batching multiple questions in one message (HARD RULE violation)
40
187
  - presenting vague options with no tradeoff explanation
41
188
  - pretending the problem is settled when key constraints are still unknown
189
+ - creating a spec without user input
190
+ - answering your own questions during exploration
191
+ - skipping the review step
192
+ - writing implementation notes instead of requirements
193
+ - leaving ambiguous acceptance criteria that cannot be verified
194
+
195
+ ## Checklist
196
+
197
+ - [ ] Scope assessed (quick/standard/deep)
198
+ - [ ] Request restated in plain language
199
+ - [ ] Gray areas identified and explored (one question at a time)
200
+ - [ ] Decisions locked with stable IDs (D1, D2...)
201
+ - [ ] Direction, constraint, and scope boundary documented
202
+ - [ ] Spec written (if standard/deep scope): overview, decisions, requirements, ACs, scenarios
203
+ - [ ] User reviewed and approved
204
+ - [ ] Next step communicated
42
205
 
43
206
  ## Done Criteria
44
207
 
45
- This skill is complete when all three of the following are written down explicitly: the recommended direction, at least one key constraint, and the scope boundary. At that point, `planning` can proceed without inventing missing requirements.
208
+ This skill is complete when the recommended direction, at least one key constraint, and the scope boundary are all written down explicitly. For standard/deep scope, the spec must be approved with acceptance criteria defined. If the spec is not approved, the skill is complete when the user has the information needed to make a decision.
@@ -1,23 +1,32 @@
1
1
  name: brainstorming
2
- version: 0.1.0
2
+ version: 0.2.0
3
3
  category: discovery
4
- summary: Turn a rough idea or underspecified request into a concrete, reviewable direction before planning begins.
5
- summary_vi: Biến ý tưởng thô hoặc request chưa rõ thành hướng đi cụ thể, có thể review, trước khi bắt đầu lập plan.
4
+ summary: Turn a rough idea into a concrete direction with locked decisions, optionally formalized into a spec with acceptance criteria.
5
+ summary_vi: "Biến ý tưởng thô thành hướng đi cụ thể với quyết định đã khóa, có thể formalize thành spec với acceptance criteria."
6
6
  triggers:
7
7
  - help me think this through
8
8
  - explore the approach first
9
9
  - the request is vague or underspecified
10
+ - spec this feature
11
+ - define requirements
12
+ - what should we build
13
+ - create a specification
10
14
  inputs:
11
- - rough idea
15
+ - rough idea or feature description
12
16
  - user goals and constraints
13
17
  outputs:
14
- - clarified goal
15
- - key decisions
16
- - open questions
17
- - handoff into planning
18
+ - clarified goal and direction
19
+ - locked decisions (D1, D2...)
20
+ - scope boundary
21
+ - optional spec with requirements and ACs
22
+ - approval status
18
23
  constraints:
19
- - avoid jumping into code or low-level implementation too early
20
- - keep the discussion concrete and decision-oriented
24
+ - ask one question at a time during exploration
25
+ - do not skip the review step
26
+ - keep focused on WHAT not HOW
21
27
  related_skills:
22
28
  - using-skills
23
29
  - planning
30
+ - research
31
+ - go-pipeline
32
+ - feature-delivery