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
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.