knowzcode 0.3.7 → 0.4.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.
- package/.claude-plugin/marketplace.json +61 -61
- package/.claude-plugin/plugin.json +8 -8
- package/LICENSE +121 -121
- package/README.md +354 -320
- package/agents/analyst.md +114 -114
- package/agents/architect.md +200 -200
- package/agents/builder.md +104 -104
- package/agents/closer.md +177 -177
- package/agents/context-scout.md +54 -54
- package/agents/knowledge-migrator.md +349 -349
- package/agents/knowz-scout.md +83 -83
- package/agents/knowz-scribe.md +180 -180
- package/agents/microfix-specialist.md +135 -135
- package/agents/project-advisor.md +111 -111
- package/agents/reviewer.md +172 -172
- package/agents/security-officer.md +194 -194
- package/agents/test-advisor.md +162 -162
- package/agents/update-coordinator.md +394 -394
- package/bin/knowzcode.mjs +1199 -956
- package/commands/audit.md +328 -328
- package/commands/connect-mcp.md +549 -549
- package/commands/fix.md +107 -107
- package/commands/init.md +500 -439
- package/commands/learn.md +332 -332
- package/commands/plan.md +272 -272
- package/commands/register.md +733 -733
- package/commands/status.md +309 -309
- package/commands/telemetry-setup.md +368 -368
- package/commands/telemetry.md +188 -188
- package/commands/work.md +1204 -1202
- package/knowzcode/automation_manifest.md +59 -59
- package/knowzcode/claude_code_execution.md +431 -420
- package/knowzcode/copilot_execution.md +231 -231
- package/knowzcode/enterprise/compliance_manifest.md +137 -137
- package/knowzcode/enterprise/compliance_status.md +30 -30
- package/knowzcode/enterprise/guidelines/code-quality.md +67 -67
- package/knowzcode/enterprise/guidelines/security.md +355 -355
- package/knowzcode/enterprise/templates/guideline-template.md +55 -55
- package/knowzcode/gitignore.template +13 -13
- package/knowzcode/knowzcode_architecture.md +51 -51
- package/knowzcode/knowzcode_log.md +142 -142
- package/knowzcode/knowzcode_loop.md +596 -596
- package/knowzcode/knowzcode_orchestration.md +66 -66
- package/knowzcode/knowzcode_project.md +48 -48
- package/knowzcode/knowzcode_tracker.md +40 -40
- package/knowzcode/knowzcode_vaults.md +257 -257
- package/knowzcode/mcp_config.md +191 -191
- package/knowzcode/planning/Readme.md +6 -6
- package/knowzcode/platform_adapters.md +1260 -1047
- 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/knowzcode/specs/Readme.md +10 -10
- package/knowzcode/telemetry_config.md +89 -89
- package/knowzcode/user_preferences.md +120 -120
- package/package.json +53 -53
- 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 +126 -126
- 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/start-work.md +224 -224
- 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
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "Execute the KnowzCode micro-fix workflow"
|
|
3
|
-
argument-hint: "<target> <summary>"
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# KnowzCode Micro-Fix
|
|
7
|
-
|
|
8
|
-
Execute a targeted micro-fix within the KnowzCode framework.
|
|
9
|
-
|
|
10
|
-
**Usage**: `/kc:fix <target> <summary>`
|
|
11
|
-
**Example**: `/kc:fix src/auth/login.ts "Fix null reference in password validation"`
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
## Scope Guard
|
|
16
|
-
|
|
17
|
-
**This command is for micro-fixes only.** Before proceeding, verify:
|
|
18
|
-
|
|
19
|
-
| Criteria | Required |
|
|
20
|
-
|----------|----------|
|
|
21
|
-
| Change affects ≤1 file | ✓ |
|
|
22
|
-
| Change is <50 lines | ✓ |
|
|
23
|
-
| No ripple effects to other components | ✓ |
|
|
24
|
-
| No new dependencies introduced | ✓ |
|
|
25
|
-
| Existing tests cover the change area | ✓ |
|
|
26
|
-
|
|
27
|
-
**If ANY criteria fails**: Stop and suggest `/kc:work` for full orchestration.
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
## Workflow Steps
|
|
32
|
-
|
|
33
|
-
### 1. Validate Scope
|
|
34
|
-
- Confirm the fix meets micro-fix criteria above
|
|
35
|
-
- If scope exceeds limits, redirect to `/kc:work`
|
|
36
|
-
|
|
37
|
-
### 2. Load Context
|
|
38
|
-
- Read the target file to understand current implementation
|
|
39
|
-
- Identify existing test coverage for the affected code
|
|
40
|
-
|
|
41
|
-
### 3. Implement Fix
|
|
42
|
-
- Apply the minimal change required
|
|
43
|
-
- Follow existing code patterns and style
|
|
44
|
-
|
|
45
|
-
### 4. Verification Loop (MANDATORY)
|
|
46
|
-
|
|
47
|
-
**⛔ DO NOT skip verification. DO NOT claim "done" without passing tests.**
|
|
48
|
-
|
|
49
|
-
```
|
|
50
|
-
REPEAT until all checks pass:
|
|
51
|
-
1. Run relevant tests:
|
|
52
|
-
- Unit tests covering the changed code
|
|
53
|
-
- Integration tests if the fix touches boundaries
|
|
54
|
-
- E2E tests if the fix affects user-facing behavior
|
|
55
|
-
|
|
56
|
-
2. If tests FAIL:
|
|
57
|
-
- Analyze failure
|
|
58
|
-
- Apply corrective fix
|
|
59
|
-
- RESTART verification from step 1
|
|
60
|
-
|
|
61
|
-
3. If tests PASS:
|
|
62
|
-
- Run static analysis / linter
|
|
63
|
-
- If issues found, fix and RESTART from step 1
|
|
64
|
-
|
|
65
|
-
4. All checks pass → Exit loop
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
**Test Selection Guidance:**
|
|
69
|
-
| Fix Type | Required Tests |
|
|
70
|
-
|----------|---------------|
|
|
71
|
-
| Logic bug in function | Unit tests for that function |
|
|
72
|
-
| API endpoint fix | Unit + Integration tests |
|
|
73
|
-
| UI/UX fix | Unit + E2E tests |
|
|
74
|
-
| Configuration fix | Integration tests |
|
|
75
|
-
| Data handling fix | Unit + Integration tests |
|
|
76
|
-
|
|
77
|
-
### 5. Log and Commit
|
|
78
|
-
- Log MicroFix entry in `knowzcode/knowzcode_log.md`
|
|
79
|
-
- Include verification evidence (which tests passed)
|
|
80
|
-
- Commit with `fix:` prefix
|
|
81
|
-
|
|
82
|
-
---
|
|
83
|
-
|
|
84
|
-
## Arguments
|
|
85
|
-
|
|
86
|
-
- `target` (required): NodeID or file path that requires the micro-fix
|
|
87
|
-
- `summary` (required): One-line description of the requested change
|
|
88
|
-
|
|
89
|
-
## Example Usage
|
|
90
|
-
|
|
91
|
-
```
|
|
92
|
-
/kc:fix src/auth/login.ts "Fix null reference in password validation"
|
|
93
|
-
/kc:fix NODE_AUTH_123 "Update error message formatting"
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
## Execution
|
|
97
|
-
|
|
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"`
|
|
106
|
-
|
|
107
|
-
> **Note:** Micro-fixes use subagent delegation only. Agent Teams overhead is not justified for single-file, <50 line fixes.
|
|
1
|
+
---
|
|
2
|
+
description: "Execute the KnowzCode micro-fix workflow"
|
|
3
|
+
argument-hint: "<target> <summary>"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# KnowzCode Micro-Fix
|
|
7
|
+
|
|
8
|
+
Execute a targeted micro-fix within the KnowzCode framework.
|
|
9
|
+
|
|
10
|
+
**Usage**: `/kc:fix <target> <summary>`
|
|
11
|
+
**Example**: `/kc:fix src/auth/login.ts "Fix null reference in password validation"`
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Scope Guard
|
|
16
|
+
|
|
17
|
+
**This command is for micro-fixes only.** Before proceeding, verify:
|
|
18
|
+
|
|
19
|
+
| Criteria | Required |
|
|
20
|
+
|----------|----------|
|
|
21
|
+
| Change affects ≤1 file | ✓ |
|
|
22
|
+
| Change is <50 lines | ✓ |
|
|
23
|
+
| No ripple effects to other components | ✓ |
|
|
24
|
+
| No new dependencies introduced | ✓ |
|
|
25
|
+
| Existing tests cover the change area | ✓ |
|
|
26
|
+
|
|
27
|
+
**If ANY criteria fails**: Stop and suggest `/kc:work` for full orchestration.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Workflow Steps
|
|
32
|
+
|
|
33
|
+
### 1. Validate Scope
|
|
34
|
+
- Confirm the fix meets micro-fix criteria above
|
|
35
|
+
- If scope exceeds limits, redirect to `/kc:work`
|
|
36
|
+
|
|
37
|
+
### 2. Load Context
|
|
38
|
+
- Read the target file to understand current implementation
|
|
39
|
+
- Identify existing test coverage for the affected code
|
|
40
|
+
|
|
41
|
+
### 3. Implement Fix
|
|
42
|
+
- Apply the minimal change required
|
|
43
|
+
- Follow existing code patterns and style
|
|
44
|
+
|
|
45
|
+
### 4. Verification Loop (MANDATORY)
|
|
46
|
+
|
|
47
|
+
**⛔ DO NOT skip verification. DO NOT claim "done" without passing tests.**
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
REPEAT until all checks pass:
|
|
51
|
+
1. Run relevant tests:
|
|
52
|
+
- Unit tests covering the changed code
|
|
53
|
+
- Integration tests if the fix touches boundaries
|
|
54
|
+
- E2E tests if the fix affects user-facing behavior
|
|
55
|
+
|
|
56
|
+
2. If tests FAIL:
|
|
57
|
+
- Analyze failure
|
|
58
|
+
- Apply corrective fix
|
|
59
|
+
- RESTART verification from step 1
|
|
60
|
+
|
|
61
|
+
3. If tests PASS:
|
|
62
|
+
- Run static analysis / linter
|
|
63
|
+
- If issues found, fix and RESTART from step 1
|
|
64
|
+
|
|
65
|
+
4. All checks pass → Exit loop
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**Test Selection Guidance:**
|
|
69
|
+
| Fix Type | Required Tests |
|
|
70
|
+
|----------|---------------|
|
|
71
|
+
| Logic bug in function | Unit tests for that function |
|
|
72
|
+
| API endpoint fix | Unit + Integration tests |
|
|
73
|
+
| UI/UX fix | Unit + E2E tests |
|
|
74
|
+
| Configuration fix | Integration tests |
|
|
75
|
+
| Data handling fix | Unit + Integration tests |
|
|
76
|
+
|
|
77
|
+
### 5. Log and Commit
|
|
78
|
+
- Log MicroFix entry in `knowzcode/knowzcode_log.md`
|
|
79
|
+
- Include verification evidence (which tests passed)
|
|
80
|
+
- Commit with `fix:` prefix
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## Arguments
|
|
85
|
+
|
|
86
|
+
- `target` (required): NodeID or file path that requires the micro-fix
|
|
87
|
+
- `summary` (required): One-line description of the requested change
|
|
88
|
+
|
|
89
|
+
## Example Usage
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
/kc:fix src/auth/login.ts "Fix null reference in password validation"
|
|
93
|
+
/kc:fix NODE_AUTH_123 "Update error message formatting"
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Execution
|
|
97
|
+
|
|
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"`
|
|
106
|
+
|
|
107
|
+
> **Note:** Micro-fixes use subagent delegation only. Agent Teams overhead is not justified for single-file, <50 line fixes.
|