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.
- package/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +1 -1
- package/agents/analyst.md +31 -0
- package/agents/architect.md +67 -0
- package/agents/closer.md +6 -1
- package/agents/knowz-scribe.md +60 -35
- package/agents/project-advisor.md +4 -3
- package/commands/connect-mcp.md +29 -5
- package/commands/learn.md +6 -1
- package/commands/register.md +5 -5
- package/commands/status.md +1 -1
- package/commands/work.md +154 -24
- package/knowzcode/claude_code_execution.md +28 -10
- package/knowzcode/knowzcode_loop.md +13 -3
- package/knowzcode/knowzcode_vaults.md +37 -13
- package/knowzcode/platform_adapters.md +65 -7
- 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/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
|
@@ -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
|
|
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
|
|
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
|
-
"
|
|
926
|
+
"knowz": {
|
|
876
927
|
"type": "http",
|
|
877
|
-
"url": "${input:
|
|
928
|
+
"url": "${input:knowz_mcp_url}",
|
|
878
929
|
"headers": {
|
|
879
|
-
"x-api-key": "${input:
|
|
930
|
+
"x-api-key": "${input:knowz_api_key}"
|
|
880
931
|
}
|
|
881
932
|
}
|
|
882
933
|
},
|
|
883
934
|
"inputs": [
|
|
884
935
|
{
|
|
885
|
-
"id": "
|
|
936
|
+
"id": "knowz_mcp_url",
|
|
886
937
|
"description": "KnowzCode MCP server URL",
|
|
887
938
|
"type": "promptString"
|
|
888
939
|
},
|
|
889
940
|
{
|
|
890
|
-
"id": "
|
|
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": "alias-resolver",
|
|
3
|
-
"version": "0.3.
|
|
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": "generate-workgroup-id",
|
|
3
|
-
"version": "0.3.
|
|
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": "spec-quality-check",
|
|
3
|
-
"version": "0.3.
|
|
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}
|
package/skills/tracker-scan.json
CHANGED