speccore 1.0.1 โ†’ 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.en.md +131 -312
  2. package/README.md +134 -292
  3. package/dist/cli.js +46 -8
  4. package/dist/cli.js.map +1 -1
  5. package/dist/commands/context.d.ts +8 -0
  6. package/dist/commands/context.d.ts.map +1 -0
  7. package/dist/commands/context.js +180 -0
  8. package/dist/commands/context.js.map +1 -0
  9. package/dist/commands/execute.d.ts +1 -0
  10. package/dist/commands/execute.d.ts.map +1 -1
  11. package/dist/commands/execute.js +18 -0
  12. package/dist/commands/execute.js.map +1 -1
  13. package/dist/commands/import.d.ts +3 -0
  14. package/dist/commands/import.d.ts.map +1 -1
  15. package/dist/commands/import.js +24 -6
  16. package/dist/commands/import.js.map +1 -1
  17. package/dist/commands/index-update.d.ts +8 -0
  18. package/dist/commands/index-update.d.ts.map +1 -0
  19. package/dist/commands/index-update.js +180 -0
  20. package/dist/commands/index-update.js.map +1 -0
  21. package/dist/commands/init.d.ts.map +1 -1
  22. package/dist/commands/init.js +40 -152
  23. package/dist/commands/init.js.map +1 -1
  24. package/dist/commands/new-task.d.ts +15 -0
  25. package/dist/commands/new-task.d.ts.map +1 -0
  26. package/dist/commands/new-task.js +208 -0
  27. package/dist/commands/new-task.js.map +1 -0
  28. package/dist/commands/platform-add.d.ts +12 -0
  29. package/dist/commands/platform-add.d.ts.map +1 -0
  30. package/dist/commands/platform-add.js +111 -0
  31. package/dist/commands/platform-add.js.map +1 -0
  32. package/dist/commands/progress.d.ts +1 -0
  33. package/dist/commands/progress.d.ts.map +1 -1
  34. package/dist/commands/progress.js +3 -2
  35. package/dist/commands/progress.js.map +1 -1
  36. package/dist/core/intent-recognition.d.ts +3 -3
  37. package/dist/core/intent-recognition.d.ts.map +1 -1
  38. package/dist/core/intent-recognition.js +41 -2
  39. package/dist/core/intent-recognition.js.map +1 -1
  40. package/package.json +1 -1
package/README.en.md CHANGED
@@ -1,4 +1,4 @@
1
- # SpecCore
1
+ # SpecCore CLI
2
2
 
3
3
  > **Code by Spec, Not by Vibe.**
4
4
 
@@ -6,389 +6,208 @@
6
6
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
7
7
  [![Node.js](https://img.shields.io/badge/Node.js-%3E%3D18.0.0-brightgreen.svg)](https://nodejs.org/)
8
8
 
9
- SpecCore is the official command-line tool for the [SpecCore](https://github.com/spec-core/spec-core) specification-driven development framework. It decouples deterministic operations (file creation, directory management, format validation, status statistics) from AI, executing them directly through code to improve efficiency and reduce Token consumption.
9
+ SpecCore CLI is the official TypeScript command-line tool for the [SpecCore specification-driven development framework](https://github.com/windfallsheng/SpecCore). It decouples deterministic operations (file creation, directory management, format validation, status statistics) from AI, executing them directly through code to improve efficiency and reduce Token consumption.
10
10
 
11
- ---
12
-
13
- ## One Minute Overview
14
-
15
- | Question | Answer |
16
- | :--- | :--- |
17
- | **What is this?** | CLI tool for SpecCore framework, deterministic operations executed by code, intelligent decisions handled by AI |
18
- | **What problem does it solve?** | AI file operations are error-prone, high Token consumption, context window waste |
19
- | **What do I need to install?** | Node.js >= 18, run `npm install -g speccore` |
20
- | **Relationship with Slash Commands?** | CLI is the underlying execution engine for Slash Commands, AI makes decisions, CLI executes |
11
+ > ๐Ÿ’ก **v4.0.0** | 39 Commands | 31 Intent Types | Multi-Platform
21
12
 
22
13
  ---
23
14
 
24
- ## Feature Highlights
25
-
26
- - **๐Ÿš€ Quick Initialization**: Initialize a complete SpecCore project structure with one command
27
- - **๐Ÿ“ Smart Directory Management**: Auto-create iterations, tasks, shared resource directories following specifications
28
- - **โœ… Auto Compliance Check**: Scan all Spec files, check required fields and formats
29
- - **๐Ÿ“Š Real-time Progress Tracking**: Auto-identify active iterations, calculate task completion rates
30
- - **๐Ÿฅ Health Dashboard**: Evaluate project health with 4 dimensions and 12 metrics
31
- - **๐Ÿ“ˆ One-click Reporting**: Support Markdown/HTML/JSON format output for project reports
32
- - **๐Ÿง  Context Awareness**: Auto-read `.speccore/local/context.json`, intelligently fill default values
33
- - **๐Ÿ”„ Deterministic Execution**: File operations, format validation, status statistics all executed locally with zero Token consumption
34
-
35
- ---
36
-
37
- ## Design Philosophy
38
-
39
- SpecCore adopts an architecture that **decouples deterministic logic from intelligent logic**:
40
-
41
- | Logic Type | Responsibility | Executor | Example |
42
- | :--- | :--- | :--- | :--- |
43
- | **Deterministic Logic** | Structured operations | CLI code | Create directories, move files, parse YAML, validate formats, count status |
44
- | **Intelligent Logic** | Understanding & Decision | AI | Understand requirements, split tasks, generate code, review outputs |
45
-
46
- ```
47
- User Input (Slash Command)
48
- โ”‚
49
- โ–ผ
50
- โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
51
- โ”‚ AI Layer (Intelligent Decision) โ”‚
52
- โ”‚ - Understand user intent โ”‚
53
- โ”‚ - Decide which operations to executeโ”‚
54
- โ”‚ - Generate code content โ”‚
55
- โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
56
- โ”‚ Call CLI Commands
57
- โ–ผ
58
- โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
59
- โ”‚ CLI Layer (Deterministic Execution) โ”‚
60
- โ”‚ - Create directory structure โ”‚
61
- โ”‚ - Read/write files โ”‚
62
- โ”‚ - Parse YAML โ”‚
63
- โ”‚ - Validate formats โ”‚
64
- โ”‚ - Output JSON results โ”‚
65
- โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
66
- ```
67
-
68
- **Core Benefit**: Directory checking, YAML parsing, and status statistics are executed deterministically by code. AI only interprets results and formats outputs, significantly reducing Token consumption.
15
+ ## ๐Ÿงฉ Two Ways to Use
69
16
 
70
- ---
17
+ SpecCore has two distinct parts:
71
18
 
72
- ## Requirements
19
+ | | ๐Ÿ”ง Terminal (CLI) | ๐Ÿค– AI Commands (Slash) |
20
+ | :--- | :--- | :--- |
21
+ | **Where** | Terminal | AI coding tools (WorkBuddy / Cursor / Claude) |
22
+ | **How** | `speccore init` | Type `/spec-xxx` |
23
+ | **Mechanism** | TypeScript, direct file ops | Markdown prompts, AI reads & executes |
24
+ | **Count** | 39 CLI commands | 39 Slash Commands |
25
+ | **When** | Init, validation, batch ops | Daily dev: iteration, execution, review, archive |
73
26
 
74
- - **Node.js**: >= 18.0.0
75
- - **Operating System**: macOS / Linux / Windows
27
+ > ๐Ÿ’ก **Remember**: `speccore` prefix โ†’ Terminal; `/spec` prefix โ†’ AI tool.
76
28
 
77
29
  ---
78
30
 
79
- ## Installation
31
+ ## ๐Ÿ“ฆ Install
80
32
 
81
33
  ```bash
82
- # Global installation (recommended)
83
- npm install -g speccore
84
-
85
- # Or use npx (no installation required, always use latest version)
86
- npx speccore --version
87
-
88
- # Or install specific version
89
- npm install -g speccore@1.0.0
34
+ npm install -g speccore # Global install (recommended)
35
+ npx speccore --version # Or use npx
90
36
  ```
91
37
 
92
38
  ---
93
39
 
94
- ## Quick Start
95
-
96
- ### 1. Initialize Project
40
+ ## ๐Ÿš€ Quick Start (5 min)
97
41
 
98
42
  ```bash
99
- # Enter your project directory
100
- cd my-project
43
+ # 1. Initialize
44
+ cd my-project && speccore init
101
45
 
102
- # Initialize SpecCore
103
- speccore init --mode fresh
46
+ # 2. Import to global layer
47
+ speccore import --project=user-service --path=./backend --type=backend
104
48
 
105
- # Or migrate existing project
106
- speccore init --mode migration
107
- ```
49
+ # 3. Create iteration
50
+ speccore iteration create --name 2026-07-UserSystem
108
51
 
109
- After execution, the following structure will be generated:
52
+ # 4. Multi-platform task
53
+ speccore new-task --name UserLogin --platforms=web,h5
110
54
 
55
+ # 5. Smart entry
56
+ speccore spec "How's the progress?"
111
57
  ```
112
- .speccore/ # Global configuration directory
113
- โ”œโ”€โ”€ CONSTITUTION.md # Technical Constitution (tech stack, standards)
114
- โ”œโ”€โ”€ SETTINGS.md # Framework configuration (switches, modes)
115
- โ”œโ”€โ”€ ITERATIONS/ # Iteration records
116
- โ”œโ”€โ”€ PATTERNS/ # Pattern library
117
- โ”œโ”€โ”€ PROJECT/ # Project-level assets
118
- โ”‚ โ”œโ”€โ”€ OVERVIEW.md
119
- โ”‚ โ”œโ”€โ”€ TEAM.md
120
- โ”‚ โ””โ”€โ”€ ...
121
- โ”œโ”€โ”€ RULES/ # Adjudication rules
122
- โ””โ”€โ”€ local/ # Local state
123
- โ””โ”€โ”€ context.json # Current context (iteration, task, user)
124
- ```
125
-
126
- ### 2. Create Iteration
127
58
 
128
- ```bash
129
- speccore iteration create --name 2026-07-User-System
130
- ```
131
-
132
- Generates `Iteration-2026-07-User-System/` directory containing:
133
- - `00-Requirements/REQUIREMENT.md`
134
- - `00-Technical-Design/ARCHITECTURE.md`
135
- - `00-Iteration-Overview/PROJECT_GRAPH.md`
136
-
137
- ### 3. Create Tasks
138
-
139
- ```bash
140
- speccore task new --name User-Login --type feature
141
- speccore task new --name Phone-Registration --type feature
142
- speccore task new --name Password-Reset --type bugfix
143
- ```
59
+ > ๐Ÿ“š See [Quick Start Guide](docs/quick-start.en.md) for detailed steps.
144
60
 
145
- ### 4. View Progress
61
+ ---
146
62
 
147
- ```bash
148
- # View overall progress
149
- speccore progress
63
+ ## Feature Highlights
150
64
 
151
- # JSON format output (suitable for CI/CD)
152
- speccore progress --format json
65
+ - **๐Ÿš€ Quick Init**: One command initializes the full project structure, auto-integrates WorkBuddy
66
+ - **๐Ÿ“ฑ Multi-Platform**: `--platforms=web,h5,miniapp` per-platform Task management, dynamic platform types
67
+ - **๐Ÿง  Intent Recognition**: 31 intent types, 200+ keywords, natural language โ†’ command matching
68
+ - **๐ŸŒ Global Layer**: Cross-project requirement indexing via GLOBAL/ architecture
69
+ - **๐Ÿ“Š Progress Tracking**: Auto-detect active iteration, per-platform/per-assignee stats
70
+ - **โœ… Auto Compliance**: Scan all Spec files, check required fields and format
71
+ - **๐Ÿ”„ Deterministic Execution**: File ops, validation, statistics โ€” all local code, zero Token cost
153
72
 
154
- # View detailed progress
155
- speccore progress --detail
156
- ```
73
+ ---
157
74
 
158
- ### 5. Validate Compliance
75
+ ## Design Philosophy
159
76
 
160
- ```bash
161
- # Validate all tasks
162
- speccore validate
77
+ SpecCore decouples **deterministic logic from intelligent logic**:
163
78
 
164
- # Auto-fix fixable issues
165
- speccore validate --fix
79
+ | Logic Type | Responsibility | Executor | Example |
80
+ | :--- | :--- | :--- | :--- |
81
+ | **Deterministic** | Structured operations | CLI code | Create dirs, parse YAML, validate, count |
82
+ | **Intelligent** | Understanding & decision | AI tool | Understand requirements, split tasks, generate code |
166
83
 
167
- # JSON format output (AI can read directly)
168
- speccore validate --format json
169
84
  ```
170
-
171
- ### 6. Generate Report
172
-
173
- ```bash
174
- # Markdown format (default)
175
- speccore report
176
-
177
- # HTML format (suitable for email)
178
- speccore report --format html --output ./report.html
179
-
180
- # JSON format (suitable for import into other systems)
181
- speccore report --format json
182
-
183
- # Include team analysis and risk analysis
184
- speccore report --team --risk
85
+ User Input (Natural Language / Slash Command)
86
+ โ”‚
87
+ โ–ผ
88
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
89
+ โ”‚ AI Layer (Intelligent Decision) โ”‚
90
+ โ”‚ - Understand user intent โ”‚
91
+ โ”‚ - Decide which operations to run โ”‚
92
+ โ”‚ - Generate code content โ”‚
93
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
94
+ โ”‚ Call CLI commands
95
+ โ–ผ
96
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
97
+ โ”‚ CLI Layer (Deterministic Execution) โ”‚
98
+ โ”‚ - Create directory structure โ”‚
99
+ โ”‚ - Read/write config & Spec files โ”‚
100
+ โ”‚ - Parse YAML โ”‚
101
+ โ”‚ - Compliance validation โ”‚
102
+ โ”‚ - Output structured results โ”‚
103
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
185
104
  ```
186
105
 
187
106
  ---
188
107
 
189
- ## Full Command List
190
-
191
- ### Initialization & Import
192
-
193
- | Command | Description | Corresponding Slash Command | Deterministic |
194
- | :--- | :--- | :--- | :--- |
195
- | `speccore init` | Initialize SpecCore project | `/spec-init` | โœ… |
196
- | `speccore import` | Import existing project | `/spec-import` | โœ… |
197
-
198
- ### Iteration Management
199
-
200
- | Command | Description | Corresponding Slash Command | Deterministic |
201
- | :--- | :--- | :--- | :--- |
202
- | `speccore iteration create` | Create iteration | `/spec-iteration-create` | โœ… |
203
- | `speccore iteration split` | Requirement splitting (requires AI task list) | `/spec-iteration-split` | โš ๏ธ |
204
-
205
- ### Task Management
206
-
207
- | Command | Description | Corresponding Slash Command | Deterministic |
208
- | :--- | :--- | :--- | :--- |
209
- | `speccore task new` | Create atomic task | `/spec-new-task` | โœ… |
210
-
211
- ### Execution & Scheduling
212
-
213
- | Command | Description | Corresponding Slash Command | Deterministic |
214
- | :--- | :--- | :--- | :--- |
215
- | `speccore plan` | Generate scheduling plan (DAG analysis) | `/spec-plan` | โœ… |
216
- | `speccore execute` | Execute task (requires AI collaboration) | `/spec-execute` | โš ๏ธ |
217
-
218
- ### Validation & Review
219
-
220
- | Command | Description | Corresponding Slash Command | Deterministic |
221
- | :--- | :--- | :--- | :--- |
222
- | `speccore validate` | Compliance check | `/spec-validate` | โœ… |
223
- | `speccore progress` | View progress | `/spec-progress` | โœ… |
224
- | `speccore status` | Project status | `/spec-status` | โœ… |
225
- | `speccore health` | Health dashboard (4 dimensions, 12 metrics) | `/spec-health` | โœ… |
226
- | `speccore report` | Generate project report | `/spec-report` | โœ… |
227
-
228
- ### Archive & Configuration
229
-
230
- | Command | Description | Corresponding Slash Command | Deterministic |
231
- | :--- | :--- | :--- | :--- |
232
- | `speccore archive` | Archive task | `/spec-archive` | โœ… |
233
- | `speccore config` | Configuration management | `/spec-config` | โœ… |
108
+ ## ๐Ÿค– Command Quick Reference (39 total)
234
109
 
235
- - **โœ…** Pure deterministic logic, fully executable by code
236
- - **โš ๏ธ** Requires AI participation for understanding/generation (e.g., requirement splitting, code generation)
110
+ | Category | Key Commands |
111
+ | :--- | :--- |
112
+ | ๐Ÿง  Smart Entry | `speccore spec "<query>"` |
113
+ | ๐ŸŒ Global Layer | `import` / `iteration-from-global` / `sync-global` / `global-status` / `history` / `index-update` |
114
+ | ๐Ÿ“‹ Scenario | `goal` / `bugfix` / `research` / `retro` / `handover` |
115
+ | ๐Ÿ“ Planning | `init` / `iteration create` / `iteration split` / `new-task` / `plan` |
116
+ | โšก Execution | `execute` (--platform / --priority / --status) |
117
+ | ๐Ÿ”„ Change | `change` / `sync` / `sync-global` |
118
+ | โœ… Review | `validate` (--fix) |
119
+ | ๐Ÿ“Š Progress | `progress` (--platform / --detail) / `status` |
120
+ | ๐Ÿ“ฆ Management | `archive` / `config` / `baseline` / `rename` |
121
+ | ๐Ÿ”— Analysis | `impact` / `dashboard` / `audit` |
122
+ | ๐Ÿ“ฑ Platform | `platform-add` / `context` |
123
+ | ๐Ÿ› ๏ธ Tools | `health` / `report` / `template-add` / `help` / `demo` / `welcome` |
124
+
125
+ > ๐Ÿ“‹ Full command reference: [Command Reference](docs/commands.en.md) | ๐Ÿง  Intent mapping: [Intent Map](docs/commands.en.md#natural-language-intent-mapping-31-types)
237
126
 
238
127
  ---
239
128
 
240
- ## Project Structure
129
+ ## ๐Ÿ—๏ธ Architecture
241
130
 
242
131
  ```
243
- speccore/
244
- โ”œโ”€โ”€ package.json
245
- โ”œโ”€โ”€ tsconfig.json
246
- โ”œโ”€โ”€ README.md
247
- โ”œโ”€โ”€ bin/
248
- โ”‚ โ””โ”€โ”€ speccore # CLI entry script
249
- โ”œโ”€โ”€ src/
250
- โ”‚ โ”œโ”€โ”€ index.ts # Entry file
251
- โ”‚ โ”œโ”€โ”€ cli.ts # CLI command registration (Commander.js)
252
- โ”‚ โ”‚
253
- โ”‚ โ”œโ”€โ”€ commands/ # All CLI command implementations
254
- โ”‚ โ”‚ โ”œโ”€โ”€ init.ts # Initialize project
255
- โ”‚ โ”‚ โ”œโ”€โ”€ import.ts # Import existing project
256
- โ”‚ โ”‚ โ”œโ”€โ”€ iteration/
257
- โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ create.ts # Create iteration
258
- โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ split.ts # Requirement splitting
259
- โ”‚ โ”‚ โ”œโ”€โ”€ task/
260
- โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ new.ts # Create task
261
- โ”‚ โ”‚ โ”œโ”€โ”€ plan.ts # Generate scheduling plan
262
- โ”‚ โ”‚ โ”œโ”€โ”€ execute.ts # Execute task
263
- โ”‚ โ”‚ โ”œโ”€โ”€ validate.ts # Compliance check
264
- โ”‚ โ”‚ โ”œโ”€โ”€ archive.ts # Archive task
265
- โ”‚ โ”‚ โ”œโ”€โ”€ progress.ts # View progress
266
- โ”‚ โ”‚ โ”œโ”€โ”€ status.ts # Project status
267
- โ”‚ โ”‚ โ”œโ”€โ”€ health.ts # Health dashboard
268
- โ”‚ โ”‚ โ”œโ”€โ”€ report.ts # Generate report
269
- โ”‚ โ”‚ โ””โ”€โ”€ config.ts # Configuration management
270
- โ”‚ โ”‚
271
- โ”‚ โ”œโ”€โ”€ core/ # Core engine
272
- โ”‚ โ”‚ โ”œโ”€โ”€ context.ts # Context management (read context.json)
273
- โ”‚ โ”‚ โ”œโ”€โ”€ state.ts # State management (read PROJECT_GRAPH.md)
274
- โ”‚ โ”‚ โ”œโ”€โ”€ yaml-parser.ts # YAML parsing
275
- โ”‚ โ”‚ โ”œโ”€โ”€ template-engine.ts # Template rendering (Handlebars)
276
- โ”‚ โ”‚ โ””โ”€โ”€ validator.ts # Compliance check engine
277
- โ”‚ โ”‚
278
- โ”‚ โ”œโ”€โ”€ templates/ # Built-in templates
279
- โ”‚ โ”‚ โ”œโ”€โ”€ spec/ # Spec file templates
280
- โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ project-readme.md
281
- โ”‚ โ”‚ โ””โ”€โ”€ code/ # Code generation templates
282
- โ”‚ โ”‚ โ”œโ”€โ”€ spring-controller.java
283
- โ”‚ โ”‚ โ”œโ”€โ”€ spring-service.java
284
- โ”‚ โ”‚ โ”œโ”€โ”€ spring-test.java
285
- โ”‚ โ”‚ โ””โ”€โ”€ nest-controller.ts
286
- โ”‚ โ”‚
287
- โ”‚ โ””โ”€โ”€ utils/
288
- โ”‚ โ”œโ”€โ”€ file.ts # File utilities
289
- โ”‚ โ”œโ”€โ”€ git.ts # Git utilities (get username, etc.)
290
- โ”‚ โ””โ”€โ”€ logger.ts # Logger (with progress bar, Spinner)
291
- โ”‚
292
- โ””โ”€โ”€ dist/ # Compiled output (TypeScript โ†’ JavaScript)
132
+ .speccore/GLOBAL/ โ† Global Layer: unified multi-project requirements
133
+ .speccore/ โ† Project Layer: constitution, config, patterns
134
+ Iteration-XXX/ โ† Iteration Layer: what this iteration does
135
+ โ””โ”€โ”€ Task-XXX/ โ† Task Layer: how this feature works
136
+ โ”œโ”€โ”€ _shared/ โ† Shared: API Contract + business rules
137
+ โ”œโ”€โ”€ backend/ โ† Backend Specs
138
+ โ””โ”€โ”€ frontend/ โ† Multi-platform frontend specs (web / h5 / miniapp)
293
139
  ```
294
140
 
295
141
  ---
296
142
 
297
- ## Development Guide
298
-
299
- ```bash
300
- # Clone repository
301
- git clone https://github.com/windfallsheng/SpecCore-ts.git
302
- cd SpecCore-ts
303
-
304
- # Install dependencies
305
- npm install
143
+ ## ๐Ÿ› ๏ธ Tool Support
306
144
 
307
- # Compile TypeScript
308
- npm run build
145
+ | CN | Global |
146
+ | :--- | :--- |
147
+ | WorkBuddy / Qcoder / Trae | Cursor / Claude Code / Windsurf / Gemini CLI / OpenCode |
309
148
 
310
- # Development mode (watch for file changes and auto-compile)
311
- npm run watch
149
+ SpecCore CLI natively integrates WorkBuddy. Other tools supported via the SpecCore framework.
312
150
 
313
- # Local testing
314
- node bin/speccore --version
315
-
316
- # Link to global (development testing)
317
- npm link
318
- speccore --version
319
- ```
151
+ > ๐Ÿ“š See [Tool Adaptation](docs/tool-adaptation.en.md)
320
152
 
321
153
  ---
322
154
 
323
- ## Related Projects
155
+ ## ๐Ÿ“š Documentation
324
156
 
325
- | Project | Description | GitHub | Gitee |
326
- | :--- | :--- | :--- | :--- |
327
- | **SpecCore** | Specification-driven development framework (methodology + file templates + Slash Commands) | [windfallsheng/SpecCore](https://github.com/windfallsheng/SpecCore) | [windfullsheng/spec-core](https://gitee.com/windfullsheng/spec-core) |
328
- | **SpecCore** | CLI tool (deterministic operation execution engine) | [windfallsheng/SpecCore-ts](https://github.com/windfallsheng/SpecCore-ts) | [windfullsheng/spec-core-ts](https://gitee.com/windfullsheng/spec-core-ts) |
157
+ | Document | Lang | Content |
158
+ | :--- | :--- | :--- |
159
+ | [Quick Start](docs/quick-start.en.md) | ๐Ÿ‡ฌ๐Ÿ‡ง | Install โ†’ Init โ†’ Import โ†’ Multi-platform โ†’ Scenarios |
160
+ | [ๅฟซ้€Ÿๅผ€ๅง‹ๆŒ‡ๅ—](docs/ๅฟซ้€Ÿๅผ€ๅง‹.md) | ๐Ÿ‡จ๐Ÿ‡ณ | ๅฎ‰่ฃ… โ†’ ๅˆๅง‹ๅŒ– โ†’ ๅฏผๅ…ฅ โ†’ ๅคš็ซฏ Task โ†’ ๅœบๆ™ฏ้€ŸๆŸฅ |
161
+ | [Command Reference](docs/commands.en.md) | ๐Ÿ‡ฌ๐Ÿ‡ง | 39 commands full params + 31 intents + aliases |
162
+ | [ๅ‘ฝไปคๅ‚่€ƒๆ‰‹ๅ†Œ](docs/ๅ‘ฝไปคๅ‚่€ƒ.md) | ๐Ÿ‡จ๐Ÿ‡ณ | 39 ไธชๅ‘ฝไปคๅฎŒๆ•ดๅ‚ๆ•ฐ + 31 ็งๆ„ๅ›พๆ˜ ๅฐ„ + ๅˆซๅ้€ŸๆŸฅ |
163
+ | [Tool Adaptation](docs/tool-adaptation.en.md) | ๐Ÿ‡ฌ๐Ÿ‡ง | WorkBuddy integration + workflow + security |
164
+ | [ๅทฅๅ…ท้€‚้…่ฏดๆ˜Ž](docs/ๅทฅๅ…ท้€‚้…่ฏดๆ˜Ž.md) | ๐Ÿ‡จ๐Ÿ‡ณ | WorkBuddy ้›†ๆˆๅŽŸ็† + ๅทฅไฝœๆต็จ‹ + ๅฎ‰ๅ…จๆฃ€ๆŸฅ |
165
+ | [CHANGELOG](CHANGELOG.md) | ๐Ÿ‡จ๐Ÿ‡ณ | Version history (v1.0.0 โ†’ v4.0.0) |
166
+ | [README.md](README.md) | ๐Ÿ‡จ๐Ÿ‡ณ | ไธญๆ–‡้กน็›ฎๆฆ‚่ฟฐ |
329
167
 
330
168
  ---
331
169
 
332
170
  ## FAQ
333
171
 
334
- ### Q: Command not found after installation?
335
-
336
- A: Ensure npm global bin directory is in PATH:
337
-
338
- ```bash
339
- # Check global installation path
340
- npm bin -g
341
-
342
- # Add to PATH (macOS/Linux)
343
- export PATH="$(npm bin -g):$PATH"
344
- ```
345
-
346
- ### Q: How to update to latest version?
347
-
348
- ```bash
349
- npm update -g speccore
350
- ```
351
-
352
- ### Q: How to uninstall?
353
-
354
- ```bash
355
- npm uninstall -g speccore
356
- ```
172
+ | Q | A |
173
+ | :--- | :--- |
174
+ | **Command not found?** | Add npm bin to PATH: `export PATH="$(npm bin -g):$PATH"` |
175
+ | **How to update?** | `npm update -g speccore` |
176
+ | **Same feature on Web+H5+MiniApp?** | `speccore new-task --platforms=web,h5,miniapp` |
177
+ | **Add new platform?** | `speccore platform-add --name=tablet --tech="React Native"` |
178
+ | **Rename iteration/task?** | `speccore rename --target=old --new-name=new` |
179
+ | **Batch rename?** | `speccore rename --batch --pattern="Task-" --replacement="Feature-"` |
180
+ | **Rebuild requirement index?** | `speccore index-update` (--dry-run to preview) |
357
181
 
358
- ### Q: How to integrate with AI tools?
182
+ ---
359
183
 
360
- A: AI tools (like WorkBuddy) execute deterministic operations by calling CLI commands. For example:
184
+ ## Development
361
185
 
362
186
  ```bash
363
- # When AI executes /spec-validate, it internally calls:
364
- speccore validate --json
365
-
366
- # AI reads JSON results and generates user-friendly reports
187
+ git clone https://github.com/windfallsheng/SpecCore-ts.git
188
+ cd SpecCore-ts/ts-cli
189
+ npm install && npm run build
190
+ npm run watch # Dev mode
191
+ npm link && speccore --version # Local test
192
+ bash verify.sh # Run tests
367
193
  ```
368
194
 
369
195
  ---
370
196
 
371
- ## Contributing
372
-
373
- Welcome to submit Issues and Pull Requests!
197
+ ## Related Projects
374
198
 
375
- 1. Fork this repository
376
- 2. Create feature branch: `git checkout -b feature/my-feature`
377
- 3. Commit changes: `git commit -m 'feat: add some feature'`
378
- 4. Push branch: `git push origin feature/my-feature`
379
- 5. Create Pull Request
199
+ | Project | Description | Link |
200
+ | :--- | :--- | :--- |
201
+ | **SpecCore Framework** | Spec-driven methodology + Slash Commands + templates | [GitHub](https://github.com/windfallsheng/SpecCore) |
202
+ | **SpecCore CLI** | TypeScript CLI tool (deterministic execution engine) | [GitHub](https://github.com/windfallsheng/SpecCore-ts) |
380
203
 
381
204
  ---
382
205
 
383
- ## Changelog
206
+ ## Version
384
207
 
385
- ### v1.0.0 (2026-07-05)
208
+ v4.0.0 | ๐Ÿ”ง CLI Commands: 39 | ๐Ÿง  Intents: 31
386
209
 
387
- - Initial release
388
- - Supports 14 CLI commands
389
- - Core engine: context management, state management, YAML parsing, template rendering, compliance checking
390
- - Built-in templates: Spring Boot Controller/Service/Test, NestJS Controller
391
- - Support JSON/Markdown/HTML multi-format output
210
+ Changelog: [CHANGELOG.md](CHANGELOG.md)
392
211
 
393
212
  ---
394
213
 
@@ -398,4 +217,4 @@ Welcome to submit Issues and Pull Requests!
398
217
 
399
218
  ---
400
219
 
401
- <p align="center">Built with โค๏ธ by the SpecCore Team</p>
220
+ <p align="center">Built with โค๏ธ by the SpecCore Team</p>