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,191 +1,196 @@
1
- # KnowzCode MCP Configuration
2
-
3
- ## Connection Status
4
- - **Connected**: No
5
- - **Endpoint**: (not configured)
6
- - **Last Verified**: (never)
7
-
8
- > **Not configured?** Run `/kc:register` to create an account and set up MCP automatically,
9
- > or `/kc:connect-mcp <api-key>` if you already have a key.
10
-
11
- ---
12
-
13
- ## Vaults
14
-
15
- ### Ecosystem Vault (Primary)
16
- - **Vault ID**: (not configured)
17
- - **Vault Name**: (not configured)
18
- - **Purpose**: Decisions, conventions, security practices, integrations, business rules, domain knowledge
19
- - **Auto-configured**: No
20
-
21
- **Query Patterns (when configured):**
22
- - "Our error handling conventions"
23
- - "What patterns for API versioning?"
24
- - "Security best practices we use"
25
- - "Why did we choose Redis cache?"
26
- - "Stripe webhook setup"
27
-
28
- > **Backwards compatibility**: Vaults previously configured as type `research`, `domain`, or `platform` are treated identically to `ecosystem`. No migration needed.
29
-
30
- ### Code Vault (Optional)
31
- - **Vault ID**: (not configured)
32
- - **Vault Name**: (not configured)
33
- - **Purpose**: Implementation patterns, workarounds, performance optimizations
34
-
35
- **Note**: Code search works well with local grep/glob for most projects.
36
- Configure a code vault for teams that want semantic search over implementation patterns and reusable utilities.
37
-
38
- **Query Patterns (when configured):**
39
- - "Retry logic pattern"
40
- - "Workaround for rate limiting"
41
- - "Performance optimization for bulk inserts"
42
- - "JWT validation pattern"
43
-
44
- ### Finalizations Vault (Optional)
45
- - **Vault ID**: (not configured)
46
- - **Vault Name**: (not configured)
47
- - **Purpose**: WorkGroup completion summaries, outcome records, finalization details
48
-
49
- **Note**: Finalizations vault provides a searchable history of completed work.
50
- Useful for teams that want to review past work patterns and outcomes.
51
-
52
- **Query Patterns (when configured):**
53
- - "What happened in WG-feat-auth?"
54
- - "Recent completion outcomes"
55
- - "Goals we worked on last week"
56
-
57
- ---
58
-
59
- ## Single Vault Model (Recommended for New Users)
60
-
61
- KnowzCode recommends starting with a **single "KnowzCode" vault** for simplicity:
62
-
63
- ```
64
- ┌──────────────────────────────────────────────────────┐
65
- │ KnowzCode Vault │
66
- │ │
67
- │ Purpose: All learnings, decisions, patterns, etc. │
68
- │ Read by: knowz-scout, knowz-scribe, all agents │
69
- │ Written by: knowz-scribe, knowz-scout, /kc:learn │
70
- Code search: Uses local grep/glob (no code vault)
71
- │ │
72
- └──────────────────────────────────────────────────────┘
73
- ```
74
-
75
- **Why single vault?**
76
- - Simpler onboarding (no vault type decisions needed)
77
- - Code search works fine with grep/glob for most projects
78
- - MCP vault is optimized for organizational knowledge, not code indexing
79
- - Advanced users can add specialized vaults later via `/kc:connect-mcp --configure-vaults`
80
-
81
- ---
82
-
83
- ## Usage in Agents
84
-
85
- | Agent | Vault Interaction | Purpose |
86
- |-------|-------------------|---------|
87
- | knowz-scout | Read all configured vaults | Find past decisions, conventions, patterns |
88
- | knowz-scribe | Read and write to matching vaults | Route learnings per write conditions |
89
- | analyst | Read via knowz-scout | Past decisions + affected code patterns |
90
- | architect | Read via knowz-scout | Conventions + implementation examples |
91
- | builder | Read via knowz-scout | Best practices + similar patterns |
92
- | reviewer | Read via knowz-scout | Standards + precedent check |
93
- | closer | Triggers knowz-scribe captures | Finalization learnings |
94
-
95
- **Fallback behavior**: When specialized vaults are not configured, agents use local grep/glob
96
- for code search and the single vault for all knowledge queries.
97
-
98
- ---
99
-
100
- ## MCP Tools Reference
101
-
102
- ### Query Tools (Read — used by knowz-scout)
103
-
104
- **search_knowledge(query, vaultId, limit)**
105
- - Vector similarity search across indexed content
106
- - Use for: finding code patterns or documentation
107
- - Example: `search_knowledge("authentication logic", ecosystem_vault_id, 10)`
108
-
109
- **ask_question(question, vaultId, researchMode)**
110
- - AI-powered question answering with document synthesis
111
- - `researchMode: false` - Quick answer (faster)
112
- - `researchMode: true` - Comprehensive answer (8000+ tokens, multi-document)
113
- - Example: `ask_question("What are our error handling conventions?", ecosystem_vault_id, true)`
114
-
115
- **find_entities(entityType, query, limit)**
116
- - Find people, locations, or events extracted from knowledge base
117
- - `entityType`: "person", "location", or "event"
118
- - Example: `find_entities("person", "John", 25)`
119
-
120
- **get_knowledge_item(id, includeRelated)**
121
- - Retrieve a specific knowledge item by ID
122
- - `includeRelated: true` to include related items
123
-
124
- **list_vaults(includeStats)**
125
- - List all accessible vaults with optional statistics
126
-
127
- ### Write Tools (used by knowz-scribe and /kc:learn)
128
-
129
- **create_knowledge(content, title, knowledgeType, vaultId, tags, source)**
130
- - Create new knowledge item in vault
131
- - `knowledgeType`: "Document", "Note", or "Transcript"
132
- - Example:
133
- ```json
134
- {
135
- "content": "[CONTEXT]...\n[INSIGHT]...\n[RATIONALE]...",
136
- "title": "Decision: JWT Refresh Flow",
137
- "knowledgeType": "Note",
138
- "vaultId": "{ecosystem_vault_id}",
139
- "tags": ["security", "jwt", "decision"],
140
- "source": "KnowzCode WorkGroup WG-feat-auth-20260128"
141
- }
142
- ```
143
-
144
- **create_vault(name, description)**
145
- - Create a new vault on the Knowz server
146
- - `name`: Display name for the vault (e.g., "Code Patterns")
147
- - `description`: Description of the vault's purpose and content
148
- - Returns the created vault's ID
149
- - Used during vault setup when default entries have empty IDs
150
- - **Note**: Availability depends on MCP server version. If not available, fall back to matching by name against `list_vaults()` results.
151
-
152
- ---
153
-
154
- ## Auto-Learning Configuration
155
-
156
- - **Enabled**: Yes
157
- - **Prompt on Detection**: Yes
158
- - **Learning Categories**: Pattern, Decision, Workaround, Performance, Security, Convention, Integration
159
-
160
- ### Detection Signals
161
-
162
- Learnings are auto-detected when WorkGroup contains:
163
- - **Pattern signals**: "created utility for", "new helper", "reusable"
164
- - **Decision signals**: "chose X over Y", "decided to", "opted for"
165
- - **Workaround signals**: "workaround", "limitation", "temporary"
166
- - **Performance signals**: "optimized", "reduced from X to Y"
167
- - **Security signals**: "security", "vulnerability", "sanitize"
168
- - **Integration signals**: "integrated with", "API behavior", "third-party"
169
-
170
- ### Learning Category Routing
171
-
172
- | Category | Target Vault Type |
173
- |----------|-------------------|
174
- | Pattern | `code` |
175
- | Workaround | `code` |
176
- | Performance | `code` |
177
- | Decision | `ecosystem` |
178
- | Convention | `ecosystem` |
179
- | Security | `ecosystem` |
180
- | Integration | `ecosystem` |
181
- | Completion record | `finalizations` |
182
-
183
- ---
184
-
185
- ## Configuration Commands
186
-
187
- - `/kc:register` - Create account and auto-configure MCP + vault
188
- - `/kc:connect-mcp` - Configure MCP server (use existing API key)
189
- - `/kc:connect-mcp --configure-vaults` - Reconfigure vault IDs
190
- - `/kc:status` - Check connection status and vault info
191
- - `/kc:learn "insight"` - Manually create learning (routes via knowz-scribe if available)
1
+ # KnowzCode MCP Configuration
2
+
3
+ ## Connection Status
4
+ - **Connected**: No
5
+ - **Endpoint**: (not configured)
6
+ - **Last Verified**: (never)
7
+ - **API Key (last 4)**: (not configured)
8
+
9
+ > **Not configured?** Run `/kc:register` to create an account and set up MCP automatically,
10
+ > or `/kc:connect-mcp <api-key>` if you already have a key.
11
+
12
+ > **Environment variable**: Set `KNOWZ_API_KEY` in your shell to enable automatic
13
+ > MCP authentication on any platform without interactive prompts.
14
+ > All `/kc:connect-mcp` and `/kc:register` commands check this variable first.
15
+
16
+ ---
17
+
18
+ ## Vaults
19
+
20
+ ### Ecosystem Vault (Primary)
21
+ - **Vault ID**: (not configured)
22
+ - **Vault Name**: (not configured)
23
+ - **Purpose**: Decisions, conventions, security practices, integrations, business rules, domain knowledge
24
+ - **Auto-configured**: No
25
+
26
+ **Query Patterns (when configured):**
27
+ - "Our error handling conventions"
28
+ - "What patterns for API versioning?"
29
+ - "Security best practices we use"
30
+ - "Why did we choose Redis cache?"
31
+ - "Stripe webhook setup"
32
+
33
+ > **Backwards compatibility**: Vaults previously configured as type `research`, `domain`, or `platform` are treated identically to `ecosystem`. No migration needed.
34
+
35
+ ### Code Vault (Optional)
36
+ - **Vault ID**: (not configured)
37
+ - **Vault Name**: (not configured)
38
+ - **Purpose**: Implementation patterns, workarounds, performance optimizations
39
+
40
+ **Note**: Code search works well with local grep/glob for most projects.
41
+ Configure a code vault for teams that want semantic search over implementation patterns and reusable utilities.
42
+
43
+ **Query Patterns (when configured):**
44
+ - "Retry logic pattern"
45
+ - "Workaround for rate limiting"
46
+ - "Performance optimization for bulk inserts"
47
+ - "JWT validation pattern"
48
+
49
+ ### Finalizations Vault (Optional)
50
+ - **Vault ID**: (not configured)
51
+ - **Vault Name**: (not configured)
52
+ - **Purpose**: WorkGroup completion summaries, outcome records, finalization details
53
+
54
+ **Note**: Finalizations vault provides a searchable history of completed work.
55
+ Useful for teams that want to review past work patterns and outcomes.
56
+
57
+ **Query Patterns (when configured):**
58
+ - "What happened in WG-feat-auth?"
59
+ - "Recent completion outcomes"
60
+ - "Goals we worked on last week"
61
+
62
+ ---
63
+
64
+ ## Single Vault Model (Recommended for New Users)
65
+
66
+ KnowzCode recommends starting with a **single "KnowzCode" vault** for simplicity:
67
+
68
+ ```
69
+ ┌──────────────────────────────────────────────────────┐
70
+ KnowzCode Vault
71
+ │ │
72
+ │ Purpose: All learnings, decisions, patterns, etc. │
73
+ │ Read by: knowz-scout, knowz-scribe, all agents │
74
+ │ Written by: knowz-scribe, knowz-scout, /kc:learn │
75
+ │ Code search: Uses local grep/glob (no code vault) │
76
+ │ │
77
+ └──────────────────────────────────────────────────────┘
78
+ ```
79
+
80
+ **Why single vault?**
81
+ - Simpler onboarding (no vault type decisions needed)
82
+ - Code search works fine with grep/glob for most projects
83
+ - MCP vault is optimized for organizational knowledge, not code indexing
84
+ - Advanced users can add specialized vaults later via `/kc:connect-mcp --configure-vaults`
85
+
86
+ ---
87
+
88
+ ## Usage in Agents
89
+
90
+ | Agent | Vault Interaction | Purpose |
91
+ |-------|-------------------|---------|
92
+ | knowz-scout | Read all configured vaults | Find past decisions, conventions, patterns |
93
+ | knowz-scribe | Read and write to matching vaults | Route learnings per write conditions |
94
+ | analyst | Read via knowz-scout | Past decisions + affected code patterns |
95
+ | architect | Read via knowz-scout | Conventions + implementation examples |
96
+ | builder | Read via knowz-scout | Best practices + similar patterns |
97
+ | reviewer | Read via knowz-scout | Standards + precedent check |
98
+ | closer | Triggers knowz-scribe captures | Finalization learnings |
99
+
100
+ **Fallback behavior**: When specialized vaults are not configured, agents use local grep/glob
101
+ for code search and the single vault for all knowledge queries.
102
+
103
+ ---
104
+
105
+ ## MCP Tools Reference
106
+
107
+ ### Query Tools (Read used by knowz-scout)
108
+
109
+ **search_knowledge(query, vaultId, limit)**
110
+ - Vector similarity search across indexed content
111
+ - Use for: finding code patterns or documentation
112
+ - Example: `search_knowledge("authentication logic", ecosystem_vault_id, 10)`
113
+
114
+ **ask_question(question, vaultId, researchMode)**
115
+ - AI-powered question answering with document synthesis
116
+ - `researchMode: false` - Quick answer (faster)
117
+ - `researchMode: true` - Comprehensive answer (8000+ tokens, multi-document)
118
+ - Example: `ask_question("What are our error handling conventions?", ecosystem_vault_id, true)`
119
+
120
+ **find_entities(entityType, query, limit)**
121
+ - Find people, locations, or events extracted from knowledge base
122
+ - `entityType`: "person", "location", or "event"
123
+ - Example: `find_entities("person", "John", 25)`
124
+
125
+ **get_knowledge_item(id, includeRelated)**
126
+ - Retrieve a specific knowledge item by ID
127
+ - `includeRelated: true` to include related items
128
+
129
+ **list_vaults(includeStats)**
130
+ - List all accessible vaults with optional statistics
131
+
132
+ ### Write Tools (used by knowz-scribe and /kc:learn)
133
+
134
+ **create_knowledge(content, title, knowledgeType, vaultId, tags, source)**
135
+ - Create new knowledge item in vault
136
+ - `knowledgeType`: "Document", "Note", or "Transcript"
137
+ - Example:
138
+ ```json
139
+ {
140
+ "content": "[CONTEXT]...\n[INSIGHT]...\n[RATIONALE]...",
141
+ "title": "Decision: JWT Refresh Flow",
142
+ "knowledgeType": "Note",
143
+ "vaultId": "{ecosystem_vault_id}",
144
+ "tags": ["security", "jwt", "decision"],
145
+ "source": "KnowzCode WorkGroup WG-feat-auth-20260128"
146
+ }
147
+ ```
148
+
149
+ **create_vault(name, description)**
150
+ - Create a new vault on the Knowz server
151
+ - `name`: Display name for the vault (e.g., "Code Patterns")
152
+ - `description`: Description of the vault's purpose and content
153
+ - Returns the created vault's ID
154
+ - Used during vault setup when default entries have empty IDs
155
+ - **Note**: Availability depends on MCP server version. If not available, fall back to matching by name against `list_vaults()` results.
156
+
157
+ ---
158
+
159
+ ## Auto-Learning Configuration
160
+
161
+ - **Enabled**: Yes
162
+ - **Prompt on Detection**: Yes
163
+ - **Learning Categories**: Pattern, Decision, Workaround, Performance, Security, Convention, Integration
164
+
165
+ ### Detection Signals
166
+
167
+ Learnings are auto-detected when WorkGroup contains:
168
+ - **Pattern signals**: "created utility for", "new helper", "reusable"
169
+ - **Decision signals**: "chose X over Y", "decided to", "opted for"
170
+ - **Workaround signals**: "workaround", "limitation", "temporary"
171
+ - **Performance signals**: "optimized", "reduced from X to Y"
172
+ - **Security signals**: "security", "vulnerability", "sanitize"
173
+ - **Integration signals**: "integrated with", "API behavior", "third-party"
174
+
175
+ ### Learning Category Routing
176
+
177
+ | Category | Target Vault Type |
178
+ |----------|-------------------|
179
+ | Pattern | `code` |
180
+ | Workaround | `code` |
181
+ | Performance | `code` |
182
+ | Decision | `ecosystem` |
183
+ | Convention | `ecosystem` |
184
+ | Security | `ecosystem` |
185
+ | Integration | `ecosystem` |
186
+ | Completion record | `finalizations` |
187
+
188
+ ---
189
+
190
+ ## Configuration Commands
191
+
192
+ - `/kc:register` - Create account and auto-configure MCP + vault
193
+ - `/kc:connect-mcp` - Configure MCP server (use existing API key)
194
+ - `/kc:connect-mcp --configure-vaults` - Reconfigure vault IDs
195
+ - `/kc:status` - Check connection status and vault info
196
+ - `/kc:learn "insight"` - Manually create learning (routes via knowz-scribe if available)
@@ -1,6 +1,6 @@
1
- \# Planning Documents
2
-
3
-
4
-
5
- This directory stores strategic planning documents and feature analyses generated during development.
6
-
1
+ \# Planning Documents
2
+
3
+
4
+
5
+ This directory stores strategic planning documents and feature analyses generated during development.
6
+