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.
- package/README.en.md +131 -312
- package/README.md +134 -292
- package/dist/cli.js +46 -8
- package/dist/cli.js.map +1 -1
- package/dist/commands/context.d.ts +8 -0
- package/dist/commands/context.d.ts.map +1 -0
- package/dist/commands/context.js +180 -0
- package/dist/commands/context.js.map +1 -0
- package/dist/commands/execute.d.ts +1 -0
- package/dist/commands/execute.d.ts.map +1 -1
- package/dist/commands/execute.js +18 -0
- package/dist/commands/execute.js.map +1 -1
- package/dist/commands/import.d.ts +3 -0
- package/dist/commands/import.d.ts.map +1 -1
- package/dist/commands/import.js +24 -6
- package/dist/commands/import.js.map +1 -1
- package/dist/commands/index-update.d.ts +8 -0
- package/dist/commands/index-update.d.ts.map +1 -0
- package/dist/commands/index-update.js +180 -0
- package/dist/commands/index-update.js.map +1 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +40 -152
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/new-task.d.ts +15 -0
- package/dist/commands/new-task.d.ts.map +1 -0
- package/dist/commands/new-task.js +208 -0
- package/dist/commands/new-task.js.map +1 -0
- package/dist/commands/platform-add.d.ts +12 -0
- package/dist/commands/platform-add.d.ts.map +1 -0
- package/dist/commands/platform-add.js +111 -0
- package/dist/commands/platform-add.js.map +1 -0
- package/dist/commands/progress.d.ts +1 -0
- package/dist/commands/progress.d.ts.map +1 -1
- package/dist/commands/progress.js +3 -2
- package/dist/commands/progress.js.map +1 -1
- package/dist/core/intent-recognition.d.ts +3 -3
- package/dist/core/intent-recognition.d.ts.map +1 -1
- package/dist/core/intent-recognition.js +41 -2
- package/dist/core/intent-recognition.js.map +1 -1
- 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
|
[](https://opensource.org/licenses/MIT)
|
|
7
7
|
[](https://nodejs.org/)
|
|
8
8
|
|
|
9
|
-
SpecCore is the official command-line tool for the [SpecCore](https://github.com/
|
|
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
|
-
##
|
|
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
|
-
|
|
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
|
-
|
|
75
|
-
- **Operating System**: macOS / Linux / Windows
|
|
27
|
+
> ๐ก **Remember**: `speccore` prefix โ Terminal; `/spec` prefix โ AI tool.
|
|
76
28
|
|
|
77
29
|
---
|
|
78
30
|
|
|
79
|
-
##
|
|
31
|
+
## ๐ฆ Install
|
|
80
32
|
|
|
81
33
|
```bash
|
|
82
|
-
# Global
|
|
83
|
-
|
|
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
|
-
#
|
|
100
|
-
cd my-project
|
|
43
|
+
# 1. Initialize
|
|
44
|
+
cd my-project && speccore init
|
|
101
45
|
|
|
102
|
-
#
|
|
103
|
-
speccore
|
|
46
|
+
# 2. Import to global layer
|
|
47
|
+
speccore import --project=user-service --path=./backend --type=backend
|
|
104
48
|
|
|
105
|
-
#
|
|
106
|
-
speccore
|
|
107
|
-
```
|
|
49
|
+
# 3. Create iteration
|
|
50
|
+
speccore iteration create --name 2026-07-UserSystem
|
|
108
51
|
|
|
109
|
-
|
|
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
|
-
|
|
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
|
-
|
|
61
|
+
---
|
|
146
62
|
|
|
147
|
-
|
|
148
|
-
# View overall progress
|
|
149
|
-
speccore progress
|
|
63
|
+
## Feature Highlights
|
|
150
64
|
|
|
151
|
-
|
|
152
|
-
|
|
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
|
-
|
|
155
|
-
speccore progress --detail
|
|
156
|
-
```
|
|
73
|
+
---
|
|
157
74
|
|
|
158
|
-
|
|
75
|
+
## Design Philosophy
|
|
159
76
|
|
|
160
|
-
|
|
161
|
-
# Validate all tasks
|
|
162
|
-
speccore validate
|
|
77
|
+
SpecCore decouples **deterministic logic from intelligent logic**:
|
|
163
78
|
|
|
164
|
-
|
|
165
|
-
|
|
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
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
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
|
-
##
|
|
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
|
-
|
|
236
|
-
|
|
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
|
-
##
|
|
129
|
+
## ๐๏ธ Architecture
|
|
241
130
|
|
|
242
131
|
```
|
|
243
|
-
speccore/
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
โโโ
|
|
248
|
-
|
|
249
|
-
|
|
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
|
-
##
|
|
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
|
-
|
|
308
|
-
|
|
145
|
+
| CN | Global |
|
|
146
|
+
| :--- | :--- |
|
|
147
|
+
| WorkBuddy / Qcoder / Trae | Cursor / Claude Code / Windsurf / Gemini CLI / OpenCode |
|
|
309
148
|
|
|
310
|
-
|
|
311
|
-
npm run watch
|
|
149
|
+
SpecCore CLI natively integrates WorkBuddy. Other tools supported via the SpecCore framework.
|
|
312
150
|
|
|
313
|
-
|
|
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
|
-
##
|
|
155
|
+
## ๐ Documentation
|
|
324
156
|
|
|
325
|
-
|
|
|
326
|
-
| :--- | :--- | :--- |
|
|
327
|
-
|
|
|
328
|
-
|
|
|
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
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
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
|
-
|
|
182
|
+
---
|
|
359
183
|
|
|
360
|
-
|
|
184
|
+
## Development
|
|
361
185
|
|
|
362
186
|
```bash
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
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
|
-
##
|
|
372
|
-
|
|
373
|
-
Welcome to submit Issues and Pull Requests!
|
|
197
|
+
## Related Projects
|
|
374
198
|
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
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
|
-
##
|
|
206
|
+
## Version
|
|
384
207
|
|
|
385
|
-
|
|
208
|
+
v4.0.0 | ๐ง CLI Commands: 39 | ๐ง Intents: 31
|
|
386
209
|
|
|
387
|
-
|
|
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>
|