kiro-spec-engine 1.2.3 → 1.4.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 +135 -0
- package/README.md +239 -213
- package/README.zh.md +0 -330
- package/bin/kiro-spec-engine.js +62 -0
- package/docs/README.md +223 -0
- package/docs/agent-hooks-analysis.md +815 -0
- package/docs/command-reference.md +252 -0
- package/docs/cross-tool-guide.md +554 -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 +696 -0
- package/docs/integration-modes.md +525 -0
- package/docs/integration-philosophy.md +313 -0
- package/docs/manual-workflows-guide.md +417 -0
- package/docs/quick-start-with-ai-tools.md +374 -0
- package/docs/quick-start.md +711 -0
- package/docs/spec-workflow.md +453 -0
- package/docs/steering-strategy-guide.md +196 -0
- package/docs/tools/claude-guide.md +653 -0
- package/docs/tools/cursor-guide.md +705 -0
- package/docs/tools/generic-guide.md +445 -0
- package/docs/tools/kiro-guide.md +308 -0
- package/docs/tools/vscode-guide.md +444 -0
- package/docs/tools/windsurf-guide.md +390 -0
- package/docs/troubleshooting.md +795 -0
- package/docs/zh/README.md +275 -0
- package/docs/zh/quick-start.md +711 -0
- package/docs/zh/tools/claude-guide.md +348 -0
- package/docs/zh/tools/cursor-guide.md +280 -0
- package/docs/zh/tools/generic-guide.md +498 -0
- package/docs/zh/tools/kiro-guide.md +342 -0
- package/docs/zh/tools/vscode-guide.md +448 -0
- package/docs/zh/tools/windsurf-guide.md +377 -0
- package/lib/adoption/detection-engine.js +14 -4
- package/lib/commands/adopt.js +117 -3
- package/lib/commands/context.js +99 -0
- package/lib/commands/prompt.js +105 -0
- package/lib/commands/status.js +225 -0
- package/lib/commands/task.js +199 -0
- package/lib/commands/watch.js +569 -0
- package/lib/commands/workflows.js +240 -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/steering/adoption-config.js +164 -0
- package/lib/steering/steering-manager.js +289 -0
- package/lib/task/task-claimer.js +430 -0
- package/lib/utils/tool-detector.js +383 -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/workspace-manager.js +370 -0
- package/lib/workspace/workspace-sync.js +356 -0
- package/package.json +3 -1
- 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_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
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
# Command Reference
|
|
2
|
+
|
|
3
|
+
> Quick reference for all kse commands
|
|
4
|
+
|
|
5
|
+
**Version**: 1.3.0
|
|
6
|
+
**Last Updated**: 2026-01-23
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Command Naming
|
|
11
|
+
|
|
12
|
+
The package provides two command aliases:
|
|
13
|
+
- `kse` - **Recommended short alias** (use this in all documentation)
|
|
14
|
+
- `kiro-spec-engine` - Full command name (legacy, not recommended)
|
|
15
|
+
|
|
16
|
+
**Always use `kse` in examples and documentation for consistency.**
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Installation
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npm install -g kiro-spec-engine
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
This creates the `kse` command globally.
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Core Commands
|
|
31
|
+
|
|
32
|
+
### Project Setup
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
# Initialize new project
|
|
36
|
+
kse init [project-name]
|
|
37
|
+
|
|
38
|
+
# Adopt existing project
|
|
39
|
+
kse adopt
|
|
40
|
+
|
|
41
|
+
# Check project status
|
|
42
|
+
kse status
|
|
43
|
+
|
|
44
|
+
# Run system diagnostics
|
|
45
|
+
kse doctor
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Spec Management
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
# Create new spec (interactive)
|
|
52
|
+
kse create-spec
|
|
53
|
+
|
|
54
|
+
# Create spec with name
|
|
55
|
+
kse create-spec 01-00-feature-name
|
|
56
|
+
|
|
57
|
+
# List all specs
|
|
58
|
+
kse list-specs
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Task Management
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
# Claim a task
|
|
65
|
+
kse task claim <spec-name> <task-id>
|
|
66
|
+
|
|
67
|
+
# Unclaim a task
|
|
68
|
+
kse task unclaim <spec-name> <task-id>
|
|
69
|
+
|
|
70
|
+
# Show task status
|
|
71
|
+
kse task status <spec-name>
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Context & Prompts
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
# Export spec context
|
|
78
|
+
kse context export <spec-name>
|
|
79
|
+
|
|
80
|
+
# Export with steering rules
|
|
81
|
+
kse context export <spec-name> --steering
|
|
82
|
+
|
|
83
|
+
# Generate task prompt
|
|
84
|
+
kse prompt generate <spec-name> <task-id>
|
|
85
|
+
|
|
86
|
+
# Generate for specific tool
|
|
87
|
+
kse prompt generate <spec-name> <task-id> --tool=claude-code
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Watch Mode
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
# Initialize watch configuration
|
|
94
|
+
kse watch init
|
|
95
|
+
|
|
96
|
+
# Start watch mode
|
|
97
|
+
kse watch start
|
|
98
|
+
|
|
99
|
+
# Stop watch mode
|
|
100
|
+
kse watch stop
|
|
101
|
+
|
|
102
|
+
# Check watch status
|
|
103
|
+
kse watch status
|
|
104
|
+
|
|
105
|
+
# View watch logs
|
|
106
|
+
kse watch logs
|
|
107
|
+
|
|
108
|
+
# Show automation metrics
|
|
109
|
+
kse watch metrics
|
|
110
|
+
|
|
111
|
+
# List available presets
|
|
112
|
+
kse watch presets
|
|
113
|
+
|
|
114
|
+
# Install a preset
|
|
115
|
+
kse watch install <preset-name>
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Workflows
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
# List available workflows
|
|
122
|
+
kse workflows
|
|
123
|
+
|
|
124
|
+
# Show workflow details
|
|
125
|
+
kse workflows show <workflow-name>
|
|
126
|
+
|
|
127
|
+
# Open workflow guide
|
|
128
|
+
kse workflows guide
|
|
129
|
+
|
|
130
|
+
# Mark workflow as complete
|
|
131
|
+
kse workflows complete <workflow-name>
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### Workspace Management
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
# Sync workspace
|
|
138
|
+
kse workspace sync
|
|
139
|
+
|
|
140
|
+
# Show workspace info
|
|
141
|
+
kse workspace info
|
|
142
|
+
|
|
143
|
+
# List team members
|
|
144
|
+
kse workspace team
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Version & Upgrade
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
# Show version info
|
|
151
|
+
kse version-info
|
|
152
|
+
|
|
153
|
+
# Check for upgrades
|
|
154
|
+
kse upgrade check
|
|
155
|
+
|
|
156
|
+
# Perform upgrade
|
|
157
|
+
kse upgrade
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## Global Options
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
# Set language
|
|
166
|
+
kse --lang zh <command>
|
|
167
|
+
kse --lang en <command>
|
|
168
|
+
|
|
169
|
+
# Show help
|
|
170
|
+
kse --help
|
|
171
|
+
kse <command> --help
|
|
172
|
+
|
|
173
|
+
# Show version
|
|
174
|
+
kse --version
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
## Common Workflows
|
|
180
|
+
|
|
181
|
+
### Starting a New Feature
|
|
182
|
+
|
|
183
|
+
```bash
|
|
184
|
+
# 1. Create spec
|
|
185
|
+
kse create-spec 01-00-my-feature
|
|
186
|
+
|
|
187
|
+
# 2. Export context
|
|
188
|
+
kse context export 01-00-my-feature
|
|
189
|
+
|
|
190
|
+
# 3. Work on tasks...
|
|
191
|
+
|
|
192
|
+
# 4. Sync progress
|
|
193
|
+
kse workspace sync
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Setting Up Automation
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
# 1. Initialize watch mode
|
|
200
|
+
kse watch init
|
|
201
|
+
|
|
202
|
+
# 2. Install presets
|
|
203
|
+
kse watch install auto-sync
|
|
204
|
+
kse watch install test-runner
|
|
205
|
+
|
|
206
|
+
# 3. Start watching
|
|
207
|
+
kse watch start
|
|
208
|
+
|
|
209
|
+
# 4. Check status
|
|
210
|
+
kse watch status
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### Working with Team
|
|
214
|
+
|
|
215
|
+
```bash
|
|
216
|
+
# 1. Check team status
|
|
217
|
+
kse workspace team
|
|
218
|
+
|
|
219
|
+
# 2. Claim a task
|
|
220
|
+
kse task claim 01-00-feature 1.1
|
|
221
|
+
|
|
222
|
+
# 3. Work on task...
|
|
223
|
+
|
|
224
|
+
# 4. Sync when done
|
|
225
|
+
kse workspace sync
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
## Tips
|
|
231
|
+
|
|
232
|
+
1. **Use `kse` not `kiro-spec-engine`** - Shorter and easier to type
|
|
233
|
+
2. **Add `--help` to any command** - Get detailed usage information
|
|
234
|
+
3. **Use tab completion** - Most shells support command completion
|
|
235
|
+
4. **Check `kse doctor`** - Diagnose issues quickly
|
|
236
|
+
5. **Use watch mode** - Automate repetitive tasks
|
|
237
|
+
|
|
238
|
+
---
|
|
239
|
+
|
|
240
|
+
## See Also
|
|
241
|
+
|
|
242
|
+
- [Manual Workflows Guide](./manual-workflows-guide.md)
|
|
243
|
+
- [Cross-Tool Guide](./cross-tool-guide.md)
|
|
244
|
+
- [Adoption Guide](./adoption-guide.md)
|
|
245
|
+
- [Developer Guide](./developer-guide.md)
|
|
246
|
+
|
|
247
|
+
---
|
|
248
|
+
|
|
249
|
+
**Need Help?**
|
|
250
|
+
- Run `kse --help` for command reference
|
|
251
|
+
- Check [GitHub Issues](https://github.com/heguangyong/kiro-spec-engine/issues)
|
|
252
|
+
- Review [Documentation](../README.md)
|