kiro-spec-engine 1.45.13 → 1.46.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 +14 -0
- package/README.md +15 -4
- package/README.zh.md +15 -3
- package/bin/kiro-spec-engine.js +84 -0
- package/docs/adoption-guide.md +3 -2
- package/docs/command-reference.md +30 -12
- package/docs/cross-tool-guide.md +2 -1
- package/docs/document-governance.md +2 -1
- package/docs/faq.md +14 -13
- package/docs/manual-workflows-guide.md +2 -1
- package/docs/quick-start-with-ai-tools.md +4 -3
- package/docs/quick-start.md +21 -7
- package/docs/spec-workflow.md +3 -2
- package/docs/tools/claude-guide.md +3 -2
- package/docs/tools/cursor-guide.md +3 -2
- package/docs/tools/generic-guide.md +3 -2
- package/docs/tools/vscode-guide.md +3 -2
- package/docs/tools/windsurf-guide.md +3 -2
- package/docs/troubleshooting.md +10 -9
- package/docs/zh/quick-start.md +30 -14
- package/docs/zh/tools/claude-guide.md +2 -1
- package/docs/zh/tools/cursor-guide.md +2 -1
- package/docs/zh/tools/generic-guide.md +8 -7
- package/docs/zh/tools/vscode-guide.md +2 -1
- package/docs/zh/tools/windsurf-guide.md +2 -1
- package/lib/commands/orchestrate.js +123 -95
- 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/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/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.46.0] - 2026-02-13
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- **Spec bootstrap command**: Added `kse spec bootstrap` to generate `requirements.md`, `design.md`, and `tasks.md` drafts in one step.
|
|
14
|
+
- **Spec pipeline command**: Added `kse spec pipeline run` for staged Spec workflow execution with structured progress output.
|
|
15
|
+
- **Spec gate command**: Added `kse spec gate run` to standardize gate checks and produce machine-readable gate reports.
|
|
16
|
+
- **Multi-spec orchestrate helper**: Added shared helper logic for parsing multi-spec targets and routing execution through orchestrate runtime.
|
|
17
|
+
- **Coverage for new spec workflow**: Added unit tests for bootstrap/pipeline/gate commands and multi-spec orchestrate default behavior.
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
- **Default multi-spec execution mode**: `kse spec bootstrap`, `kse spec pipeline run`, and `kse spec gate run` now default to orchestrate mode when `--specs` is provided.
|
|
21
|
+
- **CLI spec command routing**: Improved `kse spec` command routing for new subcommands while preserving backward compatibility for legacy paths.
|
|
22
|
+
- **Documentation alignment**: Updated EN/ZH docs to promote the new spec-first workflow and document multi-spec default orchestrate behavior.
|
|
23
|
+
|
|
10
24
|
## [1.45.13] - 2026-02-13
|
|
11
25
|
|
|
12
26
|
### Fixed
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
# kse - Kiro Spec Engine
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/js/kiro-spec-engine)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
@@ -354,6 +354,8 @@ kse orchestrate status
|
|
|
354
354
|
kse orchestrate stop
|
|
355
355
|
```
|
|
356
356
|
|
|
357
|
+
Tip: `kse spec bootstrap|pipeline run|gate run --specs ...` now defaults to this orchestrate mode automatically.
|
|
358
|
+
|
|
357
359
|
**Recommended Codex-Orchestrator config (`.kiro/config/orchestrator.json`)**:
|
|
358
360
|
```json
|
|
359
361
|
{
|
|
@@ -475,7 +477,15 @@ English and Chinese interfaces
|
|
|
475
477
|
```bash
|
|
476
478
|
# Project setup
|
|
477
479
|
kse adopt # Adopt kse in existing project
|
|
478
|
-
kse create-spec <name> #
|
|
480
|
+
kse create-spec <name> # Legacy: create empty Spec folder only
|
|
481
|
+
|
|
482
|
+
# Spec workflow (recommended)
|
|
483
|
+
kse spec bootstrap --name <spec> --non-interactive # Generate requirements/design/tasks draft
|
|
484
|
+
kse spec pipeline run --spec <spec> # Run staged workflow for one Spec
|
|
485
|
+
kse spec gate run --spec <spec> --json # Run standardized Spec gate checks
|
|
486
|
+
kse spec bootstrap --specs "<spec-a,spec-b>" --max-parallel <N> # Multi-Spec defaults to orchestrate
|
|
487
|
+
kse spec pipeline run --specs "<spec-a,spec-b>" --max-parallel <N> # Multi-Spec defaults to orchestrate
|
|
488
|
+
kse spec gate run --specs "<spec-a,spec-b>" --max-parallel <N> # Multi-Spec defaults to orchestrate
|
|
479
489
|
|
|
480
490
|
# Context management
|
|
481
491
|
kse context export <spec-name> # Export context for AI tools
|
|
@@ -629,7 +639,7 @@ MIT License - see [LICENSE](LICENSE) file for details.
|
|
|
629
639
|
```bash
|
|
630
640
|
npm install -g kiro-spec-engine
|
|
631
641
|
kse adopt
|
|
632
|
-
kse
|
|
642
|
+
kse spec bootstrap --name 01-00-my-first-feature --non-interactive
|
|
633
643
|
```
|
|
634
644
|
|
|
635
645
|
---
|
|
@@ -665,5 +675,6 @@ A deep conversation about AI development trends, Neo-Confucian philosophy, and s
|
|
|
665
675
|
|
|
666
676
|
---
|
|
667
677
|
|
|
668
|
-
**Version**: 1.
|
|
678
|
+
**Version**: 1.46.0
|
|
669
679
|
**Last Updated**: 2026-02-13
|
|
680
|
+
|
package/README.zh.md
CHANGED
|
@@ -394,7 +394,15 @@ kse orchestrate stop
|
|
|
394
394
|
```bash
|
|
395
395
|
# 项目设置
|
|
396
396
|
kse adopt # 在现有项目中采用 kse
|
|
397
|
-
kse create-spec <name> #
|
|
397
|
+
kse create-spec <name> # 兼容旧版:仅创建空 Spec 目录
|
|
398
|
+
|
|
399
|
+
# Spec 工作流(推荐)
|
|
400
|
+
kse spec bootstrap --name <spec> --non-interactive # 生成 requirements/design/tasks 初稿
|
|
401
|
+
kse spec pipeline run --spec <spec> # 对单个 Spec 执行分阶段流程
|
|
402
|
+
kse spec gate run --spec <spec> --json # 执行标准化 Spec 闸口检查
|
|
403
|
+
kse spec bootstrap --specs "<spec-a,spec-b>" --max-parallel <N> # 多 Spec 默认转 orchestrate
|
|
404
|
+
kse spec pipeline run --specs "<spec-a,spec-b>" --max-parallel <N> # 多 Spec 默认转 orchestrate
|
|
405
|
+
kse spec gate run --specs "<spec-a,spec-b>" --max-parallel <N> # 多 Spec 默认转 orchestrate
|
|
398
406
|
|
|
399
407
|
# 上下文管理
|
|
400
408
|
kse context export <spec-name> # 为 AI 工具导出上下文
|
|
@@ -445,6 +453,8 @@ kse orchestrate run --specs "<spec列表>" --max-parallel <N> # 启动多 Agent
|
|
|
445
453
|
kse orchestrate status # 查看编排进度
|
|
446
454
|
kse orchestrate stop # 停止所有子 Agent
|
|
447
455
|
|
|
456
|
+
# 说明:当使用 --specs 调用 kse spec bootstrap/pipeline run/gate run 时,会默认转到 orchestrate 模式
|
|
457
|
+
|
|
448
458
|
# DevOps 运维
|
|
449
459
|
kse ops init <project-name> # 初始化运维 specs
|
|
450
460
|
kse ops validate [<project>] # 验证运维完整性
|
|
@@ -523,10 +533,12 @@ MIT 许可证 - 详见 [LICENSE](LICENSE) 文件。
|
|
|
523
533
|
```bash
|
|
524
534
|
npm install -g kiro-spec-engine
|
|
525
535
|
kse adopt
|
|
526
|
-
kse
|
|
536
|
+
kse spec bootstrap --name 01-00-my-first-feature --non-interactive
|
|
527
537
|
```
|
|
528
538
|
|
|
529
539
|
---
|
|
530
540
|
|
|
531
|
-
**版本**:1.
|
|
541
|
+
**版本**:1.46.0
|
|
532
542
|
**最后更新**:2026-02-13
|
|
543
|
+
|
|
544
|
+
|
package/bin/kiro-spec-engine.js
CHANGED
|
@@ -14,6 +14,9 @@ const rollbackCommand = require('../lib/commands/rollback');
|
|
|
14
14
|
const watchCommands = require('../lib/commands/watch');
|
|
15
15
|
const workflowsCommand = require('../lib/commands/workflows');
|
|
16
16
|
const registerCollabCommands = require('../lib/commands/collab');
|
|
17
|
+
const { registerSpecBootstrapCommand } = require('../lib/commands/spec-bootstrap');
|
|
18
|
+
const { registerSpecPipelineCommand } = require('../lib/commands/spec-pipeline');
|
|
19
|
+
const { registerSpecGateCommand } = require('../lib/commands/spec-gate');
|
|
17
20
|
const VersionChecker = require('../lib/version/version-checker');
|
|
18
21
|
|
|
19
22
|
const i18n = getI18n();
|
|
@@ -37,6 +40,76 @@ async function checkVersionBeforeCommand(options = {}) {
|
|
|
37
40
|
|
|
38
41
|
const program = new Command();
|
|
39
42
|
|
|
43
|
+
/**
|
|
44
|
+
* Normalize `kse spec ...` compatibility routes.
|
|
45
|
+
*
|
|
46
|
+
* Supported routes:
|
|
47
|
+
* - `kse spec bootstrap ...` -> `kse spec-bootstrap ...`
|
|
48
|
+
* - `kse spec pipeline ...` -> `kse spec-pipeline ...`
|
|
49
|
+
* - `kse spec gate ...` -> `kse spec-gate ...`
|
|
50
|
+
* - `kse spec create <name> ...` -> `kse create-spec <name> ...`
|
|
51
|
+
* - `kse spec <name> ...` -> `kse create-spec <name> ...` (legacy)
|
|
52
|
+
*
|
|
53
|
+
* @param {string[]} argv
|
|
54
|
+
* @returns {string[]}
|
|
55
|
+
*/
|
|
56
|
+
function normalizeSpecCommandArgs(argv) {
|
|
57
|
+
if (!Array.isArray(argv) || argv.length === 0) {
|
|
58
|
+
return argv;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const normalized = [...argv];
|
|
62
|
+
const commandIndex = findCommandIndex(normalized);
|
|
63
|
+
if (commandIndex < 0 || normalized[commandIndex] !== 'spec') {
|
|
64
|
+
return normalized;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const commandToken = normalized[commandIndex + 1];
|
|
68
|
+
|
|
69
|
+
if (commandToken === 'bootstrap') {
|
|
70
|
+
normalized.splice(commandIndex, 2, 'spec-bootstrap');
|
|
71
|
+
return normalized;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (commandToken === 'pipeline') {
|
|
75
|
+
normalized.splice(commandIndex, 2, 'spec-pipeline');
|
|
76
|
+
return normalized;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if (commandToken === 'gate') {
|
|
80
|
+
normalized.splice(commandIndex, 2, 'spec-gate');
|
|
81
|
+
return normalized;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (commandToken === 'create') {
|
|
85
|
+
normalized.splice(commandIndex, 2, 'create-spec');
|
|
86
|
+
return normalized;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
normalized.splice(commandIndex, 1, 'create-spec');
|
|
90
|
+
return normalized;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Find command token index after global options.
|
|
95
|
+
* @param {string[]} args
|
|
96
|
+
* @returns {number}
|
|
97
|
+
*/
|
|
98
|
+
function findCommandIndex(args) {
|
|
99
|
+
for (let index = 0; index < args.length; index += 1) {
|
|
100
|
+
const token = args[index];
|
|
101
|
+
if (!token.startsWith('-')) {
|
|
102
|
+
return index;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (token === '-l' || token === '--lang') {
|
|
106
|
+
index += 1;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
return -1;
|
|
111
|
+
}
|
|
112
|
+
|
|
40
113
|
// 版本和基本信息
|
|
41
114
|
program
|
|
42
115
|
.name(t('cli.name'))
|
|
@@ -208,6 +281,15 @@ program
|
|
|
208
281
|
}
|
|
209
282
|
});
|
|
210
283
|
|
|
284
|
+
// Spec bootstrap wizard command
|
|
285
|
+
registerSpecBootstrapCommand(program);
|
|
286
|
+
|
|
287
|
+
// Spec workflow pipeline command
|
|
288
|
+
registerSpecPipelineCommand(program);
|
|
289
|
+
|
|
290
|
+
// Spec gate command
|
|
291
|
+
registerSpecGateCommand(program);
|
|
292
|
+
|
|
211
293
|
// 系统诊断命令
|
|
212
294
|
program
|
|
213
295
|
.command('doctor')
|
|
@@ -687,6 +769,8 @@ async function updateProjectConfig(projectName) {
|
|
|
687
769
|
// Run steering directory compliance check before parsing commands
|
|
688
770
|
(async function() {
|
|
689
771
|
const { runSteeringComplianceCheck } = require('../lib/steering');
|
|
772
|
+
const normalizedArgs = normalizeSpecCommandArgs(process.argv.slice(2));
|
|
773
|
+
process.argv = [process.argv[0], process.argv[1], ...normalizedArgs];
|
|
690
774
|
|
|
691
775
|
// Check for bypass flags
|
|
692
776
|
const args = process.argv.slice(2);
|
package/docs/adoption-guide.md
CHANGED
|
@@ -174,7 +174,7 @@ $ kse adopt
|
|
|
174
174
|
No changes needed.
|
|
175
175
|
|
|
176
176
|
💡 Next steps:
|
|
177
|
-
- Create a spec: kse
|
|
177
|
+
- Create a spec: kse spec bootstrap --name 01-00-my-feature --non-interactive
|
|
178
178
|
- Check status: kse status
|
|
179
179
|
```
|
|
180
180
|
|
|
@@ -585,7 +585,7 @@ After successful adoption:
|
|
|
585
585
|
|
|
586
586
|
2. **Create your first spec**:
|
|
587
587
|
```bash
|
|
588
|
-
kse
|
|
588
|
+
kse spec bootstrap --name 01-00-my-feature --non-interactive
|
|
589
589
|
```
|
|
590
590
|
|
|
591
591
|
3. **Check project status**:
|
|
@@ -613,3 +613,4 @@ After successful adoption:
|
|
|
613
613
|
---
|
|
614
614
|
|
|
615
615
|
**Happy adopting! 🔥**
|
|
616
|
+
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Quick reference for all kse commands
|
|
4
4
|
|
|
5
|
-
**Version**: 1.
|
|
5
|
+
**Version**: 1.46.0
|
|
6
6
|
**Last Updated**: 2026-02-13
|
|
7
7
|
|
|
8
8
|
---
|
|
@@ -48,14 +48,25 @@ kse doctor
|
|
|
48
48
|
### Spec Management
|
|
49
49
|
|
|
50
50
|
```bash
|
|
51
|
-
#
|
|
52
|
-
kse create-spec
|
|
53
|
-
|
|
54
|
-
# Create spec with name
|
|
51
|
+
# Legacy low-level: create spec directory only
|
|
55
52
|
kse create-spec 01-00-feature-name
|
|
56
53
|
|
|
57
|
-
#
|
|
58
|
-
kse
|
|
54
|
+
# Bootstrap full Spec draft (requirements/design/tasks)
|
|
55
|
+
kse spec bootstrap --name 01-00-feature-name --non-interactive
|
|
56
|
+
|
|
57
|
+
# Run pipeline for one Spec
|
|
58
|
+
kse spec pipeline run --spec 01-00-feature-name
|
|
59
|
+
|
|
60
|
+
# Run gate for one Spec
|
|
61
|
+
kse spec gate run --spec 01-00-feature-name --json
|
|
62
|
+
|
|
63
|
+
# Multi-Spec mode defaults to orchestrate routing
|
|
64
|
+
kse spec bootstrap --specs "spec-a,spec-b" --max-parallel 3
|
|
65
|
+
kse spec pipeline run --specs "spec-a,spec-b" --max-parallel 3
|
|
66
|
+
kse spec gate run --specs "spec-a,spec-b" --max-parallel 3
|
|
67
|
+
|
|
68
|
+
# Show Spec progress
|
|
69
|
+
kse status --verbose
|
|
59
70
|
```
|
|
60
71
|
|
|
61
72
|
### Task Management
|
|
@@ -211,6 +222,8 @@ kse orchestrate status [--json]
|
|
|
211
222
|
kse orchestrate stop
|
|
212
223
|
```
|
|
213
224
|
|
|
225
|
+
When you pass `--specs` to `kse spec bootstrap|pipeline run|gate run`, kse now defaults to this orchestrate mode automatically.
|
|
226
|
+
|
|
214
227
|
Recommended `.kiro/config/orchestrator.json`:
|
|
215
228
|
|
|
216
229
|
```json
|
|
@@ -343,15 +356,18 @@ kse --version
|
|
|
343
356
|
### Starting a New Feature
|
|
344
357
|
|
|
345
358
|
```bash
|
|
346
|
-
# 1.
|
|
347
|
-
kse
|
|
359
|
+
# 1. Bootstrap spec draft
|
|
360
|
+
kse spec bootstrap --name 01-00-my-feature --non-interactive
|
|
361
|
+
|
|
362
|
+
# 2. Run spec pipeline
|
|
363
|
+
kse spec pipeline run --spec 01-00-my-feature
|
|
348
364
|
|
|
349
|
-
#
|
|
365
|
+
# 3. Export context
|
|
350
366
|
kse context export 01-00-my-feature
|
|
351
367
|
|
|
352
|
-
#
|
|
368
|
+
# 4. Work on tasks...
|
|
353
369
|
|
|
354
|
-
#
|
|
370
|
+
# 5. Sync progress
|
|
355
371
|
kse workspace sync
|
|
356
372
|
```
|
|
357
373
|
|
|
@@ -662,3 +678,5 @@ Overall Health: 2 healthy, 1 unhealthy
|
|
|
662
678
|
- Run `kse --help` for command reference
|
|
663
679
|
- Check [GitHub Issues](https://github.com/heguangyong/kiro-spec-engine/issues)
|
|
664
680
|
- Review [Documentation](../README.md)
|
|
681
|
+
|
|
682
|
+
|
package/docs/cross-tool-guide.md
CHANGED
|
@@ -75,7 +75,7 @@ kse adopt
|
|
|
75
75
|
|
|
76
76
|
2. **Create spec**:
|
|
77
77
|
```bash
|
|
78
|
-
kse
|
|
78
|
+
kse spec bootstrap --name 01-00-user-authentication --non-interactive
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
3. **Work with AI**:
|
|
@@ -552,3 +552,4 @@ For other tools: Manual coordination required
|
|
|
552
552
|
|
|
553
553
|
**Version History**:
|
|
554
554
|
- v1.0 (2026-01-23): Initial cross-tool guide
|
|
555
|
+
|
|
@@ -632,7 +632,7 @@ kse docs archive --spec your-spec
|
|
|
632
632
|
**When creating a Spec:**
|
|
633
633
|
```bash
|
|
634
634
|
# 1. Create Spec
|
|
635
|
-
kse
|
|
635
|
+
kse spec bootstrap --name 01-00-new-feature --non-interactive
|
|
636
636
|
|
|
637
637
|
# 2. Verify structure
|
|
638
638
|
kse docs validate --spec 01-00-new-feature
|
|
@@ -862,3 +862,4 @@ kse docs diagnose
|
|
|
862
862
|
|
|
863
863
|
**Version**: 1.42.0
|
|
864
864
|
**Last Updated**: 2026-01-24
|
|
865
|
+
|
package/docs/faq.md
CHANGED
|
@@ -143,7 +143,7 @@ See [Integration Modes Guide](integration-modes.md) for details.
|
|
|
143
143
|
|
|
144
144
|
1. **Create Spec:**
|
|
145
145
|
```bash
|
|
146
|
-
kse
|
|
146
|
+
kse spec bootstrap --name 01-00-user-login --non-interactive
|
|
147
147
|
# Edit requirements.md, design.md, tasks.md
|
|
148
148
|
```
|
|
149
149
|
|
|
@@ -356,7 +356,7 @@ Progress: 1/2 tasks complete (50%)
|
|
|
356
356
|
**Yes!** Create a Spec for the bug:
|
|
357
357
|
|
|
358
358
|
```bash
|
|
359
|
-
kse
|
|
359
|
+
kse spec bootstrap --name 01-01-fix-login-timeout --non-interactive
|
|
360
360
|
```
|
|
361
361
|
|
|
362
362
|
**requirements.md:**
|
|
@@ -398,7 +398,7 @@ JWT token expiration set to 300 seconds instead of 1800 seconds
|
|
|
398
398
|
**Absolutely!** Specs are great for refactoring:
|
|
399
399
|
|
|
400
400
|
```bash
|
|
401
|
-
kse
|
|
401
|
+
kse spec bootstrap --name 02-00-refactor-auth-module --non-interactive
|
|
402
402
|
```
|
|
403
403
|
|
|
404
404
|
**requirements.md:**
|
|
@@ -477,12 +477,12 @@ vim .kiro/templates/tasks.md
|
|
|
477
477
|
# Project 1
|
|
478
478
|
cd ~/projects/project1
|
|
479
479
|
kse adopt
|
|
480
|
-
kse
|
|
480
|
+
kse spec bootstrap --name 01-00-feature-a --non-interactive
|
|
481
481
|
|
|
482
482
|
# Project 2
|
|
483
483
|
cd ~/projects/project2
|
|
484
484
|
kse adopt
|
|
485
|
-
kse
|
|
485
|
+
kse spec bootstrap --name 01-00-feature-b --non-interactive
|
|
486
486
|
```
|
|
487
487
|
|
|
488
488
|
**Each project has:**
|
|
@@ -526,13 +526,13 @@ kse context export 01-00-user-login
|
|
|
526
526
|
|
|
527
527
|
```bash
|
|
528
528
|
# Main feature
|
|
529
|
-
kse
|
|
529
|
+
kse spec bootstrap --name 01-00-user-management --non-interactive
|
|
530
530
|
|
|
531
531
|
# Sub-features
|
|
532
|
-
kse
|
|
533
|
-
kse
|
|
534
|
-
kse
|
|
535
|
-
kse
|
|
532
|
+
kse spec bootstrap --name 01-01-user-registration --non-interactive
|
|
533
|
+
kse spec bootstrap --name 01-02-user-login --non-interactive
|
|
534
|
+
kse spec bootstrap --name 01-03-user-profile --non-interactive
|
|
535
|
+
kse spec bootstrap --name 01-04-password-reset --non-interactive
|
|
536
536
|
```
|
|
537
537
|
|
|
538
538
|
**Or use phases in tasks.md:**
|
|
@@ -558,17 +558,17 @@ kse create-spec 01-04-password-reset
|
|
|
558
558
|
|
|
559
559
|
**Documentation project:**
|
|
560
560
|
```bash
|
|
561
|
-
kse
|
|
561
|
+
kse spec bootstrap --name 01-00-api-documentation --non-interactive
|
|
562
562
|
```
|
|
563
563
|
|
|
564
564
|
**Design project:**
|
|
565
565
|
```bash
|
|
566
|
-
kse
|
|
566
|
+
kse spec bootstrap --name 02-00-ui-redesign --non-interactive
|
|
567
567
|
```
|
|
568
568
|
|
|
569
569
|
**Process improvement:**
|
|
570
570
|
```bash
|
|
571
|
-
kse
|
|
571
|
+
kse spec bootstrap --name 03-00-ci-cd-pipeline --non-interactive
|
|
572
572
|
```
|
|
573
573
|
|
|
574
574
|
**Specs provide structure for any project** with requirements, design, and tasks.
|
|
@@ -694,3 +694,4 @@ kse create-spec 03-00-ci-cd-pipeline
|
|
|
694
694
|
|
|
695
695
|
**Version**: 1.42.0
|
|
696
696
|
**Last Updated**: 2026-02-11
|
|
697
|
+
|
|
@@ -351,7 +351,7 @@ done
|
|
|
351
351
|
|
|
352
352
|
### Spec Creation Checklist
|
|
353
353
|
|
|
354
|
-
- [ ] Create spec: `kse
|
|
354
|
+
- [ ] Create spec: `kse spec bootstrap --name <name> --non-interactive`
|
|
355
355
|
- [ ] Write requirements.md
|
|
356
356
|
- [ ] Write design.md
|
|
357
357
|
- [ ] Generate tasks.md
|
|
@@ -415,3 +415,4 @@ done
|
|
|
415
415
|
**Version:** 1.0
|
|
416
416
|
**Last Updated:** 2026-01-23
|
|
417
417
|
**Spec:** 05-00-agent-hooks-and-automation
|
|
418
|
+
|
|
@@ -95,7 +95,7 @@ kse adopt
|
|
|
95
95
|
### 步骤 3:创建你的第一个 Spec
|
|
96
96
|
|
|
97
97
|
```bash
|
|
98
|
-
kse
|
|
98
|
+
kse spec bootstrap --name 01-00-user-login --non-interactive
|
|
99
99
|
```
|
|
100
100
|
|
|
101
101
|
然后编辑生成的文件:
|
|
@@ -157,7 +157,7 @@ kse context export 01-00-user-login
|
|
|
157
157
|
### 1. 创建 Spec
|
|
158
158
|
|
|
159
159
|
```bash
|
|
160
|
-
kse
|
|
160
|
+
kse spec bootstrap --name 01-00-user-login --non-interactive
|
|
161
161
|
```
|
|
162
162
|
|
|
163
163
|
### 2. 编写需求(requirements.md)
|
|
@@ -370,5 +370,6 @@ kse context export 01-00-user-login
|
|
|
370
370
|
```bash
|
|
371
371
|
npm install -g kiro-spec-engine
|
|
372
372
|
kse adopt
|
|
373
|
-
kse
|
|
373
|
+
kse spec bootstrap --name 01-00-my-feature --non-interactive
|
|
374
374
|
```
|
|
375
|
+
|
package/docs/quick-start.md
CHANGED
|
@@ -63,11 +63,24 @@ I need a user login feature with email and password.
|
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
**Your AI will:**
|
|
66
|
-
1.
|
|
67
|
-
2.
|
|
68
|
-
3.
|
|
69
|
-
4.
|
|
70
|
-
|
|
66
|
+
1. Bootstrap a Spec draft (`requirements/design/tasks`)
|
|
67
|
+
2. Refine requirements and design with you
|
|
68
|
+
3. Run the staged Spec workflow
|
|
69
|
+
4. Implement according to the Spec
|
|
70
|
+
|
|
71
|
+
**If you want to run commands manually:**
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
# Single-Spec recommended flow
|
|
75
|
+
kse spec bootstrap --name 01-00-user-login --non-interactive
|
|
76
|
+
kse spec pipeline run --spec 01-00-user-login
|
|
77
|
+
kse spec gate run --spec 01-00-user-login --json
|
|
78
|
+
|
|
79
|
+
# Multi-Spec flow (defaults to orchestrate mode)
|
|
80
|
+
kse spec bootstrap --specs "01-00-user-login,01-01-user-session" --max-parallel 3
|
|
81
|
+
kse spec pipeline run --specs "01-00-user-login,01-01-user-session" --max-parallel 3
|
|
82
|
+
kse spec gate run --specs "01-00-user-login,01-01-user-session" --max-parallel 3
|
|
83
|
+
```
|
|
71
84
|
|
|
72
85
|
**The AI uses kse commands automatically** - you don't need to learn them.
|
|
73
86
|
|
|
@@ -89,5 +102,6 @@ You're now using Spec-driven development. Your AI understands the methodology an
|
|
|
89
102
|
|
|
90
103
|
---
|
|
91
104
|
|
|
92
|
-
**Version**: 1.
|
|
93
|
-
**Last Updated**: 2026-02-
|
|
105
|
+
**Version**: 1.46.0
|
|
106
|
+
**Last Updated**: 2026-02-13
|
|
107
|
+
|
package/docs/spec-workflow.md
CHANGED
|
@@ -251,7 +251,7 @@ Response: { ... }
|
|
|
251
251
|
|
|
252
252
|
**1. Create the Spec:**
|
|
253
253
|
```bash
|
|
254
|
-
kse
|
|
254
|
+
kse spec bootstrap --name 01-00-user-login --non-interactive
|
|
255
255
|
```
|
|
256
256
|
|
|
257
257
|
**2. Write Requirements** (`.kiro/specs/01-00-user-login/requirements.md`):
|
|
@@ -509,10 +509,11 @@ The Spec workflow is:
|
|
|
509
509
|
|
|
510
510
|
**Start your next Spec:** 🚀
|
|
511
511
|
```bash
|
|
512
|
-
kse
|
|
512
|
+
kse spec bootstrap --name 02-00-your-feature --non-interactive
|
|
513
513
|
```
|
|
514
514
|
|
|
515
515
|
---
|
|
516
516
|
|
|
517
517
|
**Version**: 1.42.0
|
|
518
518
|
**Last Updated**: 2026-02-11
|
|
519
|
+
|
|
@@ -136,7 +136,7 @@ Please implement this task following the design document.
|
|
|
136
136
|
|
|
137
137
|
**1. Create and prepare Spec**
|
|
138
138
|
```bash
|
|
139
|
-
kse
|
|
139
|
+
kse spec bootstrap --name 01-00-user-login --non-interactive
|
|
140
140
|
# Edit requirements.md, design.md, tasks.md
|
|
141
141
|
kse-clip 01-00-user-login
|
|
142
142
|
```
|
|
@@ -642,7 +642,7 @@ kse context export 01-00-user-login
|
|
|
642
642
|
**Start using kse with Claude:** 🚀
|
|
643
643
|
```bash
|
|
644
644
|
kse adopt
|
|
645
|
-
kse
|
|
645
|
+
kse spec bootstrap --name 01-00-my-feature --non-interactive
|
|
646
646
|
kse-clip 01-00-my-feature
|
|
647
647
|
# Open Claude and paste context
|
|
648
648
|
```
|
|
@@ -651,3 +651,4 @@ kse-clip 01-00-my-feature
|
|
|
651
651
|
|
|
652
652
|
**Version**: 1.42.0
|
|
653
653
|
**Last Updated**: 2026-02-11
|
|
654
|
+
|
|
@@ -213,7 +213,7 @@ class AuthController {
|
|
|
213
213
|
|
|
214
214
|
**1. Create and write Spec**
|
|
215
215
|
```bash
|
|
216
|
-
kse
|
|
216
|
+
kse spec bootstrap --name 01-00-user-login --non-interactive
|
|
217
217
|
# Edit requirements.md, design.md, tasks.md
|
|
218
218
|
```
|
|
219
219
|
|
|
@@ -694,7 +694,7 @@ Please help debug and fix the issue.
|
|
|
694
694
|
**Start using kse with Cursor:** 🚀
|
|
695
695
|
```bash
|
|
696
696
|
kse adopt
|
|
697
|
-
kse
|
|
697
|
+
kse spec bootstrap --name 01-00-my-feature --non-interactive
|
|
698
698
|
kse context export 01-00-my-feature
|
|
699
699
|
# Open Cursor Composer (Cmd+K) and paste context
|
|
700
700
|
```
|
|
@@ -703,3 +703,4 @@ kse context export 01-00-my-feature
|
|
|
703
703
|
|
|
704
704
|
**Version**: 1.42.0
|
|
705
705
|
**Last Updated**: 2026-02-11
|
|
706
|
+
|
|
@@ -68,7 +68,7 @@ kse exports plain text that any AI can understand.
|
|
|
68
68
|
### Step 1: Create Your Spec
|
|
69
69
|
|
|
70
70
|
```bash
|
|
71
|
-
kse
|
|
71
|
+
kse spec bootstrap --name 01-00-user-login --non-interactive
|
|
72
72
|
# Edit requirements.md, design.md, tasks.md
|
|
73
73
|
```
|
|
74
74
|
|
|
@@ -434,7 +434,7 @@ If you're building an AI coding tool, consider:
|
|
|
434
434
|
**Start using:** 🚀
|
|
435
435
|
```bash
|
|
436
436
|
kse adopt
|
|
437
|
-
kse
|
|
437
|
+
kse spec bootstrap --name 01-00-my-feature --non-interactive
|
|
438
438
|
kse context export 01-00-my-feature
|
|
439
439
|
# Provide context to your AI tool
|
|
440
440
|
```
|
|
@@ -443,3 +443,4 @@ kse context export 01-00-my-feature
|
|
|
443
443
|
|
|
444
444
|
**Version**: 1.42.0
|
|
445
445
|
**Last Updated**: 2026-02-11
|
|
446
|
+
|
|
@@ -174,7 +174,7 @@ Please help me implement the AuthController.
|
|
|
174
174
|
|
|
175
175
|
**1. Create Spec**
|
|
176
176
|
```bash
|
|
177
|
-
kse
|
|
177
|
+
kse spec bootstrap --name 01-00-user-login --non-interactive
|
|
178
178
|
# Edit requirements.md, design.md, tasks.md
|
|
179
179
|
```
|
|
180
180
|
|
|
@@ -434,7 +434,7 @@ Copilot considers all referenced files.
|
|
|
434
434
|
**Start using:** 🚀
|
|
435
435
|
```bash
|
|
436
436
|
kse adopt
|
|
437
|
-
kse
|
|
437
|
+
kse spec bootstrap --name 01-00-my-feature --non-interactive
|
|
438
438
|
# Open VS Code and start coding with Spec references
|
|
439
439
|
```
|
|
440
440
|
|
|
@@ -442,3 +442,4 @@ kse create-spec 01-00-my-feature
|
|
|
442
442
|
|
|
443
443
|
**Version**: 1.42.0
|
|
444
444
|
**Last Updated**: 2026-02-11
|
|
445
|
+
|
|
@@ -202,7 +202,7 @@ kse watch start
|
|
|
202
202
|
|
|
203
203
|
**1. Create Spec**
|
|
204
204
|
```bash
|
|
205
|
-
kse
|
|
205
|
+
kse spec bootstrap --name 01-00-user-login --non-interactive
|
|
206
206
|
# Edit requirements.md, design.md, tasks.md
|
|
207
207
|
```
|
|
208
208
|
|
|
@@ -380,7 +380,7 @@ to:
|
|
|
380
380
|
**Start using:** 🚀
|
|
381
381
|
```bash
|
|
382
382
|
kse adopt
|
|
383
|
-
kse
|
|
383
|
+
kse spec bootstrap --name 01-00-my-feature --non-interactive
|
|
384
384
|
# Tell Windsurf: "Use kse to implement 01-00-my-feature"
|
|
385
385
|
```
|
|
386
386
|
|
|
@@ -388,3 +388,4 @@ kse create-spec 01-00-my-feature
|
|
|
388
388
|
|
|
389
389
|
**Version**: 1.42.0
|
|
390
390
|
**Last Updated**: 2026-02-11
|
|
391
|
+
|