scene-capability-engine 3.0.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 (336) hide show
  1. package/CHANGELOG.md +2513 -0
  2. package/LICENSE +21 -0
  3. package/README.md +765 -0
  4. package/README.zh.md +630 -0
  5. package/bin/kiro-spec-engine.js +796 -0
  6. package/bin/kse.js +3 -0
  7. package/bin/sce.js +3 -0
  8. package/bin/sco.js +3 -0
  9. package/docs/331-poc-adaptation-roadmap.md +156 -0
  10. package/docs/331-poc-dual-track-integration-guide.md +120 -0
  11. package/docs/331-poc-weekly-delivery-checklist.md +52 -0
  12. package/docs/OFFLINE_INSTALL.md +96 -0
  13. package/docs/README.md +279 -0
  14. package/docs/adopt-migration-guide.md +599 -0
  15. package/docs/adoption-guide.md +616 -0
  16. package/docs/agent-hooks-analysis.md +815 -0
  17. package/docs/architecture.md +733 -0
  18. package/docs/articles/ai-driven-development-philosophy-and-practice-review.md +208 -0
  19. package/docs/articles/ai-driven-development-philosophy-and-practice.en.md +459 -0
  20. package/docs/articles/ai-driven-development-philosophy-and-practice.md +492 -0
  21. package/docs/autonomous-control-guide.md +851 -0
  22. package/docs/command-reference.md +1368 -0
  23. package/docs/community.md +115 -0
  24. package/docs/cross-tool-guide.md +555 -0
  25. package/docs/developer-guide.md +619 -0
  26. package/docs/document-governance.md +865 -0
  27. package/docs/environment-management-guide.md +526 -0
  28. package/docs/examples/add-export-command/design.md +194 -0
  29. package/docs/examples/add-export-command/requirements.md +110 -0
  30. package/docs/examples/add-export-command/tasks.md +88 -0
  31. package/docs/examples/add-rest-api/design.md +855 -0
  32. package/docs/examples/add-rest-api/requirements.md +323 -0
  33. package/docs/examples/add-rest-api/tasks.md +355 -0
  34. package/docs/examples/add-user-dashboard/design.md +192 -0
  35. package/docs/examples/add-user-dashboard/requirements.md +143 -0
  36. package/docs/examples/add-user-dashboard/tasks.md +91 -0
  37. package/docs/faq.md +697 -0
  38. package/docs/handoffs/evidence/ontology/moqui-template-baseline-2026-02-17-232922.json +156 -0
  39. package/docs/handoffs/evidence/ontology/moqui-template-baseline-2026-02-17-232922.md +24 -0
  40. package/docs/images/wechat-qr.png +0 -0
  41. package/docs/integration-modes.md +529 -0
  42. package/docs/integration-philosophy.md +313 -0
  43. package/docs/knowledge-management-guide.md +263 -0
  44. package/docs/manual-workflows-guide.md +418 -0
  45. package/docs/moqui-capability-matrix.md +73 -0
  46. package/docs/moqui-template-core-library-playbook.md +109 -0
  47. package/docs/multi-agent-coordination-guide.md +553 -0
  48. package/docs/multi-repo-management-guide.md +1344 -0
  49. package/docs/quick-start-with-ai-tools.md +375 -0
  50. package/docs/quick-start.md +146 -0
  51. package/docs/release-checklist.md +121 -0
  52. package/docs/releases/README.md +13 -0
  53. package/docs/releases/v1.46.2-validation.md +45 -0
  54. package/docs/releases/v1.46.2.md +50 -0
  55. package/docs/scene-runtime-guide.md +347 -0
  56. package/docs/spec-collaboration-guide.md +369 -0
  57. package/docs/spec-locking-guide.md +225 -0
  58. package/docs/spec-numbering-guide.md +348 -0
  59. package/docs/spec-workflow.md +519 -0
  60. package/docs/steering-strategy-guide.md +196 -0
  61. package/docs/team-collaboration-guide.md +465 -0
  62. package/docs/testing-strategy.md +272 -0
  63. package/docs/tools/claude-guide.md +654 -0
  64. package/docs/tools/cursor-guide.md +706 -0
  65. package/docs/tools/generic-guide.md +446 -0
  66. package/docs/tools/kiro-guide.md +308 -0
  67. package/docs/tools/vscode-guide.md +445 -0
  68. package/docs/tools/windsurf-guide.md +391 -0
  69. package/docs/troubleshooting.md +1135 -0
  70. package/docs/upgrade-guide.md +639 -0
  71. package/docs/value-observability-guide.md +127 -0
  72. package/docs/zh/README.md +341 -0
  73. package/docs/zh/quick-start.md +764 -0
  74. package/docs/zh/release-checklist.md +121 -0
  75. package/docs/zh/releases/README.md +13 -0
  76. package/docs/zh/releases/v1.46.2-validation.md +45 -0
  77. package/docs/zh/releases/v1.46.2.md +50 -0
  78. package/docs/zh/spec-numbering-guide.md +348 -0
  79. package/docs/zh/tools/claude-guide.md +349 -0
  80. package/docs/zh/tools/cursor-guide.md +281 -0
  81. package/docs/zh/tools/generic-guide.md +499 -0
  82. package/docs/zh/tools/kiro-guide.md +342 -0
  83. package/docs/zh/tools/vscode-guide.md +449 -0
  84. package/docs/zh/tools/windsurf-guide.md +378 -0
  85. package/docs/zh/value-observability-guide.md +127 -0
  86. package/docs//344/272/244/344/273/230/346/270/205/345/215/225.md +75 -0
  87. package/lib/adoption/adoption-logger.js +487 -0
  88. package/lib/adoption/adoption-strategy.js +538 -0
  89. package/lib/adoption/backup-manager.js +420 -0
  90. package/lib/adoption/conflict-resolver.js +410 -0
  91. package/lib/adoption/detection-engine.js +275 -0
  92. package/lib/adoption/diff-viewer.js +226 -0
  93. package/lib/adoption/error-formatter.js +509 -0
  94. package/lib/adoption/file-classifier.js +385 -0
  95. package/lib/adoption/progress-reporter.js +534 -0
  96. package/lib/adoption/smart-orchestrator.js +470 -0
  97. package/lib/adoption/strategy-selector.js +218 -0
  98. package/lib/adoption/summary-generator.js +493 -0
  99. package/lib/adoption/template-sync.js +605 -0
  100. package/lib/auto/autonomous-engine.js +485 -0
  101. package/lib/auto/checkpoint-manager.js +300 -0
  102. package/lib/auto/close-loop-runner.js +2476 -0
  103. package/lib/auto/config-schema.js +176 -0
  104. package/lib/auto/decision-engine.js +344 -0
  105. package/lib/auto/error-recovery-manager.js +580 -0
  106. package/lib/auto/goal-decomposer.js +278 -0
  107. package/lib/auto/progress-tracker.js +502 -0
  108. package/lib/auto/safety-manager.js +186 -0
  109. package/lib/auto/semantic-decomposer.js +137 -0
  110. package/lib/auto/state-manager.js +126 -0
  111. package/lib/auto/task-queue-manager.js +340 -0
  112. package/lib/backup/backup-system.js +372 -0
  113. package/lib/backup/selective-backup.js +207 -0
  114. package/lib/collab/agent-registry.js +240 -0
  115. package/lib/collab/collab-manager.js +285 -0
  116. package/lib/collab/contract-manager.js +320 -0
  117. package/lib/collab/coordinator.js +370 -0
  118. package/lib/collab/dependency-manager.js +280 -0
  119. package/lib/collab/index.js +20 -0
  120. package/lib/collab/integration-manager.js +202 -0
  121. package/lib/collab/merge-coordinator.js +252 -0
  122. package/lib/collab/metadata-manager.js +233 -0
  123. package/lib/collab/multi-agent-config.js +120 -0
  124. package/lib/collab/spec-lifecycle-manager.js +304 -0
  125. package/lib/collab/sync-barrier.js +88 -0
  126. package/lib/collab/visualizer.js +208 -0
  127. package/lib/commands/adopt.js +749 -0
  128. package/lib/commands/auto.js +19559 -0
  129. package/lib/commands/collab.js +275 -0
  130. package/lib/commands/context.js +99 -0
  131. package/lib/commands/docs.js +808 -0
  132. package/lib/commands/doctor.js +273 -0
  133. package/lib/commands/env.js +420 -0
  134. package/lib/commands/knowledge.js +309 -0
  135. package/lib/commands/lock.js +235 -0
  136. package/lib/commands/ops.js +409 -0
  137. package/lib/commands/orchestrate.js +446 -0
  138. package/lib/commands/prompt.js +105 -0
  139. package/lib/commands/repo.js +118 -0
  140. package/lib/commands/rollback.js +219 -0
  141. package/lib/commands/scene.js +15549 -0
  142. package/lib/commands/spec-bootstrap.js +147 -0
  143. package/lib/commands/spec-gate.js +157 -0
  144. package/lib/commands/spec-pipeline.js +205 -0
  145. package/lib/commands/status.js +321 -0
  146. package/lib/commands/task.js +199 -0
  147. package/lib/commands/templates.js +654 -0
  148. package/lib/commands/upgrade.js +231 -0
  149. package/lib/commands/value.js +569 -0
  150. package/lib/commands/watch.js +684 -0
  151. package/lib/commands/workflows.js +240 -0
  152. package/lib/commands/workspace-multi.js +325 -0
  153. package/lib/commands/workspace.js +189 -0
  154. package/lib/context/context-exporter.js +378 -0
  155. package/lib/context/prompt-generator.js +482 -0
  156. package/lib/data/moqui-capability-lexicon.json +45 -0
  157. package/lib/environment/backup-system.js +189 -0
  158. package/lib/environment/environment-manager.js +379 -0
  159. package/lib/environment/environment-registry.js +168 -0
  160. package/lib/gitignore/gitignore-backup.js +229 -0
  161. package/lib/gitignore/gitignore-detector.js +239 -0
  162. package/lib/gitignore/gitignore-integration.js +267 -0
  163. package/lib/gitignore/gitignore-transformer.js +193 -0
  164. package/lib/gitignore/layered-rules-template.js +42 -0
  165. package/lib/governance/archive-tool.js +284 -0
  166. package/lib/governance/cleanup-tool.js +237 -0
  167. package/lib/governance/config-manager.js +186 -0
  168. package/lib/governance/diagnostic-engine.js +271 -0
  169. package/lib/governance/doc-reference-checker.js +200 -0
  170. package/lib/governance/execution-logger.js +243 -0
  171. package/lib/governance/file-scanner.js +285 -0
  172. package/lib/governance/hooks-manager.js +333 -0
  173. package/lib/governance/reporter.js +337 -0
  174. package/lib/governance/validation-engine.js +181 -0
  175. package/lib/i18n.js +79 -0
  176. package/lib/knowledge/entry-manager.js +208 -0
  177. package/lib/knowledge/index-manager.js +261 -0
  178. package/lib/knowledge/knowledge-manager.js +273 -0
  179. package/lib/knowledge/template-manager.js +191 -0
  180. package/lib/lock/index.js +21 -0
  181. package/lib/lock/lock-file.js +192 -0
  182. package/lib/lock/lock-manager.js +321 -0
  183. package/lib/lock/machine-identifier.js +135 -0
  184. package/lib/lock/steering-file-lock.js +207 -0
  185. package/lib/lock/task-lock-manager.js +345 -0
  186. package/lib/operations/audit-logger.js +293 -0
  187. package/lib/operations/feedback-manager.js +1147 -0
  188. package/lib/operations/index.js +23 -0
  189. package/lib/operations/models/index.js +170 -0
  190. package/lib/operations/operations-manager.js +151 -0
  191. package/lib/operations/operations-validator.js +280 -0
  192. package/lib/operations/permission-manager.js +354 -0
  193. package/lib/operations/template-loader.js +143 -0
  194. package/lib/orchestrator/agent-spawner.js +629 -0
  195. package/lib/orchestrator/bootstrap-prompt-builder.js +236 -0
  196. package/lib/orchestrator/index.js +19 -0
  197. package/lib/orchestrator/orchestration-engine.js +1270 -0
  198. package/lib/orchestrator/orchestrator-config.js +173 -0
  199. package/lib/orchestrator/status-monitor.js +591 -0
  200. package/lib/python-checker.js +209 -0
  201. package/lib/repo/config-manager.js +580 -0
  202. package/lib/repo/errors/config-error.js +13 -0
  203. package/lib/repo/errors/git-error.js +15 -0
  204. package/lib/repo/errors/repo-error.js +14 -0
  205. package/lib/repo/git-operations.js +181 -0
  206. package/lib/repo/handlers/.gitkeep +1 -0
  207. package/lib/repo/handlers/exec-handler.js +155 -0
  208. package/lib/repo/handlers/health-handler.js +169 -0
  209. package/lib/repo/handlers/init-handler.js +197 -0
  210. package/lib/repo/handlers/status-handler.js +176 -0
  211. package/lib/repo/output-formatter.js +184 -0
  212. package/lib/repo/path-resolver.js +178 -0
  213. package/lib/repo/repo-manager.js +514 -0
  214. package/lib/scene-runtime/audit-emitter.js +59 -0
  215. package/lib/scene-runtime/binding-plugin-loader.js +351 -0
  216. package/lib/scene-runtime/binding-registry.js +349 -0
  217. package/lib/scene-runtime/eval-bridge.js +44 -0
  218. package/lib/scene-runtime/index.js +19 -0
  219. package/lib/scene-runtime/moqui-adapter.js +620 -0
  220. package/lib/scene-runtime/moqui-client.js +606 -0
  221. package/lib/scene-runtime/moqui-extractor.js +2029 -0
  222. package/lib/scene-runtime/plan-compiler.js +208 -0
  223. package/lib/scene-runtime/policy-gate.js +58 -0
  224. package/lib/scene-runtime/runtime-executor.js +358 -0
  225. package/lib/scene-runtime/scene-loader.js +96 -0
  226. package/lib/scene-runtime/scene-ontology.js +959 -0
  227. package/lib/scene-runtime/scene-template-linter.js +852 -0
  228. package/lib/scene-runtime/templates/scene-template-erp-query-v0.1.yaml +28 -0
  229. package/lib/scene-runtime/templates/scene-template-hybrid-shadow-v0.1.yaml +34 -0
  230. package/lib/spec/bootstrap/context-collector.js +48 -0
  231. package/lib/spec/bootstrap/draft-generator.js +158 -0
  232. package/lib/spec/bootstrap/questionnaire-engine.js +70 -0
  233. package/lib/spec/bootstrap/trace-emitter.js +59 -0
  234. package/lib/spec/multi-spec-orchestrate.js +93 -0
  235. package/lib/spec/pipeline/constants.js +6 -0
  236. package/lib/spec/pipeline/stage-adapters.js +118 -0
  237. package/lib/spec/pipeline/stage-runner.js +146 -0
  238. package/lib/spec/pipeline/state-store.js +119 -0
  239. package/lib/spec-gate/engine/gate-engine.js +165 -0
  240. package/lib/spec-gate/policy/default-policy.js +22 -0
  241. package/lib/spec-gate/policy/policy-loader.js +103 -0
  242. package/lib/spec-gate/result-emitter.js +81 -0
  243. package/lib/spec-gate/rules/default-rules.js +156 -0
  244. package/lib/spec-gate/rules/rule-registry.js +51 -0
  245. package/lib/steering/adoption-config.js +164 -0
  246. package/lib/steering/compliance-auto-fixer.js +204 -0
  247. package/lib/steering/compliance-cache.js +99 -0
  248. package/lib/steering/compliance-error-reporter.js +70 -0
  249. package/lib/steering/context-sync-manager.js +273 -0
  250. package/lib/steering/index.js +92 -0
  251. package/lib/steering/spec-steering.js +230 -0
  252. package/lib/steering/steering-compliance-checker.js +73 -0
  253. package/lib/steering/steering-loader.js +144 -0
  254. package/lib/steering/steering-manager.js +289 -0
  255. package/lib/task/index.js +12 -0
  256. package/lib/task/task-claimer.js +489 -0
  257. package/lib/task/task-status-store.js +418 -0
  258. package/lib/templates/cache-manager.js +440 -0
  259. package/lib/templates/content-generalizer.js +247 -0
  260. package/lib/templates/frontmatter-generator.js +128 -0
  261. package/lib/templates/git-handler.js +471 -0
  262. package/lib/templates/metadata-collector.js +328 -0
  263. package/lib/templates/path-utils.js +144 -0
  264. package/lib/templates/registry-parser.js +505 -0
  265. package/lib/templates/spec-reader.js +216 -0
  266. package/lib/templates/template-applicator.js +249 -0
  267. package/lib/templates/template-creator.js +256 -0
  268. package/lib/templates/template-error.js +143 -0
  269. package/lib/templates/template-exporter.js +502 -0
  270. package/lib/templates/template-manager.js +782 -0
  271. package/lib/templates/template-validator.js +361 -0
  272. package/lib/upgrade/migration-engine.js +382 -0
  273. package/lib/upgrade/migrations/.gitkeep +52 -0
  274. package/lib/upgrade/migrations/1.0.0-to-1.1.0.js +78 -0
  275. package/lib/utils/file-diff.js +177 -0
  276. package/lib/utils/fs-utils.js +274 -0
  277. package/lib/utils/tool-detector.js +383 -0
  278. package/lib/utils/validation.js +324 -0
  279. package/lib/value/gate-summary-emitter.js +99 -0
  280. package/lib/value/metric-contract-loader.js +210 -0
  281. package/lib/value/risk-evaluator.js +117 -0
  282. package/lib/value/weekly-snapshot-builder.js +61 -0
  283. package/lib/version/version-checker.js +156 -0
  284. package/lib/version/version-manager.js +327 -0
  285. package/lib/watch/action-executor.js +458 -0
  286. package/lib/watch/event-debouncer.js +323 -0
  287. package/lib/watch/execution-logger.js +550 -0
  288. package/lib/watch/file-watcher.js +499 -0
  289. package/lib/watch/presets.js +266 -0
  290. package/lib/watch/watch-manager.js +533 -0
  291. package/lib/workspace/multi/global-config.js +150 -0
  292. package/lib/workspace/multi/index.js +22 -0
  293. package/lib/workspace/multi/path-utils.js +173 -0
  294. package/lib/workspace/multi/workspace-context-resolver.js +244 -0
  295. package/lib/workspace/multi/workspace-registry.js +196 -0
  296. package/lib/workspace/multi/workspace-state-manager.js +537 -0
  297. package/lib/workspace/multi/workspace.js +90 -0
  298. package/lib/workspace/workspace-manager.js +370 -0
  299. package/lib/workspace/workspace-sync.js +356 -0
  300. package/locales/en.json +114 -0
  301. package/locales/zh.json +114 -0
  302. package/package.json +102 -0
  303. package/template/.kiro/README.md +247 -0
  304. package/template/.kiro/hooks/check-spec-on-create.kiro.hook +17 -0
  305. package/template/.kiro/hooks/run-tests-on-save.kiro.hook +13 -0
  306. package/template/.kiro/hooks/sync-tasks-on-edit.kiro.hook +16 -0
  307. package/template/.kiro/specs/SPEC_WORKFLOW_GUIDE.md +134 -0
  308. package/template/.kiro/steering/CORE_PRINCIPLES.md +133 -0
  309. package/template/.kiro/steering/CURRENT_CONTEXT.md +30 -0
  310. package/template/.kiro/steering/ENVIRONMENT.md +35 -0
  311. package/template/.kiro/steering/RULES_GUIDE.md +46 -0
  312. package/template/.kiro/templates/operations/default/change-impact.md +112 -0
  313. package/template/.kiro/templates/operations/default/deployment.md +91 -0
  314. package/template/.kiro/templates/operations/default/feedback-response.md +269 -0
  315. package/template/.kiro/templates/operations/default/migration-plan.md +172 -0
  316. package/template/.kiro/templates/operations/default/monitoring.md +135 -0
  317. package/template/.kiro/templates/operations/default/operations.md +135 -0
  318. package/template/.kiro/templates/operations/default/rollback.md +143 -0
  319. package/template/.kiro/templates/operations/default/tools.yaml +364 -0
  320. package/template/.kiro/templates/operations/default/troubleshooting.md +123 -0
  321. package/template/.kiro/tools/backup_manager.py +295 -0
  322. package/template/.kiro/tools/configuration_manager.py +218 -0
  323. package/template/.kiro/tools/document_evaluator.py +550 -0
  324. package/template/.kiro/tools/enhancement_logger.py +168 -0
  325. package/template/.kiro/tools/error_handler.py +335 -0
  326. package/template/.kiro/tools/improvement_identifier.py +444 -0
  327. package/template/.kiro/tools/modification_applicator.py +737 -0
  328. package/template/.kiro/tools/quality_gate_enforcer.py +207 -0
  329. package/template/.kiro/tools/quality_scorer.py +305 -0
  330. package/template/.kiro/tools/report_generator.py +154 -0
  331. package/template/.kiro/tools/ultrawork_enhancer.py +676 -0
  332. package/template/.kiro/tools/ultrawork_enhancer_refactored.py +0 -0
  333. package/template/.kiro/tools/ultrawork_enhancer_v2.py +463 -0
  334. package/template/.kiro/tools/ultrawork_enhancer_v3.py +606 -0
  335. package/template/.kiro/tools/workflow_quality_gate.py +100 -0
  336. package/template/README.md +111 -0
@@ -0,0 +1,1135 @@
1
+ # Troubleshooting Guide
2
+
3
+ > Common issues and solutions for kse
4
+
5
+ ---
6
+
7
+ **Version**: 1.42.0
8
+ **Last Updated**: 2026-02-11
9
+ **Audience**: All Users
10
+ **Estimated Time**: Reference as needed
11
+
12
+ ---
13
+
14
+ ## Quick Navigation
15
+
16
+ - [Installation Issues](#installation-issues)
17
+ - [Adoption Issues](#adoption-issues)
18
+ - [Command Issues](#command-issues)
19
+ - [Integration Issues](#integration-issues)
20
+ - [Watch Mode Issues](#watch-mode-issues)
21
+ - [Document Governance Issues](#document-governance-issues)
22
+ - [Platform-Specific Issues](#platform-specific-issues)
23
+ - [Getting More Help](#getting-more-help)
24
+
25
+ ---
26
+
27
+ ## Installation Issues
28
+
29
+ ### Error: "npm install -g kse" fails
30
+
31
+ **Symptoms:**
32
+ ```
33
+ npm ERR! code EACCES
34
+ npm ERR! syscall access
35
+ npm ERR! path /usr/local/lib/node_modules
36
+ ```
37
+
38
+ **Cause:** Insufficient permissions to install global npm packages
39
+
40
+ **Solutions:**
41
+
42
+ **Option 1: Use npx (Recommended)**
43
+ ```bash
44
+ # No installation needed, run directly
45
+ npx kse status
46
+ npx kse adopt
47
+ ```
48
+
49
+ **Option 2: Fix npm permissions (macOS/Linux)**
50
+ ```bash
51
+ # Create npm directory in home folder
52
+ mkdir ~/.npm-global
53
+ npm config set prefix '~/.npm-global'
54
+
55
+ # Add to PATH (add to ~/.bashrc or ~/.zshrc)
56
+ export PATH=~/.npm-global/bin:$PATH
57
+
58
+ # Reload shell config
59
+ source ~/.bashrc # or source ~/.zshrc
60
+
61
+ # Now install
62
+ npm install -g kse
63
+ ```
64
+
65
+ **Option 3: Use sudo (Not Recommended)**
66
+ ```bash
67
+ sudo npm install -g kse
68
+ ```
69
+
70
+ ---
71
+
72
+ ### Error: "kse: command not found"
73
+
74
+ **Symptoms:**
75
+ ```bash
76
+ $ kse status
77
+ bash: kse: command not found
78
+ ```
79
+
80
+ **Cause:** kse is not in your PATH
81
+
82
+ **Solutions:**
83
+
84
+ **Check if kse is installed:**
85
+ ```bash
86
+ npm list -g kse
87
+ ```
88
+
89
+ **If installed, find where:**
90
+ ```bash
91
+ npm root -g
92
+ # Output: /usr/local/lib/node_modules (or similar)
93
+ ```
94
+
95
+ **Add to PATH:**
96
+ ```bash
97
+ # macOS/Linux - Add to ~/.bashrc or ~/.zshrc
98
+ export PATH="/usr/local/bin:$PATH"
99
+
100
+ # Windows - Add to System Environment Variables
101
+ # C:\Users\YourName\AppData\Roaming\npm
102
+ ```
103
+
104
+ **Verify:**
105
+ ```bash
106
+ which kse # macOS/Linux
107
+ where kse # Windows
108
+ ```
109
+
110
+ ---
111
+
112
+ ### Error: "Node.js version too old"
113
+
114
+ **Symptoms:**
115
+ ```
116
+ Error: kse requires Node.js 14 or higher
117
+ Current version: v12.x.x
118
+ ```
119
+
120
+ **Cause:** kse requires Node.js 14+
121
+
122
+ **Solution:**
123
+
124
+ **Update Node.js:**
125
+ ```bash
126
+ # Using nvm (recommended)
127
+ nvm install 18
128
+ nvm use 18
129
+
130
+ # Or download from nodejs.org
131
+ # https://nodejs.org/
132
+ ```
133
+
134
+ **Verify:**
135
+ ```bash
136
+ node --version
137
+ # Should show v14.x.x or higher
138
+ ```
139
+
140
+ ---
141
+
142
+ ## Adoption Issues
143
+
144
+ ### Error: "Not a git repository"
145
+
146
+ **Symptoms:**
147
+ ```bash
148
+ $ kse adopt
149
+ Error: Not a git repository
150
+ kse requires a git repository to track Specs
151
+ ```
152
+
153
+ **Cause:** kse requires git for version control
154
+
155
+ **Solution:**
156
+
157
+ **Initialize git:**
158
+ ```bash
159
+ git init
160
+ git add .
161
+ git commit -m "Initial commit"
162
+
163
+ # Now adopt kse
164
+ kse adopt
165
+ ```
166
+
167
+ **Why git is required:**
168
+ - Specs should be version controlled
169
+ - Team collaboration needs git
170
+ - kse uses git to detect project root
171
+
172
+ ---
173
+
174
+ ### Error: "kse.json already exists"
175
+
176
+ **Symptoms:**
177
+ ```bash
178
+ $ kse adopt
179
+ Error: kse.json already exists
180
+ Use 'kse upgrade' to update existing installation
181
+ ```
182
+
183
+ **Cause:** Project already has kse installed
184
+
185
+ **Solutions:**
186
+
187
+ **If you want to upgrade:**
188
+ ```bash
189
+ kse upgrade
190
+ ```
191
+
192
+ **If you want to start fresh:**
193
+ ```bash
194
+ # Backup existing Specs
195
+ cp -r .kiro .kiro.backup
196
+
197
+ # Remove kse
198
+ rm kse.json
199
+ rm -rf .kiro
200
+
201
+ # Re-adopt
202
+ kse adopt
203
+ ```
204
+
205
+ ---
206
+
207
+ ### Error: "Permission denied creating .kiro directory"
208
+
209
+ **Symptoms:**
210
+ ```bash
211
+ $ kse adopt
212
+ Error: EACCES: permission denied, mkdir '.kiro'
213
+ ```
214
+
215
+ **Cause:** Insufficient permissions in project directory
216
+
217
+ **Solution:**
218
+
219
+ **Check directory permissions:**
220
+ ```bash
221
+ ls -la
222
+ ```
223
+
224
+ **Fix permissions:**
225
+ ```bash
226
+ # Make sure you own the directory
227
+ sudo chown -R $USER:$USER .
228
+
229
+ # Or run in a directory you own
230
+ cd ~/projects/my-project
231
+ kse adopt
232
+ ```
233
+
234
+ ---
235
+
236
+ ## Command Issues
237
+
238
+ ### Error: "No Specs found"
239
+
240
+ **Symptoms:**
241
+ ```bash
242
+ $ kse status
243
+ No Specs found in .kiro/specs/
244
+ ```
245
+
246
+ **Cause:** No Specs have been created yet
247
+
248
+ **Solution:**
249
+
250
+ **Create your first Spec:**
251
+ ```bash
252
+ kse spec bootstrap --name 01-00-my-feature --non-interactive
253
+ ```
254
+
255
+ **Or check if Specs exist:**
256
+ ```bash
257
+ ls -la .kiro/specs/
258
+ ```
259
+
260
+ ---
261
+
262
+ ### Error: "Invalid Spec name format"
263
+
264
+ **Symptoms:**
265
+ ```bash
266
+ $ kse spec bootstrap --name my-feature --non-interactive
267
+ Error: Invalid Spec name format
268
+ Expected: {number}-{number}-{kebab-case-name}
269
+ ```
270
+
271
+ **Cause:** Spec names must follow the format: `XX-YY-feature-name`
272
+
273
+ **Solution:**
274
+
275
+ **Use correct format:**
276
+ ```bash
277
+ # ✅ Correct
278
+ kse spec bootstrap --name 01-00-user-login --non-interactive
279
+ kse spec bootstrap --name 02-01-fix-auth-bug --non-interactive
280
+
281
+ # ❌ Wrong
282
+ kse spec bootstrap --name user-login --non-interactive
283
+ kse spec bootstrap --name 01-user-login --non-interactive
284
+ kse spec bootstrap --name UserLogin --non-interactive
285
+ ```
286
+
287
+ ---
288
+
289
+ ### Error: "Context export failed"
290
+
291
+ **Symptoms:**
292
+ ```bash
293
+ $ kse context export 01-00-user-login
294
+ Error: Failed to export context
295
+ ```
296
+
297
+ **Possible Causes & Solutions:**
298
+
299
+ **1. Spec doesn't exist:**
300
+ ```bash
301
+ # Check Spec exists
302
+ ls .kiro/specs/01-00-user-login/
303
+
304
+ # If not, create it
305
+ kse spec bootstrap --name 01-00-user-login --non-interactive
306
+ ```
307
+
308
+ **2. Missing Spec files:**
309
+ ```bash
310
+ # Spec needs at least requirements.md
311
+ ls .kiro/specs/01-00-user-login/requirements.md
312
+
313
+ # Create if missing
314
+ touch .kiro/specs/01-00-user-login/requirements.md
315
+ ```
316
+
317
+ **3. File permission issues:**
318
+ ```bash
319
+ # Check permissions
320
+ ls -la .kiro/specs/01-00-user-login/
321
+
322
+ # Fix if needed
323
+ chmod 644 .kiro/specs/01-00-user-login/*.md
324
+ ```
325
+
326
+ ---
327
+
328
+ ### Error: "Task not found"
329
+
330
+ **Symptoms:**
331
+ ```bash
332
+ $ kse task claim 01-00-user-login 1.1
333
+ Error: Task 1.1 not found in tasks.md
334
+ ```
335
+
336
+ **Cause:** Task ID doesn't exist in tasks.md
337
+
338
+ **Solution:**
339
+
340
+ **Check tasks.md:**
341
+ ```bash
342
+ cat .kiro/specs/01-00-user-login/tasks.md
343
+ ```
344
+
345
+ **Verify task ID format:**
346
+ ```markdown
347
+ # tasks.md should have:
348
+ - [ ] 1.1 Task description
349
+ - [ ] 1.2 Another task
350
+
351
+ # Not:
352
+ - [ ] Task description (missing ID)
353
+ ```
354
+
355
+ ---
356
+
357
+ ## Integration Issues
358
+
359
+ ### My AI tool doesn't understand the context
360
+
361
+ **Symptoms:**
362
+ - AI generates code that doesn't match your Spec
363
+ - AI asks for information already in the Spec
364
+ - AI ignores design decisions
365
+
366
+ **Solutions:**
367
+
368
+ **1. Be explicit in your prompt:**
369
+ ```
370
+ ❌ Bad: "Implement the login feature"
371
+
372
+ ✅ Good: "Please implement the login feature following the
373
+ requirements and design in the provided context. Pay special
374
+ attention to the API design and error handling sections."
375
+ ```
376
+
377
+ **2. Verify context was provided:**
378
+ ```bash
379
+ # Check context file exists and has content
380
+ cat .kiro/specs/01-00-user-login/context-export.md
381
+
382
+ # Should contain requirements, design, and tasks
383
+ ```
384
+
385
+ **3. Break down large contexts:**
386
+ ```bash
387
+ # Instead of entire Spec, export specific task
388
+ kse prompt generate 01-00-user-login 1.1
389
+ ```
390
+
391
+ **4. Use steering rules:**
392
+ ```bash
393
+ # Include project-specific rules
394
+ kse context export 01-00-user-login --include-steering
395
+ ```
396
+
397
+ ---
398
+
399
+ ### Context file too large for AI tool
400
+
401
+ **Symptoms:**
402
+ - AI tool rejects context (too many tokens)
403
+ - AI tool truncates context
404
+ - Error: "Context exceeds maximum length"
405
+
406
+ **Solutions:**
407
+
408
+ **1. Use task-specific prompts:**
409
+ ```bash
410
+ # Export just one task
411
+ kse prompt generate 01-00-user-login 1.1
412
+ ```
413
+
414
+ **2. Simplify your Spec:**
415
+ - Remove unnecessary details from requirements
416
+ - Condense design documentation
417
+ - Break large Specs into smaller ones
418
+
419
+ **3. Use a tool with larger context window:**
420
+ - Claude Code: 200K tokens
421
+ - GPT-4 Turbo: 128K tokens
422
+ - Gemini Pro: 1M tokens
423
+
424
+ ---
425
+
426
+ ### AI generates code that doesn't match design
427
+
428
+ **Symptoms:**
429
+ - Code structure differs from design
430
+ - API endpoints don't match specification
431
+ - Component names are different
432
+
433
+ **Solutions:**
434
+
435
+ **1. Improve design specificity:**
436
+ ```markdown
437
+ # ❌ Vague
438
+ - Create authentication system
439
+
440
+ # ✅ Specific
441
+ - Create AuthController class with login() method
442
+ - Method signature: async login(email: string, password: string): Promise<AuthResult>
443
+ - Return { token: string } on success
444
+ - Return { error: string } on failure
445
+ ```
446
+
447
+ **2. Reference design in prompt:**
448
+ ```
449
+ "Please implement exactly as specified in the Design section,
450
+ using the exact class names, method signatures, and API endpoints
451
+ documented."
452
+ ```
453
+
454
+ **3. Provide code examples in design:**
455
+ ```markdown
456
+ ## Example Implementation
457
+ ```javascript
458
+ class AuthController {
459
+ async login(email, password) {
460
+ // Implementation here
461
+ }
462
+ }
463
+ ```
464
+ ```
465
+
466
+ ---
467
+
468
+ ## Watch Mode Issues
469
+
470
+ ### Watch mode not detecting changes
471
+
472
+ **Symptoms:**
473
+ ```bash
474
+ $ kse watch status
475
+ Status: Running
476
+
477
+ # But editing Spec files doesn't trigger actions
478
+ ```
479
+
480
+ **Solutions:**
481
+
482
+ **1. Restart watch mode:**
483
+ ```bash
484
+ kse watch stop
485
+ kse watch start
486
+ ```
487
+
488
+ **2. Check watch patterns:**
489
+ ```bash
490
+ kse watch config
491
+ # Verify patterns include your files
492
+ ```
493
+
494
+ **3. Check file system events:**
495
+ ```bash
496
+ # Some editors don't trigger file system events
497
+ # Try saving with "Save As" instead of "Save"
498
+ ```
499
+
500
+ **4. Increase watch delay:**
501
+ ```bash
502
+ # If changes are too rapid
503
+ kse watch config --delay 1000
504
+ ```
505
+
506
+ ---
507
+
508
+ ### Watch mode consuming too much CPU
509
+
510
+ **Symptoms:**
511
+ - High CPU usage when watch mode is running
512
+ - System becomes slow
513
+
514
+ **Solutions:**
515
+
516
+ **1. Reduce watch scope:**
517
+ ```bash
518
+ # Watch only specific Specs
519
+ kse watch start --spec 01-00-user-login
520
+ ```
521
+
522
+ **2. Exclude unnecessary files:**
523
+ ```bash
524
+ # Add to watch config
525
+ {
526
+ "exclude": [
527
+ "node_modules/**",
528
+ ".git/**",
529
+ "*.log"
530
+ ]
531
+ }
532
+ ```
533
+
534
+ **3. Stop when not needed:**
535
+ ```bash
536
+ # Stop watch mode when not actively developing
537
+ kse watch stop
538
+ ```
539
+
540
+ ---
541
+
542
+ ### Watch mode actions not executing
543
+
544
+ **Symptoms:**
545
+ - Watch mode detects changes
546
+ - But actions don't run
547
+
548
+ **Solutions:**
549
+
550
+ **1. Check action configuration:**
551
+ ```bash
552
+ kse watch config
553
+ # Verify actions are properly configured
554
+ ```
555
+
556
+ **2. Check action logs:**
557
+ ```bash
558
+ kse watch logs
559
+ # Look for error messages
560
+ ```
561
+
562
+ **3. Test action manually:**
563
+ ```bash
564
+ # Try running the action command directly
565
+ kse context export 01-00-user-login
566
+ ```
567
+
568
+ ---
569
+
570
+ ## Document Governance Issues
571
+
572
+ ### Diagnostic not finding violations
573
+
574
+ **Symptoms:**
575
+ ```bash
576
+ $ kse docs diagnose
577
+ ✅ Project is compliant
578
+ # But you know there are temporary files
579
+ ```
580
+
581
+ **Cause:** Files don't match temporary patterns or are in unexpected locations
582
+
583
+ **Solutions:**
584
+
585
+ **1. Check what patterns are configured:**
586
+ ```bash
587
+ kse docs config
588
+ # Look at "Temporary Patterns" section
589
+ ```
590
+
591
+ **2. Add custom patterns if needed:**
592
+ ```bash
593
+ kse docs config --set temporary-patterns "*-SUMMARY.md,SESSION-*.md,*-COMPLETE.md,TEMP-*.md,WIP-*.md,MVP-*.md,DRAFT-*.md"
594
+ ```
595
+
596
+ **3. Manually check for violations:**
597
+ ```bash
598
+ # Check root directory
599
+ ls *.md
600
+
601
+ # Should only see: README.md, README.zh.md, CHANGELOG.md, CONTRIBUTING.md
602
+ ```
603
+
604
+ ---
605
+
606
+ ### Cleanup not removing files
607
+
608
+ **Symptoms:**
609
+ ```bash
610
+ $ kse docs cleanup
611
+ Deleted 0 file(s)
612
+ # But temporary files still exist
613
+ ```
614
+
615
+ **Possible Causes & Solutions:**
616
+
617
+ **1. Files don't match temporary patterns:**
618
+ ```bash
619
+ # Check file names
620
+ ls *.md
621
+
622
+ # If file is "notes.md" (doesn't match patterns)
623
+ # Either rename it to match pattern or delete manually
624
+ mv notes.md TEMP-notes.md
625
+ kse docs cleanup
626
+ ```
627
+
628
+ **2. Files are in subdirectories:**
629
+ ```bash
630
+ # Cleanup only checks root and Spec directories
631
+ # Check subdirectories manually
632
+ find . -name "*-SUMMARY.md"
633
+ ```
634
+
635
+ **3. Permission issues:**
636
+ ```bash
637
+ # Check file permissions
638
+ ls -la *.md
639
+
640
+ # Fix if needed
641
+ chmod u+w filename.md
642
+ kse docs cleanup
643
+ ```
644
+
645
+ ---
646
+
647
+ ### Archive moving files to wrong subdirectory
648
+
649
+ **Symptoms:**
650
+ ```bash
651
+ $ kse docs archive --spec my-spec
652
+ # Files moved to unexpected subdirectories
653
+ ```
654
+
655
+ **Cause:** File type classification based on filename
656
+
657
+ **Solution:**
658
+
659
+ **Understand classification rules:**
660
+ - **scripts/** - `.js`, `.py`, `.sh`, "script" in name
661
+ - **reports/** - "report", "analysis", "summary" in name
662
+ - **tests/** - `.test.js`, `.spec.js`, "test" in name
663
+ - **results/** - "result", "output" in name
664
+ - **docs/** - Everything else
665
+
666
+ **Rename files to match intended subdirectory:**
667
+ ```bash
668
+ # Want file in reports/
669
+ mv data.md analysis-report.md
670
+
671
+ # Want file in scripts/
672
+ mv tool.js test-script.js
673
+
674
+ # Then archive
675
+ kse docs archive --spec my-spec
676
+ ```
677
+
678
+ ---
679
+
680
+ ### Git hooks not blocking commits
681
+
682
+ **Symptoms:**
683
+ ```bash
684
+ $ git commit -m "Add feature"
685
+ # Commit succeeds even with violations
686
+ ```
687
+
688
+ **Possible Causes & Solutions:**
689
+
690
+ **1. Hooks not installed:**
691
+ ```bash
692
+ # Check status
693
+ kse docs hooks status
694
+
695
+ # If not installed
696
+ kse docs hooks install
697
+ ```
698
+
699
+ **2. Hook file not executable:**
700
+ ```bash
701
+ # Check permissions (macOS/Linux)
702
+ ls -la .git/hooks/pre-commit
703
+
704
+ # Make executable
705
+ chmod +x .git/hooks/pre-commit
706
+ ```
707
+
708
+ **3. Using --no-verify flag:**
709
+ ```bash
710
+ # This bypasses hooks
711
+ git commit --no-verify -m "message"
712
+
713
+ # Remove --no-verify to enable validation
714
+ git commit -m "message"
715
+ ```
716
+
717
+ **4. Not a git repository:**
718
+ ```bash
719
+ # Check if .git exists
720
+ ls -la .git/
721
+
722
+ # If not, initialize git
723
+ git init
724
+ kse docs hooks install
725
+ ```
726
+
727
+ ---
728
+
729
+ ### Validation failing for valid structure
730
+
731
+ **Symptoms:**
732
+ ```bash
733
+ $ kse docs validate --spec my-spec
734
+ ❌ Missing required file: requirements.md
735
+ # But the file exists
736
+ ```
737
+
738
+ **Possible Causes & Solutions:**
739
+
740
+ **1. File in wrong location:**
741
+ ```bash
742
+ # Check exact path
743
+ ls -la .kiro/specs/my-spec/requirements.md
744
+
745
+ # Should be directly in Spec directory, not in subdirectory
746
+ ```
747
+
748
+ **2. Wrong Spec name:**
749
+ ```bash
750
+ # Check Spec directory name
751
+ ls .kiro/specs/
752
+
753
+ # Use exact name
754
+ kse docs validate --spec 01-00-my-feature
755
+ ```
756
+
757
+ **3. Case sensitivity (Linux/macOS):**
758
+ ```bash
759
+ # File is "Requirements.md" but should be "requirements.md"
760
+ mv Requirements.md requirements.md
761
+ ```
762
+
763
+ ---
764
+
765
+ ### Configuration changes not taking effect
766
+
767
+ **Symptoms:**
768
+ ```bash
769
+ $ kse docs config --set root-allowed-files "README.md,CUSTOM.md"
770
+ ✅ Configuration updated
771
+
772
+ $ kse docs diagnose
773
+ # Still reports CUSTOM.md as violation
774
+ ```
775
+
776
+ **Cause:** Configuration file not being read or cached
777
+
778
+ **Solutions:**
779
+
780
+ **1. Verify configuration was saved:**
781
+ ```bash
782
+ # Check config file
783
+ cat .kiro/config/docs.json
784
+
785
+ # Should show your changes
786
+ ```
787
+
788
+ **2. Check for typos in key name:**
789
+ ```bash
790
+ # Wrong: root-files
791
+ # Correct: root-allowed-files
792
+
793
+ kse docs config --set root-allowed-files "README.md,CUSTOM.md"
794
+ ```
795
+
796
+ **3. Restart any running processes:**
797
+ ```bash
798
+ # If watch mode is running
799
+ kse watch stop
800
+ kse watch start
801
+ ```
802
+
803
+ ---
804
+
805
+ ### "Permission denied" when installing hooks
806
+
807
+ **Symptoms:**
808
+ ```bash
809
+ $ kse docs hooks install
810
+ Error: EACCES: permission denied, open '.git/hooks/pre-commit'
811
+ ```
812
+
813
+ **Cause:** Insufficient permissions for .git/hooks directory
814
+
815
+ **Solutions:**
816
+
817
+ **1. Check directory permissions:**
818
+ ```bash
819
+ ls -la .git/hooks/
820
+ ```
821
+
822
+ **2. Fix permissions:**
823
+ ```bash
824
+ # Make hooks directory writable
825
+ chmod u+w .git/hooks/
826
+
827
+ # Try again
828
+ kse docs hooks install
829
+ ```
830
+
831
+ **3. Check if file is read-only:**
832
+ ```bash
833
+ # If pre-commit already exists
834
+ ls -la .git/hooks/pre-commit
835
+
836
+ # Remove read-only flag
837
+ chmod u+w .git/hooks/pre-commit
838
+ ```
839
+
840
+ ---
841
+
842
+ ### Stats showing no data
843
+
844
+ **Symptoms:**
845
+ ```bash
846
+ $ kse docs stats
847
+ ⚠️ No execution history found
848
+ ```
849
+
850
+ **Cause:** No governance commands have been run yet
851
+
852
+ **Solution:**
853
+
854
+ **Run some governance commands:**
855
+ ```bash
856
+ # Run diagnostic
857
+ kse docs diagnose
858
+
859
+ # Run cleanup
860
+ kse docs cleanup --dry-run
861
+
862
+ # Now check stats
863
+ kse docs stats
864
+ ```
865
+
866
+ **Note:** Only actual operations are logged (not --dry-run for cleanup/archive)
867
+
868
+ ---
869
+
870
+ ### Report generation fails
871
+
872
+ **Symptoms:**
873
+ ```bash
874
+ $ kse docs report
875
+ Error: ENOENT: no such file or directory, open '.kiro/reports/...'
876
+ ```
877
+
878
+ **Cause:** Reports directory doesn't exist
879
+
880
+ **Solution:**
881
+
882
+ **Create reports directory:**
883
+ ```bash
884
+ mkdir -p .kiro/reports
885
+
886
+ # Try again
887
+ kse docs report
888
+ ```
889
+
890
+ **Or let kse create it:**
891
+ ```bash
892
+ # Run diagnostic first (creates directory structure)
893
+ kse docs diagnose
894
+
895
+ # Then generate report
896
+ kse docs report
897
+ ```
898
+
899
+ ---
900
+
901
+ ## Platform-Specific Issues
902
+
903
+ ### Windows Issues
904
+
905
+ #### PowerShell vs CMD
906
+
907
+ **Issue:** Commands work in CMD but not PowerShell (or vice versa)
908
+
909
+ **Solution:**
910
+ ```powershell
911
+ # Use CMD for kse commands
912
+ cmd /c kse status
913
+
914
+ # Or configure PowerShell execution policy
915
+ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
916
+ ```
917
+
918
+ #### Path separators
919
+
920
+ **Issue:** Paths with forward slashes don't work
921
+
922
+ **Solution:**
923
+ ```bash
924
+ # ❌ Wrong on Windows
925
+ kse context export .kiro/specs/01-00-user-login
926
+
927
+ # ✅ Correct on Windows
928
+ kse context export .kiro\specs\01-00-user-login
929
+
930
+ # ✅ Or use forward slashes (kse handles both)
931
+ kse context export 01-00-user-login
932
+ ```
933
+
934
+ #### Line endings
935
+
936
+ **Issue:** Files have wrong line endings (CRLF vs LF)
937
+
938
+ **Solution:**
939
+ ```bash
940
+ # Configure git to handle line endings
941
+ git config --global core.autocrlf true
942
+
943
+ # Or use .gitattributes
944
+ echo "*.md text eol=lf" >> .gitattributes
945
+ ```
946
+
947
+ ---
948
+
949
+ ### macOS Issues
950
+
951
+ #### Gatekeeper blocking kse
952
+
953
+ **Issue:** "kse cannot be opened because it is from an unidentified developer"
954
+
955
+ **Solution:**
956
+ ```bash
957
+ # kse is installed via npm, so this shouldn't happen
958
+ # But if it does:
959
+ xattr -d com.apple.quarantine $(which kse)
960
+ ```
961
+
962
+ #### Permission issues
963
+
964
+ **Issue:** "Operation not permitted"
965
+
966
+ **Solution:**
967
+ ```bash
968
+ # Grant Terminal full disk access
969
+ # System Preferences → Security & Privacy → Privacy → Full Disk Access
970
+ # Add Terminal.app
971
+ ```
972
+
973
+ ---
974
+
975
+ ### Linux Issues
976
+
977
+ #### Different shells
978
+
979
+ **Issue:** Commands work in bash but not zsh (or vice versa)
980
+
981
+ **Solution:**
982
+ ```bash
983
+ # Add kse to PATH in your shell config
984
+ # For bash: ~/.bashrc
985
+ # For zsh: ~/.zshrc
986
+ export PATH="$HOME/.npm-global/bin:$PATH"
987
+
988
+ # Reload config
989
+ source ~/.bashrc # or ~/.zshrc
990
+ ```
991
+
992
+ #### Permission issues
993
+
994
+ **Issue:** "Permission denied" errors
995
+
996
+ **Solution:**
997
+ ```bash
998
+ # Check file permissions
999
+ ls -la $(which kse)
1000
+
1001
+ # Should be executable
1002
+ chmod +x $(which kse)
1003
+ ```
1004
+
1005
+ ---
1006
+
1007
+ ## Getting More Help
1008
+
1009
+ ### Before Asking for Help
1010
+
1011
+ **Gather information:**
1012
+ ```bash
1013
+ # kse version
1014
+ kse --version
1015
+
1016
+ # Node.js version
1017
+ node --version
1018
+
1019
+ # npm version
1020
+ npm --version
1021
+
1022
+ # Operating system
1023
+ uname -a # macOS/Linux
1024
+ ver # Windows
1025
+
1026
+ # Current directory structure
1027
+ ls -la .kiro/
1028
+ ```
1029
+
1030
+ ### Where to Get Help
1031
+
1032
+ **1. Documentation:**
1033
+ - [Quick Start Guide](quick-start.md)
1034
+ - [FAQ](faq.md)
1035
+ - [Command Reference](command-reference.md)
1036
+
1037
+ **2. GitHub Issues:**
1038
+ - Search existing issues: https://github.com/heguangyong/scene-capability-engine/issues
1039
+ - Create new issue: https://github.com/heguangyong/scene-capability-engine/issues/new
1040
+
1041
+ **3. GitHub Discussions:**
1042
+ - Ask questions: https://github.com/heguangyong/scene-capability-engine/discussions
1043
+ - Share tips and tricks
1044
+ - Connect with other users
1045
+
1046
+ **4. Community:**
1047
+ - Discord: [Join our Discord](https://discord.gg/kse)
1048
+ - Twitter: [@kse_dev](https://twitter.com/kse_dev)
1049
+
1050
+ ### Creating a Good Issue Report
1051
+
1052
+ **Include:**
1053
+ 1. **What you tried to do**
1054
+ 2. **What you expected to happen**
1055
+ 3. **What actually happened**
1056
+ 4. **Error messages** (full text)
1057
+ 5. **Environment info** (OS, Node version, kse version)
1058
+ 6. **Steps to reproduce**
1059
+
1060
+ **Example:**
1061
+ ```markdown
1062
+ ## Description
1063
+ Context export fails for Spec with Chinese characters in filename
1064
+
1065
+ ## Steps to Reproduce
1066
+ 1. Create Spec: kse spec bootstrap --name 01-00-用户登录 --non-interactive
1067
+ 2. Run: kse context export 01-00-用户登录
1068
+ 3. Error occurs
1069
+
1070
+ ## Expected Behavior
1071
+ Context should export successfully
1072
+
1073
+ ## Actual Behavior
1074
+ Error: Invalid filename
1075
+
1076
+ ## Environment
1077
+ - OS: macOS 13.0
1078
+ - Node: v18.12.0
1079
+ - kse: v1.0.0
1080
+
1081
+ ## Error Message
1082
+ ```
1083
+ Error: EINVAL: invalid filename
1084
+ ```
1085
+ ```
1086
+
1087
+ ---
1088
+
1089
+ ## Related Documentation
1090
+
1091
+ - **[Quick Start Guide](quick-start.md)** - Get started with kse
1092
+ - **[FAQ](faq.md)** - Frequently asked questions
1093
+ - **[Command Reference](command-reference.md)** - All kse commands
1094
+ - **[Integration Modes](integration-modes.md)** - Using kse with AI tools
1095
+
1096
+ ---
1097
+
1098
+ ## Summary
1099
+
1100
+ **Most Common Issues:**
1101
+ 1. **Installation** - Use npx or fix npm permissions
1102
+ 2. **Command not found** - Add kse to PATH
1103
+ 3. **Spec name format** - Use XX-YY-feature-name format
1104
+ 4. **Context too large** - Use task-specific prompts
1105
+ 5. **Watch mode** - Restart or check configuration
1106
+ 6. **Document governance** - Check patterns and permissions
1107
+
1108
+ **Quick Fixes:**
1109
+ ```bash
1110
+ # Restart kse watch mode
1111
+ kse watch stop && kse watch start
1112
+
1113
+ # Verify installation
1114
+ kse --version
1115
+
1116
+ # Check Spec structure
1117
+ ls -la .kiro/specs/
1118
+
1119
+ # Test context export
1120
+ kse context export spec-name
1121
+
1122
+ # Check document compliance
1123
+ kse docs diagnose
1124
+
1125
+ # Clean up temporary files
1126
+ kse docs cleanup --dry-run
1127
+ ```
1128
+
1129
+ **Still stuck?** → [Create an issue](https://github.com/heguangyong/scene-capability-engine/issues/new)
1130
+
1131
+ ---
1132
+
1133
+ **Version**: 1.42.0
1134
+ **Last Updated**: 2026-02-11
1135
+