knowzcode 0.1.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +9 -3
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +170 -73
- package/agents/analyst.md +24 -62
- package/agents/architect.md +60 -48
- package/agents/builder.md +35 -86
- package/agents/closer.md +29 -87
- package/agents/context-scout.md +54 -0
- package/agents/knowledge-migrator.md +7 -7
- package/agents/knowz-scout.md +83 -0
- package/agents/knowz-scribe.md +155 -0
- package/agents/microfix-specialist.md +1 -6
- package/agents/project-advisor.md +110 -0
- package/agents/reviewer.md +43 -91
- package/agents/security-officer.md +194 -0
- package/agents/test-advisor.md +162 -0
- package/agents/update-coordinator.md +7 -18
- package/bin/knowzcode.mjs +94 -7
- package/commands/audit.md +245 -25
- package/commands/connect-mcp.md +525 -507
- package/commands/fix.md +8 -8
- package/commands/init.md +125 -6
- package/commands/learn.md +327 -308
- package/commands/plan.md +173 -26
- package/commands/register.md +21 -12
- package/commands/status.md +309 -291
- package/commands/telemetry.md +188 -188
- package/commands/work.md +764 -114
- package/knowzcode/automation_manifest.md +59 -59
- package/knowzcode/claude_code_execution.md +291 -22
- package/knowzcode/copilot_execution.md +231 -0
- package/knowzcode/enterprise/compliance_manifest.md +5 -0
- package/knowzcode/knowzcode_loop.md +114 -46
- package/knowzcode/knowzcode_orchestration.md +66 -0
- package/knowzcode/knowzcode_project.md +48 -233
- package/knowzcode/knowzcode_vaults.md +183 -54
- package/knowzcode/mcp_config.md +72 -47
- package/knowzcode/platform_adapters.md +630 -29
- package/knowzcode/prompts/Execute_Micro_Fix.md +57 -57
- package/knowzcode/prompts/Investigate_Codebase.md +227 -227
- package/knowzcode/prompts/Migrate_Knowledge.md +301 -301
- package/knowzcode/prompts/Refactor_Node.md +72 -72
- package/knowzcode/prompts/Spec_Verification_Checkpoint.md +59 -59
- package/knowzcode/prompts/[LOOP_1A]__Propose_Change_Set.md +52 -52
- package/knowzcode/prompts/[LOOP_1B]__Draft_Specs.md +75 -75
- package/knowzcode/prompts/[LOOP_2A]__Implement_Change_Set.md +55 -55
- package/knowzcode/prompts/[LOOP_2B]__Verify_Implementation.md +72 -72
- package/knowzcode/prompts/[LOOP_3]__Finalize_And_Commit.md +67 -67
- package/package.json +1 -1
- package/skills/alias-resolver.json +1 -1
- package/skills/architecture-diff.json +1 -1
- package/skills/check-installation-status.json +1 -1
- package/skills/continue.md +25 -4
- package/skills/environment-guard.json +1 -1
- package/skills/generate-workgroup-id.json +1 -1
- package/skills/install-knowzcode.json +1 -1
- package/skills/load-core-context.json +1 -1
- package/skills/log-entry-builder.json +1 -1
- package/skills/spec-quality-check.json +1 -1
- package/skills/spec-template.json +1 -1
- package/skills/spec-validator.json +1 -1
- package/skills/tracker-scan.json +1 -1
- package/skills/tracker-update.json +1 -1
- package/skills/validate-installation.json +1 -1
package/commands/fix.md
CHANGED
|
@@ -95,13 +95,13 @@ REPEAT until all checks pass:
|
|
|
95
95
|
|
|
96
96
|
## Execution
|
|
97
97
|
|
|
98
|
-
Delegate to the **microfix-specialist** agent via `Task()
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
Delegate to the **microfix-specialist** agent via `Task()` with these parameters:
|
|
99
|
+
- `subagent_type`: `"microfix-specialist"`
|
|
100
|
+
- `prompt`: Task-specific context only (role definition is auto-loaded from `agents/microfix-specialist.md`):
|
|
101
|
+
> **Target**: {target file or NodeID}
|
|
102
|
+
> **Fix summary**: {summary}
|
|
103
|
+
> Validate scope, implement the minimal fix, run the verification loop, log the outcome, and commit.
|
|
104
|
+
- `description`: `"Micro-fix: {summary}"`
|
|
105
|
+
- `mode`: `"bypassPermissions"`
|
|
101
106
|
|
|
102
107
|
> **Note:** Micro-fixes use subagent delegation only. Agent Teams overhead is not justified for single-file, <50 line fixes.
|
|
103
|
-
|
|
104
|
-
## Context Files
|
|
105
|
-
|
|
106
|
-
- knowzcode/automation_manifest.md
|
|
107
|
-
- knowzcode/prompts/Execute_Micro_Fix.md
|
package/commands/init.md
CHANGED
|
@@ -8,7 +8,7 @@ You are the **KnowzCode Initialization Agent**. Set up the KnowzCode framework i
|
|
|
8
8
|
|
|
9
9
|
## What KnowzCode Provides
|
|
10
10
|
|
|
11
|
-
KnowzCode is
|
|
11
|
+
KnowzCode is a structured development methodology that provides:
|
|
12
12
|
- **Structured TDD workflow** with quality gates
|
|
13
13
|
- **Specification-driven development** with living documentation
|
|
14
14
|
- **Comprehensive tracking** of WorkGroups and specifications
|
|
@@ -33,6 +33,7 @@ knowzcode/
|
|
|
33
33
|
├── knowzcode_log.md
|
|
34
34
|
├── knowzcode_architecture.md
|
|
35
35
|
├── knowzcode_loop.md
|
|
36
|
+
├── knowzcode_orchestration.md
|
|
36
37
|
├── platform_adapters.md
|
|
37
38
|
├── environment_context.md
|
|
38
39
|
├── user_preferences.md (if configured)
|
|
@@ -59,6 +60,20 @@ Use the embedded templates below.
|
|
|
59
60
|
- If yes: prompt for testing frameworks, code style, quality priorities
|
|
60
61
|
- Create `knowzcode/user_preferences.md`
|
|
61
62
|
|
|
63
|
+
### 5.5. Configure orchestration defaults (optional)
|
|
64
|
+
|
|
65
|
+
Ask: "Would you like to configure agent orchestration defaults? (optional — can be changed later in knowzcode/knowzcode_orchestration.md)"
|
|
66
|
+
|
|
67
|
+
If yes: prompt for:
|
|
68
|
+
- Max concurrent builders (1-5, default: 5)
|
|
69
|
+
- Scout mode (full/minimal/none, default: full)
|
|
70
|
+
- Default specialists (checkboxes: security-officer, test-advisor, project-advisor)
|
|
71
|
+
- MCP agents enabled (yes/no, default: yes)
|
|
72
|
+
|
|
73
|
+
If no: generate with all defaults.
|
|
74
|
+
|
|
75
|
+
Generate `knowzcode/knowzcode_orchestration.md` from the template (always — it's part of the standard file set).
|
|
76
|
+
|
|
62
77
|
### 6. Create .gitignore
|
|
63
78
|
|
|
64
79
|
Protect environment-specific files from git:
|
|
@@ -80,7 +95,7 @@ CHECK for existing files:
|
|
|
80
95
|
- AGENTS.md or AGENTS.override.md → offer to generate Codex adapter
|
|
81
96
|
- GEMINI.md or ~/.gemini/GEMINI.md → offer to generate Gemini adapter
|
|
82
97
|
- .cursor/rules/ or .cursorrules (deprecated) → offer Cursor adapter (.cursor/rules/knowzcode.mdc)
|
|
83
|
-
- .github/copilot-instructions.md → offer Copilot adapter
|
|
98
|
+
- .github/copilot-instructions.md OR .github/ directory → offer Copilot adapter (full prompt files)
|
|
84
99
|
- .windsurf/rules/ or .windsurfrules (deprecated) → offer Windsurf adapter (.windsurf/rules/knowzcode.md)
|
|
85
100
|
```
|
|
86
101
|
|
|
@@ -119,6 +134,53 @@ After generation, verify each adapter:
|
|
|
119
134
|
|
|
120
135
|
Adapter templates are in `knowzcode/platform_adapters.md`. Copy the relevant sections into the appropriate files.
|
|
121
136
|
|
|
137
|
+
**Step 7e: Copilot-specific generation**
|
|
138
|
+
|
|
139
|
+
When Copilot is selected, generate the full prompt file suite in addition to the instructions file:
|
|
140
|
+
|
|
141
|
+
```
|
|
142
|
+
1. Create .github/ directory if it doesn't exist
|
|
143
|
+
2. Create .github/copilot-instructions.md from platform_adapters.md template Section A
|
|
144
|
+
3. Create .github/prompts/ directory
|
|
145
|
+
4. Generate all 9 prompt files from platform_adapters.md template Section B:
|
|
146
|
+
- .github/prompts/kc-work.prompt.md
|
|
147
|
+
- .github/prompts/kc-analyze.prompt.md
|
|
148
|
+
- .github/prompts/kc-specify.prompt.md
|
|
149
|
+
- .github/prompts/kc-implement.prompt.md
|
|
150
|
+
- .github/prompts/kc-audit.prompt.md
|
|
151
|
+
- .github/prompts/kc-finalize.prompt.md
|
|
152
|
+
- .github/prompts/kc-fix.prompt.md
|
|
153
|
+
- .github/prompts/kc-plan.prompt.md
|
|
154
|
+
- .github/prompts/kc-continue.prompt.md
|
|
155
|
+
5. Replace "vX.Y.Z" in generated files with the current KnowzCode version
|
|
156
|
+
6. Optionally create .vscode/mcp.json skeleton from template Section C
|
|
157
|
+
(ask user: "Would you like to generate MCP configuration for VS Code?")
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
**Skip Agent Teams enablement for Copilot** — Copilot uses single-agent sequential execution.
|
|
161
|
+
|
|
162
|
+
**Copilot success message:**
|
|
163
|
+
```
|
|
164
|
+
GitHub Copilot adapter generated:
|
|
165
|
+
.github/copilot-instructions.md (repository-level instructions)
|
|
166
|
+
.github/prompts/kc-work.prompt.md (start workflow: #prompt:kc-work)
|
|
167
|
+
.github/prompts/kc-analyze.prompt.md
|
|
168
|
+
.github/prompts/kc-specify.prompt.md
|
|
169
|
+
.github/prompts/kc-implement.prompt.md
|
|
170
|
+
.github/prompts/kc-audit.prompt.md
|
|
171
|
+
.github/prompts/kc-finalize.prompt.md
|
|
172
|
+
.github/prompts/kc-fix.prompt.md (quick fix: #prompt:kc-fix)
|
|
173
|
+
.github/prompts/kc-plan.prompt.md (research: #prompt:kc-plan)
|
|
174
|
+
.github/prompts/kc-continue.prompt.md (resume: #prompt:kc-continue)
|
|
175
|
+
|
|
176
|
+
Usage in VS Code:
|
|
177
|
+
#prompt:kc-work "Build user authentication" — Start a feature
|
|
178
|
+
#prompt:kc-fix "Fix login redirect bug" — Quick fix
|
|
179
|
+
#prompt:kc-continue — Resume where you left off
|
|
180
|
+
|
|
181
|
+
See knowzcode/copilot_execution.md for the full execution guide.
|
|
182
|
+
```
|
|
183
|
+
|
|
122
184
|
### 7.5. Enable Agent Teams (Claude Code only)
|
|
123
185
|
|
|
124
186
|
If the user is on Claude Code, **actively offer** to enable Agent Teams:
|
|
@@ -133,13 +195,17 @@ giving you richer multi-agent coordination.
|
|
|
133
195
|
Without it, KnowzCode uses subagent delegation (works fine, just less interactive)."
|
|
134
196
|
|
|
135
197
|
Options:
|
|
136
|
-
- Yes (recommended)
|
|
198
|
+
- Yes, for this project only (recommended)
|
|
199
|
+
- Yes, for all projects (writes to ~/.claude/settings.json)
|
|
137
200
|
- No (use subagent fallback)
|
|
138
201
|
```
|
|
139
202
|
|
|
140
|
-
**Step 7.5b: If yes, create/update
|
|
203
|
+
**Step 7.5b: If yes, create/update the appropriate settings file**
|
|
141
204
|
|
|
142
|
-
|
|
205
|
+
- **"This project only"** → write to `.claude/settings.local.json` (project-level, gitignored)
|
|
206
|
+
- **"All projects"** → write to `~/.claude/settings.json` (home-level global config)
|
|
207
|
+
|
|
208
|
+
Read the target settings file if it exists. Merge the Agent Teams env var into it:
|
|
143
209
|
|
|
144
210
|
```json
|
|
145
211
|
{
|
|
@@ -162,7 +228,7 @@ This works correctly — no action needed.
|
|
|
162
228
|
|
|
163
229
|
**Step 7.5d: If no, proceed normally** — subagent delegation works without any configuration.
|
|
164
230
|
|
|
165
|
-
### 8. Optional: Set up enterprise compliance
|
|
231
|
+
### 8. Optional: Set up enterprise compliance (experimental)
|
|
166
232
|
|
|
167
233
|
- Ask: "Would you like to set up enterprise compliance features? (optional)"
|
|
168
234
|
- If yes: create `knowzcode/enterprise/` directory with manifest and templates
|
|
@@ -188,6 +254,7 @@ Created:
|
|
|
188
254
|
knowzcode/knowzcode_log.md
|
|
189
255
|
knowzcode/knowzcode_architecture.md
|
|
190
256
|
knowzcode/knowzcode_loop.md
|
|
257
|
+
knowzcode/knowzcode_orchestration.md
|
|
191
258
|
knowzcode/platform_adapters.md
|
|
192
259
|
knowzcode/.gitignore
|
|
193
260
|
knowzcode/specs/
|
|
@@ -307,6 +374,58 @@ Next steps:
|
|
|
307
374
|
**Test Runner:** [Auto-detected]
|
|
308
375
|
```
|
|
309
376
|
|
|
377
|
+
### knowzcode_orchestration.md
|
|
378
|
+
```markdown
|
|
379
|
+
# KnowzCode Orchestration Configuration
|
|
380
|
+
|
|
381
|
+
**Purpose:** Project-level defaults for team sizing and agent orchestration. Read by `/kc:work` and `/kc:audit` at startup. Per-invocation flags override these settings.
|
|
382
|
+
|
|
383
|
+
---
|
|
384
|
+
|
|
385
|
+
## Builder Configuration
|
|
386
|
+
|
|
387
|
+
```yaml
|
|
388
|
+
max_builders: 5
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
---
|
|
392
|
+
|
|
393
|
+
## Scout Configuration
|
|
394
|
+
|
|
395
|
+
```yaml
|
|
396
|
+
scout_mode: full
|
|
397
|
+
```
|
|
398
|
+
|
|
399
|
+
---
|
|
400
|
+
|
|
401
|
+
## Specialist Defaults
|
|
402
|
+
|
|
403
|
+
```yaml
|
|
404
|
+
default_specialists: []
|
|
405
|
+
```
|
|
406
|
+
|
|
407
|
+
---
|
|
408
|
+
|
|
409
|
+
## MCP Agent Configuration
|
|
410
|
+
|
|
411
|
+
```yaml
|
|
412
|
+
mcp_agents_enabled: true
|
|
413
|
+
```
|
|
414
|
+
|
|
415
|
+
---
|
|
416
|
+
|
|
417
|
+
## Override Precedence
|
|
418
|
+
|
|
419
|
+
| Setting | Config Default | Flag Override |
|
|
420
|
+
|---------|---------------|--------------|
|
|
421
|
+
| max_builders | `max_builders:` | `--max-builders=N` |
|
|
422
|
+
| scout_mode | `scout_mode:` | `--no-scouts` |
|
|
423
|
+
| default_specialists | `default_specialists:` | `--specialists`, `--no-specialists` |
|
|
424
|
+
| mcp_agents_enabled | `mcp_agents_enabled:` | `--no-mcp` |
|
|
425
|
+
|
|
426
|
+
Per-invocation flags always win. `--specialists` adds to defaults; `--no-specialists` clears all.
|
|
427
|
+
```
|
|
428
|
+
|
|
310
429
|
---
|
|
311
430
|
|
|
312
431
|
## Error Handling
|