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.
- package/CHANGELOG.md +2513 -0
- package/LICENSE +21 -0
- package/README.md +765 -0
- package/README.zh.md +630 -0
- package/bin/kiro-spec-engine.js +796 -0
- package/bin/kse.js +3 -0
- package/bin/sce.js +3 -0
- package/bin/sco.js +3 -0
- package/docs/331-poc-adaptation-roadmap.md +156 -0
- package/docs/331-poc-dual-track-integration-guide.md +120 -0
- package/docs/331-poc-weekly-delivery-checklist.md +52 -0
- package/docs/OFFLINE_INSTALL.md +96 -0
- package/docs/README.md +279 -0
- package/docs/adopt-migration-guide.md +599 -0
- package/docs/adoption-guide.md +616 -0
- package/docs/agent-hooks-analysis.md +815 -0
- package/docs/architecture.md +733 -0
- package/docs/articles/ai-driven-development-philosophy-and-practice-review.md +208 -0
- package/docs/articles/ai-driven-development-philosophy-and-practice.en.md +459 -0
- package/docs/articles/ai-driven-development-philosophy-and-practice.md +492 -0
- package/docs/autonomous-control-guide.md +851 -0
- package/docs/command-reference.md +1368 -0
- package/docs/community.md +115 -0
- package/docs/cross-tool-guide.md +555 -0
- package/docs/developer-guide.md +619 -0
- package/docs/document-governance.md +865 -0
- package/docs/environment-management-guide.md +526 -0
- package/docs/examples/add-export-command/design.md +194 -0
- package/docs/examples/add-export-command/requirements.md +110 -0
- package/docs/examples/add-export-command/tasks.md +88 -0
- package/docs/examples/add-rest-api/design.md +855 -0
- package/docs/examples/add-rest-api/requirements.md +323 -0
- package/docs/examples/add-rest-api/tasks.md +355 -0
- package/docs/examples/add-user-dashboard/design.md +192 -0
- package/docs/examples/add-user-dashboard/requirements.md +143 -0
- package/docs/examples/add-user-dashboard/tasks.md +91 -0
- package/docs/faq.md +697 -0
- package/docs/handoffs/evidence/ontology/moqui-template-baseline-2026-02-17-232922.json +156 -0
- package/docs/handoffs/evidence/ontology/moqui-template-baseline-2026-02-17-232922.md +24 -0
- package/docs/images/wechat-qr.png +0 -0
- package/docs/integration-modes.md +529 -0
- package/docs/integration-philosophy.md +313 -0
- package/docs/knowledge-management-guide.md +263 -0
- package/docs/manual-workflows-guide.md +418 -0
- package/docs/moqui-capability-matrix.md +73 -0
- package/docs/moqui-template-core-library-playbook.md +109 -0
- package/docs/multi-agent-coordination-guide.md +553 -0
- package/docs/multi-repo-management-guide.md +1344 -0
- package/docs/quick-start-with-ai-tools.md +375 -0
- package/docs/quick-start.md +146 -0
- package/docs/release-checklist.md +121 -0
- package/docs/releases/README.md +13 -0
- package/docs/releases/v1.46.2-validation.md +45 -0
- package/docs/releases/v1.46.2.md +50 -0
- package/docs/scene-runtime-guide.md +347 -0
- package/docs/spec-collaboration-guide.md +369 -0
- package/docs/spec-locking-guide.md +225 -0
- package/docs/spec-numbering-guide.md +348 -0
- package/docs/spec-workflow.md +519 -0
- package/docs/steering-strategy-guide.md +196 -0
- package/docs/team-collaboration-guide.md +465 -0
- package/docs/testing-strategy.md +272 -0
- package/docs/tools/claude-guide.md +654 -0
- package/docs/tools/cursor-guide.md +706 -0
- package/docs/tools/generic-guide.md +446 -0
- package/docs/tools/kiro-guide.md +308 -0
- package/docs/tools/vscode-guide.md +445 -0
- package/docs/tools/windsurf-guide.md +391 -0
- package/docs/troubleshooting.md +1135 -0
- package/docs/upgrade-guide.md +639 -0
- package/docs/value-observability-guide.md +127 -0
- package/docs/zh/README.md +341 -0
- package/docs/zh/quick-start.md +764 -0
- package/docs/zh/release-checklist.md +121 -0
- package/docs/zh/releases/README.md +13 -0
- package/docs/zh/releases/v1.46.2-validation.md +45 -0
- package/docs/zh/releases/v1.46.2.md +50 -0
- package/docs/zh/spec-numbering-guide.md +348 -0
- package/docs/zh/tools/claude-guide.md +349 -0
- package/docs/zh/tools/cursor-guide.md +281 -0
- package/docs/zh/tools/generic-guide.md +499 -0
- package/docs/zh/tools/kiro-guide.md +342 -0
- package/docs/zh/tools/vscode-guide.md +449 -0
- package/docs/zh/tools/windsurf-guide.md +378 -0
- package/docs/zh/value-observability-guide.md +127 -0
- package/docs//344/272/244/344/273/230/346/270/205/345/215/225.md +75 -0
- package/lib/adoption/adoption-logger.js +487 -0
- package/lib/adoption/adoption-strategy.js +538 -0
- package/lib/adoption/backup-manager.js +420 -0
- package/lib/adoption/conflict-resolver.js +410 -0
- package/lib/adoption/detection-engine.js +275 -0
- package/lib/adoption/diff-viewer.js +226 -0
- package/lib/adoption/error-formatter.js +509 -0
- package/lib/adoption/file-classifier.js +385 -0
- package/lib/adoption/progress-reporter.js +534 -0
- package/lib/adoption/smart-orchestrator.js +470 -0
- package/lib/adoption/strategy-selector.js +218 -0
- package/lib/adoption/summary-generator.js +493 -0
- package/lib/adoption/template-sync.js +605 -0
- package/lib/auto/autonomous-engine.js +485 -0
- package/lib/auto/checkpoint-manager.js +300 -0
- package/lib/auto/close-loop-runner.js +2476 -0
- package/lib/auto/config-schema.js +176 -0
- package/lib/auto/decision-engine.js +344 -0
- package/lib/auto/error-recovery-manager.js +580 -0
- package/lib/auto/goal-decomposer.js +278 -0
- package/lib/auto/progress-tracker.js +502 -0
- package/lib/auto/safety-manager.js +186 -0
- package/lib/auto/semantic-decomposer.js +137 -0
- package/lib/auto/state-manager.js +126 -0
- package/lib/auto/task-queue-manager.js +340 -0
- package/lib/backup/backup-system.js +372 -0
- package/lib/backup/selective-backup.js +207 -0
- package/lib/collab/agent-registry.js +240 -0
- package/lib/collab/collab-manager.js +285 -0
- package/lib/collab/contract-manager.js +320 -0
- package/lib/collab/coordinator.js +370 -0
- package/lib/collab/dependency-manager.js +280 -0
- package/lib/collab/index.js +20 -0
- package/lib/collab/integration-manager.js +202 -0
- package/lib/collab/merge-coordinator.js +252 -0
- package/lib/collab/metadata-manager.js +233 -0
- package/lib/collab/multi-agent-config.js +120 -0
- package/lib/collab/spec-lifecycle-manager.js +304 -0
- package/lib/collab/sync-barrier.js +88 -0
- package/lib/collab/visualizer.js +208 -0
- package/lib/commands/adopt.js +749 -0
- package/lib/commands/auto.js +19559 -0
- package/lib/commands/collab.js +275 -0
- package/lib/commands/context.js +99 -0
- package/lib/commands/docs.js +808 -0
- package/lib/commands/doctor.js +273 -0
- package/lib/commands/env.js +420 -0
- package/lib/commands/knowledge.js +309 -0
- package/lib/commands/lock.js +235 -0
- package/lib/commands/ops.js +409 -0
- package/lib/commands/orchestrate.js +446 -0
- package/lib/commands/prompt.js +105 -0
- package/lib/commands/repo.js +118 -0
- package/lib/commands/rollback.js +219 -0
- package/lib/commands/scene.js +15549 -0
- package/lib/commands/spec-bootstrap.js +147 -0
- package/lib/commands/spec-gate.js +157 -0
- package/lib/commands/spec-pipeline.js +205 -0
- package/lib/commands/status.js +321 -0
- package/lib/commands/task.js +199 -0
- package/lib/commands/templates.js +654 -0
- package/lib/commands/upgrade.js +231 -0
- package/lib/commands/value.js +569 -0
- package/lib/commands/watch.js +684 -0
- package/lib/commands/workflows.js +240 -0
- package/lib/commands/workspace-multi.js +325 -0
- package/lib/commands/workspace.js +189 -0
- package/lib/context/context-exporter.js +378 -0
- package/lib/context/prompt-generator.js +482 -0
- package/lib/data/moqui-capability-lexicon.json +45 -0
- package/lib/environment/backup-system.js +189 -0
- package/lib/environment/environment-manager.js +379 -0
- package/lib/environment/environment-registry.js +168 -0
- package/lib/gitignore/gitignore-backup.js +229 -0
- package/lib/gitignore/gitignore-detector.js +239 -0
- package/lib/gitignore/gitignore-integration.js +267 -0
- package/lib/gitignore/gitignore-transformer.js +193 -0
- package/lib/gitignore/layered-rules-template.js +42 -0
- package/lib/governance/archive-tool.js +284 -0
- package/lib/governance/cleanup-tool.js +237 -0
- package/lib/governance/config-manager.js +186 -0
- package/lib/governance/diagnostic-engine.js +271 -0
- package/lib/governance/doc-reference-checker.js +200 -0
- package/lib/governance/execution-logger.js +243 -0
- package/lib/governance/file-scanner.js +285 -0
- package/lib/governance/hooks-manager.js +333 -0
- package/lib/governance/reporter.js +337 -0
- package/lib/governance/validation-engine.js +181 -0
- package/lib/i18n.js +79 -0
- package/lib/knowledge/entry-manager.js +208 -0
- package/lib/knowledge/index-manager.js +261 -0
- package/lib/knowledge/knowledge-manager.js +273 -0
- package/lib/knowledge/template-manager.js +191 -0
- package/lib/lock/index.js +21 -0
- package/lib/lock/lock-file.js +192 -0
- package/lib/lock/lock-manager.js +321 -0
- package/lib/lock/machine-identifier.js +135 -0
- package/lib/lock/steering-file-lock.js +207 -0
- package/lib/lock/task-lock-manager.js +345 -0
- package/lib/operations/audit-logger.js +293 -0
- package/lib/operations/feedback-manager.js +1147 -0
- package/lib/operations/index.js +23 -0
- package/lib/operations/models/index.js +170 -0
- package/lib/operations/operations-manager.js +151 -0
- package/lib/operations/operations-validator.js +280 -0
- package/lib/operations/permission-manager.js +354 -0
- package/lib/operations/template-loader.js +143 -0
- package/lib/orchestrator/agent-spawner.js +629 -0
- package/lib/orchestrator/bootstrap-prompt-builder.js +236 -0
- package/lib/orchestrator/index.js +19 -0
- package/lib/orchestrator/orchestration-engine.js +1270 -0
- package/lib/orchestrator/orchestrator-config.js +173 -0
- package/lib/orchestrator/status-monitor.js +591 -0
- package/lib/python-checker.js +209 -0
- package/lib/repo/config-manager.js +580 -0
- package/lib/repo/errors/config-error.js +13 -0
- package/lib/repo/errors/git-error.js +15 -0
- package/lib/repo/errors/repo-error.js +14 -0
- package/lib/repo/git-operations.js +181 -0
- package/lib/repo/handlers/.gitkeep +1 -0
- package/lib/repo/handlers/exec-handler.js +155 -0
- package/lib/repo/handlers/health-handler.js +169 -0
- package/lib/repo/handlers/init-handler.js +197 -0
- package/lib/repo/handlers/status-handler.js +176 -0
- package/lib/repo/output-formatter.js +184 -0
- package/lib/repo/path-resolver.js +178 -0
- package/lib/repo/repo-manager.js +514 -0
- package/lib/scene-runtime/audit-emitter.js +59 -0
- package/lib/scene-runtime/binding-plugin-loader.js +351 -0
- package/lib/scene-runtime/binding-registry.js +349 -0
- package/lib/scene-runtime/eval-bridge.js +44 -0
- package/lib/scene-runtime/index.js +19 -0
- package/lib/scene-runtime/moqui-adapter.js +620 -0
- package/lib/scene-runtime/moqui-client.js +606 -0
- package/lib/scene-runtime/moqui-extractor.js +2029 -0
- package/lib/scene-runtime/plan-compiler.js +208 -0
- package/lib/scene-runtime/policy-gate.js +58 -0
- package/lib/scene-runtime/runtime-executor.js +358 -0
- package/lib/scene-runtime/scene-loader.js +96 -0
- package/lib/scene-runtime/scene-ontology.js +959 -0
- package/lib/scene-runtime/scene-template-linter.js +852 -0
- package/lib/scene-runtime/templates/scene-template-erp-query-v0.1.yaml +28 -0
- package/lib/scene-runtime/templates/scene-template-hybrid-shadow-v0.1.yaml +34 -0
- package/lib/spec/bootstrap/context-collector.js +48 -0
- package/lib/spec/bootstrap/draft-generator.js +158 -0
- package/lib/spec/bootstrap/questionnaire-engine.js +70 -0
- package/lib/spec/bootstrap/trace-emitter.js +59 -0
- package/lib/spec/multi-spec-orchestrate.js +93 -0
- package/lib/spec/pipeline/constants.js +6 -0
- package/lib/spec/pipeline/stage-adapters.js +118 -0
- package/lib/spec/pipeline/stage-runner.js +146 -0
- package/lib/spec/pipeline/state-store.js +119 -0
- package/lib/spec-gate/engine/gate-engine.js +165 -0
- package/lib/spec-gate/policy/default-policy.js +22 -0
- package/lib/spec-gate/policy/policy-loader.js +103 -0
- package/lib/spec-gate/result-emitter.js +81 -0
- package/lib/spec-gate/rules/default-rules.js +156 -0
- package/lib/spec-gate/rules/rule-registry.js +51 -0
- package/lib/steering/adoption-config.js +164 -0
- package/lib/steering/compliance-auto-fixer.js +204 -0
- package/lib/steering/compliance-cache.js +99 -0
- package/lib/steering/compliance-error-reporter.js +70 -0
- package/lib/steering/context-sync-manager.js +273 -0
- package/lib/steering/index.js +92 -0
- package/lib/steering/spec-steering.js +230 -0
- package/lib/steering/steering-compliance-checker.js +73 -0
- package/lib/steering/steering-loader.js +144 -0
- package/lib/steering/steering-manager.js +289 -0
- package/lib/task/index.js +12 -0
- package/lib/task/task-claimer.js +489 -0
- package/lib/task/task-status-store.js +418 -0
- package/lib/templates/cache-manager.js +440 -0
- package/lib/templates/content-generalizer.js +247 -0
- package/lib/templates/frontmatter-generator.js +128 -0
- package/lib/templates/git-handler.js +471 -0
- package/lib/templates/metadata-collector.js +328 -0
- package/lib/templates/path-utils.js +144 -0
- package/lib/templates/registry-parser.js +505 -0
- package/lib/templates/spec-reader.js +216 -0
- package/lib/templates/template-applicator.js +249 -0
- package/lib/templates/template-creator.js +256 -0
- package/lib/templates/template-error.js +143 -0
- package/lib/templates/template-exporter.js +502 -0
- package/lib/templates/template-manager.js +782 -0
- package/lib/templates/template-validator.js +361 -0
- package/lib/upgrade/migration-engine.js +382 -0
- package/lib/upgrade/migrations/.gitkeep +52 -0
- package/lib/upgrade/migrations/1.0.0-to-1.1.0.js +78 -0
- package/lib/utils/file-diff.js +177 -0
- package/lib/utils/fs-utils.js +274 -0
- package/lib/utils/tool-detector.js +383 -0
- package/lib/utils/validation.js +324 -0
- package/lib/value/gate-summary-emitter.js +99 -0
- package/lib/value/metric-contract-loader.js +210 -0
- package/lib/value/risk-evaluator.js +117 -0
- package/lib/value/weekly-snapshot-builder.js +61 -0
- package/lib/version/version-checker.js +156 -0
- package/lib/version/version-manager.js +327 -0
- package/lib/watch/action-executor.js +458 -0
- package/lib/watch/event-debouncer.js +323 -0
- package/lib/watch/execution-logger.js +550 -0
- package/lib/watch/file-watcher.js +499 -0
- package/lib/watch/presets.js +266 -0
- package/lib/watch/watch-manager.js +533 -0
- package/lib/workspace/multi/global-config.js +150 -0
- package/lib/workspace/multi/index.js +22 -0
- package/lib/workspace/multi/path-utils.js +173 -0
- package/lib/workspace/multi/workspace-context-resolver.js +244 -0
- package/lib/workspace/multi/workspace-registry.js +196 -0
- package/lib/workspace/multi/workspace-state-manager.js +537 -0
- package/lib/workspace/multi/workspace.js +90 -0
- package/lib/workspace/workspace-manager.js +370 -0
- package/lib/workspace/workspace-sync.js +356 -0
- package/locales/en.json +114 -0
- package/locales/zh.json +114 -0
- package/package.json +102 -0
- package/template/.kiro/README.md +247 -0
- package/template/.kiro/hooks/check-spec-on-create.kiro.hook +17 -0
- package/template/.kiro/hooks/run-tests-on-save.kiro.hook +13 -0
- package/template/.kiro/hooks/sync-tasks-on-edit.kiro.hook +16 -0
- package/template/.kiro/specs/SPEC_WORKFLOW_GUIDE.md +134 -0
- package/template/.kiro/steering/CORE_PRINCIPLES.md +133 -0
- package/template/.kiro/steering/CURRENT_CONTEXT.md +30 -0
- package/template/.kiro/steering/ENVIRONMENT.md +35 -0
- package/template/.kiro/steering/RULES_GUIDE.md +46 -0
- package/template/.kiro/templates/operations/default/change-impact.md +112 -0
- package/template/.kiro/templates/operations/default/deployment.md +91 -0
- package/template/.kiro/templates/operations/default/feedback-response.md +269 -0
- package/template/.kiro/templates/operations/default/migration-plan.md +172 -0
- package/template/.kiro/templates/operations/default/monitoring.md +135 -0
- package/template/.kiro/templates/operations/default/operations.md +135 -0
- package/template/.kiro/templates/operations/default/rollback.md +143 -0
- package/template/.kiro/templates/operations/default/tools.yaml +364 -0
- package/template/.kiro/templates/operations/default/troubleshooting.md +123 -0
- package/template/.kiro/tools/backup_manager.py +295 -0
- package/template/.kiro/tools/configuration_manager.py +218 -0
- package/template/.kiro/tools/document_evaluator.py +550 -0
- package/template/.kiro/tools/enhancement_logger.py +168 -0
- package/template/.kiro/tools/error_handler.py +335 -0
- package/template/.kiro/tools/improvement_identifier.py +444 -0
- package/template/.kiro/tools/modification_applicator.py +737 -0
- package/template/.kiro/tools/quality_gate_enforcer.py +207 -0
- package/template/.kiro/tools/quality_scorer.py +305 -0
- package/template/.kiro/tools/report_generator.py +154 -0
- package/template/.kiro/tools/ultrawork_enhancer.py +676 -0
- package/template/.kiro/tools/ultrawork_enhancer_refactored.py +0 -0
- package/template/.kiro/tools/ultrawork_enhancer_v2.py +463 -0
- package/template/.kiro/tools/ultrawork_enhancer_v3.py +606 -0
- package/template/.kiro/tools/workflow_quality_gate.py +100 -0
- package/template/README.md +111 -0
package/README.md
ADDED
|
@@ -0,0 +1,765 @@
|
|
|
1
|
+
# SCE - Scene Capability Engine
|
|
2
|
+
|
|
3
|
+
[](https://badge.fury.io/js/scene-capability-engine)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
|
|
6
|
+
> **⚠️ Important Clarification**: `scene-capability-engine` (`sce`) is an **npm package and CLI tool** for spec-driven development.
|
|
7
|
+
> It is **NOT** the Kiro IDE desktop application. If you're looking for Kiro IDE, visit https://kiro.dev
|
|
8
|
+
> Legacy/compatibility commands `sco`, `kse`, and `kiro-spec-engine` remain available.
|
|
9
|
+
|
|
10
|
+
**A context provider for AI coding tools** - Structure your project requirements, design, and tasks so AI assistants can help you build better software.
|
|
11
|
+
|
|
12
|
+
**🚀 NEW: Autonomous Control** - Let AI independently manage entire development workflows from requirements to delivery.
|
|
13
|
+
|
|
14
|
+
English | [简体中文](README.zh.md)
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## What is sce?
|
|
19
|
+
|
|
20
|
+
**SCE (Scene Capability Engine) is a context management system for AI-assisted development.** It helps you organize project information into structured "Specs" (Requirements → Design → Tasks) that AI tools can understand and use effectively.
|
|
21
|
+
|
|
22
|
+
Think of sce as a **librarian for your AI assistant** - it organizes and presents project context so your AI tool knows exactly what you're building, why, and how.
|
|
23
|
+
|
|
24
|
+
### How it Works
|
|
25
|
+
|
|
26
|
+
```mermaid
|
|
27
|
+
graph LR
|
|
28
|
+
A[You create Specs] --> B[sce organizes context]
|
|
29
|
+
B --> C[AI tool reads context]
|
|
30
|
+
C --> D[AI generates better code]
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
1. **You create Specs** - Write requirements, design, and tasks in structured markdown files
|
|
34
|
+
2. **sce organizes context** - Exports formatted context optimized for AI tools
|
|
35
|
+
3. **AI tool reads context** - Your AI assistant understands your project structure
|
|
36
|
+
4. **AI generates better code** - Code that matches your design and requirements
|
|
37
|
+
|
|
38
|
+
### What sce is NOT
|
|
39
|
+
|
|
40
|
+
- ❌ **Not a code generator** - sce doesn't write code; your AI tool does
|
|
41
|
+
- ❌ **Not an IDE** - sce works alongside your existing development tools
|
|
42
|
+
- ❌ **Not AI-specific** - Works with Claude, Cursor, Windsurf, Copilot, and any AI tool
|
|
43
|
+
- ❌ **Not a replacement for documentation** - It's a structured way to organize project context
|
|
44
|
+
|
|
45
|
+
### Who Should Use sce?
|
|
46
|
+
|
|
47
|
+
- ✅ Developers using AI coding assistants (Claude, Cursor, Copilot, etc.)
|
|
48
|
+
- ✅ Teams wanting structured project documentation
|
|
49
|
+
- ✅ Anyone building features that need clear requirements and design
|
|
50
|
+
- ✅ Projects that benefit from spec-driven development
|
|
51
|
+
|
|
52
|
+
## Why sce Wins in AI Delivery
|
|
53
|
+
|
|
54
|
+
| Advantage | sce Capability | Practical Impact |
|
|
55
|
+
| --- | --- | --- |
|
|
56
|
+
| Structure-first execution | Requirements → Design → Tasks + gate checks | Lower rework and fewer requirement drifts |
|
|
57
|
+
| Autonomous close-loop delivery | One-command close loop (`auto close-loop`) | No step-by-step confirmation waits |
|
|
58
|
+
| Multi-agent scale-out | DAG orchestration (`orchestrate run/status/stop`) | Parallel delivery without manual terminal juggling |
|
|
59
|
+
| Auto portfolio decomposition | Master/Sub spec split + dependency wiring | Complex goals become executable parallel plans automatically |
|
|
60
|
+
| Program self-healing closure | `auto close-loop-program` auto recovery + learned remediation memory | Failed/partial runs continue autonomously until bounded convergence |
|
|
61
|
+
| Queue-driven autonomous runtime | `auto close-loop-controller` persistent queue drain | Program-scale backlogs continue without manual re-triggering |
|
|
62
|
+
| Autonomous convergence governance | Program gate (`min-success-rate` + `max-risk-level`) + audit JSON output | Program completion is policy-verified and traceable |
|
|
63
|
+
| Measurable outcomes | KPI automation (`value metrics snapshot/baseline/trend`) | Delivery quality can be tracked week-over-week |
|
|
64
|
+
| Tool-agnostic adoption | Works across Claude/Cursor/Windsurf/Copilot/Kiro | No lock-in to a single AI IDE |
|
|
65
|
+
| Built-in governance | Docs governance, lock management, audit, env/workspace controls | Team collaboration stays auditable and stable |
|
|
66
|
+
|
|
67
|
+
### 90-Second Value Proof
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
# 1) Adopt sce in current repo
|
|
71
|
+
sce adopt
|
|
72
|
+
|
|
73
|
+
# 2) Generate Spec workflow draft
|
|
74
|
+
sce spec bootstrap --name 01-00-demo-feature --non-interactive
|
|
75
|
+
|
|
76
|
+
# 3) Generate KPI input sample
|
|
77
|
+
sce value metrics sample --out ./kpi-input.json --json
|
|
78
|
+
|
|
79
|
+
# 4) Produce machine-readable KPI snapshot
|
|
80
|
+
sce value metrics snapshot --input ./kpi-input.json --json
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## Quick Start
|
|
86
|
+
|
|
87
|
+
### The Simplest Way (30 seconds) ⚡
|
|
88
|
+
|
|
89
|
+
**Just tell your AI:**
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
Install sce and use it to manage this project with Spec-driven development.
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
**Your AI will:**
|
|
96
|
+
1. Install sce globally (`npm install -g scene-capability-engine`)
|
|
97
|
+
2. Adopt it in your project (`sce adopt`)
|
|
98
|
+
3. Read the methodology guide (`.kiro/README.md`)
|
|
99
|
+
4. Start working according to Spec-driven approach
|
|
100
|
+
|
|
101
|
+
**That's it!** Your AI handles everything. No manual steps needed.
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
### Step-by-Step Guide (if you want details) 📋
|
|
106
|
+
|
|
107
|
+
<details>
|
|
108
|
+
<summary><b>Click to expand detailed steps</b></summary>
|
|
109
|
+
|
|
110
|
+
#### Step 1: Install sce (30 seconds)
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
npm install -g scene-capability-engine
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Verify installation:
|
|
117
|
+
```bash
|
|
118
|
+
sce --version
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
#### Step 2: Adopt sce in Your Project (30 seconds)
|
|
122
|
+
|
|
123
|
+
Navigate to your project directory and run:
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
cd your-project
|
|
127
|
+
sce adopt
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
This creates a `.kiro/` directory with:
|
|
131
|
+
- `README.md` - Project development guide for AI
|
|
132
|
+
- `specs/` - Where your Specs live
|
|
133
|
+
- `steering/` - Development rules (optional)
|
|
134
|
+
|
|
135
|
+
#### Step 3: Tell Your AI About the Methodology (30 seconds)
|
|
136
|
+
|
|
137
|
+
**In your AI tool (Cursor, Claude, Windsurf, Kiro, etc.), say:**
|
|
138
|
+
|
|
139
|
+
```
|
|
140
|
+
Please read .kiro/README.md to understand how this project works.
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
**Your AI will learn:**
|
|
144
|
+
- This project follows Spec-driven development
|
|
145
|
+
- Every feature starts with a Spec (requirements + design + tasks)
|
|
146
|
+
- How to work with this methodology
|
|
147
|
+
- When to use sce commands
|
|
148
|
+
|
|
149
|
+
#### Step 4: Start Building Features
|
|
150
|
+
|
|
151
|
+
**Just ask your AI to implement features naturally:**
|
|
152
|
+
|
|
153
|
+
```
|
|
154
|
+
I need a user login feature with email and password.
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
**Your AI will automatically:**
|
|
158
|
+
1. Create a Spec with requirements, design, and tasks
|
|
159
|
+
2. Implement according to the Spec
|
|
160
|
+
3. Update task status as work progresses
|
|
161
|
+
4. Use sce commands internally (you don't need to run them)
|
|
162
|
+
|
|
163
|
+
**Example conversation:**
|
|
164
|
+
- **You**: "I need user login with email and password"
|
|
165
|
+
- **AI**: "I'll create a Spec for this. Let me define the requirements..."
|
|
166
|
+
- **AI**: "Here's the design... Now I'll implement task 1.1..."
|
|
167
|
+
- **AI**: "Task 1.1 complete. Moving to task 1.2..."
|
|
168
|
+
|
|
169
|
+
</details>
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
**Key insight:** You don't "use sce" - your project "follows Spec-driven methodology" and sce helps enforce it. The AI handles all the sce commands for you.
|
|
174
|
+
|
|
175
|
+
### Step 5: Next Steps (30 seconds)
|
|
176
|
+
|
|
177
|
+
- 📖 Read the [Quick Start Guide](docs/quick-start.md) for detailed examples
|
|
178
|
+
- 🔧 Check your tool's integration guide: [Cursor](docs/tools/cursor-guide.md) | [Claude](docs/tools/claude-guide.md) | [Windsurf](docs/tools/windsurf-guide.md)
|
|
179
|
+
- 💡 Learn about [Integration Modes](docs/integration-modes.md)
|
|
180
|
+
|
|
181
|
+
---
|
|
182
|
+
|
|
183
|
+
## Core Concepts
|
|
184
|
+
|
|
185
|
+
### Specs
|
|
186
|
+
|
|
187
|
+
A **Spec** is a structured description of a feature or project component. Each Spec contains:
|
|
188
|
+
|
|
189
|
+
- **Requirements** (`requirements.md`) - What you're building and why
|
|
190
|
+
- **Design** (`design.md`) - How you'll build it (architecture, APIs, components)
|
|
191
|
+
- **Tasks** (`tasks.md`) - Step-by-step implementation checklist
|
|
192
|
+
|
|
193
|
+
### Context Export
|
|
194
|
+
|
|
195
|
+
**Context export** transforms your Spec into a format optimized for AI tools. It includes:
|
|
196
|
+
- All requirements, design decisions, and tasks
|
|
197
|
+
- Project structure and conventions
|
|
198
|
+
- Steering rules (optional) for AI behavior
|
|
199
|
+
|
|
200
|
+
### Integration Modes
|
|
201
|
+
|
|
202
|
+
sce supports three ways to work with AI tools:
|
|
203
|
+
|
|
204
|
+
1. **Native Integration** - AI tool directly accesses sce (Kiro IDE)
|
|
205
|
+
2. **Manual Export** - You export and paste context (Claude, ChatGPT, Cursor)
|
|
206
|
+
3. **Watch Mode** - Automatic context updates on file changes (all tools)
|
|
207
|
+
|
|
208
|
+
Learn more: [Integration Modes Guide](docs/integration-modes.md)
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## Integration with Your AI Tool
|
|
213
|
+
|
|
214
|
+
sce works with any AI coding assistant. Choose your tool for specific guidance:
|
|
215
|
+
|
|
216
|
+
### Popular AI Tools
|
|
217
|
+
|
|
218
|
+
- **[Cursor](docs/tools/cursor-guide.md)** - IDE with AI pair programming
|
|
219
|
+
- **[Claude Code](docs/tools/claude-guide.md)** - Anthropic's coding assistant
|
|
220
|
+
- **[Windsurf](docs/tools/windsurf-guide.md)** - AI agent with command execution
|
|
221
|
+
- **[Kiro](docs/tools/kiro-guide.md)** - Native integration, no manual export needed
|
|
222
|
+
- **[VS Code + Copilot](docs/tools/vscode-guide.md)** - GitHub Copilot integration
|
|
223
|
+
- **[Generic AI Tools](docs/tools/generic-guide.md)** - Works with any AI assistant
|
|
224
|
+
|
|
225
|
+
### Integration Workflow
|
|
226
|
+
|
|
227
|
+
```mermaid
|
|
228
|
+
sequenceDiagram
|
|
229
|
+
participant You
|
|
230
|
+
participant AI Tool
|
|
231
|
+
participant sce
|
|
232
|
+
You->>AI Tool: "I have a Spec for user-login, implement task 1.1"
|
|
233
|
+
AI Tool->>sce: sce context export user-login
|
|
234
|
+
sce->>AI Tool: Spec content (requirements, design, tasks)
|
|
235
|
+
AI Tool->>AI Tool: Generate code following Spec
|
|
236
|
+
AI Tool->>You: Here's the implementation
|
|
237
|
+
AI Tool->>sce: Update tasks.md (mark task complete)
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
**Key insight:** You stay in your AI tool. The AI reads the Spec and generates code that matches your design.
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
## Documentation
|
|
245
|
+
|
|
246
|
+
### Getting Started
|
|
247
|
+
- 📖 **[Quick Start Guide](docs/quick-start.md)** - Detailed 5-minute tutorial
|
|
248
|
+
- 🤔 **[FAQ](docs/faq.md)** - Frequently asked questions
|
|
249
|
+
- 🔧 **[Troubleshooting](docs/troubleshooting.md)** - Common issues and solutions
|
|
250
|
+
|
|
251
|
+
### Core Guides
|
|
252
|
+
- 📋 **[Spec Workflow](docs/spec-workflow.md)** - Understanding Specs in depth
|
|
253
|
+
- 🔢 **[Spec Numbering Strategy](docs/spec-numbering-guide.md)** - How to number your Specs
|
|
254
|
+
- 📄 **[Document Governance](docs/document-governance.md)** - Automated document management
|
|
255
|
+
- 🌍 **[Environment Management](docs/environment-management-guide.md)** - Multi-environment configuration
|
|
256
|
+
- 📦 **[Multi-Repository Management](docs/multi-repo-management-guide.md)** - Manage multiple Git repositories
|
|
257
|
+
- 🎭 **[Scene Runtime](docs/scene-runtime-guide.md)** - Template engine, quality pipeline, ontology, Moqui ERP
|
|
258
|
+
- 🤖 **[Multi-Agent Coordination](docs/multi-agent-coordination-guide.md)** - Parallel agent coordination
|
|
259
|
+
- 📈 **[Value Observability](docs/value-observability-guide.md)** - KPI snapshot, baseline, trend, gate-ready evidence
|
|
260
|
+
- 🔌 **[Integration Modes](docs/integration-modes.md)** - Three ways to integrate sce
|
|
261
|
+
- 📝 **[Command Reference](docs/command-reference.md)** - All sce commands
|
|
262
|
+
|
|
263
|
+
### Tool-Specific Guides
|
|
264
|
+
- [Cursor Integration](docs/tools/cursor-guide.md)
|
|
265
|
+
- [Claude Code Integration](docs/tools/claude-guide.md)
|
|
266
|
+
- [Windsurf Integration](docs/tools/windsurf-guide.md)
|
|
267
|
+
- [Kiro Integration](docs/tools/kiro-guide.md)
|
|
268
|
+
- [VS Code + Copilot Integration](docs/tools/vscode-guide.md)
|
|
269
|
+
- [Generic AI Tools](docs/tools/generic-guide.md)
|
|
270
|
+
|
|
271
|
+
### Examples
|
|
272
|
+
- [API Feature Example](docs/examples/add-rest-api/) - RESTful API Spec
|
|
273
|
+
- [UI Feature Example](docs/examples/add-user-dashboard/) - React dashboard Spec
|
|
274
|
+
- [CLI Feature Example](docs/examples/add-export-command/) - CLI command Spec
|
|
275
|
+
|
|
276
|
+
### Advanced Topics
|
|
277
|
+
- [Adoption Guide](docs/adoption-guide.md) - Adopting sce in existing projects
|
|
278
|
+
- [Upgrade Guide](docs/upgrade-guide.md) - Version upgrade instructions
|
|
279
|
+
- [Release Archive](docs/releases/README.md) - Versioned release notes and validation report index
|
|
280
|
+
- [Release Notes v1.46.2](docs/releases/v1.46.2.md) - Current release highlights and impact
|
|
281
|
+
- [Validation Report v1.46.2](docs/releases/v1.46.2-validation.md) - Release-readiness evidence and verification results
|
|
282
|
+
- [Release Checklist](docs/release-checklist.md) - Repeatable pre-release verification flow
|
|
283
|
+
- [Manual Workflows](docs/manual-workflows-guide.md) - Step-by-step workflows
|
|
284
|
+
- [Developer Guide](docs/developer-guide.md) - Contributing and extending sce
|
|
285
|
+
|
|
286
|
+
### Complete Documentation
|
|
287
|
+
- 📚 **[Documentation Index](docs/README.md)** - All documentation in one place
|
|
288
|
+
|
|
289
|
+
---
|
|
290
|
+
|
|
291
|
+
## Key Features
|
|
292
|
+
|
|
293
|
+
### Autonomous Control 🚀 NEW in v1.23.0
|
|
294
|
+
- **Fully Autonomous Execution**: AI independently manages entire development workflows from requirements to delivery
|
|
295
|
+
- **Closed-Loop Program Execution**: `sce auto close-loop "<goal>"` runs from goal decomposition to terminal orchestration state without manual confirmation gates
|
|
296
|
+
- **Automatic Master/Sub Portfolio Split**: Large goals are auto-split into dependency-wired sub-specs and coordinated by a master spec
|
|
297
|
+
- **Semantic Decomposition + Live Stream**: Clause/category-aware goal parsing plus live orchestration status stream (disable via `--no-stream`)
|
|
298
|
+
- **Session Resume + Retention Hygiene**: Resume interrupted runs with `--resume interrupted` (or `--resume latest`) and maintain archives via `sce auto session list/prune`, `sce auto batch-session list/prune`, and `sce auto controller-session list/prune`
|
|
299
|
+
- **Intelligent Error Recovery**: Automatically diagnose and fix errors with 3 retry attempts and learning system
|
|
300
|
+
- **Strategic Checkpoints**: Pause only at meaningful milestones (phase boundaries, fatal errors, external resources)
|
|
301
|
+
- **Continuous Task Execution**: Execute multiple tasks without interruption between individual tasks
|
|
302
|
+
- **Learning System**: Improve over time by learning from successful and failed recovery strategies
|
|
303
|
+
- **Safety Boundaries**: Respect workspace boundaries, require confirmation for production/external operations
|
|
304
|
+
- **Three Execution Modes**: Conservative (safe), Balanced (default), Aggressive (fast)
|
|
305
|
+
- **Progress Tracking**: Real-time status, estimated completion time, detailed execution reports
|
|
306
|
+
- **Rollback Support**: Create checkpoints and rollback to previous states if needed
|
|
307
|
+
- **CORE_PRINCIPLES Compliance**: Follows Spec-driven development, file management, and quality standards
|
|
308
|
+
|
|
309
|
+
**Quick Start**:
|
|
310
|
+
```bash
|
|
311
|
+
# Decompose one broad goal into master/sub specs and run to closure
|
|
312
|
+
sce auto close-loop "build autonomous close-loop and master/sub multi-spec execution for sce"
|
|
313
|
+
|
|
314
|
+
# Create and execute a feature autonomously
|
|
315
|
+
sce auto create "user authentication with JWT tokens"
|
|
316
|
+
|
|
317
|
+
# Run existing Spec autonomously
|
|
318
|
+
sce auto run 33-00-ai-autonomous-control
|
|
319
|
+
|
|
320
|
+
# Check status
|
|
321
|
+
sce auto status
|
|
322
|
+
|
|
323
|
+
# Resume after pause
|
|
324
|
+
sce auto resume
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
[Learn more about Autonomous Control →](docs/autonomous-control-guide.md)
|
|
328
|
+
|
|
329
|
+
### Spec-Driven Development
|
|
330
|
+
Structure your work with Requirements → Design → Tasks workflow
|
|
331
|
+
|
|
332
|
+
### KPI Automation & Observability 🚀 NEW in v1.46.2
|
|
333
|
+
- **Unified Metric Contract**: Load and validate KPI definitions from `metric-definition.yaml`
|
|
334
|
+
- **Weekly Snapshot Pipeline**: Generate machine-readable snapshots with risk level and audit reasons
|
|
335
|
+
- **Baseline and Trend Analysis**: Build baseline from historical data and detect worsening trends automatically
|
|
336
|
+
- **Gate-Ready Summary**: Emit Day30/Day60-consumable summary payloads with evidence paths
|
|
337
|
+
- **CLI Commands**: `value metrics sample`, `value metrics snapshot`, `value metrics baseline`, `value metrics trend` with `--json` support
|
|
338
|
+
|
|
339
|
+
### Multi-Workspace Management 🚀 NEW in v1.11.0
|
|
340
|
+
- **Workspace Registry**: Manage multiple sce projects from a single location
|
|
341
|
+
- **Quick Switching**: Switch between projects without directory navigation
|
|
342
|
+
- **Data Atomicity**: Single source of truth (`~/.kse/workspace-state.json`)
|
|
343
|
+
- **Cross-Platform**: Consistent path handling across Windows/Linux/macOS
|
|
344
|
+
- **Auto Migration**: Seamless upgrade from legacy workspace format
|
|
345
|
+
|
|
346
|
+
### Environment Configuration Management 🚀 NEW in v1.14.0
|
|
347
|
+
- **Environment Registry**: Manage multiple environment configurations (dev, test, staging, prod)
|
|
348
|
+
- **Quick Switching**: Switch between environments with automatic backup
|
|
349
|
+
- **Automatic Backup**: Create timestamped backups before each switch
|
|
350
|
+
- **Rollback Support**: Restore previous environment configuration instantly
|
|
351
|
+
- **Verification**: Validate environment configuration after switching
|
|
352
|
+
- **Command Execution**: Run commands in specific environment context
|
|
353
|
+
- **Cross-Platform**: Works seamlessly on Windows, Linux, and macOS
|
|
354
|
+
|
|
355
|
+
### Multi-Repository Management 🚀 NEW in v1.20.0
|
|
356
|
+
- **Unified Interface**: Manage multiple Git subrepositories from a single command
|
|
357
|
+
- **Auto-Discovery**: Automatically scan and configure all Git repositories in your project
|
|
358
|
+
- **Nested Repository Support**: Discover and manage Git repositories nested inside other repositories
|
|
359
|
+
- **Parent-Child Tracking**: Track relationships between parent and nested repositories
|
|
360
|
+
- **Batch Operations**: Execute Git commands across all repositories simultaneously
|
|
361
|
+
- **Status Overview**: View status of all repositories in a single table with parent relationships
|
|
362
|
+
- **Health Checks**: Verify repository configuration and connectivity
|
|
363
|
+
- **Cross-Platform**: Consistent path handling across Windows/Linux/macOS
|
|
364
|
+
- **Smart Exclusions**: Automatically skip common non-repository directories (node_modules, build, etc.)
|
|
365
|
+
|
|
366
|
+
### Moqui ERP Integration 🚀 NEW in v1.39.0
|
|
367
|
+
- **Moqui ERP Adapter**: Connect KSE scene runtime to live Moqui ERP instances
|
|
368
|
+
- `MoquiClient` — HTTP client with JWT auth lifecycle (login, refresh, re-login, logout) and retry logic
|
|
369
|
+
- `MoquiAdapter` — Binding handler for `spec.erp.*` and `moqui.*` refs, entity CRUD, service invocation, screen discovery
|
|
370
|
+
- **Scene Template Extractor** (v1.40.0): Analyze Moqui resources, identify business patterns, generate reusable scene templates
|
|
371
|
+
- Entity grouping by Header/Item suffix patterns (e.g., OrderHeader + OrderItem → composite)
|
|
372
|
+
- Pattern-based manifest generation with governance contracts
|
|
373
|
+
- **CLI Commands**: `scene connect`, `scene discover`, `scene extract` with `--json` support
|
|
374
|
+
|
|
375
|
+
### Multi-Agent Parallel Coordination 🚀 NEW in v1.43.0
|
|
376
|
+
- **Agent Registry**: MachineIdentifier-based agent lifecycle with heartbeat monitoring and inactive cleanup
|
|
377
|
+
- **Task Lock Manager**: File-based task locking with atomic operations, single-agent backward compatibility
|
|
378
|
+
- **Task Status Store**: Concurrent-safe task status updates with exponential backoff retry
|
|
379
|
+
- **Steering File Lock**: Write serialization with pending-file degradation fallback
|
|
380
|
+
- **Merge Coordinator**: Git branch isolation per agent (`agent/{agentId}/{specName}`), conflict detection, auto-merge
|
|
381
|
+
- **Central Coordinator**: Dependency-driven ready task computation, task assignment, progress tracking
|
|
382
|
+
- **Zero Overhead**: All components are no-ops in single-agent mode (full backward compatibility)
|
|
383
|
+
|
|
384
|
+
[Learn more about Multi-Agent Coordination →](docs/multi-agent-coordination-guide.md)
|
|
385
|
+
|
|
386
|
+
### Agent Orchestrator 🚀 NEW in v1.45.0
|
|
387
|
+
- **Automated Multi-Agent Spec Execution**: Replace manual multi-terminal workflows with a single command
|
|
388
|
+
- **DAG-Based Scheduling**: Analyze Spec dependencies, compute execution batches via topological sort
|
|
389
|
+
- **Parallel Execution**: Run up to N Specs simultaneously via Codex CLI sub-agents (`--max-parallel`)
|
|
390
|
+
- **Failure Propagation**: Failed Spec's dependents automatically marked as skipped
|
|
391
|
+
- **Retry Mechanism**: Configurable automatic retry for failed Specs
|
|
392
|
+
- **Real-Time Monitoring**: Track per-Spec status and overall orchestration progress
|
|
393
|
+
- **Graceful Termination**: Stop all sub-agents cleanly (SIGTERM → SIGKILL)
|
|
394
|
+
- **Configurable**: Codex command, args, parallelism, timeout, retries via `.kiro/config/orchestrator.json`
|
|
395
|
+
|
|
396
|
+
**Quick Start**:
|
|
397
|
+
```bash
|
|
398
|
+
# Run 3 Specs in parallel via Codex CLI
|
|
399
|
+
sce orchestrate run --specs "spec-a,spec-b,spec-c" --max-parallel 3
|
|
400
|
+
|
|
401
|
+
# Check orchestration progress
|
|
402
|
+
sce orchestrate status
|
|
403
|
+
|
|
404
|
+
# Stop all sub-agents
|
|
405
|
+
sce orchestrate stop
|
|
406
|
+
```
|
|
407
|
+
|
|
408
|
+
Tip: `sce spec bootstrap|pipeline run|gate run --specs ...` now defaults to this orchestrate mode automatically.
|
|
409
|
+
|
|
410
|
+
**Recommended Codex-Orchestrator config (`.kiro/config/orchestrator.json`)**:
|
|
411
|
+
```json
|
|
412
|
+
{
|
|
413
|
+
"agentBackend": "codex",
|
|
414
|
+
"maxParallel": 3,
|
|
415
|
+
"timeoutSeconds": 900,
|
|
416
|
+
"maxRetries": 2,
|
|
417
|
+
"rateLimitMaxRetries": 6,
|
|
418
|
+
"rateLimitBackoffBaseMs": 1000,
|
|
419
|
+
"rateLimitBackoffMaxMs": 30000,
|
|
420
|
+
"rateLimitAdaptiveParallel": true,
|
|
421
|
+
"rateLimitParallelFloor": 1,
|
|
422
|
+
"rateLimitCooldownMs": 30000,
|
|
423
|
+
"apiKeyEnvVar": "CODEX_API_KEY",
|
|
424
|
+
"codexArgs": ["--skip-git-repo-check"],
|
|
425
|
+
"codexCommand": "npx @openai/codex"
|
|
426
|
+
}
|
|
427
|
+
```
|
|
428
|
+
|
|
429
|
+
If Codex CLI is globally installed, you can set `"codexCommand": "codex"`.
|
|
430
|
+
Use the `rateLimit*` settings to absorb transient 429/too-many-requests failures without stalling orchestration.
|
|
431
|
+
|
|
432
|
+
### Spec-Level Steering & Context Sync 🚀 NEW in v1.44.0
|
|
433
|
+
- **Spec Steering (L4)**: Independent `steering.md` per Spec with constraints, notes, and decisions — zero cross-agent conflict
|
|
434
|
+
- **Steering Loader**: Unified L1-L4 four-layer steering loader with priority-based merging
|
|
435
|
+
- **Context Sync Manager**: Multi-agent friendly CURRENT_CONTEXT.md with structured Spec progress table, concurrent-safe updates
|
|
436
|
+
- **Spec Lifecycle Manager**: State machine (planned → assigned → in-progress → completed → released) with auto-completion detection
|
|
437
|
+
- **Sync Barrier**: Agent Spec-switch synchronization — uncommitted change check + steering reload
|
|
438
|
+
- **Coordinator Integration**: Auto Spec completion check on task complete, SyncBarrier on task assign
|
|
439
|
+
|
|
440
|
+
### Scene Ontology Enhancement 🚀 NEW in v1.42.0
|
|
441
|
+
- **OntologyGraph**: Semantic relationship graph for binding refs (depends_on, composes, extends, produces)
|
|
442
|
+
- **Action Abstraction**: Intent, preconditions, postconditions per binding for AI agent understanding
|
|
443
|
+
- **Data Lineage**: Source → transform → sink tracking in governance_contract
|
|
444
|
+
- **Agent-Ready Metadata**: `agent_hints` field with summary, complexity, duration, permissions, sequence
|
|
445
|
+
- **Agent Readiness Score**: Bonus quality dimension (max +10 points)
|
|
446
|
+
- **CLI Commands**: `scene ontology show|deps|validate|actions|lineage|agent-info` with `--json` support
|
|
447
|
+
|
|
448
|
+
### Scene Template Quality Pipeline 🚀 NEW in v1.41.0
|
|
449
|
+
- **Template Lint Engine**: 10-category quality checks for scene packages (manifest completeness, binding refs, governance, consistency, variables, documentation, action abstraction, data lineage, agent hints)
|
|
450
|
+
- **Quality Score Calculator**: 4-dimension scoring + agent_readiness bonus (contract validity, lint pass rate, documentation quality, governance completeness + agent readiness max +10) with 0-100+ scale
|
|
451
|
+
- **One-Stop Contribute Pipeline**: Validate → Lint → Score → Preview → Publish in a single command
|
|
452
|
+
- **CLI Commands**: `scene lint`, `scene score`, `scene contribute` with `--strict`, `--dry-run`, `--skip-lint`, `--json` support
|
|
453
|
+
|
|
454
|
+
### Scene Template Engine 🚀 NEW in v1.25.0
|
|
455
|
+
- **Template Variable Schema**: Define typed variables (string, number, boolean, enum, array) with validation rules in scene-package.json
|
|
456
|
+
- **Multi-File Rendering**: Recursive template processing with `{{variable}}` substitution, `{{#if}}` conditionals, `{{#each}}` loops
|
|
457
|
+
- **Three-Layer Inheritance**: L1-Capability / L2-Domain / L3-Instance package hierarchy with schema and file merging
|
|
458
|
+
- **CLI Commands**: `scene template-validate`, `scene template-resolve`, `scene template-render` with `--json` support
|
|
459
|
+
|
|
460
|
+
### Spec-Level Collaboration 🚀 NEW in v1.22.0
|
|
461
|
+
- **Parallel Development**: Enable multiple AI instances to work on different Specs simultaneously
|
|
462
|
+
- **Dependency Management**: Define and track dependencies between Specs with circular dependency detection
|
|
463
|
+
- **Interface Contracts**: Formal API definitions ensuring compatibility between independently developed Specs
|
|
464
|
+
- **Status Tracking**: Monitor progress and assignments across all Specs in real-time
|
|
465
|
+
- **Integration Testing**: Run cross-Spec integration tests to verify modules work together
|
|
466
|
+
- **Dependency Visualization**: View dependency graphs with critical path highlighting
|
|
467
|
+
- **Backward Compatible**: Opt-in system that doesn't affect existing single-Spec workflows
|
|
468
|
+
|
|
469
|
+
[Learn more about Spec-Level Collaboration →](docs/spec-collaboration-guide.md)
|
|
470
|
+
|
|
471
|
+
### Spec Locking Mechanism 🚀 NEW
|
|
472
|
+
- **Multi-User Coordination**: Prevent conflicts when multiple developers work on the same Spec
|
|
473
|
+
- **Machine Identification**: Unique machine IDs for accurate lock ownership tracking
|
|
474
|
+
- **Stale Lock Detection**: Automatic detection and cleanup of abandoned locks (default: 24h timeout)
|
|
475
|
+
- **Lock Status Integration**: View lock status in `sce status` output
|
|
476
|
+
- **Force Unlock**: Override locks when necessary with `--force` flag
|
|
477
|
+
- **Backward Compatible**: Locking is optional and doesn't affect existing workflows
|
|
478
|
+
|
|
479
|
+
**Quick Start**:
|
|
480
|
+
```bash
|
|
481
|
+
# Acquire a lock before editing
|
|
482
|
+
sce lock acquire my-feature --reason "Implementing auth module"
|
|
483
|
+
|
|
484
|
+
# Check lock status
|
|
485
|
+
sce lock status
|
|
486
|
+
|
|
487
|
+
# Release when done
|
|
488
|
+
sce unlock my-feature
|
|
489
|
+
|
|
490
|
+
# Clean up stale locks
|
|
491
|
+
sce lock cleanup
|
|
492
|
+
|
|
493
|
+
# View your machine ID
|
|
494
|
+
sce lock whoami
|
|
495
|
+
```
|
|
496
|
+
|
|
497
|
+
### DevOps Integration Foundation 🚀
|
|
498
|
+
- **Operations Spec Management**: Standardized operations documentation (deployment, monitoring, troubleshooting, etc.)
|
|
499
|
+
- **Progressive AI Autonomy**: L1-L5 takeover levels for gradual AI operations control
|
|
500
|
+
- **Audit Logging**: Tamper-evident audit trail with SHA-256 integrity verification
|
|
501
|
+
- **Feedback Integration**: Automated user feedback processing and analytics
|
|
502
|
+
- **Permission Management**: Environment-based security controls (dev, test, pre-prod, prod)
|
|
503
|
+
- **Operations Validation**: Complete spec validation with clear error reporting
|
|
504
|
+
|
|
505
|
+
### Document Governance
|
|
506
|
+
- Automated document lifecycle management
|
|
507
|
+
- Clean project structure enforcement
|
|
508
|
+
- Temporary file cleanup
|
|
509
|
+
- Artifact organization
|
|
510
|
+
- Git hooks for compliance
|
|
511
|
+
|
|
512
|
+
### Multi-User Collaboration
|
|
513
|
+
- Personal workspaces for team members
|
|
514
|
+
- Task claiming and tracking
|
|
515
|
+
- Workspace synchronization
|
|
516
|
+
|
|
517
|
+
### Cross-Tool Compatibility
|
|
518
|
+
Export context for Claude Code, Cursor, Windsurf, Copilot, and more
|
|
519
|
+
|
|
520
|
+
### Watch Mode Automation
|
|
521
|
+
Automatic file monitoring and context updates
|
|
522
|
+
|
|
523
|
+
### Quality Enhancement
|
|
524
|
+
- Document quality scoring (0-10 scale)
|
|
525
|
+
- Intelligent improvement suggestions
|
|
526
|
+
- Professional standards enforcement
|
|
527
|
+
|
|
528
|
+
### Multi-Language Support
|
|
529
|
+
English and Chinese interfaces
|
|
530
|
+
|
|
531
|
+
---
|
|
532
|
+
|
|
533
|
+
## Command Overview
|
|
534
|
+
|
|
535
|
+
```bash
|
|
536
|
+
# Project setup
|
|
537
|
+
sce adopt # Adopt sce in existing project
|
|
538
|
+
sce create-spec <name> # Legacy: create empty Spec folder only
|
|
539
|
+
|
|
540
|
+
# Autonomous close-loop program (one command, no confirmation loop)
|
|
541
|
+
sce auto close-loop "<goal>" # Auto split goal into master/sub specs and execute to closure
|
|
542
|
+
sce auto close-loop --resume interrupted # Resume from latest non-completed close-loop session
|
|
543
|
+
sce auto close-loop continue # Shorthand: continue latest interrupted close-loop session
|
|
544
|
+
sce auto continue # Shortcut command: continue latest interrupted close-loop session
|
|
545
|
+
sce auto close-loop "<goal>" --dry-run --json # Preview decomposition plan only
|
|
546
|
+
sce auto close-loop-program "<goal>" --program-govern-until-stable --program-govern-use-action 1 --json # Program-level recovery + governance with remediation action execution
|
|
547
|
+
sce auto close-loop-controller .kiro/auto/program-queue.lines --wait-on-empty --dequeue-limit 2 --json # Queue-driven autonomous controller for broad-goal backlogs
|
|
548
|
+
sce auto close-loop-controller --controller-resume latest --json # Resume autonomous controller from latest persisted checkpoint
|
|
549
|
+
sce auto controller-session list --limit 50 --json # Inspect persisted close-loop-controller summary sessions
|
|
550
|
+
sce auto controller-session prune --keep 20 --older-than-days 14 --dry-run --json # Prune old controller summaries by retention policy
|
|
551
|
+
sce auto observability snapshot --days 14 --json # Unified autonomous observability snapshot (sessions + governance + trend)
|
|
552
|
+
sce auto spec status 121-00-master --json # Agent-facing structured spec status interface
|
|
553
|
+
sce auto spec instructions 121-02-sub-track --json # Agent-facing execution instructions for one spec
|
|
554
|
+
sce auto schema check --json # Check autonomous archive schema compatibility
|
|
555
|
+
sce auto schema migrate --apply --json # Backfill/migrate schema_version for autonomous archives
|
|
556
|
+
|
|
557
|
+
# Spec workflow (recommended)
|
|
558
|
+
sce spec bootstrap --name <spec> --non-interactive # Generate requirements/design/tasks draft
|
|
559
|
+
sce spec pipeline run --spec <spec> # Run staged workflow for one Spec
|
|
560
|
+
sce spec gate run --spec <spec> --json # Run standardized Spec gate checks
|
|
561
|
+
sce spec bootstrap --specs "<spec-a,spec-b>" --max-parallel <N> # Multi-Spec defaults to orchestrate
|
|
562
|
+
sce spec pipeline run --specs "<spec-a,spec-b>" --max-parallel <N> # Multi-Spec defaults to orchestrate
|
|
563
|
+
sce spec gate run --specs "<spec-a,spec-b>" --max-parallel <N> # Multi-Spec defaults to orchestrate
|
|
564
|
+
|
|
565
|
+
# Context management
|
|
566
|
+
sce context export <spec-name> # Export context for AI tools
|
|
567
|
+
sce prompt generate <spec> <task> # Generate task-specific prompt
|
|
568
|
+
|
|
569
|
+
# KPI automation and observability (NEW in v1.46.2)
|
|
570
|
+
sce value metrics sample --out <path> --json # Generate sample KPI input JSON
|
|
571
|
+
sce value metrics snapshot --input <path> --json # Generate weekly KPI snapshot + gate summary
|
|
572
|
+
sce value metrics baseline --from-history <N> --json # Build baseline from earliest N snapshots
|
|
573
|
+
sce value metrics trend --window <N> --json # Analyze trend/risk from latest N snapshots
|
|
574
|
+
sce auto kpi trend --weeks 8 --period week --json # Aggregate autonomous delivery KPI trend (weekly/daily buckets + anomalies)
|
|
575
|
+
sce auto kpi trend --weeks 8 --period day --csv --out <path> # Export autonomous KPI trend as CSV
|
|
576
|
+
sce auto kpi trend --weeks 8 --mode controller --json # Filter trend to close-loop-controller sessions only
|
|
577
|
+
|
|
578
|
+
# Workspace management (NEW in v1.11.0)
|
|
579
|
+
sce workspace create <name> [path] # Register a new workspace
|
|
580
|
+
sce workspace list # List all workspaces
|
|
581
|
+
sce workspace switch <name> # Switch active workspace
|
|
582
|
+
sce workspace info [name] # Show workspace details
|
|
583
|
+
sce workspace remove <name> # Remove workspace
|
|
584
|
+
|
|
585
|
+
# Environment management (NEW in v1.14.0)
|
|
586
|
+
sce env list # List all environments
|
|
587
|
+
sce env switch <name> # Switch to environment (with backup)
|
|
588
|
+
sce env info # Show active environment details
|
|
589
|
+
sce env register <config-file> # Register new environment
|
|
590
|
+
sce env unregister <name> # Remove environment
|
|
591
|
+
sce env rollback # Rollback to previous environment
|
|
592
|
+
sce env verify # Verify current environment
|
|
593
|
+
sce env run "<command>" # Run command in environment context
|
|
594
|
+
|
|
595
|
+
# Multi-repository management (NEW in v1.20.0)
|
|
596
|
+
sce repo init [--nested] # Initialize repository configuration (nested scanning by default)
|
|
597
|
+
sce repo init --no-nested # Initialize without nested repository scanning
|
|
598
|
+
sce repo status [--verbose] # Show status of all repositories (including nested)
|
|
599
|
+
sce repo exec "<command>" # Execute command in all repositories
|
|
600
|
+
|
|
601
|
+
# Spec-level collaboration (NEW in v1.22.0)
|
|
602
|
+
sce collab init <master> [options] # Initialize Master Spec with Sub-Specs
|
|
603
|
+
sce collab status [spec] [--graph] # Display collaboration status
|
|
604
|
+
sce collab assign <spec> <kiro> # Assign Spec to Kiro instance
|
|
605
|
+
sce collab verify <spec> # Verify interface contracts
|
|
606
|
+
sce collab integrate <specs...> # Run integration tests
|
|
607
|
+
sce collab migrate <spec> # Convert standalone Spec to collaborative
|
|
608
|
+
sce repo health # Check repository health
|
|
609
|
+
|
|
610
|
+
# Scene template engine (NEW in v1.25.0)
|
|
611
|
+
sce scene template-validate --package <path> # Validate template variable schema
|
|
612
|
+
sce scene template-resolve --package <name> # Resolve inheritance chain and merged schema
|
|
613
|
+
sce scene template-render --package <name> --values <json> --out <dir> # Render template files
|
|
614
|
+
|
|
615
|
+
# Moqui ERP integration (NEW in v1.39.0)
|
|
616
|
+
sce scene connect --config <path> # Test connectivity to Moqui ERP instance
|
|
617
|
+
sce scene discover --config <path> # Discover entities, services, screens from Moqui
|
|
618
|
+
sce scene extract --config <path> --out <dir> # Extract scene templates from Moqui (v1.40.0)
|
|
619
|
+
|
|
620
|
+
# Scene template quality pipeline (NEW in v1.41.0)
|
|
621
|
+
sce scene lint --package <path> # Lint scene package for quality issues
|
|
622
|
+
sce scene score --package <path> # Calculate quality score (0-100)
|
|
623
|
+
sce scene contribute --package <path> # One-stop validate → lint → score → publish
|
|
624
|
+
|
|
625
|
+
# Scene ontology (NEW in v1.42.0)
|
|
626
|
+
sce scene ontology show --package <path> # Show ontology graph
|
|
627
|
+
sce scene ontology deps --ref <ref> # Query dependency chain
|
|
628
|
+
sce scene ontology impact --ref <ref> # Analyze reverse impact radius
|
|
629
|
+
sce scene ontology path --from <ref> --to <ref> # Query shortest ontology relation path
|
|
630
|
+
sce scene ontology validate --package <path> # Validate graph consistency
|
|
631
|
+
sce scene ontology actions --ref <ref> # Show action abstraction
|
|
632
|
+
sce scene ontology lineage --ref <ref> # Show data lineage
|
|
633
|
+
sce scene ontology agent-info --package <path> # Show agent hints
|
|
634
|
+
sce scene contribute --package <path> # One-stop validate → lint → score → publish
|
|
635
|
+
|
|
636
|
+
# Agent orchestration (NEW in v1.45.0)
|
|
637
|
+
sce orchestrate run --specs "<spec-list>" --max-parallel <N> # Start multi-agent orchestration
|
|
638
|
+
sce orchestrate status # View orchestration progress
|
|
639
|
+
sce orchestrate stop # Stop all sub-agents
|
|
640
|
+
|
|
641
|
+
# DevOps operations
|
|
642
|
+
sce ops init <project-name> # Initialize operations specs
|
|
643
|
+
sce ops validate [<project>] # Validate operations completeness
|
|
644
|
+
sce ops audit [options] # Query audit logs
|
|
645
|
+
sce ops takeover <action> # Manage AI takeover levels
|
|
646
|
+
sce ops feedback <action> # Manage user feedback
|
|
647
|
+
|
|
648
|
+
# Task management
|
|
649
|
+
sce task claim <spec> <task-id> # Claim a task
|
|
650
|
+
sce task list <spec> # List claimed tasks
|
|
651
|
+
|
|
652
|
+
# Spec locking (multi-user collaboration)
|
|
653
|
+
sce lock acquire <spec-name> # Acquire lock on a Spec
|
|
654
|
+
sce lock release <spec-name> # Release lock (or use: sce unlock)
|
|
655
|
+
sce lock status [spec-name] # Show lock status
|
|
656
|
+
sce lock cleanup # Remove stale locks
|
|
657
|
+
sce lock whoami # Show machine identifier
|
|
658
|
+
sce unlock <spec-name> [--force] # Release lock (alias)
|
|
659
|
+
|
|
660
|
+
# Document governance
|
|
661
|
+
sce docs diagnose # Check document compliance
|
|
662
|
+
sce docs cleanup # Remove temporary files
|
|
663
|
+
sce docs validate # Validate document structure
|
|
664
|
+
sce docs archive --spec <name> # Organize Spec artifacts
|
|
665
|
+
sce docs hooks install # Install Git pre-commit hooks
|
|
666
|
+
|
|
667
|
+
# Automation
|
|
668
|
+
sce watch start # Start watch mode
|
|
669
|
+
sce watch status # Check watch status
|
|
670
|
+
|
|
671
|
+
# Project info
|
|
672
|
+
sce status # Project status
|
|
673
|
+
sce workflows # List available workflows
|
|
674
|
+
```
|
|
675
|
+
|
|
676
|
+
See [Command Reference](docs/command-reference.md) for complete documentation.
|
|
677
|
+
|
|
678
|
+
---
|
|
679
|
+
|
|
680
|
+
## Contributing & Support
|
|
681
|
+
|
|
682
|
+
### Getting Help
|
|
683
|
+
|
|
684
|
+
- 📖 **Documentation**: Start with the [Quick Start Guide](docs/quick-start.md)
|
|
685
|
+
- 🐛 **Bug Reports**: [GitHub Issues](https://github.com/heguangyong/scene-capability-engine/issues)
|
|
686
|
+
- 💬 **Discussions**: [GitHub Discussions](https://github.com/heguangyong/scene-capability-engine/discussions)
|
|
687
|
+
|
|
688
|
+
### Contributing
|
|
689
|
+
|
|
690
|
+
We welcome contributions! See our [Contributing Guide](CONTRIBUTING.md) for:
|
|
691
|
+
- Code contributions
|
|
692
|
+
- Documentation improvements
|
|
693
|
+
- Bug reports and feature requests
|
|
694
|
+
- Translation help
|
|
695
|
+
|
|
696
|
+
### Development Setup
|
|
697
|
+
|
|
698
|
+
```bash
|
|
699
|
+
git clone https://github.com/heguangyong/scene-capability-engine.git
|
|
700
|
+
cd kiro-spec-engine
|
|
701
|
+
npm install
|
|
702
|
+
npm link # For local development
|
|
703
|
+
npm test # Run tests
|
|
704
|
+
```
|
|
705
|
+
|
|
706
|
+
---
|
|
707
|
+
|
|
708
|
+
## License
|
|
709
|
+
|
|
710
|
+
MIT License - see [LICENSE](LICENSE) file for details.
|
|
711
|
+
|
|
712
|
+
---
|
|
713
|
+
|
|
714
|
+
## Acknowledgments
|
|
715
|
+
|
|
716
|
+
- Inspired by the **Sisyphus** myth and the concept of noble struggle
|
|
717
|
+
- Built on the foundation of **Kiro** spec-driven development
|
|
718
|
+
- Influenced by **oh-my-opencode** and the Ultrawork Manifesto
|
|
719
|
+
|
|
720
|
+
---
|
|
721
|
+
|
|
722
|
+
**Ready to enhance your AI-assisted development?** 🚀
|
|
723
|
+
|
|
724
|
+
```bash
|
|
725
|
+
npm install -g scene-capability-engine
|
|
726
|
+
sce adopt
|
|
727
|
+
sce spec bootstrap --name 01-00-my-first-feature --non-interactive
|
|
728
|
+
```
|
|
729
|
+
|
|
730
|
+
---
|
|
731
|
+
|
|
732
|
+
## 💬 Community & Discussion
|
|
733
|
+
|
|
734
|
+
Join our community to discuss AI-driven development, Spec workflows, and best practices.
|
|
735
|
+
|
|
736
|
+
### WeChat Group
|
|
737
|
+
|
|
738
|
+
<img src="docs/images/wechat-qr.png" width="200" alt="WeChat Group QR Code">
|
|
739
|
+
|
|
740
|
+
*Scan to add WeChat, note "sce" to join the group*
|
|
741
|
+
|
|
742
|
+
### Other Channels
|
|
743
|
+
|
|
744
|
+
- **GitHub Discussions**: [Join Discussion](https://github.com/heguangyong/scene-capability-engine/discussions)
|
|
745
|
+
- **Issues**: [Report Issues](https://github.com/heguangyong/scene-capability-engine/issues)
|
|
746
|
+
|
|
747
|
+
### Featured Article
|
|
748
|
+
|
|
749
|
+
📖 **[The Philosophy and Practice of AI-Driven Development](docs/articles/ai-driven-development-philosophy-and-practice.md)**
|
|
750
|
+
|
|
751
|
+
A deep conversation about AI development trends, Neo-Confucian philosophy, and software engineering practices. Based on 2000+ hours of AI-assisted programming experience.
|
|
752
|
+
|
|
753
|
+
[Read in English](docs/articles/ai-driven-development-philosophy-and-practice.en.md) | [中文版](docs/articles/ai-driven-development-philosophy-and-practice.md)
|
|
754
|
+
|
|
755
|
+
**Also available on:**
|
|
756
|
+
- [WeChat Official Account (微信公众号)](https://mp.weixin.qq.com/s/GRo0XQ6GvQ03T4_FTvAsKA)
|
|
757
|
+
- [Juejin (掘金)](https://juejin.cn/post/7598899986857377798)
|
|
758
|
+
- [Zhihu (知乎)](https://zhuanlan.zhihu.com/p/1999164891391624163)
|
|
759
|
+
- [X/Twitter](https://x.com/heguangyong/status/2015668235065229782)
|
|
760
|
+
|
|
761
|
+
---
|
|
762
|
+
|
|
763
|
+
**Version**: 2.0.0
|
|
764
|
+
**Last Updated**: 2026-02-18
|
|
765
|
+
|