knowzcode 0.3.1 → 0.3.6

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.
@@ -54,10 +54,33 @@ Specialized agents handle each phase when using Agent Teams or subagent executio
54
54
  - `/kc:learn "insight"` — Capture learning to vault
55
55
  - `/kc:status` — Check MCP connection and vault status
56
56
 
57
- ## MCP Integration (Optional)
57
+ ## MCP Integration
58
58
  If configured, agents use `search_knowledge`, `ask_question`, and `create_knowledge` for enhanced context.
59
59
  All commands work without MCP — it enhances but never blocks.
60
60
 
61
+ ### Knowledge Capture (CRITICAL — DO NOT SKIP)
62
+ Every piece of durable knowledge — decisions, patterns, gotchas, workarounds, convention changes —
63
+ **must** be captured. Knowledge lives in two places:
64
+
65
+ - **MCP vaults** (when connected): `knowzcode/knowzcode_vaults.md` defines vault IDs, routing rules,
66
+ and write conditions. Always pass `vaultId` when calling `create_knowledge` — omitting it saves
67
+ to the tenant default vault, NOT the project vault.
68
+ - **Local files** (always available): specs, workgroup files, log entries, architecture docs, and
69
+ `knowzcode/pending_captures.md` (scribe fallback queue when MCP is unavailable).
70
+
71
+ If MCP is not connected, knowledge still gets captured locally. Never let insights die in the conversation.
72
+
73
+ **Vault content detail**: Vault entries are retrieved via semantic search, not read directly like local files. Write detailed, self-contained entries with full reasoning, specific technology names, code examples, and file paths. Terse entries produce poor search results. See `knowzcode/knowzcode_vaults.md` Content Detail Principle.
74
+
75
+ ### Knowz-Scribe Delegation
76
+ When knowz-scribe is active (Agent Teams mode), it owns all vault writes — do NOT call `create_knowledge` directly. Send knowledge to the scribe instead:
77
+
78
+ - **Phase captures**: Handled automatically at quality gates via task-tracked DMs
79
+ - **Explicit**: `"Log: {description}"` — scribe MUST write it; it decides routing (which vault or local file)
80
+ - **Soft**: `"Consider: {description}"` — scribe evaluates whether to capture and where; may skip if not insight-worthy or duplicative
81
+
82
+ Any agent can send ad-hoc knowledge to the scribe at any time. The scribe handles routing, dedup, and formatting. If MCP is unavailable, the scribe queues captures to `knowzcode/pending_captures.md` for later sync. When no scribe is active, use `/kc:learn "insight"` for automatic routing.
83
+
61
84
  ## WorkGroup Files
62
85
  - Created in `knowzcode/workgroups/` (gitignored)
63
86
  - Every todo must start with `KnowzCode:` prefix
@@ -130,6 +153,13 @@ Read `knowzcode/knowzcode_loop.md` before starting any feature work.
130
153
  - Every WorkGroup todo must start with `KnowzCode:` prefix
131
154
  - Target <20 specs per project — consolidate when domains overlap
132
155
 
156
+ ## Knowledge Capture (CRITICAL — DO NOT SKIP)
157
+ Every piece of durable knowledge — decisions, patterns, gotchas, workarounds — **must** be captured.
158
+ When MCP is connected, write to vaults per `knowzcode/knowzcode_vaults.md` — always pass `vaultId` with `create_knowledge`.
159
+ When MCP is unavailable, capture locally in specs, log entries, or docs. Never let insights die in the conversation.
160
+ Use `/kc:learn "insight"` for automatic routing.
161
+ Vault entries are retrieved via semantic search — write detailed, self-contained content. See `knowzcode/knowzcode_vaults.md` Content Detail Principle.
162
+
133
163
  ## Quick Fix (Micro-Fix)
134
164
  For single-file, <50 line, no-ripple-effect changes:
135
165
  1. Implement the fix
@@ -242,6 +272,13 @@ Read these files before starting any feature work (use @import syntax for direct
242
272
  - Log completions in `knowzcode/knowzcode_log.md`
243
273
  - Target <20 specs — consolidate when domains overlap >50%
244
274
 
275
+ ## Knowledge Capture (CRITICAL — DO NOT SKIP)
276
+ Every piece of durable knowledge — decisions, patterns, gotchas, workarounds — **must** be captured.
277
+ When MCP is connected, write to vaults per `knowzcode/knowzcode_vaults.md` — always pass `vaultId` with `create_knowledge`.
278
+ When MCP is unavailable, capture locally in specs, log entries, or docs. Never let insights die in the conversation.
279
+ Use `/kc:learn "insight"` for automatic routing.
280
+ Vault entries are retrieved via semantic search — write detailed, self-contained content. See `knowzcode/knowzcode_vaults.md` Content Detail Principle.
281
+
245
282
  ## Micro-Fix (for small changes)
246
283
  Single file, <50 lines, no ripple effects:
247
284
  1. Implement fix → 2. Run tests → 3. Log MicroFix → 4. Commit with `fix:`
@@ -309,6 +346,13 @@ Before any feature work, read:
309
346
  - Target <20 specs per project
310
347
  - Read `knowzcode/knowzcode_tracker.md` for active work
311
348
  - Log completions in `knowzcode/knowzcode_log.md`
349
+
350
+ ## Knowledge Capture (CRITICAL — DO NOT SKIP)
351
+ Every piece of durable knowledge — decisions, patterns, gotchas, workarounds — **must** be captured.
352
+ When MCP is connected, write to vaults per `knowzcode/knowzcode_vaults.md` — always pass `vaultId` with `create_knowledge`.
353
+ When MCP is unavailable, capture locally in specs, log entries, or docs. Never let insights die in the conversation.
354
+ Use `/kc:learn "insight"` for automatic routing.
355
+ Vault entries are retrieved via semantic search — write detailed, self-contained content. See `knowzcode/knowzcode_vaults.md` Content Detail Principle.
312
356
  ```
313
357
 
314
358
  ---
@@ -397,11 +441,18 @@ Follow Red-Green-Refactor for every feature/criterion in the spec.
397
441
  - `knowzcode/specs/` — Component specifications
398
442
  - `knowzcode/workgroups/` — Active session data (gitignored)
399
443
 
400
- ## MCP Integration (Optional)
444
+ ## MCP Integration
401
445
 
402
446
  If configured in `.vscode/mcp.json`, use `search_knowledge` and `ask_question` tools
403
447
  for enhanced context from knowledge vaults. All prompts work without MCP.
404
448
 
449
+ ## Knowledge Capture (CRITICAL — DO NOT SKIP)
450
+ Every piece of durable knowledge — decisions, patterns, gotchas, workarounds — **must** be captured.
451
+ When MCP is connected, write to vaults per `knowzcode/knowzcode_vaults.md` — always pass `vaultId` with `create_knowledge`.
452
+ When MCP is unavailable, capture locally in specs, log entries, or docs. Never let insights die in the conversation.
453
+ Use `/kc:learn "insight"` for automatic routing.
454
+ Vault entries are retrieved via semantic search — write detailed, self-contained content. See `knowzcode/knowzcode_vaults.md` Content Detail Principle.
455
+
405
456
  ## Copilot Coding Agent
406
457
 
407
458
  When the Copilot Coding Agent works on GitHub issues for this repository:
@@ -872,22 +923,22 @@ Optionally generated by `/kc:init` when Copilot is detected and MCP is configure
872
923
  ```json
873
924
  {
874
925
  "servers": {
875
- "knowzcode": {
926
+ "knowz": {
876
927
  "type": "http",
877
- "url": "${input:knowzcode_mcp_url}",
928
+ "url": "${input:knowz_mcp_url}",
878
929
  "headers": {
879
- "x-api-key": "${input:knowzcode_api_key}"
930
+ "x-api-key": "${input:knowz_api_key}"
880
931
  }
881
932
  }
882
933
  },
883
934
  "inputs": [
884
935
  {
885
- "id": "knowzcode_mcp_url",
936
+ "id": "knowz_mcp_url",
886
937
  "description": "KnowzCode MCP server URL",
887
938
  "type": "promptString"
888
939
  },
889
940
  {
890
- "id": "knowzcode_api_key",
941
+ "id": "knowz_api_key",
891
942
  "description": "KnowzCode API key",
892
943
  "type": "promptString",
893
944
  "password": true
@@ -973,6 +1024,13 @@ Follow `knowzcode/knowzcode_loop.md` for all feature development.
973
1024
  - Target <20 specs per project
974
1025
  - Every WorkGroup todo starts with `KnowzCode:` prefix
975
1026
 
1027
+ ## Knowledge Capture (CRITICAL — DO NOT SKIP)
1028
+ Every piece of durable knowledge — decisions, patterns, gotchas, workarounds — **must** be captured.
1029
+ When MCP is connected, write to vaults per `knowzcode/knowzcode_vaults.md` — always pass `vaultId` with `create_knowledge`.
1030
+ When MCP is unavailable, capture locally in specs, log entries, or docs. Never let insights die in the conversation.
1031
+ Use `/kc:learn "insight"` for automatic routing.
1032
+ Vault entries are retrieved via semantic search — write detailed, self-contained content. See `knowzcode/knowzcode_vaults.md` Content Detail Principle.
1033
+
976
1034
  ## Micro-Fix (for small changes)
977
1035
  Single file, <50 lines, no ripple effects:
978
1036
  Implement → Test → Log MicroFix → Commit with `fix:` prefix
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knowzcode",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
4
4
  "description": "Platform-agnostic AI development methodology with TDD, quality gates, and structured workflows",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alias-resolver",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
4
4
  "description": "Resolves friendly natural-language aliases to KnowzCode canonical values (phase, audit, plan, workgroup_type).",
5
5
  "parameters": [
6
6
  {"name": "domain", "type": "string", "required": true},
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "architecture-diff",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
4
4
  "description": "Highlights differences between specs and the Mermaid flowchart in knowzcode_architecture.md.",
5
5
  "parameters": [],
6
6
  "actions": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "check-installation-status",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
4
4
  "description": "Checks if KnowzCode is initialized in the current project and reports current status",
5
5
 
6
6
  "parameters": [],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "environment-guard",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
4
4
  "description": "Verifies that knowzcode/environment_context.md no longer contains placeholder brackets.",
5
5
  "parameters": [],
6
6
  "actions": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generate-workgroup-id",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
4
4
  "description": "Generates a WorkGroupID following the KnowzCode convention [type]-[slug]-YYYYMMDD-HHMMSS. The slug is a 2-4 word descriptor extracted from the goal.",
5
5
  "parameters": [
6
6
  {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "install-knowzcode",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
4
4
  "description": "Initializes KnowzCode directory structure and required files in the current project",
5
5
 
6
6
  "parameters": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "load-core-context",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
4
4
  "description": "Loads the KnowzCode project overview, architecture, tracker, log header, and automation manifest for downstream steps.",
5
5
  "parameters": [],
6
6
  "actions": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "log-entry-builder",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
4
4
  "description": "Appends structured entries to knowzcode/knowzcode_log.md with KnowzCode formatting.",
5
5
  "parameters": [
6
6
  {"name": "entry_type", "type": "string", "required": true},
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spec-quality-check",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
4
4
  "description": "Validates KnowzCode spec files for mandatory sections. Supports new 4-section format and legacy numbered format.",
5
5
  "parameters": [
6
6
  {"name": "node_id", "type": "string", "required": true}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spec-template",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
4
4
  "description": "Seeds or repairs KnowzCode spec files with the lean 4-section template.",
5
5
  "parameters": [
6
6
  {"name": "node_id", "type": "string", "required": true},
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spec-validator",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
4
4
  "description": "Validates NodeID specification completeness and quality. Supports new 4-section format (preferred) and legacy numbered sections (deprecated).",
5
5
  "parameters": [
6
6
  {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tracker-scan",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
4
4
  "description": "Extracts NodeID statuses and WorkGroup assignments from the KnowzCode tracker.",
5
5
  "parameters": [],
6
6
  "actions": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tracker-update",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
4
4
  "description": "Applies validated updates to knowzcode/knowzcode_tracker.md while preserving table structure.",
5
5
  "parameters": [
6
6
  {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "validate-installation",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
4
4
  "description": "Validates that KnowzCode installation completed successfully with required directories and files",
5
5
 
6
6
  "parameters": [],