@ngxtm/devkit 3.19.0 → 3.21.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 (204) hide show
  1. package/merged-commands/application-performance-performance-optimization.md +13 -13
  2. package/merged-commands/ask/fast.md +14 -57
  3. package/merged-commands/ask/hard.md +22 -79
  4. package/merged-commands/auto.md +6 -33
  5. package/merged-commands/backend-development-feature-development.md +12 -12
  6. package/merged-commands/bootstrap/auto/fast.md +15 -15
  7. package/merged-commands/bootstrap/auto/parallel.md +12 -12
  8. package/merged-commands/bootstrap/auto.md +14 -14
  9. package/merged-commands/bootstrap.md +15 -15
  10. package/merged-commands/brainstorm/fast.md +19 -72
  11. package/merged-commands/brainstorm/hard.md +23 -84
  12. package/merged-commands/c4-architecture-c4-architecture.md +5 -5
  13. package/merged-commands/code/auto.md +16 -16
  14. package/merged-commands/code/fast.md +19 -72
  15. package/merged-commands/code/hard.md +38 -122
  16. package/merged-commands/code/no-test.md +12 -12
  17. package/merged-commands/code/parallel.md +9 -9
  18. package/merged-commands/code.md +14 -14
  19. package/merged-commands/comprehensive-review-full-review.md +8 -8
  20. package/merged-commands/context-degradation.md +2 -2
  21. package/merged-commands/context-engineering.md +4 -4
  22. package/merged-commands/context-optimization.md +3 -3
  23. package/merged-commands/cook/auto/fast.md +3 -3
  24. package/merged-commands/cook/auto/parallel.md +9 -9
  25. package/merged-commands/cook/auto.md +1 -1
  26. package/merged-commands/cook/fast.md +38 -47
  27. package/merged-commands/cook/hard.md +46 -41
  28. package/merged-commands/cook.md +13 -13
  29. package/merged-commands/daily-news-report.md +15 -15
  30. package/merged-commands/data-engineering-data-driven-feature.md +16 -16
  31. package/merged-commands/debug/fast.md +13 -29
  32. package/merged-commands/debug/hard.md +47 -49
  33. package/merged-commands/debug.md +1 -1
  34. package/merged-commands/debugging-toolkit-smart-debug.md +1 -1
  35. package/merged-commands/deploy/check.md +22 -71
  36. package/merged-commands/deploy/preview.md +18 -62
  37. package/merged-commands/deploy/production.md +22 -71
  38. package/merged-commands/deploy/rollback.md +22 -71
  39. package/merged-commands/deploy.md +0 -11
  40. package/merged-commands/design/3d.md +3 -3
  41. package/merged-commands/design/describe.md +1 -1
  42. package/merged-commands/design/fast.md +2 -2
  43. package/merged-commands/design/good.md +3 -3
  44. package/merged-commands/design/hard.md +15 -85
  45. package/merged-commands/design/screenshot.md +1 -1
  46. package/merged-commands/design/video.md +1 -1
  47. package/merged-commands/design.md +0 -11
  48. package/merged-commands/doc-coauthoring.md +5 -5
  49. package/merged-commands/docker-expert.md +1 -1
  50. package/merged-commands/docs/audit.md +26 -77
  51. package/merged-commands/docs/business.md +26 -77
  52. package/merged-commands/docs/core.md +24 -68
  53. package/merged-commands/docs/init.md +8 -8
  54. package/merged-commands/docs/update.md +13 -13
  55. package/merged-commands/docs.md +0 -12
  56. package/merged-commands/error-debugging-multi-agent-review.md +1 -1
  57. package/merged-commands/error-diagnostics-smart-debug.md +1 -1
  58. package/merged-commands/finishing-a-development-branch.md +1 -1
  59. package/merged-commands/fix/ci.md +2 -2
  60. package/merged-commands/fix/fast.md +2 -2
  61. package/merged-commands/fix/hard.md +6 -6
  62. package/merged-commands/fix/logs.md +5 -5
  63. package/merged-commands/fix/parallel.md +9 -9
  64. package/merged-commands/fix/test.md +6 -6
  65. package/merged-commands/fix/ui.md +8 -8
  66. package/merged-commands/fixing.md +3 -3
  67. package/merged-commands/framework-migration-legacy-modernize.md +13 -13
  68. package/merged-commands/full-stack-orchestration-full-stack-feature.md +12 -12
  69. package/merged-commands/git/cm.md +1 -1
  70. package/merged-commands/git/cp.md +1 -1
  71. package/merged-commands/git/merge.md +1 -1
  72. package/merged-commands/git/pr.md +1 -1
  73. package/merged-commands/git-pr-workflows-git-workflow.md +10 -10
  74. package/merged-commands/google-adk-python.md +1 -1
  75. package/merged-commands/hr-pro.md +1 -1
  76. package/merged-commands/incident-response-incident-response.md +13 -13
  77. package/merged-commands/integrate/polar.md +3 -3
  78. package/merged-commands/integrate/sepay.md +3 -3
  79. package/merged-commands/journal.md +1 -1
  80. package/merged-commands/linear-claude-skill.md +2 -2
  81. package/merged-commands/loki-mode.md +14 -14
  82. package/merged-commands/machine-learning-ops-ml-pipeline.md +7 -7
  83. package/merged-commands/mcp-management.md +8 -8
  84. package/merged-commands/multi-agent-patterns.md +14 -14
  85. package/merged-commands/multi-platform-apps-multi-platform.md +10 -10
  86. package/merged-commands/nestjs-expert.md +1 -1
  87. package/merged-commands/performance-testing-review-multi-agent-review.md +1 -1
  88. package/merged-commands/plan/archive.md +1 -1
  89. package/merged-commands/plan/ci.md +1 -1
  90. package/merged-commands/plan/fast.md +2 -2
  91. package/merged-commands/plan/hard.md +4 -4
  92. package/merged-commands/plan/parallel.md +5 -5
  93. package/merged-commands/plan/two.md +6 -6
  94. package/merged-commands/recover.md +22 -0
  95. package/merged-commands/requesting-code-review.md +6 -6
  96. package/merged-commands/review/codebase/parallel.md +5 -5
  97. package/merged-commands/review/codebase.md +5 -5
  98. package/merged-commands/review/fast.md +13 -29
  99. package/merged-commands/review/hard.md +48 -49
  100. package/merged-commands/review.md +0 -11
  101. package/merged-commands/security-scanning-security-hardening.md +13 -13
  102. package/merged-commands/skill/add.md +6 -6
  103. package/merged-commands/skill/create.md +6 -6
  104. package/merged-commands/skill/fix-logs.md +6 -6
  105. package/merged-commands/skill/optimize/auto.md +1 -1
  106. package/merged-commands/skill/optimize.md +1 -1
  107. package/merged-commands/skill/plan.md +1 -1
  108. package/merged-commands/skill/sync.md +29 -5
  109. package/merged-commands/skill/update.md +6 -6
  110. package/merged-commands/subagent-driven-development.md +53 -53
  111. package/merged-commands/tdd-workflows-tdd-cycle.md +12 -12
  112. package/merged-commands/tdd-workflows-tdd-red.md +1 -1
  113. package/merged-commands/tdd-workflows-tdd-refactor.md +1 -1
  114. package/merged-commands/test/fast.md +22 -33
  115. package/merged-commands/test/hard.md +59 -56
  116. package/merged-commands/test/ui.md +1 -1
  117. package/merged-commands/test.md +1 -1
  118. package/merged-commands/typescript-expert.md +1 -1
  119. package/merged-commands/use-mcp.md +5 -5
  120. package/merged-commands/writing-plans.md +3 -3
  121. package/merged-commands/writing-skills.md +8 -8
  122. package/package.json +1 -1
  123. package/rules/base/auto-skill.md +60 -0
  124. package/rules/base/command-routing.md +58 -0
  125. package/rules/base/context-checkpoint.md +38 -0
  126. package/rules-index.json +1 -1
  127. package/scripts/organize-rules.js +9 -0
  128. package/skills/application-performance-performance-optimization/SKILL.md +13 -13
  129. package/skills/azure-ai-agents-python/references/tools.md +1 -1
  130. package/skills/backend-development-feature-development/SKILL.md +12 -12
  131. package/skills/best-practices/references/anti-patterns.md +2 -2
  132. package/skills/best-practices/references/best-practices-guide.md +14 -14
  133. package/skills/c4-architecture-c4-architecture/SKILL.md +5 -5
  134. package/skills/comprehensive-review-full-review/SKILL.md +8 -8
  135. package/skills/context-degradation/SKILL.md +2 -2
  136. package/skills/context-engineering/SKILL.md +4 -4
  137. package/skills/context-engineering/references/context-degradation.md +1 -1
  138. package/skills/context-engineering/references/context-optimization.md +1 -1
  139. package/skills/context-engineering/references/multi-agent-patterns.md +1 -1
  140. package/skills/context-engineering/references/runtime-awareness.md +1 -1
  141. package/skills/context-optimization/SKILL.md +3 -3
  142. package/skills/daily-news-report/SKILL.md +15 -15
  143. package/skills/data-engineering-data-driven-feature/SKILL.md +16 -16
  144. package/skills/debugging-toolkit-smart-debug/SKILL.md +1 -1
  145. package/skills/doc-coauthoring/SKILL.md +5 -5
  146. package/skills/docker-expert/SKILL.md +1 -1
  147. package/skills/error-debugging-multi-agent-review/SKILL.md +1 -1
  148. package/skills/error-diagnostics-smart-debug/SKILL.md +1 -1
  149. package/skills/finishing-a-development-branch/SKILL.md +1 -1
  150. package/skills/fixing/SKILL.md +3 -3
  151. package/skills/fixing/references/parallel-exploration.md +4 -4
  152. package/skills/fixing/references/skill-activation-matrix.md +3 -3
  153. package/skills/fixing/references/workflow-deep.md +11 -11
  154. package/skills/fixing/references/workflow-quick.md +4 -4
  155. package/skills/fixing/references/workflow-standard.md +12 -12
  156. package/skills/framework-migration-legacy-modernize/SKILL.md +13 -13
  157. package/skills/full-stack-orchestration-full-stack-feature/SKILL.md +12 -12
  158. package/skills/git-pr-workflows-git-workflow/SKILL.md +10 -10
  159. package/skills/google-adk-python/SKILL.md +1 -1
  160. package/skills/hr-pro/SKILL.md +1 -1
  161. package/skills/incident-response-incident-response/SKILL.md +13 -13
  162. package/skills/incident-response-smart-fix/resources/implementation-playbook.md +17 -17
  163. package/skills/linear-claude-skill/SKILL.md +2 -2
  164. package/skills/loki-mode/ACKNOWLEDGEMENTS.md +4 -4
  165. package/skills/loki-mode/CHANGELOG.md +9 -9
  166. package/skills/loki-mode/CONTEXT-EXPORT.md +1 -1
  167. package/skills/loki-mode/README.md +2 -2
  168. package/skills/loki-mode/SKILL.md +14 -14
  169. package/skills/loki-mode/autonomy/run.sh +1 -1
  170. package/skills/loki-mode/integrations/vibe-kanban.md +1 -1
  171. package/skills/loki-mode/references/core-workflow.md +4 -4
  172. package/skills/loki-mode/references/production-patterns.md +6 -6
  173. package/skills/loki-mode/references/quality-control.md +2 -2
  174. package/skills/loki-mode/references/sdlc-phases.md +3 -3
  175. package/skills/machine-learning-ops-ml-pipeline/SKILL.md +7 -7
  176. package/skills/mcp-builder/reference/evaluation.md +3 -3
  177. package/skills/mcp-management/README.md +6 -6
  178. package/skills/mcp-management/SKILL.md +8 -8
  179. package/skills/mcp-management/references/gemini-cli-integration.md +1 -1
  180. package/skills/multi-agent-patterns/SKILL.md +14 -14
  181. package/skills/multi-platform-apps-multi-platform/SKILL.md +10 -10
  182. package/skills/nestjs-expert/SKILL.md +1 -1
  183. package/skills/performance-testing-review-multi-agent-review/SKILL.md +1 -1
  184. package/skills/planning-with-files/reference.md +2 -2
  185. package/skills/requesting-code-review/SKILL.md +6 -6
  186. package/skills/security-scanning-security-hardening/SKILL.md +13 -13
  187. package/skills/subagent-driven-development/SKILL.md +53 -53
  188. package/skills/subagent-driven-development/code-quality-reviewer-prompt.md +1 -1
  189. package/skills/subagent-driven-development/implementer-prompt.md +3 -3
  190. package/skills/subagent-driven-development/spec-reviewer-prompt.md +1 -1
  191. package/skills/tdd-workflows-tdd-cycle/SKILL.md +12 -12
  192. package/skills/tdd-workflows-tdd-green/resources/implementation-playbook.md +1 -1
  193. package/skills/tdd-workflows-tdd-red/SKILL.md +1 -1
  194. package/skills/tdd-workflows-tdd-refactor/SKILL.md +1 -1
  195. package/skills/typescript-expert/SKILL.md +1 -1
  196. package/skills/writing-plans/SKILL.md +3 -3
  197. package/skills/writing-skills/SKILL.md +8 -8
  198. package/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +1 -1
  199. package/skills/writing-skills/references/cso/README.md +3 -3
  200. package/skills/writing-skills/testing-skills-with-subagents.md +1 -1
  201. package/skills-graph.json +1 -1
  202. package/templates/base/rules/auto-skill.md +16 -96
  203. package/templates/base/rules/command-routing.md +0 -13
  204. package/templates/base/rules/context-checkpoint.md +38 -0
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: 🔒 Audit Docs — Generate 4 security and compliance documentation files
2
+ description: Audit Docs — Generate 4 security and compliance documentation files
3
3
  version: "1.0"
4
4
  category: documentation
5
5
  execution-mode: execute
@@ -13,42 +13,13 @@ execution-mode: execute
13
13
 
14
14
  ---
15
15
 
16
- ## 🛑 PRE-FLIGHT (DO FIRST BLOCKS PHASE 1)
17
-
18
- **LOAD now** (in order; path `./rules/` or `~/.{TOOL}/skills/agent-assistant/rules/`):
19
-
20
- 1. ORCHESTRATION-LAWS.md
21
- 2. ADAPTIVE-EXECUTION.md
22
- 3. EXECUTION-PROTOCOL.md
23
-
24
- **⛔ Do not run Phase 1 until all are loaded.** Follow **all** rules in those files; they override any conflicting instructions in this file.
25
-
26
- ---
27
-
28
- ## 🔀 TIERED EXECUTION PROTOCOL (MANDATORY)
29
-
30
- > **Reference**: `{RULES_PATH}/ADAPTIVE-EXECUTION.md`
31
-
32
- ```yaml
33
- tiered_execution:
34
- principle: "Sub-agent FIRST (Tier 1). EMBODY ONLY on system failure (Tier 2)."
35
- for_each_phase:
36
- TIER_1_MANDATORY: "IF tool exists → MUST use SUB_AGENT_DELEGATION"
37
- TIER_2_FALLBACK: "ONLY on system error—NOT complexity/preference/speed"
38
- anti_lazy_fallback:
39
- - ❌ NEVER use Tier 2 when Tier 1 tool is available
40
- - ✅ ALWAYS attempt Tier 1 first when tool exists
41
- ```
42
-
43
- ---
44
-
45
- ## 📦 DELIVERABLES (REQUIRED — ALL 4 FILES)
16
+ ## DELIVERABLES (REQUIREDALL 4 FILES)
46
17
 
47
18
  > [!CAUTION]
48
19
  > **MUST CREATE ALL 4 FILES**. Incomplete = FAILED execution.
49
20
 
50
- > **⛔ DOCUMENT LANGUAGE — NON-NEGOTIABLE**
51
- > Every file under `./documents/` must be written in **English only**. Do not use the user's language (e.g. Vietnamese) for file content. (ORCHESTRATION-LAWS § LAW 6.)
21
+ > **DOCUMENT LANGUAGE — NON-NEGOTIABLE**
22
+ > Every file under `./documents/` must be written in **English only**. Do not use the user's language (e.g. Vietnamese) for file content.
52
23
 
53
24
  | File | Purpose |
54
25
  | -------------------------------------------- | -------------------------------- |
@@ -59,29 +30,21 @@ tiered_execution:
59
30
 
60
31
  ---
61
32
 
62
- ## ⛔ INCREMENTAL EXECUTION (MANDATORY)
63
-
64
- One phase at a time, each phase independent: Phase 1 → then Phase 2 → … in one reply. No batching (load only what each phase needs). **Within each phase:** when doing a part, output it in format so user sees what’s happening (announce before doing).
33
+ ## Execution
34
+ One phase at a time, sequential. Each phase must complete before next begins.
65
35
 
66
36
  ---
67
37
 
68
- ## 🎭 Phase 1: SECURITY ANALYSIS
38
+ ## Phase 1: SECURITY ANALYSIS
69
39
 
70
40
  | Attribute | Value |
71
41
  | --------- | ---------------------------- |
72
- | **Agent** | `security-engineer` |
42
+ | **Role** | `security-engineer` |
73
43
  | **Goal** | Complete security assessment |
74
44
 
75
- ### ⚡ TIERED EXECUTION
76
-
77
- **TIER 1 (MANDATORY when tool exists):**
45
+ ### Delegation
78
46
 
79
- > Invoke runSubagent for `security-engineer`. Context: ISOLATED.
80
-
81
- **TIER 2 (FALLBACK on system error only):**
82
-
83
- > Load `{AGENTS_PATH}/security-engineer.md`
84
- > EMBODY [security-engineer] — Requires logged system error justification.
47
+ > Task(subagent_type="general-purpose", prompt="You are a security-engineer. Perform a complete security assessment. Exit when vulnerabilities are identified, OWASP checklist is complete, and risk assessment is done.", description="security-engineer: Complete security assessment")
85
48
 
86
49
  **Exit Criteria:**
87
50
 
@@ -91,23 +54,16 @@ One phase at a time, each phase independent: Phase 1 → then Phase 2 → … in
91
54
 
92
55
  ---
93
56
 
94
- ## 🎭 Phase 2: CODEBASE SCAN
57
+ ## Phase 2: CODEBASE SCAN
95
58
 
96
59
  | Attribute | Value |
97
60
  | --------- | ---------------------------------- |
98
- | **Agent** | `scouter` |
61
+ | **Role** | `scouter` |
99
62
  | **Goal** | Map data flows and sensitive areas |
100
63
 
101
- ### ⚡ TIERED EXECUTION
102
-
103
- **TIER 1 (MANDATORY when tool exists):**
64
+ ### Delegation
104
65
 
105
- > Invoke runSubagent for `scouter`. Context: ISOLATED.
106
-
107
- **TIER 2 (FALLBACK on system error only):**
108
-
109
- > Load `{AGENTS_PATH}/scouter.md`
110
- > EMBODY [scouter] — Requires logged system error justification.
66
+ > Task(subagent_type="general-purpose", prompt="You are a scouter. Map data flows and sensitive areas in the codebase. Exit when data flows are mapped, sensitive data is identified, and integration points are cataloged.", description="scouter: Map data flows and sensitive areas")
111
67
 
112
68
  **Exit Criteria:**
113
69
 
@@ -117,23 +73,16 @@ One phase at a time, each phase independent: Phase 1 → then Phase 2 → … in
117
73
 
118
74
  ---
119
75
 
120
- ## 🎭 Phase 3: GENERATE ALL 4 DOCUMENTS
76
+ ## Phase 3: GENERATE ALL 4 DOCUMENTS
121
77
 
122
78
  | Attribute | Value |
123
79
  | --------- | ---------------------------------------------------------------------------------------------- |
124
- | **Agent** | `docs-manager` |
80
+ | **Role** | `docs-manager` |
125
81
  | **Goal** | Create all 4 audit documentation files in **English only** (no user-language content in files) |
126
82
 
127
- ### ⚡ TIERED EXECUTION
128
-
129
- **TIER 1 (MANDATORY when tool exists):**
130
-
131
- > Invoke runSubagent for `docs-manager`. Context: ISOLATED.
132
-
133
- **TIER 2 (FALLBACK on system error only):**
83
+ ### Delegation
134
84
 
135
- > Load `{AGENTS_PATH}/docs-manager.md`
136
- > EMBODY [docs-manager] — Requires logged system error justification.
85
+ > Task(subagent_type="general-purpose", prompt="You are a docs-manager. Create all 4 audit documentation files in English only: audit-security.md, audit-compliance.md, audit-dataflow.md, audit-recommendations.md. Exit when all 4 files are created.", description="docs-manager: Create all 4 audit documentation files")
137
86
 
138
87
  **Exit Criteria:**
139
88
 
@@ -144,16 +93,16 @@ One phase at a time, each phase independent: Phase 1 → then Phase 2 → … in
144
93
 
145
94
  ---
146
95
 
147
- ## VERIFICATION
96
+ ## VERIFICATION
148
97
 
149
98
  Before completion, verify ALL 4 files exist:
150
99
 
151
100
  ```
152
101
  ./documents/audit/
153
- ├── audit-security.md
154
- ├── audit-compliance.md
155
- ├── audit-dataflow.md
156
- └── audit-recommendations.md
102
+ ├── audit-security.md
103
+ ├── audit-compliance.md
104
+ ├── audit-dataflow.md
105
+ └── audit-recommendations.md
157
106
  ```
158
107
 
159
108
  ---
@@ -162,6 +111,6 @@ Before completion, verify ALL 4 files exist:
162
111
 
163
112
  Report status:
164
113
 
165
- 1. **Complete** — All 4 audit docs created
166
- 2. **Incomplete** — List missing files
167
- 3. 🔒 **Follow-up** — Address critical findings
114
+ 1. **Complete** — All 4 audit docs created
115
+ 2. **Incomplete** — List missing files
116
+ 3. **Follow-up** — Address critical findings
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: 📊 Business Docs — Generate 4 business documentation files
2
+ description: Business Docs — Generate 4 business documentation files
3
3
  version: "1.0"
4
4
  category: documentation
5
5
  execution-mode: execute
@@ -13,42 +13,13 @@ execution-mode: execute
13
13
 
14
14
  ---
15
15
 
16
- ## 🛑 PRE-FLIGHT (DO FIRST BLOCKS PHASE 1)
17
-
18
- **LOAD now** (in order; path `./rules/` or `~/.{TOOL}/skills/agent-assistant/rules/`):
19
-
20
- 1. ORCHESTRATION-LAWS.md
21
- 2. ADAPTIVE-EXECUTION.md
22
- 3. EXECUTION-PROTOCOL.md
23
-
24
- **⛔ Do not run Phase 1 until all are loaded.** Follow **all** rules in those files; they override any conflicting instructions in this file.
25
-
26
- ---
27
-
28
- ## 🔀 TIERED EXECUTION PROTOCOL (MANDATORY)
29
-
30
- > **Reference**: `{RULES_PATH}/ADAPTIVE-EXECUTION.md`
31
-
32
- ```yaml
33
- tiered_execution:
34
- principle: "Sub-agent FIRST (Tier 1). EMBODY ONLY on system failure (Tier 2)."
35
- for_each_phase:
36
- TIER_1_MANDATORY: "IF tool exists → MUST use SUB_AGENT_DELEGATION"
37
- TIER_2_FALLBACK: "ONLY on system error—NOT complexity/preference/speed"
38
- anti_lazy_fallback:
39
- - ❌ NEVER use Tier 2 when Tier 1 tool is available
40
- - ✅ ALWAYS attempt Tier 1 first when tool exists
41
- ```
42
-
43
- ---
44
-
45
- ## 📦 DELIVERABLES (REQUIRED — ALL 4 FILES)
16
+ ## DELIVERABLES (REQUIREDALL 4 FILES)
46
17
 
47
18
  > [!CAUTION]
48
19
  > **MUST CREATE ALL 4 FILES**. Incomplete = FAILED execution.
49
20
 
50
- > **⛔ DOCUMENT LANGUAGE — NON-NEGOTIABLE**
51
- > Every file under `./documents/` must be written in **English only**. Do not use the user's language (e.g. Vietnamese) for file content. (ORCHESTRATION-LAWS § LAW 6.)
21
+ > **DOCUMENT LANGUAGE — NON-NEGOTIABLE**
22
+ > Every file under `./documents/` must be written in **English only**. Do not use the user's language (e.g. Vietnamese) for file content.
52
23
 
53
24
  | File | Purpose |
54
25
  | -------------------------------------------- | ----------------------------- |
@@ -59,29 +30,21 @@ tiered_execution:
59
30
 
60
31
  ---
61
32
 
62
- ## ⛔ INCREMENTAL EXECUTION (MANDATORY)
63
-
64
- One phase at a time, each phase independent: Phase 1 → then Phase 2 → … in one reply. No batching (load only what each phase needs). **Within each phase:** when doing a part, output it in format so user sees what’s happening (announce before doing).
33
+ ## Execution
34
+ One phase at a time, sequential. Each phase must complete before next begins.
65
35
 
66
36
  ---
67
37
 
68
- ## 🎭 Phase 1: CODEBASE & REQUIREMENTS ANALYSIS
38
+ ## Phase 1: CODEBASE & REQUIREMENTS ANALYSIS
69
39
 
70
40
  | Attribute | Value |
71
41
  | --------- | ------------------------------------ |
72
- | **Agent** | `scouter` |
42
+ | **Role** | `scouter` |
73
43
  | **Goal** | Identify business logic and features |
74
44
 
75
- ### ⚡ TIERED EXECUTION
76
-
77
- **TIER 1 (MANDATORY when tool exists):**
45
+ ### Delegation
78
46
 
79
- > Invoke runSubagent for `scouter`. Context: ISOLATED.
80
-
81
- **TIER 2 (FALLBACK on system error only):**
82
-
83
- > Load `{AGENTS_PATH}/scouter.md`
84
- > EMBODY [scouter] — Requires logged system error justification.
47
+ > Task(subagent_type="general-purpose", prompt="You are a scouter. Identify business logic and features in the codebase. Exit when business logic is identified, features are cataloged, and domain terms are noted.", description="scouter: Identify business logic and features")
85
48
 
86
49
  **Exit Criteria:**
87
50
 
@@ -91,23 +54,16 @@ One phase at a time, each phase independent: Phase 1 → then Phase 2 → … in
91
54
 
92
55
  ---
93
56
 
94
- ## 🎭 Phase 2: BUSINESS ANALYSIS
57
+ ## Phase 2: BUSINESS ANALYSIS
95
58
 
96
59
  | Attribute | Value |
97
60
  | --------- | ------------------------ |
98
- | **Agent** | `business-analyst` |
61
+ | **Role** | `business-analyst` |
99
62
  | **Goal** | Analyze business context |
100
63
 
101
- ### ⚡ TIERED EXECUTION
102
-
103
- **TIER 1 (MANDATORY when tool exists):**
64
+ ### Delegation
104
65
 
105
- > Invoke runSubagent for `business-analyst`. Context: ISOLATED.
106
-
107
- **TIER 2 (FALLBACK on system error only):**
108
-
109
- > Load `{AGENTS_PATH}/business-analyst.md`
110
- > EMBODY [business-analyst] — Requires logged system error justification.
66
+ > Task(subagent_type="general-purpose", prompt="You are a business-analyst. Analyze business context. Exit when business goals are understood, stakeholders are identified, and workflows are mapped.", description="business-analyst: Analyze business context")
111
67
 
112
68
  **Exit Criteria:**
113
69
 
@@ -117,23 +73,16 @@ One phase at a time, each phase independent: Phase 1 → then Phase 2 → … in
117
73
 
118
74
  ---
119
75
 
120
- ## 🎭 Phase 3: GENERATE ALL 4 DOCUMENTS
76
+ ## Phase 3: GENERATE ALL 4 DOCUMENTS
121
77
 
122
78
  | Attribute | Value |
123
79
  | --------- | ------------------------------------------------------------------------------------------------- |
124
- | **Agent** | `docs-manager` |
80
+ | **Role** | `docs-manager` |
125
81
  | **Goal** | Create all 4 business documentation files in **English only** (no user-language content in files) |
126
82
 
127
- ### ⚡ TIERED EXECUTION
128
-
129
- **TIER 1 (MANDATORY when tool exists):**
130
-
131
- > Invoke runSubagent for `docs-manager`. Context: ISOLATED.
132
-
133
- **TIER 2 (FALLBACK on system error only):**
83
+ ### Delegation
134
84
 
135
- > Load `{AGENTS_PATH}/docs-manager.md`
136
- > EMBODY [docs-manager] — Requires logged system error justification.
85
+ > Task(subagent_type="general-purpose", prompt="You are a docs-manager. Create all 4 business documentation files in English only: business-prd.md, business-features.md, business-workflows.md, business-glossary.md. Exit when all 4 files are created.", description="docs-manager: Create all 4 business documentation files")
137
86
 
138
87
  **Exit Criteria:**
139
88
 
@@ -144,16 +93,16 @@ One phase at a time, each phase independent: Phase 1 → then Phase 2 → … in
144
93
 
145
94
  ---
146
95
 
147
- ## VERIFICATION
96
+ ## VERIFICATION
148
97
 
149
98
  Before completion, verify ALL 4 files exist:
150
99
 
151
100
  ```
152
101
  ./documents/business/
153
- ├── business-prd.md
154
- ├── business-features.md
155
- ├── business-workflows.md
156
- └── business-glossary.md
102
+ ├── business-prd.md
103
+ ├── business-features.md
104
+ ├── business-workflows.md
105
+ └── business-glossary.md
157
106
  ```
158
107
 
159
108
  ---
@@ -162,6 +111,6 @@ Before completion, verify ALL 4 files exist:
162
111
 
163
112
  Report status:
164
113
 
165
- 1. **Complete** — All 4 business docs created
166
- 2. **Incomplete** — List missing files
167
- 3. 📝 **Continue** → `/docs:audit` for audit docs
114
+ 1. **Complete** — All 4 business docs created
115
+ 2. **Incomplete** — List missing files
116
+ 3. **Continue** → `/docs:audit` for audit docs
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: 💻 Core Docs — Generate 5 essential technical documentation files
2
+ description: Core Docs — Generate 5 essential technical documentation files
3
3
  version: "1.0"
4
4
  category: documentation
5
5
  execution-mode: execute
@@ -13,42 +13,13 @@ execution-mode: execute
13
13
 
14
14
  ---
15
15
 
16
- ## 🛑 PRE-FLIGHT (DO FIRST BLOCKS PHASE 1)
17
-
18
- **LOAD now** (in order; path `./rules/` or `~/.{TOOL}/skills/agent-assistant/rules/`):
19
-
20
- 1. ORCHESTRATION-LAWS.md
21
- 2. ADAPTIVE-EXECUTION.md
22
- 3. EXECUTION-PROTOCOL.md
23
-
24
- **⛔ Do not run Phase 1 until all are loaded.** Follow **all** rules in those files; they override any conflicting instructions in this file.
25
-
26
- ---
27
-
28
- ## 🔀 TIERED EXECUTION PROTOCOL (MANDATORY)
29
-
30
- > **Reference**: `{RULES_PATH}/ADAPTIVE-EXECUTION.md`
31
-
32
- ```yaml
33
- tiered_execution:
34
- principle: "Sub-agent FIRST (Tier 1). EMBODY ONLY on system failure (Tier 2)."
35
- for_each_phase:
36
- TIER_1_MANDATORY: "IF tool exists → MUST use SUB_AGENT_DELEGATION"
37
- TIER_2_FALLBACK: "ONLY on system error—NOT complexity/preference/speed"
38
- anti_lazy_fallback:
39
- - ❌ NEVER use Tier 2 when Tier 1 tool is available
40
- - ✅ ALWAYS attempt Tier 1 first when tool exists
41
- ```
42
-
43
- ---
44
-
45
- ## 📦 DELIVERABLES (REQUIRED — ALL 5 FILES)
16
+ ## DELIVERABLES (REQUIREDALL 5 FILES)
46
17
 
47
18
  > [!CAUTION]
48
19
  > **MUST CREATE ALL 5 FILES**. Incomplete = FAILED execution.
49
20
 
50
- > **⛔ DOCUMENT LANGUAGE — NON-NEGOTIABLE**
51
- > Every file under `./documents/` must be written in **English only**. Headings, body text, tables, and lists must be in English. Do not use the user's language (e.g. Vietnamese) for file content. Chat/UI may follow user language; document files do not. (ORCHESTRATION-LAWS § LAW 6.)
21
+ > **DOCUMENT LANGUAGE — NON-NEGOTIABLE**
22
+ > Every file under `./documents/` must be written in **English only**. Headings, body text, tables, and lists must be in English. Do not use the user's language (e.g. Vietnamese) for file content. Chat/UI may follow user language; document files do not.
52
23
 
53
24
  | File | Purpose |
54
25
  | --------------------------------------- | ------------------------------------------------------------- |
@@ -58,7 +29,7 @@ tiered_execution:
58
29
  | `./documents/knowledge-source-base.md` | Directory structure, file purposes, entry points, key modules |
59
30
  | `./documents/knowledge-standards.md` | Code style, naming conventions, commit format, guidelines |
60
31
 
61
- ### 📋 File Purpose Details
32
+ ### File Purpose Details
62
33
 
63
34
  | File | AI Uses It For | Key Sections |
64
35
  |------|----------------|--------------|
@@ -70,29 +41,21 @@ tiered_execution:
70
41
 
71
42
  ---
72
43
 
73
- ## ⛔ INCREMENTAL EXECUTION (MANDATORY)
74
-
75
- One phase at a time, each phase independent: Phase 1 → then Phase 2 → … in one reply. No batching (load only what each phase needs). **Within each phase:** when doing a part, output it in format so user sees what’s happening (announce before doing).
44
+ ## Execution
45
+ One phase at a time, sequential. Each phase must complete before next begins.
76
46
 
77
47
  ---
78
48
 
79
- ## 🎭 Phase 1: CODEBASE ANALYSIS
49
+ ## Phase 1: CODEBASE ANALYSIS
80
50
 
81
51
  | Attribute | Value |
82
52
  | --------- | ----------------------------------------- |
83
- | **Agent** | `scouter` |
53
+ | **Role** | `scouter` |
84
54
  | **Goal** | Scan entire project structure and content |
85
55
 
86
- ### ⚡ TIERED EXECUTION
87
-
88
- **TIER 1 (MANDATORY when tool exists):**
89
-
90
- > Invoke runSubagent for `scouter`. Context: ISOLATED.
56
+ ### Delegation
91
57
 
92
- **TIER 2 (FALLBACK on system error only):**
93
-
94
- > Load `{AGENTS_PATH}/scouter.md`
95
- > EMBODY [scouter] — Requires logged system error justification.
58
+ > Task(subagent_type="general-purpose", prompt="You are a scouter. Scan the entire project structure and content. List all directories and files, identify tech stack from package.json/config files, map dependencies and relationships, and note patterns and conventions used. Exit when project structure is mapped, tech stack is identified, and key files are located.", description="scouter: Scan entire project structure and content")
96
59
 
97
60
  **Actions**:
98
61
 
@@ -109,23 +72,16 @@ One phase at a time, each phase independent: Phase 1 → then Phase 2 → … in
109
72
 
110
73
  ---
111
74
 
112
- ## 🎭 Phase 2: GENERATE ALL 5 DOCUMENTS
75
+ ## Phase 2: GENERATE ALL 5 DOCUMENTS
113
76
 
114
77
  | Attribute | Value |
115
78
  | --------- | --------------------------------------------------------------------------------------------------------------- |
116
- | **Agent** | `docs-manager` |
79
+ | **Role** | `docs-manager` |
117
80
  | **Goal** | Create all 5 documentation files in **English only** (headings, body, tables—no user-language content in files) |
118
81
 
119
- ### ⚡ TIERED EXECUTION
120
-
121
- **TIER 1 (MANDATORY when tool exists):**
122
-
123
- > Invoke runSubagent for `docs-manager`. Context: ISOLATED.
124
-
125
- **TIER 2 (FALLBACK on system error only):**
82
+ ### Delegation
126
83
 
127
- > Load `{AGENTS_PATH}/docs-manager.md`
128
- > EMBODY [docs-manager] — Requires logged system error justification.
84
+ > Task(subagent_type="general-purpose", prompt="You are a docs-manager. Create all 5 documentation files in English only: knowledge-overview.md, knowledge-architecture.md, knowledge-domain.md, knowledge-source-base.md, knowledge-standards.md. Exit when all 5 files are created.", description="docs-manager: Create all 5 documentation files")
129
85
 
130
86
  **Exit Criteria:**
131
87
 
@@ -137,17 +93,17 @@ One phase at a time, each phase independent: Phase 1 → then Phase 2 → … in
137
93
 
138
94
  ---
139
95
 
140
- ## VERIFICATION
96
+ ## VERIFICATION
141
97
 
142
98
  Before completion, verify ALL 5 files exist:
143
99
 
144
100
  ```
145
101
  ./documents/
146
- ├── knowledge-overview.md
147
- ├── knowledge-architecture.md
148
- ├── knowledge-domain.md
149
- ├── knowledge-source-base.md
150
- └── knowledge-standards.md
102
+ ├── knowledge-overview.md
103
+ ├── knowledge-architecture.md
104
+ ├── knowledge-domain.md
105
+ ├── knowledge-source-base.md
106
+ └── knowledge-standards.md
151
107
  ```
152
108
 
153
109
  ---
@@ -156,6 +112,6 @@ Before completion, verify ALL 5 files exist:
156
112
 
157
113
  Report status:
158
114
 
159
- 1. **Complete** — All 5 core docs created
160
- 2. **Incomplete** — List missing files
161
- 3. 📝 **Continue** → `/docs:business` for business docs
115
+ 1. **Complete** — All 5 core docs created
116
+ 2. **Incomplete** — List missing files
117
+ 3. **Continue** → `/docs:business` for business docs
@@ -6,16 +6,16 @@ description: ⚡⚡⚡⚡ Analyze the codebase and create initial documentation
6
6
 
7
7
  1. Scan the codebase and calculate the number of files with LOC in each directory (skip credentials, cache or external modules directories, such as `.claude`, `.opencode`, `.git`, `tests`, `node_modules`, `__pycache__`, `secrets`, etc.)
8
8
  2. Target directories **that actually exist** - adapt to project structure, don't hardcode paths
9
- 3. Main agent spawns multiple `scout` subagents via Task tool:
10
- - Write a detailed instructions prompt for each scout subagent with exact directories or files it should read
11
- - Each scout subagent has less than 200K tokens of context window
12
- - Amount of scouts depends on the current system resources available and project size in step 1
13
- - Each scout subagent must return a detailed summary report to a main agent
14
- 5. Main agent merges scout reports into context summary and delegate to `docs-manager` agent to update documentation (next phase)
9
+ 3. Main agent spawns multiple Task agents for scouting via Task tool: Task(subagent_type="general-purpose", prompt="You are a scout. Read and analyze these directories...", description="Scout [area]")
10
+ - Write a detailed instructions prompt for each Task agent with exact directories or files it should read
11
+ - Each Task agent has less than 200K tokens of context window
12
+ - Amount of Task agents depends on the current system resources available and project size in step 1
13
+ - Each Task agent must return a detailed summary report to a main agent
14
+ 5. Main agent merges scout reports into context summary and delegate to Task agent for docs management to update documentation (next phase)
15
15
 
16
- ## Phase 2: Documentation Creation (docs-manager Agent)
16
+ ## Phase 2: Documentation Creation (Task Agent for Docs Management)
17
17
 
18
- Pass the gathered file list to `docs-manager` agent to create initial documentation:
18
+ Pass the gathered file list to Task agent for docs management to create initial documentation: Task(subagent_type="general-purpose", prompt="You are a docs-manager. Create initial documentation...", description="Create documentation")
19
19
  - `README.md`: Update README with initial documentation (keep it under 300 lines)
20
20
  - `docs/project-overview-pdr.md`: Project overview and PDR (Product Development Requirements)
21
21
  - `docs/codebase-summary.md`: Codebase summary
@@ -6,25 +6,25 @@ description: ⚡⚡⚡ Analyze the codebase and update documentation
6
6
 
7
7
  1. Scan the codebase and calculate the number of files with LOC in each directory (skip credentials, cache or external modules directories, such as `.claude`, `.opencode`, `.git`, `tests`, `node_modules`, `__pycache__`, `secrets`, etc.)
8
8
  2. Target directories **that actually exist** - adapt to project structure, don't hardcode paths
9
- 3. Main agent spawns multiple `scout` subagents via Task tool:
10
- - Write a detailed instructions prompt for each scout subagent with exact directories or files it should read
11
- - Each scout subagent has less than 200K tokens of context window
12
- - Amount of scouts depends on the current system resources available and project size in step 1
13
- - Each scout subagent must return a detailed summary report to a main agent
14
- 5. Main agent merges scout reports into context summary and delegate to `docs-manager` agent to update documentation (next phase)
9
+ 3. Main agent spawns multiple Task agents for scouting via Task tool: Task(subagent_type="general-purpose", prompt="You are a scout. Read and analyze these directories...", description="Scout [area]")
10
+ - Write a detailed instructions prompt for each Task agent with exact directories or files it should read
11
+ - Each Task agent has less than 200K tokens of context window
12
+ - Amount of Task agents depends on the current system resources available and project size in step 1
13
+ - Each Task agent must return a detailed summary report to a main agent
14
+ 5. Main agent merges scout reports into context summary and delegate to Task agent for docs management to update documentation (next phase)
15
15
 
16
16
  ## Phase 1.5: Parallel Documentation Reading
17
17
 
18
- **You (main agent) must spawn readers** - subagents cannot spawn subagents.
18
+ **You (main agent) must spawn readers** - Task agents cannot spawn Task agents.
19
19
 
20
20
  1. Count docs: `ls docs/*.md 2>/dev/null | wc -l`
21
21
  2. Get LOC: `wc -l docs/*.md 2>/dev/null | sort -rn`
22
22
  3. Strategy:
23
23
  - 1-3 files: Skip parallel reading, docs-manager reads directly
24
- - 4-6 files: Spawn 2-3 `Explore` agents
25
- - 7+ files: Spawn 4-5 `Explore` agents (max 5)
26
- 4. Distribute files by LOC (larger files get dedicated agent)
27
- 5. Each agent prompt: "Read these docs, extract: purpose, key sections, areas needing update. Files: {list}"
24
+ - 4-6 files: Spawn 2-3 Task agents for exploration: Task(subagent_type="general-purpose", prompt="You are an explorer. Read these docs...", description="Explore docs")
25
+ - 7+ files: Spawn 4-5 Task agents for exploration (max 5)
26
+ 4. Distribute files by LOC (larger files get dedicated Task agent)
27
+ 5. Each Task agent prompt: "Read these docs, extract: purpose, key sections, areas needing update. Files: {list}"
28
28
  6. Merge results into context for docs-manager
29
29
 
30
30
  ### Workload Distribution Example
@@ -35,9 +35,9 @@ description: ⚡⚡⚡ Analyze the codebase and update documentation
35
35
  | 2 | system-architecture.md (400), code-standards.md (300) | 700 |
36
36
  | 3 | project-overview-pdr.md (500), project-roadmap.md (200) | 700 |
37
37
 
38
- ## Phase 2: Documentation Update (docs-manager Agent)
38
+ ## Phase 2: Documentation Update (Task Agent for Docs Management)
39
39
 
40
- Pass the gathered file list to `docs-manager` agent to update documentation:
40
+ Pass the gathered file list to Task agent for docs management to update documentation: Task(subagent_type="general-purpose", prompt="You are a docs-manager. Update documentation...", description="Update documentation")
41
41
  - `README.md`: Update README (keep it under 300 lines)
42
42
  - `docs/project-overview-pdr.md`: Update project overview and PDR (Product Development Requirements)
43
43
  - `docs/codebase-summary.md`: Update codebase summary
@@ -13,18 +13,6 @@ execution-mode: execute
13
13
 
14
14
  ---
15
15
 
16
- ## 🛑 PRE-FLIGHT (DO FIRST — BLOCKS EXECUTION)
17
-
18
- **LOAD now** (in order; path `./rules/` or `~/.{TOOL}/skills/agent-assistant/rules/`):
19
-
20
- 1. ORCHESTRATION-LAWS.md
21
- 2. ADAPTIVE-EXECUTION.md
22
- 3. EXECUTION-PROTOCOL.md
23
-
24
- **⛔ Do not run any workflow phase until all are loaded.** Follow **all** rules in those files. Then run this file's ROUTING LOGIC, LOAD the chosen variant (e.g. docs/core.md), and execute it.
25
-
26
- ---
27
-
28
16
  ## ⚠️ EXECUTION RULES (NON-NEGOTIABLE)
29
17
 
30
18
  > [!CAUTION]
@@ -59,7 +59,7 @@ The Multi-Agent Review Tool leverages a distributed, specialized agent network t
59
59
  - **Dynamic Agent Matching**:
60
60
  - Analyze input characteristics
61
61
  - Select most appropriate agent types
62
- - Configure specialized sub-agents dynamically
62
+ - Configure specialized Task agents dynamically
63
63
  - **Expertise Routing**:
64
64
  ```python
65
65
  def route_agents(code_context):
@@ -39,7 +39,7 @@ Parse for:
39
39
  ## Workflow
40
40
 
41
41
  ### 1. Initial Triage
42
- Use Task tool (subagent_type="debugger") for AI-powered analysis:
42
+ Use Task tool (subagent_type="general-purpose") for AI-powered analysis:
43
43
  - Error pattern recognition
44
44
  - Stack trace analysis with probable causes
45
45
  - Component dependency analysis
@@ -195,7 +195,7 @@ git worktree remove <worktree-path>
195
195
  ## Integration
196
196
 
197
197
  **Called by:**
198
- - **subagent-driven-development** (Step 7) - After all tasks complete
198
+ - **Task agent-driven-development** (Step 7) - After all tasks complete
199
199
  - **executing-plans** (Step 5) - After all batches complete
200
200
 
201
201
  **Pairs with:**
@@ -7,9 +7,9 @@ argument-hint: [github-actions-url]
7
7
  <url>$ARGUMENTS</url>
8
8
 
9
9
  ## Workflow
10
- 1. Use `debugger` subagent to read the github actions logs with `gh` command, analyze and find the root cause of the issues and report back to main agent.
10
+ 1. Use a Task agent for debugging: Task(subagent_type="general-purpose", prompt="You are a debugger. Read the github actions logs with gh command, analyze and find the root cause of the issues and report back to main agent.", description="Analyze CI logs") to read the github actions logs with `gh` command, analyze and find the root cause of the issues and report back to main agent.
11
11
  2. Start implementing the fix based the reports and solutions.
12
- 3. Use `tester` agent to test the fix and make sure it works, then report back to main agent.
12
+ 3. Use a Task agent for testing: Task(subagent_type="general-purpose", prompt="You are a tester. Test the fix and make sure it works, then report back to main agent.", description="Test fix") to test the fix and make sure it works, then report back to main agent.
13
13
  4. If there are issues or failed tests, repeat from step 2.
14
14
  5. After finishing, respond back to user with a summary of the changes and explain everything briefly, guide user to get started and suggest the next steps.
15
15