knowzcode 0.4.0 → 0.5.2

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 (79) hide show
  1. package/.claude-plugin/marketplace.json +61 -61
  2. package/.claude-plugin/plugin.json +8 -8
  3. package/LICENSE +121 -121
  4. package/README.md +379 -354
  5. package/agents/analyst.md +114 -114
  6. package/agents/architect.md +200 -200
  7. package/agents/builder.md +104 -104
  8. package/agents/closer.md +177 -177
  9. package/agents/context-scout.md +54 -54
  10. package/agents/knowledge-migrator.md +349 -349
  11. package/agents/knowz-scout.md +83 -83
  12. package/agents/knowz-scribe.md +180 -180
  13. package/agents/microfix-specialist.md +135 -135
  14. package/agents/project-advisor.md +111 -111
  15. package/agents/reviewer.md +172 -172
  16. package/agents/security-officer.md +194 -194
  17. package/agents/test-advisor.md +162 -162
  18. package/agents/update-coordinator.md +394 -394
  19. package/bin/knowzcode.mjs +1457 -1199
  20. package/commands/audit.md +328 -328
  21. package/commands/connect-mcp.md +574 -549
  22. package/commands/fix.md +107 -107
  23. package/commands/init.md +616 -500
  24. package/commands/learn.md +332 -332
  25. package/commands/plan.md +272 -272
  26. package/commands/register.md +757 -733
  27. package/commands/status.md +338 -309
  28. package/commands/telemetry-setup.md +368 -368
  29. package/commands/telemetry.md +188 -188
  30. package/commands/work.md +1204 -1204
  31. package/knowzcode/automation_manifest.md +59 -59
  32. package/knowzcode/claude_code_execution.md +431 -431
  33. package/knowzcode/copilot_execution.md +231 -231
  34. package/knowzcode/enterprise/compliance_manifest.md +137 -137
  35. package/knowzcode/enterprise/compliance_status.md +30 -30
  36. package/knowzcode/enterprise/guidelines/code-quality.md +67 -67
  37. package/knowzcode/enterprise/guidelines/security.md +355 -355
  38. package/knowzcode/enterprise/templates/guideline-template.md +55 -55
  39. package/knowzcode/gitignore.template +13 -13
  40. package/knowzcode/knowzcode_architecture.md +51 -51
  41. package/knowzcode/knowzcode_log.md +142 -142
  42. package/knowzcode/knowzcode_loop.md +601 -596
  43. package/knowzcode/knowzcode_orchestration.md +66 -66
  44. package/knowzcode/knowzcode_project.md +48 -48
  45. package/knowzcode/knowzcode_tracker.md +40 -40
  46. package/knowzcode/knowzcode_vaults.md +257 -257
  47. package/knowzcode/mcp_config.md +196 -191
  48. package/knowzcode/planning/Readme.md +6 -6
  49. package/knowzcode/platform_adapters.md +2577 -1260
  50. package/knowzcode/prompts/Execute_Micro_Fix.md +57 -57
  51. package/knowzcode/prompts/Investigate_Codebase.md +227 -227
  52. package/knowzcode/prompts/Migrate_Knowledge.md +301 -301
  53. package/knowzcode/prompts/Refactor_Node.md +72 -72
  54. package/knowzcode/prompts/Spec_Verification_Checkpoint.md +59 -59
  55. package/knowzcode/prompts/[LOOP_1A]__Propose_Change_Set.md +52 -52
  56. package/knowzcode/prompts/[LOOP_1B]__Draft_Specs.md +75 -75
  57. package/knowzcode/prompts/[LOOP_2A]__Implement_Change_Set.md +55 -55
  58. package/knowzcode/prompts/[LOOP_2B]__Verify_Implementation.md +72 -72
  59. package/knowzcode/prompts/[LOOP_3]__Finalize_And_Commit.md +67 -67
  60. package/knowzcode/specs/Readme.md +10 -10
  61. package/knowzcode/telemetry_config.md +89 -89
  62. package/knowzcode/user_preferences.md +120 -120
  63. package/package.json +53 -53
  64. package/skills/alias-resolver.json +15 -15
  65. package/skills/architecture-diff.json +12 -12
  66. package/skills/check-installation-status.json +14 -14
  67. package/skills/continue.md +126 -126
  68. package/skills/environment-guard.json +12 -12
  69. package/skills/generate-workgroup-id.json +25 -25
  70. package/skills/install-knowzcode.json +21 -21
  71. package/skills/load-core-context.json +18 -18
  72. package/skills/log-entry-builder.json +15 -15
  73. package/skills/spec-quality-check.json +14 -14
  74. package/skills/spec-template.json +15 -15
  75. package/skills/spec-validator.json +25 -25
  76. package/skills/start-work.md +224 -224
  77. package/skills/tracker-scan.json +12 -12
  78. package/skills/tracker-update.json +28 -28
  79. package/skills/validate-installation.json +14 -14
@@ -1,231 +1,231 @@
1
- # Copilot Execution Model
2
-
3
- **Purpose:** Defines the execution model for GitHub Copilot users. Copilot operates as a single-agent, sequential platform — users manually transition between phases using prompt files.
4
-
5
- Agents on other platforms should ignore this file — see `knowzcode/platform_adapters.md` for platform-specific instructions, or `knowzcode/claude_code_execution.md` for Claude Code Agent Teams.
6
-
7
- ---
8
-
9
- ## Execution Model Overview
10
-
11
- Copilot uses a **single-agent, user-driven** execution model:
12
-
13
- - One AI assistant handles all phases sequentially
14
- - The user invokes each phase via `#prompt:kc-*` prompt files in VS Code
15
- - Quality gates are enforced by STOP instructions — the AI pauses and waits for user direction
16
- - Context carries between phases via WorkGroup files in `knowzcode/workgroups/`
17
- - No multi-agent orchestration, no inter-agent messaging, no task dependency tracking
18
-
19
- This is equivalent to the "Sequential Execution Protocol" described in `knowzcode/knowzcode_loop.md` Section 8.
20
-
21
- ---
22
-
23
- ## Prompt File Workflow
24
-
25
- ### Phase Sequence
26
-
27
- ```
28
- #prompt:kc-work "goal"
29
- → Creates WorkGroup, classifies tier, Phase 1A analysis, proposes Change Set
30
- → STOP — await user approval
31
-
32
- #prompt:kc-specify
33
- → Reads WorkGroup, drafts specs for approved Change Set
34
- → STOP — await user approval, then commits specs
35
-
36
- #prompt:kc-implement
37
- → Reads WorkGroup + specs, TDD Red-Green-Refactor
38
- → STOP — report implementation results
39
-
40
- #prompt:kc-audit
41
- → READ-ONLY audit against VERIFY statements
42
- → STOP — report gaps, await user decision
43
-
44
- #prompt:kc-finalize
45
- → Updates specs to as-built, tracker, log, architecture check, commits
46
- ```
47
-
48
- ### Shortcut Workflows
49
-
50
- | Prompt | Use Case |
51
- |--------|----------|
52
- | `#prompt:kc-fix "description"` | Single-file, <50 line fixes — skip the full loop |
53
- | `#prompt:kc-plan "topic"` | Research and investigation before implementing |
54
- | `#prompt:kc-continue` | Resume interrupted work or advance to next phase |
55
- | `#prompt:kc-analyze` | Re-run Phase 1A on an existing WorkGroup |
56
-
57
- ### Prompt File Location
58
-
59
- All prompt files live in `.github/prompts/` and are generated by `/kc:init` (or `npx knowzcode`). They use YAML frontmatter with `agent: "agent"` for file editing capability.
60
-
61
- ---
62
-
63
- ## VS Code Agent Mode
64
-
65
- Copilot prompt files with `agent: "agent"` in their frontmatter enable agent mode, which allows:
66
-
67
- - File creation and editing
68
- - Terminal command execution (tests, builds, linting)
69
- - Multi-file changes in a single session
70
-
71
- All KnowzCode prompt files use `agent: "agent"` for TDD implementation, spec writing, and WorkGroup file updates.
72
-
73
- ### Using Prompt Files
74
-
75
- In VS Code Copilot Chat:
76
- 1. Type `#prompt:kc-work` to invoke the workflow prompt
77
- 2. Add your goal as the chat message: `#prompt:kc-work "Build JWT authentication"`
78
- 3. Copilot loads the prompt file, pulls in `#file:` referenced context, and executes
79
-
80
- ### Adding Extra Context
81
-
82
- You can add files to the prompt context manually:
83
- - Reference files in chat: `#file:src/auth/login.ts`
84
- - The prompt files already include `#file:` references for core KnowzCode files
85
-
86
- ---
87
-
88
- ## Copilot CLI Usage
89
-
90
- The Copilot CLI does not support `#prompt:` syntax. Check the current CLI documentation for the exact file reference syntax — it may differ from VS Code's `#file:` references.
91
-
92
- Alternatively, paste the goal and reference the methodology directly in the CLI prompt. The CLI provides the same AI capabilities but without the `#prompt:` shorthand.
93
-
94
- ---
95
-
96
- ## Copilot Coding Agent Integration
97
-
98
- The GitHub Copilot Coding Agent (cloud-based, triggered from GitHub Issues) follows `copilot-instructions.md` automatically when working on repository issues.
99
-
100
- ### Behavior
101
-
102
- When the Coding Agent picks up an issue:
103
- 1. Reads `.github/copilot-instructions.md` for methodology
104
- 2. Follows Phase 1A→3 workflow for non-trivial changes
105
- 3. Includes the Change Set in the PR description
106
- 4. Uses TDD — failing test before implementation code
107
- 5. Self-audits against spec VERIFY statements
108
-
109
- ### Key Differences from Interactive Use
110
-
111
- | Aspect | Interactive (VS Code) | Coding Agent (GitHub) |
112
- |--------|----------------------|----------------------|
113
- | Phase transitions | User invokes each `#prompt:kc-*` | Agent runs all phases autonomously |
114
- | Quality gates | STOP and wait for user | Deferred to PR review |
115
- | Prompt files | Used via `#prompt:` | Not used — follows `copilot-instructions.md` |
116
- | Approval | Interactive at each gate | PR reviewers approve |
117
-
118
- ### PR Description Format
119
-
120
- The Coding Agent should structure PR descriptions to reflect the KnowzCode workflow:
121
-
122
- ```markdown
123
- ## Change Set
124
- - NodeID: Description
125
- - Affected files: list
126
-
127
- ## Specs
128
- - Link to spec files created/updated
129
-
130
- ## Verification
131
- - Test results summary
132
- - Self-audit completion percentage
133
- ```
134
-
135
- ---
136
-
137
- ## MCP Configuration for VS Code
138
-
139
- To enable vault access in Copilot, configure `.vscode/mcp.json`:
140
-
141
- ```json
142
- {
143
- "servers": {
144
- "knowzcode": {
145
- "type": "http",
146
- "url": "${input:knowzcode_mcp_url}",
147
- "headers": {
148
- "x-api-key": "${input:knowzcode_api_key}"
149
- }
150
- }
151
- },
152
- "inputs": [
153
- {
154
- "id": "knowzcode_mcp_url",
155
- "description": "KnowzCode MCP server URL",
156
- "type": "promptString"
157
- },
158
- {
159
- "id": "knowzcode_api_key",
160
- "description": "KnowzCode API key",
161
- "type": "promptString",
162
- "password": true
163
- }
164
- ]
165
- }
166
- ```
167
-
168
- MCP provides `search_knowledge`, `ask_question`, and `create_knowledge` tools for vault access. All prompt files work without MCP — it enhances context but never blocks.
169
-
170
- ---
171
-
172
- ## Model Selection Guidance
173
-
174
- | Phase | Recommended Model | Rationale |
175
- |-------|------------------|-----------|
176
- | 1A: Analysis | Claude Opus / GPT-4o | Complex reasoning about impact and scope |
177
- | 1B: Specification | Claude Opus / GPT-4o | Structured spec drafting requires depth |
178
- | 2A: Implementation | Any capable model | Code generation — Sonnet/GPT-4o sufficient |
179
- | 2B: Audit | Claude Opus / GPT-4o | Critical evaluation requires strong reasoning |
180
- | 3: Finalization | Any capable model | Mostly doc updates and formatting |
181
- | Quick fix | Any model | Simple, scoped changes |
182
-
183
- VS Code allows model selection per chat session. For complex features, prefer stronger models for analysis and audit phases.
184
-
185
- ---
186
-
187
- ## Limitations and Workarounds
188
-
189
- | Limitation | Impact | Workaround |
190
- |-----------|--------|------------|
191
- | No multi-agent orchestration | Cannot run parallel analysis/implementation | Sequential phase execution via prompt files |
192
- | No inter-agent messaging | No scout/scribe delegation | Single agent reads all context directly |
193
- | No task dependency tracking | No automated phase progression | User manually invokes next prompt |
194
- | No persistent agents | Context reloaded each prompt invocation | WorkGroup files carry state between invocations |
195
- | No dynamic agent spawning | Cannot create specialized agents at runtime | Prompt files encode all phase specialization |
196
- | CLI lacks `#prompt:` support | Cannot use prompt shorthand in CLI | Check CLI docs for file reference syntax, or paste prompt content |
197
-
198
- ### What Works Well
199
-
200
- - Agent mode provides full file editing and terminal access
201
- - `#file:` references efficiently pull in methodology and context
202
- - WorkGroup files maintain state across sessions
203
- - Copilot Coding Agent follows `copilot-instructions.md` for autonomous issue resolution
204
- - MCP tools integrate natively via `.vscode/mcp.json`
205
-
206
- ---
207
-
208
- ## Continue / Resume Workflow
209
-
210
- When a user invokes `#prompt:kc-continue`:
211
-
212
- 1. **Find active WorkGroup**: Read `knowzcode/knowzcode_tracker.md` for `[WIP]` entries
213
- 2. **Determine current phase**: Read the WorkGroup file's Phase History table
214
- 3. **Resume or advance**:
215
- - If mid-phase (incomplete todos): Resume the current phase
216
- - If at a quality gate (phase complete, awaiting approval): Present results and await decision
217
- - If between phases (approved, next not started): Begin the next phase
218
- 4. **Guide user**: Tell the user which `#prompt:kc-*` to invoke next, or proceed directly if the continue prompt can handle it
219
-
220
- ### Phase Detection Logic
221
-
222
- | WorkGroup State | Action |
223
- |----------------|--------|
224
- | Phase 1A complete, no approval recorded | Present Change Set for approval |
225
- | Phase 1A approved, no specs drafted | Advise: `#prompt:kc-specify` |
226
- | Phase 1B complete, no approval recorded | Present specs for approval |
227
- | Phase 1B approved, no implementation started | Advise: `#prompt:kc-implement` |
228
- | Phase 2A complete | Advise: `#prompt:kc-audit` |
229
- | Phase 2B complete, gaps found | Advise: fix gaps then `#prompt:kc-implement`, or `#prompt:kc-finalize` to accept |
230
- | Phase 2B complete, no gaps | Advise: `#prompt:kc-finalize` |
231
- | No active WorkGroup | Inform user, suggest `#prompt:kc-work` |
1
+ # Copilot Execution Model
2
+
3
+ **Purpose:** Defines the execution model for GitHub Copilot users. Copilot operates as a single-agent, sequential platform — users manually transition between phases using prompt files.
4
+
5
+ Agents on other platforms should ignore this file — see `knowzcode/platform_adapters.md` for platform-specific instructions, or `knowzcode/claude_code_execution.md` for Claude Code Agent Teams.
6
+
7
+ ---
8
+
9
+ ## Execution Model Overview
10
+
11
+ Copilot uses a **single-agent, user-driven** execution model:
12
+
13
+ - One AI assistant handles all phases sequentially
14
+ - The user invokes each phase via `#prompt:kc-*` prompt files in VS Code
15
+ - Quality gates are enforced by STOP instructions — the AI pauses and waits for user direction
16
+ - Context carries between phases via WorkGroup files in `knowzcode/workgroups/`
17
+ - No multi-agent orchestration, no inter-agent messaging, no task dependency tracking
18
+
19
+ This is equivalent to the "Sequential Execution Protocol" described in `knowzcode/knowzcode_loop.md` Section 8.
20
+
21
+ ---
22
+
23
+ ## Prompt File Workflow
24
+
25
+ ### Phase Sequence
26
+
27
+ ```
28
+ #prompt:kc-work "goal"
29
+ → Creates WorkGroup, classifies tier, Phase 1A analysis, proposes Change Set
30
+ → STOP — await user approval
31
+
32
+ #prompt:kc-specify
33
+ → Reads WorkGroup, drafts specs for approved Change Set
34
+ → STOP — await user approval, then commits specs
35
+
36
+ #prompt:kc-implement
37
+ → Reads WorkGroup + specs, TDD Red-Green-Refactor
38
+ → STOP — report implementation results
39
+
40
+ #prompt:kc-audit
41
+ → READ-ONLY audit against VERIFY statements
42
+ → STOP — report gaps, await user decision
43
+
44
+ #prompt:kc-finalize
45
+ → Updates specs to as-built, tracker, log, architecture check, commits
46
+ ```
47
+
48
+ ### Shortcut Workflows
49
+
50
+ | Prompt | Use Case |
51
+ |--------|----------|
52
+ | `#prompt:kc-fix "description"` | Single-file, <50 line fixes — skip the full loop |
53
+ | `#prompt:kc-plan "topic"` | Research and investigation before implementing |
54
+ | `#prompt:kc-continue` | Resume interrupted work or advance to next phase |
55
+ | `#prompt:kc-analyze` | Re-run Phase 1A on an existing WorkGroup |
56
+
57
+ ### Prompt File Location
58
+
59
+ All prompt files live in `.github/prompts/` and are generated by `/kc:init` (or `npx knowzcode`). They use YAML frontmatter with `agent: "agent"` for file editing capability.
60
+
61
+ ---
62
+
63
+ ## VS Code Agent Mode
64
+
65
+ Copilot prompt files with `agent: "agent"` in their frontmatter enable agent mode, which allows:
66
+
67
+ - File creation and editing
68
+ - Terminal command execution (tests, builds, linting)
69
+ - Multi-file changes in a single session
70
+
71
+ All KnowzCode prompt files use `agent: "agent"` for TDD implementation, spec writing, and WorkGroup file updates.
72
+
73
+ ### Using Prompt Files
74
+
75
+ In VS Code Copilot Chat:
76
+ 1. Type `#prompt:kc-work` to invoke the workflow prompt
77
+ 2. Add your goal as the chat message: `#prompt:kc-work "Build JWT authentication"`
78
+ 3. Copilot loads the prompt file, pulls in `#file:` referenced context, and executes
79
+
80
+ ### Adding Extra Context
81
+
82
+ You can add files to the prompt context manually:
83
+ - Reference files in chat: `#file:src/auth/login.ts`
84
+ - The prompt files already include `#file:` references for core KnowzCode files
85
+
86
+ ---
87
+
88
+ ## Copilot CLI Usage
89
+
90
+ The Copilot CLI does not support `#prompt:` syntax. Check the current CLI documentation for the exact file reference syntax — it may differ from VS Code's `#file:` references.
91
+
92
+ Alternatively, paste the goal and reference the methodology directly in the CLI prompt. The CLI provides the same AI capabilities but without the `#prompt:` shorthand.
93
+
94
+ ---
95
+
96
+ ## Copilot Coding Agent Integration
97
+
98
+ The GitHub Copilot Coding Agent (cloud-based, triggered from GitHub Issues) follows `copilot-instructions.md` automatically when working on repository issues.
99
+
100
+ ### Behavior
101
+
102
+ When the Coding Agent picks up an issue:
103
+ 1. Reads `.github/copilot-instructions.md` for methodology
104
+ 2. Follows Phase 1A→3 workflow for non-trivial changes
105
+ 3. Includes the Change Set in the PR description
106
+ 4. Uses TDD — failing test before implementation code
107
+ 5. Self-audits against spec VERIFY statements
108
+
109
+ ### Key Differences from Interactive Use
110
+
111
+ | Aspect | Interactive (VS Code) | Coding Agent (GitHub) |
112
+ |--------|----------------------|----------------------|
113
+ | Phase transitions | User invokes each `#prompt:kc-*` | Agent runs all phases autonomously |
114
+ | Quality gates | STOP and wait for user | Deferred to PR review |
115
+ | Prompt files | Used via `#prompt:` | Not used — follows `copilot-instructions.md` |
116
+ | Approval | Interactive at each gate | PR reviewers approve |
117
+
118
+ ### PR Description Format
119
+
120
+ The Coding Agent should structure PR descriptions to reflect the KnowzCode workflow:
121
+
122
+ ```markdown
123
+ ## Change Set
124
+ - NodeID: Description
125
+ - Affected files: list
126
+
127
+ ## Specs
128
+ - Link to spec files created/updated
129
+
130
+ ## Verification
131
+ - Test results summary
132
+ - Self-audit completion percentage
133
+ ```
134
+
135
+ ---
136
+
137
+ ## MCP Configuration for VS Code
138
+
139
+ To enable vault access in Copilot, configure `.vscode/mcp.json`:
140
+
141
+ ```json
142
+ {
143
+ "servers": {
144
+ "knowzcode": {
145
+ "type": "http",
146
+ "url": "${input:knowzcode_mcp_url}",
147
+ "headers": {
148
+ "x-api-key": "${input:knowzcode_api_key}"
149
+ }
150
+ }
151
+ },
152
+ "inputs": [
153
+ {
154
+ "id": "knowzcode_mcp_url",
155
+ "description": "KnowzCode MCP server URL",
156
+ "type": "promptString"
157
+ },
158
+ {
159
+ "id": "knowzcode_api_key",
160
+ "description": "KnowzCode API key",
161
+ "type": "promptString",
162
+ "password": true
163
+ }
164
+ ]
165
+ }
166
+ ```
167
+
168
+ MCP provides `search_knowledge`, `ask_question`, and `create_knowledge` tools for vault access. All prompt files work without MCP — it enhances context but never blocks.
169
+
170
+ ---
171
+
172
+ ## Model Selection Guidance
173
+
174
+ | Phase | Recommended Model | Rationale |
175
+ |-------|------------------|-----------|
176
+ | 1A: Analysis | Claude Opus / GPT-4o | Complex reasoning about impact and scope |
177
+ | 1B: Specification | Claude Opus / GPT-4o | Structured spec drafting requires depth |
178
+ | 2A: Implementation | Any capable model | Code generation — Sonnet/GPT-4o sufficient |
179
+ | 2B: Audit | Claude Opus / GPT-4o | Critical evaluation requires strong reasoning |
180
+ | 3: Finalization | Any capable model | Mostly doc updates and formatting |
181
+ | Quick fix | Any model | Simple, scoped changes |
182
+
183
+ VS Code allows model selection per chat session. For complex features, prefer stronger models for analysis and audit phases.
184
+
185
+ ---
186
+
187
+ ## Limitations and Workarounds
188
+
189
+ | Limitation | Impact | Workaround |
190
+ |-----------|--------|------------|
191
+ | No multi-agent orchestration | Cannot run parallel analysis/implementation | Sequential phase execution via prompt files |
192
+ | No inter-agent messaging | No scout/scribe delegation | Single agent reads all context directly |
193
+ | No task dependency tracking | No automated phase progression | User manually invokes next prompt |
194
+ | No persistent agents | Context reloaded each prompt invocation | WorkGroup files carry state between invocations |
195
+ | No dynamic agent spawning | Cannot create specialized agents at runtime | Prompt files encode all phase specialization |
196
+ | CLI lacks `#prompt:` support | Cannot use prompt shorthand in CLI | Check CLI docs for file reference syntax, or paste prompt content |
197
+
198
+ ### What Works Well
199
+
200
+ - Agent mode provides full file editing and terminal access
201
+ - `#file:` references efficiently pull in methodology and context
202
+ - WorkGroup files maintain state across sessions
203
+ - Copilot Coding Agent follows `copilot-instructions.md` for autonomous issue resolution
204
+ - MCP tools integrate natively via `.vscode/mcp.json`
205
+
206
+ ---
207
+
208
+ ## Continue / Resume Workflow
209
+
210
+ When a user invokes `#prompt:kc-continue`:
211
+
212
+ 1. **Find active WorkGroup**: Read `knowzcode/knowzcode_tracker.md` for `[WIP]` entries
213
+ 2. **Determine current phase**: Read the WorkGroup file's Phase History table
214
+ 3. **Resume or advance**:
215
+ - If mid-phase (incomplete todos): Resume the current phase
216
+ - If at a quality gate (phase complete, awaiting approval): Present results and await decision
217
+ - If between phases (approved, next not started): Begin the next phase
218
+ 4. **Guide user**: Tell the user which `#prompt:kc-*` to invoke next, or proceed directly if the continue prompt can handle it
219
+
220
+ ### Phase Detection Logic
221
+
222
+ | WorkGroup State | Action |
223
+ |----------------|--------|
224
+ | Phase 1A complete, no approval recorded | Present Change Set for approval |
225
+ | Phase 1A approved, no specs drafted | Advise: `#prompt:kc-specify` |
226
+ | Phase 1B complete, no approval recorded | Present specs for approval |
227
+ | Phase 1B approved, no implementation started | Advise: `#prompt:kc-implement` |
228
+ | Phase 2A complete | Advise: `#prompt:kc-audit` |
229
+ | Phase 2B complete, gaps found | Advise: fix gaps then `#prompt:kc-implement`, or `#prompt:kc-finalize` to accept |
230
+ | Phase 2B complete, no gaps | Advise: `#prompt:kc-finalize` |
231
+ | No active WorkGroup | Inform user, suggest `#prompt:kc-work` |