knowzcode 0.4.0 → 0.6.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.
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 +1801 -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,66 +1,66 @@
1
- # KnowzCode Orchestration Configuration
2
-
3
- **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.
4
-
5
- ---
6
-
7
- ## Builder Configuration
8
-
9
- ```yaml
10
- # Maximum concurrent builders in Parallel Teams mode (default: 5, range: 1-5)
11
- # Lower values reduce token usage and complexity; higher values increase parallelism.
12
- # If the dependency map produces fewer partitions, fewer builders spawn regardless.
13
- max_builders: 5
14
- ```
15
-
16
- ---
17
-
18
- ## Scout Configuration
19
-
20
- ```yaml
21
- # Scout mode controls context-scout spawning at Stage 0 (default: full)
22
- # full — 3 scouts: specs, workgroups, backlog (default)
23
- # minimal — 1 scout: combined scan of all local context
24
- # none — skip scouts entirely (lead loads context inline)
25
- scout_mode: full
26
- ```
27
-
28
- ---
29
-
30
- ## Specialist Defaults
31
-
32
- ```yaml
33
- # Specialists enabled by default for this project (default: none)
34
- # These activate without needing --specialists on every invocation.
35
- # Per-invocation --no-specialists overrides this setting.
36
- # Values: security-officer, test-advisor, project-advisor
37
- default_specialists: []
38
-
39
- # Examples:
40
- # default_specialists: [security-officer]
41
- # default_specialists: [security-officer, test-advisor]
42
- # default_specialists: [security-officer, test-advisor, project-advisor]
43
- ```
44
-
45
- ---
46
-
47
- ## MCP Agent Configuration
48
-
49
- ```yaml
50
- # Enable MCP agents (knowz-scout, knowz-scribe) when vaults are configured (default: true)
51
- # Set to false to skip vault agents even when vaults exist — reduces agent count.
52
- mcp_agents_enabled: true
53
- ```
54
-
55
- ---
56
-
57
- ## Override Precedence
58
-
59
- | Setting | Config Default | Flag Override |
60
- |---------|---------------|--------------|
61
- | max_builders | `max_builders:` | `--max-builders=N` |
62
- | scout_mode | `scout_mode:` | `--no-scouts` |
63
- | default_specialists | `default_specialists:` | `--specialists`, `--no-specialists` |
64
- | mcp_agents_enabled | `mcp_agents_enabled:` | `--no-mcp` |
65
-
66
- Per-invocation flags always win. `--specialists` adds to defaults; `--no-specialists` clears all.
1
+ # KnowzCode Orchestration Configuration
2
+
3
+ **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.
4
+
5
+ ---
6
+
7
+ ## Builder Configuration
8
+
9
+ ```yaml
10
+ # Maximum concurrent builders in Parallel Teams mode (default: 5, range: 1-5)
11
+ # Lower values reduce token usage and complexity; higher values increase parallelism.
12
+ # If the dependency map produces fewer partitions, fewer builders spawn regardless.
13
+ max_builders: 5
14
+ ```
15
+
16
+ ---
17
+
18
+ ## Scout Configuration
19
+
20
+ ```yaml
21
+ # Scout mode controls context-scout spawning at Stage 0 (default: full)
22
+ # full — 3 scouts: specs, workgroups, backlog (default)
23
+ # minimal — 1 scout: combined scan of all local context
24
+ # none — skip scouts entirely (lead loads context inline)
25
+ scout_mode: full
26
+ ```
27
+
28
+ ---
29
+
30
+ ## Specialist Defaults
31
+
32
+ ```yaml
33
+ # Specialists enabled by default for this project (default: none)
34
+ # These activate without needing --specialists on every invocation.
35
+ # Per-invocation --no-specialists overrides this setting.
36
+ # Values: security-officer, test-advisor, project-advisor
37
+ default_specialists: []
38
+
39
+ # Examples:
40
+ # default_specialists: [security-officer]
41
+ # default_specialists: [security-officer, test-advisor]
42
+ # default_specialists: [security-officer, test-advisor, project-advisor]
43
+ ```
44
+
45
+ ---
46
+
47
+ ## MCP Agent Configuration
48
+
49
+ ```yaml
50
+ # Enable MCP agents (knowz-scout, knowz-scribe) when vaults are configured (default: true)
51
+ # Set to false to skip vault agents even when vaults exist — reduces agent count.
52
+ mcp_agents_enabled: true
53
+ ```
54
+
55
+ ---
56
+
57
+ ## Override Precedence
58
+
59
+ | Setting | Config Default | Flag Override |
60
+ |---------|---------------|--------------|
61
+ | max_builders | `max_builders:` | `--max-builders=N` |
62
+ | scout_mode | `scout_mode:` | `--no-scouts` |
63
+ | default_specialists | `default_specialists:` | `--specialists`, `--no-specialists` |
64
+ | mcp_agents_enabled | `mcp_agents_enabled:` | `--no-mcp` |
65
+
66
+ Per-invocation flags always win. `--specialists` adds to defaults; `--no-specialists` clears all.
@@ -1,48 +1,48 @@
1
- # Project Overview
2
-
3
- ## Goal
4
- * **Goal:** [concise project objective — 1-2 sentences]
5
- * **Core Problem:** [specific user problem this solves — 1-2 sentences]
6
-
7
- ## Stack
8
-
9
- | Category | Technology | Version |
10
- |:---------|:-----------|:--------|
11
- | Language | | |
12
- | Backend Framework | | |
13
- | Frontend Framework | | |
14
- | Database | | |
15
- | ORM/ODM | | |
16
- | Testing (Unit) | | |
17
- | Testing (E2E) | | |
18
- | Key Libraries | | |
19
-
20
- ## Architecture
21
- * **Style:** [e.g., Monolithic, Microservices, Serverless]
22
- * **Key Components:** [2-3 sentence description of main components and interactions]
23
-
24
- ## Standards
25
- * **Formatter:** [e.g., Prettier, Black]
26
- * **Linter:** [e.g., ESLint, Flake8]
27
- * **Test Framework:** [e.g., Jest, PyTest]
28
- * **Commit Convention:** [e.g., Conventional Commits]
29
- * **File Naming:** [e.g., kebab-case.js, PascalCase.tsx]
30
-
31
- ### Component Classification
32
- * **Standard**: Simple components, clear inputs/outputs, minimal business logic
33
- * **Complex**: Significant business logic, multiple dependencies, state management
34
- * **Critical**: Security, payments, user data, system stability
35
-
36
- ## Testing
37
- * **Unit Tests:** Required for core business logic and utilities
38
- * **Integration Tests:** Required for API endpoints and service interactions
39
- * **E2E Tests:** [Optional for MVP — describe scope if applicable]
40
- * **Coverage Target:** [e.g., >70% for core logic]
41
- * **Test Location:** [e.g., adjacent `*.test.js` or `tests/` directory]
42
-
43
- ## Security Priorities
44
- * **Authentication:** [method — session-based, JWT, etc. Passwords MUST be hashed]
45
- * **Authorization:** [approach — RBAC, ownership checks, etc.]
46
- * **Input Validation:** All user inputs validated server-side
47
- * **Secrets:** Environment variables only, never hardcoded
48
- * **Dependencies:** Regular `npm audit` / `pip-audit` checks
1
+ # Project Overview
2
+
3
+ ## Goal
4
+ * **Goal:** [concise project objective — 1-2 sentences]
5
+ * **Core Problem:** [specific user problem this solves — 1-2 sentences]
6
+
7
+ ## Stack
8
+
9
+ | Category | Technology | Version |
10
+ |:---------|:-----------|:--------|
11
+ | Language | | |
12
+ | Backend Framework | | |
13
+ | Frontend Framework | | |
14
+ | Database | | |
15
+ | ORM/ODM | | |
16
+ | Testing (Unit) | | |
17
+ | Testing (E2E) | | |
18
+ | Key Libraries | | |
19
+
20
+ ## Architecture
21
+ * **Style:** [e.g., Monolithic, Microservices, Serverless]
22
+ * **Key Components:** [2-3 sentence description of main components and interactions]
23
+
24
+ ## Standards
25
+ * **Formatter:** [e.g., Prettier, Black]
26
+ * **Linter:** [e.g., ESLint, Flake8]
27
+ * **Test Framework:** [e.g., Jest, PyTest]
28
+ * **Commit Convention:** [e.g., Conventional Commits]
29
+ * **File Naming:** [e.g., kebab-case.js, PascalCase.tsx]
30
+
31
+ ### Component Classification
32
+ * **Standard**: Simple components, clear inputs/outputs, minimal business logic
33
+ * **Complex**: Significant business logic, multiple dependencies, state management
34
+ * **Critical**: Security, payments, user data, system stability
35
+
36
+ ## Testing
37
+ * **Unit Tests:** Required for core business logic and utilities
38
+ * **Integration Tests:** Required for API endpoints and service interactions
39
+ * **E2E Tests:** [Optional for MVP — describe scope if applicable]
40
+ * **Coverage Target:** [e.g., >70% for core logic]
41
+ * **Test Location:** [e.g., adjacent `*.test.js` or `tests/` directory]
42
+
43
+ ## Security Priorities
44
+ * **Authentication:** [method — session-based, JWT, etc. Passwords MUST be hashed]
45
+ * **Authorization:** [approach — RBAC, ownership checks, etc.]
46
+ * **Input Validation:** All user inputs validated server-side
47
+ * **Secrets:** Environment variables only, never hardcoded
48
+ * **Dependencies:** Regular `npm audit` / `pip-audit` checks
@@ -1,40 +1,40 @@
1
- # ◆ KnowzCode - Status Map
2
-
3
- **Purpose:** This document tracks the development status of all implementable components (NodeIDs) defined in `knowzcode_architecture.md`. It guides task selection, groups related work via `WorkGroupID`, and provides a quick overview of project progress. It is updated by the KnowzCode AI Agent as per `knowzcode_loop.md`.
4
-
5
- **Note:** All paths are relative to the project root where the knowzcode files reside. The specs/ directory is within your project directory alongside other knowzcode files.
6
-
7
- ---
8
- **Progress: 0%**
9
- ---
10
-
11
- | Status | WorkGroupID | Node ID | Label | Dependencies | Logical Grouping | Spec Link | Classification | Notes / Issues |
12
- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
13
- | ⚪️ `[TODO]` | | `[ExampleNodeID]` | `[Example Node Label]` | `[DepNodeID1]` | `[Example Group]` | `[Spec](knowzcode/specs/ExampleNodeID.md)` | `[Standard]` | |
14
- | | | | | | | | | |
15
- | | | | | | | | | |
16
-
17
- ---
18
- ### ◆ KnowzCode Status Legend:
19
-
20
- * ⚪️ **`[TODO]`**: Task is defined and ready to be picked up if dependencies are met. This status also applies to `REFACTOR_` tasks created from technical debt.
21
- * 📝 **`[NEEDS_SPEC]`**: Node has been identified in the architecture but requires a detailed specification to be drafted.
22
- * ◆ **`[WIP]`**: ◆ **KnowzCode Working** - Work In Progress. The KnowzCode AI Agent is currently working on this node as part of the specified `WorkGroupID`.
23
- * 🟢 **`[VERIFIED]`**: The primary completion state. The node has been implemented, all ARC Verification Criteria are met, the spec is finalized to "as-built", and all outcomes are logged.
24
- * ❗ **`[ISSUE]`**: A significant issue or blocker has been identified, preventing progress. Details should be in `knowzcode_log.md` or linked in the "Notes / Issues" column.
25
-
26
- ---
27
- ### Notes on Columns:
28
-
29
- * **Status**: The current state of the NodeID (see Legend above).
30
- * **WorkGroupID**: A unique ID assigned to a "Change Set" of nodes being worked on together. This is blank unless the `Status` is `[WIP]`.
31
- * **Node ID**: The unique identifier for the component, matching the ID used in `knowzcode/knowzcode_architecture.md`.
32
- * **Label**: A concise, human-readable name for the NodeID.
33
- * **Dependencies**: A comma-separated list of `NodeID`s that must be `[VERIFIED]` before work on this node can begin. Only reference NodeIDs that exist in the architecture diagram. If a dependency's spec doesn't exist, that dependency must be `[NEEDS_SPEC]` status.
34
- * **Logical Grouping**: An optional tag to categorize nodes by feature, module, or layer (e.g., "Authentication", "UserAPI").
35
- * **Spec Link**: A relative Markdown link to the corresponding specification file in the `knowzcode/specs/` directory.
36
- * **Classification**: Optional tag (e.g., `Critical`, `Complex`, `Standard`) to influence planning and review intensity.
37
- * **Notes / Issues**: Brief comments, or a reference to a more detailed issue in `knowzcode/knowzcode_log.md`.
38
-
39
- ---
40
- *(This table will be populated based on `knowzcode_architecture.md`. The AI Agent will then update the `Status` and `WorkGroupID` columns as it processes each Change Set according to `knowzcode_loop.md`.)*
1
+ # ◆ KnowzCode - Status Map
2
+
3
+ **Purpose:** This document tracks the development status of all implementable components (NodeIDs) defined in `knowzcode_architecture.md`. It guides task selection, groups related work via `WorkGroupID`, and provides a quick overview of project progress. It is updated by the KnowzCode AI Agent as per `knowzcode_loop.md`.
4
+
5
+ **Note:** All paths are relative to the project root where the knowzcode files reside. The specs/ directory is within your project directory alongside other knowzcode files.
6
+
7
+ ---
8
+ **Progress: 0%**
9
+ ---
10
+
11
+ | Status | WorkGroupID | Node ID | Label | Dependencies | Logical Grouping | Spec Link | Classification | Notes / Issues |
12
+ | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
13
+ | ⚪️ `[TODO]` | | `[ExampleNodeID]` | `[Example Node Label]` | `[DepNodeID1]` | `[Example Group]` | `[Spec](knowzcode/specs/ExampleNodeID.md)` | `[Standard]` | |
14
+ | | | | | | | | | |
15
+ | | | | | | | | | |
16
+
17
+ ---
18
+ ### ◆ KnowzCode Status Legend:
19
+
20
+ * ⚪️ **`[TODO]`**: Task is defined and ready to be picked up if dependencies are met. This status also applies to `REFACTOR_` tasks created from technical debt.
21
+ * 📝 **`[NEEDS_SPEC]`**: Node has been identified in the architecture but requires a detailed specification to be drafted.
22
+ * ◆ **`[WIP]`**: ◆ **KnowzCode Working** - Work In Progress. The KnowzCode AI Agent is currently working on this node as part of the specified `WorkGroupID`.
23
+ * 🟢 **`[VERIFIED]`**: The primary completion state. The node has been implemented, all ARC Verification Criteria are met, the spec is finalized to "as-built", and all outcomes are logged.
24
+ * ❗ **`[ISSUE]`**: A significant issue or blocker has been identified, preventing progress. Details should be in `knowzcode_log.md` or linked in the "Notes / Issues" column.
25
+
26
+ ---
27
+ ### Notes on Columns:
28
+
29
+ * **Status**: The current state of the NodeID (see Legend above).
30
+ * **WorkGroupID**: A unique ID assigned to a "Change Set" of nodes being worked on together. This is blank unless the `Status` is `[WIP]`.
31
+ * **Node ID**: The unique identifier for the component, matching the ID used in `knowzcode/knowzcode_architecture.md`.
32
+ * **Label**: A concise, human-readable name for the NodeID.
33
+ * **Dependencies**: A comma-separated list of `NodeID`s that must be `[VERIFIED]` before work on this node can begin. Only reference NodeIDs that exist in the architecture diagram. If a dependency's spec doesn't exist, that dependency must be `[NEEDS_SPEC]` status.
34
+ * **Logical Grouping**: An optional tag to categorize nodes by feature, module, or layer (e.g., "Authentication", "UserAPI").
35
+ * **Spec Link**: A relative Markdown link to the corresponding specification file in the `knowzcode/specs/` directory.
36
+ * **Classification**: Optional tag (e.g., `Critical`, `Complex`, `Standard`) to influence planning and review intensity.
37
+ * **Notes / Issues**: Brief comments, or a reference to a more detailed issue in `knowzcode/knowzcode_log.md`.
38
+
39
+ ---
40
+ *(This table will be populated based on `knowzcode_architecture.md`. The AI Agent will then update the `Status` and `WorkGroupID` columns as it processes each Change Set according to `knowzcode_loop.md`.)*