实践spec Kit

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
$ specify init --here --ai cursor-agent

                                   ███████╗██████╗ ███████╗ ██████╗██╗███████╗██╗   ██╗                                    
                                   ██╔════╝██╔══██╗██╔════╝██╔════╝██║██╔════╝╚██╗ ██╔╝                                    	
                                   ███████╗██████╔╝█████╗  ██║     ██║█████╗   ╚████╔╝                                     
                                   ╚════██║██╔═══╝ ██╔══╝  ██║     ██║██╔══╝    ╚██╔╝                                      
                                   ███████║██║     ███████╗╚██████╗██║██║        ██║                                       
                                   ╚══════╝╚═╝     ╚══════╝ ╚═════╝╚═╝╚═╝        ╚═╝                                       
                                                                                                                           
                                     GitHub Spec Kit - Spec-Driven Development Toolkit                                     

╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                         │
│  Specify Project Setup                                                                                                  │
│                                                                                                                         │
│  Project         sdd01                                                                                                  │
│  Working Path    /Users/ray/ai-workspace/sdd01                                                                          │
│                                                                                                                         │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Selected AI assistant: cursor-agent
Selected script type: sh
Initialize Specify Project
├── ● Check required tools (ok)
├── ● Select AI assistant (cursor-agent)
├── ● Select script type (sh)
├── ● Fetch latest release (release v0.0.79 (55,086 bytes))
├── ● Download template (spec-kit-template-cursor-agent-sh-v0.0.79.zip)
├── ● Extract template
├── ● Archive contents (26 entries)
├── ● Extraction summary (temp 2 items)
├── ● Ensure scripts executable (5 updated)
├── ● Cleanup
├── ● Initialize git repository (initialized)
└── ● Finalize (project ready)

Project ready.

╭───────────────────────────────────────────────── Agent Folder Security ─────────────────────────────────────────────────╮
│                                                                                                                         │
│  Some agents may store credentials, auth tokens, or other identifying and private artifacts in the agent folder within  │
│  your project.                                                                                                          │
│  Consider adding .cursor/ (or parts of it) to .gitignore to prevent accidental credential leakage.                      │
│                                                                                                                         │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

╭────────────────────────────────────────────────────── Next Steps ───────────────────────────────────────────────────────╮
│                                                                                                                         │
│  1. You're already in the project directory!                                                                            │
│  2. Start using slash commands with your AI agent:                                                                      │
│     2.1 /speckit.constitution - Establish project principles                                                            │
│     2.2 /speckit.specify - Create baseline specification                                                                │
│     2.3 /speckit.plan - Create implementation plan                                                                      │
│     2.4 /speckit.tasks - Generate actionable tasks                                                                      │
│     2.5 /speckit.implement - Execute implementation                                                                     │
│                                                                                                                         │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

╭───────────────────────────────────────────────── Enhancement Commands ──────────────────────────────────────────────────╮
│                                                                                                                         │
│  Optional commands that you can use for your specs (improve quality & confidence)                                       │
│                                                                                                                         │
│  ○ /speckit.clarify (optional) - Ask structured questions to de-risk ambiguous areas before planning (run before        │
│  /speckit.plan if used)                                                                                                 │
│  ○ /speckit.analyze (optional) - Cross-artifact consistency & alignment report (after /speckit.tasks, before            │
│  /speckit.implement)                                                                                                    │
│  ○ /speckit.checklist (optional) - Generate quality checklists to validate requirements completeness, clarity, and      │
│  consistency (after /speckit.plan)                                                                                      │
│                                                                                                                         │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯