knowzcode 0.1.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 +55 -0
- package/.claude-plugin/plugin.json +8 -0
- package/LICENSE +121 -0
- package/README.md +223 -0
- package/agents/analyst.md +121 -0
- package/agents/architect.md +121 -0
- package/agents/builder.md +155 -0
- package/agents/closer.md +148 -0
- package/agents/knowledge-migrator.md +349 -0
- package/agents/microfix-specialist.md +140 -0
- package/agents/reviewer.md +220 -0
- package/agents/update-coordinator.md +405 -0
- package/bin/knowzcode.mjs +869 -0
- package/commands/audit.md +108 -0
- package/commands/connect-mcp.md +507 -0
- package/commands/fix.md +107 -0
- package/commands/init.md +320 -0
- package/commands/learn.md +308 -0
- package/commands/plan.md +125 -0
- package/commands/register.md +724 -0
- package/commands/status.md +291 -0
- package/commands/telemetry-setup.md +368 -0
- package/commands/telemetry.md +188 -0
- package/commands/work.md +390 -0
- package/knowzcode/automation_manifest.md +59 -0
- package/knowzcode/claude_code_execution.md +133 -0
- package/knowzcode/enterprise/compliance_manifest.md +132 -0
- package/knowzcode/enterprise/compliance_status.md +30 -0
- package/knowzcode/enterprise/guidelines/code-quality.md +67 -0
- package/knowzcode/enterprise/guidelines/custom/.gitkeep +0 -0
- package/knowzcode/enterprise/guidelines/security.md +355 -0
- package/knowzcode/enterprise/reports/.gitkeep +0 -0
- package/knowzcode/enterprise/templates/guideline-template.md +55 -0
- package/knowzcode/gitignore.template +13 -0
- package/knowzcode/knowzcode_architecture.md +51 -0
- package/knowzcode/knowzcode_log.md +142 -0
- package/knowzcode/knowzcode_loop.md +515 -0
- package/knowzcode/knowzcode_project.md +233 -0
- package/knowzcode/knowzcode_tracker.md +40 -0
- package/knowzcode/knowzcode_vaults.md +104 -0
- package/knowzcode/mcp_config.md +166 -0
- package/knowzcode/planning/Readme.md +6 -0
- package/knowzcode/platform_adapters.md +388 -0
- package/knowzcode/prompts/Execute_Micro_Fix.md +57 -0
- package/knowzcode/prompts/Investigate_Codebase.md +227 -0
- package/knowzcode/prompts/Migrate_Knowledge.md +301 -0
- package/knowzcode/prompts/Refactor_Node.md +72 -0
- package/knowzcode/prompts/Spec_Verification_Checkpoint.md +59 -0
- package/knowzcode/prompts/[LOOP_1A]__Propose_Change_Set.md +52 -0
- package/knowzcode/prompts/[LOOP_1B]__Draft_Specs.md +75 -0
- package/knowzcode/prompts/[LOOP_2A]__Implement_Change_Set.md +55 -0
- package/knowzcode/prompts/[LOOP_2B]__Verify_Implementation.md +72 -0
- package/knowzcode/prompts/[LOOP_3]__Finalize_And_Commit.md +67 -0
- package/knowzcode/specs/Readme.md +10 -0
- package/knowzcode/telemetry_config.md +89 -0
- package/knowzcode/user_preferences.md +120 -0
- package/package.json +53 -0
- package/skills/alias-resolver.json +15 -0
- package/skills/architecture-diff.json +12 -0
- package/skills/check-installation-status.json +14 -0
- package/skills/continue.md +105 -0
- package/skills/environment-guard.json +12 -0
- package/skills/generate-workgroup-id.json +25 -0
- package/skills/install-knowzcode.json +21 -0
- package/skills/load-core-context.json +18 -0
- package/skills/log-entry-builder.json +15 -0
- package/skills/spec-quality-check.json +14 -0
- package/skills/spec-template.json +15 -0
- package/skills/spec-validator.json +25 -0
- package/skills/start-work.md +224 -0
- package/skills/tracker-scan.json +12 -0
- package/skills/tracker-update.json +28 -0
- package/skills/validate-installation.json +14 -0
package/commands/fix.md
ADDED
|
@@ -0,0 +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()`. Pass the target file/NodeID and fix summary.
|
|
99
|
+
|
|
100
|
+
The agent validates scope, implements the minimal fix, runs the verification loop, logs the outcome, and commits.
|
|
101
|
+
|
|
102
|
+
> **Note:** Micro-fixes use subagent delegation only. Agent Teams overhead is not justified for single-file, <50 line fixes.
|
|
103
|
+
|
|
104
|
+
## Context Files
|
|
105
|
+
|
|
106
|
+
- knowzcode/automation_manifest.md
|
|
107
|
+
- knowzcode/prompts/Execute_Micro_Fix.md
|
package/commands/init.md
ADDED
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Initialize KnowzCode framework in the current project
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# KnowzCode Project Initialization
|
|
6
|
+
|
|
7
|
+
You are the **KnowzCode Initialization Agent**. Set up the KnowzCode framework in the current working directory.
|
|
8
|
+
|
|
9
|
+
## What KnowzCode Provides
|
|
10
|
+
|
|
11
|
+
KnowzCode is an AI-powered development methodology that provides:
|
|
12
|
+
- **Structured TDD workflow** with quality gates
|
|
13
|
+
- **Specification-driven development** with living documentation
|
|
14
|
+
- **Comprehensive tracking** of WorkGroups and specifications
|
|
15
|
+
- **Platform-agnostic** — works with Claude Code, Codex, Gemini, Cursor, Copilot, and more
|
|
16
|
+
|
|
17
|
+
## Steps to Execute
|
|
18
|
+
|
|
19
|
+
### 1. Check if already initialized
|
|
20
|
+
|
|
21
|
+
- Look for existing `knowzcode/` directory
|
|
22
|
+
- If exists and has content, ask user:
|
|
23
|
+
- **Abort** (preserve existing)
|
|
24
|
+
- **Merge** (add missing files only)
|
|
25
|
+
- **Overwrite** (reset to templates)
|
|
26
|
+
|
|
27
|
+
### 2. Create directory structure
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
knowzcode/
|
|
31
|
+
├── knowzcode_project.md
|
|
32
|
+
├── knowzcode_tracker.md
|
|
33
|
+
├── knowzcode_log.md
|
|
34
|
+
├── knowzcode_architecture.md
|
|
35
|
+
├── knowzcode_loop.md
|
|
36
|
+
├── platform_adapters.md
|
|
37
|
+
├── environment_context.md
|
|
38
|
+
├── user_preferences.md (if configured)
|
|
39
|
+
├── .gitignore
|
|
40
|
+
├── specs/
|
|
41
|
+
├── workgroups/
|
|
42
|
+
├── prompts/
|
|
43
|
+
└── enterprise/ (optional)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### 3. Copy template files
|
|
47
|
+
|
|
48
|
+
Use the embedded templates below.
|
|
49
|
+
|
|
50
|
+
### 4. Generate environment context
|
|
51
|
+
|
|
52
|
+
- Detect project language, framework, tools
|
|
53
|
+
- Populate `environment_context.md`
|
|
54
|
+
- Include package managers, test runners, build tools
|
|
55
|
+
|
|
56
|
+
### 5. Capture user preferences (optional)
|
|
57
|
+
|
|
58
|
+
- Ask: "Would you like to configure development preferences? (optional)"
|
|
59
|
+
- If yes: prompt for testing frameworks, code style, quality priorities
|
|
60
|
+
- Create `knowzcode/user_preferences.md`
|
|
61
|
+
|
|
62
|
+
### 6. Create .gitignore
|
|
63
|
+
|
|
64
|
+
Protect environment-specific files from git:
|
|
65
|
+
```
|
|
66
|
+
environment_context.md
|
|
67
|
+
workgroups/
|
|
68
|
+
*.local.md
|
|
69
|
+
.scratch/
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### 7. Detect AI platforms and generate adapters
|
|
73
|
+
|
|
74
|
+
Check which AI platforms are present and offer to generate adapter files.
|
|
75
|
+
|
|
76
|
+
**Step 7a: Detect platforms**
|
|
77
|
+
```
|
|
78
|
+
CHECK for existing files:
|
|
79
|
+
- CLAUDE.md → offer to append KnowzCode section
|
|
80
|
+
- AGENTS.md or AGENTS.override.md → offer to generate Codex adapter
|
|
81
|
+
- GEMINI.md or ~/.gemini/GEMINI.md → offer to generate Gemini adapter
|
|
82
|
+
- .cursor/rules/ or .cursorrules (deprecated) → offer Cursor adapter (.cursor/rules/knowzcode.mdc)
|
|
83
|
+
- .github/copilot-instructions.md → offer Copilot adapter
|
|
84
|
+
- .windsurf/rules/ or .windsurfrules (deprecated) → offer Windsurf adapter (.windsurf/rules/knowzcode.md)
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**Step 7b: Present options**
|
|
88
|
+
```
|
|
89
|
+
PRESENT to user:
|
|
90
|
+
"Which AI platform adapters would you like to generate?"
|
|
91
|
+
Options:
|
|
92
|
+
- Detected platforms only
|
|
93
|
+
- All platforms
|
|
94
|
+
- Skip (just use knowzcode/ directly)
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
**Step 7c: Generate project-specific adapters**
|
|
98
|
+
|
|
99
|
+
When generating adapters, inject detected project info to make them project-specific:
|
|
100
|
+
|
|
101
|
+
1. From `environment_context.md`, extract:
|
|
102
|
+
- Test runner command (e.g., `npm test`, `pytest`, `dotnet test`)
|
|
103
|
+
- Build command (e.g., `npm run build`, `go build`)
|
|
104
|
+
- Language/framework (e.g., TypeScript/React, Python/FastAPI)
|
|
105
|
+
|
|
106
|
+
2. Inject into adapter templates where applicable:
|
|
107
|
+
- Replace generic test/build references with detected commands
|
|
108
|
+
- Add framework-specific notes (e.g., "Use Composer for multi-file React edits" for Cursor)
|
|
109
|
+
|
|
110
|
+
3. For Codex: note that `AGENTS.override.md` can be used for user-local overrides
|
|
111
|
+
|
|
112
|
+
**Step 7d: Validate generated adapters**
|
|
113
|
+
|
|
114
|
+
After generation, verify each adapter:
|
|
115
|
+
- References correct `knowzcode/` file paths
|
|
116
|
+
- Contains all 5 phase descriptions
|
|
117
|
+
- Mentions TDD enforcement and quality gates
|
|
118
|
+
- Includes PAUSE/STOP instructions at quality gates
|
|
119
|
+
|
|
120
|
+
Adapter templates are in `knowzcode/platform_adapters.md`. Copy the relevant sections into the appropriate files.
|
|
121
|
+
|
|
122
|
+
### 7.5. Enable Agent Teams (Claude Code only)
|
|
123
|
+
|
|
124
|
+
If the user is on Claude Code, **actively offer** to enable Agent Teams:
|
|
125
|
+
|
|
126
|
+
**Step 7.5a: Ask the user**
|
|
127
|
+
```
|
|
128
|
+
"Would you like to enable Agent Teams? (recommended for Claude Code)
|
|
129
|
+
|
|
130
|
+
Agent Teams spawns specialized teammates for each workflow phase,
|
|
131
|
+
giving you richer multi-agent coordination.
|
|
132
|
+
|
|
133
|
+
Without it, KnowzCode uses subagent delegation (works fine, just less interactive)."
|
|
134
|
+
|
|
135
|
+
Options:
|
|
136
|
+
- Yes (recommended)
|
|
137
|
+
- No (use subagent fallback)
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
**Step 7.5b: If yes, create/update `.claude/settings.local.json`**
|
|
141
|
+
|
|
142
|
+
Read `.claude/settings.local.json` if it exists. Merge the Agent Teams env var into it:
|
|
143
|
+
|
|
144
|
+
```json
|
|
145
|
+
{
|
|
146
|
+
"env": {
|
|
147
|
+
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
If the file already has other keys, preserve them and merge. If it doesn't exist, create it with the content above.
|
|
153
|
+
|
|
154
|
+
**Step 7.5c: Windows note**
|
|
155
|
+
|
|
156
|
+
If the platform is Windows (`process.platform === 'win32'` or detected via environment):
|
|
157
|
+
```
|
|
158
|
+
Note: On Windows, Agent Teams runs in "in-process" mode by default
|
|
159
|
+
(split-pane tmux mode is not supported in Windows Terminal).
|
|
160
|
+
This works correctly — no action needed.
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
**Step 7.5d: If no, proceed normally** — subagent delegation works without any configuration.
|
|
164
|
+
|
|
165
|
+
### 8. Optional: Set up enterprise compliance
|
|
166
|
+
|
|
167
|
+
- Ask: "Would you like to set up enterprise compliance features? (optional)"
|
|
168
|
+
- If yes: create `knowzcode/enterprise/` directory with manifest and templates
|
|
169
|
+
- Compliance is disabled by default
|
|
170
|
+
|
|
171
|
+
### 9. Optional: Configure MCP
|
|
172
|
+
|
|
173
|
+
Inform user about enhanced features:
|
|
174
|
+
```
|
|
175
|
+
Optional: Connect to KnowzCode Cloud for AI-powered capabilities:
|
|
176
|
+
New user? /kc:register
|
|
177
|
+
Have a key? /kc:connect-mcp <api-key>
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### 10. Report success
|
|
181
|
+
|
|
182
|
+
```
|
|
183
|
+
KnowzCode initialized successfully!
|
|
184
|
+
|
|
185
|
+
Created:
|
|
186
|
+
knowzcode/knowzcode_project.md
|
|
187
|
+
knowzcode/knowzcode_tracker.md
|
|
188
|
+
knowzcode/knowzcode_log.md
|
|
189
|
+
knowzcode/knowzcode_architecture.md
|
|
190
|
+
knowzcode/knowzcode_loop.md
|
|
191
|
+
knowzcode/platform_adapters.md
|
|
192
|
+
knowzcode/.gitignore
|
|
193
|
+
knowzcode/specs/
|
|
194
|
+
knowzcode/workgroups/
|
|
195
|
+
knowzcode/prompts/
|
|
196
|
+
|
|
197
|
+
Platform adapters: [list generated adapters or "None (skip)"]
|
|
198
|
+
|
|
199
|
+
Agent Teams: [Enabled (.claude/settings.local.json) | Not enabled (subagent fallback)]
|
|
200
|
+
|
|
201
|
+
Next steps:
|
|
202
|
+
1. Review knowzcode/knowzcode_project.md and add project details
|
|
203
|
+
2. Start your first feature: /kc:work "your feature description"
|
|
204
|
+
3. Research first: /kc:plan "your question"
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
## Template Files
|
|
210
|
+
|
|
211
|
+
### knowzcode_project.md
|
|
212
|
+
```markdown
|
|
213
|
+
# KnowzCode Project Overview
|
|
214
|
+
|
|
215
|
+
**Purpose:** Project context for KnowzCode AI agents.
|
|
216
|
+
|
|
217
|
+
### 1. Project Goal & Core Problem
|
|
218
|
+
* **Goal:** [To be filled in during first session]
|
|
219
|
+
* **Core Problem Solved:** [To be filled in during first session]
|
|
220
|
+
|
|
221
|
+
### 2. Scope & Key Features
|
|
222
|
+
* **Key Features (In Scope):**
|
|
223
|
+
* [Feature 1]: [Description]
|
|
224
|
+
* **Out of Scope:**
|
|
225
|
+
* [Deferred 1]: [Description]
|
|
226
|
+
|
|
227
|
+
### 3. Technology Stack
|
|
228
|
+
| Category | Technology | Version | Notes |
|
|
229
|
+
|:---------|:-----------|:--------|:------|
|
|
230
|
+
| Language(s) | [Detected] | [Detected] | [Auto-detected] |
|
|
231
|
+
| Testing | [Detected] | [Detected] | [Auto-detected] |
|
|
232
|
+
|
|
233
|
+
### Links to Other Artifacts
|
|
234
|
+
* **Loop Protocol:** `knowzcode/knowzcode_loop.md`
|
|
235
|
+
* **Session Log:** `knowzcode/knowzcode_log.md`
|
|
236
|
+
* **Architecture:** `knowzcode/knowzcode_architecture.md`
|
|
237
|
+
* **Tracker:** `knowzcode/knowzcode_tracker.md`
|
|
238
|
+
* **Specifications:** `knowzcode/specs/`
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### knowzcode_tracker.md
|
|
242
|
+
```markdown
|
|
243
|
+
# KnowzCode Status Map (WorkGroup Tracker)
|
|
244
|
+
|
|
245
|
+
**Purpose:** Tracks all active and completed WorkGroups.
|
|
246
|
+
|
|
247
|
+
## Active WorkGroups
|
|
248
|
+
|
|
249
|
+
*None yet. Run `/kc:work "your feature description"` to create your first WorkGroup.*
|
|
250
|
+
|
|
251
|
+
## Completed WorkGroups
|
|
252
|
+
|
|
253
|
+
*None yet.*
|
|
254
|
+
|
|
255
|
+
**Next WorkGroup ID:** WG-001
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
### knowzcode_log.md
|
|
259
|
+
```markdown
|
|
260
|
+
# KnowzCode Operational Record
|
|
261
|
+
|
|
262
|
+
**Purpose:** Session log and quality criteria reference.
|
|
263
|
+
|
|
264
|
+
## Recent Sessions
|
|
265
|
+
|
|
266
|
+
*No sessions yet.*
|
|
267
|
+
|
|
268
|
+
## Reference Quality Criteria
|
|
269
|
+
|
|
270
|
+
1. **Reliability:** Robust error handling, graceful degradation
|
|
271
|
+
2. **Maintainability:** Clear code structure, good naming, modularity
|
|
272
|
+
3. **Security:** Input validation, secure authentication, data protection
|
|
273
|
+
4. **Performance:** Efficient algorithms, optimized queries
|
|
274
|
+
5. **Testability:** Comprehensive test coverage, clear test cases
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
### knowzcode_architecture.md
|
|
278
|
+
```markdown
|
|
279
|
+
# KnowzCode Architecture Documentation
|
|
280
|
+
|
|
281
|
+
**Purpose:** Living architecture documentation for this project.
|
|
282
|
+
|
|
283
|
+
## System Architecture
|
|
284
|
+
|
|
285
|
+
*To be populated during first feature development.*
|
|
286
|
+
|
|
287
|
+
## Key Components
|
|
288
|
+
|
|
289
|
+
*To be populated during implementation.*
|
|
290
|
+
|
|
291
|
+
## Data Flow
|
|
292
|
+
|
|
293
|
+
*To be populated during implementation.*
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
### environment_context.md
|
|
297
|
+
```markdown
|
|
298
|
+
# KnowzCode Environment Context
|
|
299
|
+
|
|
300
|
+
**Purpose:** Environment and tooling information.
|
|
301
|
+
|
|
302
|
+
## Detected Environment
|
|
303
|
+
|
|
304
|
+
**Platform:** [Auto-detected]
|
|
305
|
+
**Language:** [Auto-detected]
|
|
306
|
+
**Package Manager:** [Auto-detected]
|
|
307
|
+
**Test Runner:** [Auto-detected]
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
---
|
|
311
|
+
|
|
312
|
+
## Error Handling
|
|
313
|
+
|
|
314
|
+
If initialization fails:
|
|
315
|
+
1. Report which step failed
|
|
316
|
+
2. Show partial progress
|
|
317
|
+
3. Suggest remediation
|
|
318
|
+
4. Offer to clean up
|
|
319
|
+
|
|
320
|
+
Execute this initialization now.
|