@clawplays/ospec-cli 0.2.0 → 0.3.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/README.ja.md +290 -0
- package/README.md +70 -12
- package/README.zh-CN.md +70 -12
- package/dist/cli.js +1 -1
- package/package.json +1 -1
package/README.ja.md
ADDED
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
<h1><a href="https://ospec.ai/" target="_blank" rel="noopener noreferrer">OSpec</a></h1>
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<a href="https://www.npmjs.com/package/@clawplays/ospec-cli"><img src="https://img.shields.io/npm/v/%40clawplays%2Fospec-cli?style=for-the-badge&logo=npm&label=npm" alt="npm"></a>
|
|
5
|
+
<a href="https://www.npmjs.com/package/@clawplays/ospec-cli"><img src="https://img.shields.io/npm/dm/%40clawplays%2Fospec-cli?style=for-the-badge&logo=npm&label=downloads&cacheSeconds=300" alt="npm downloads"></a>
|
|
6
|
+
<a href="https://github.com/clawplays/ospec/stargazers"><img src="https://img.shields.io/github/stars/clawplays/ospec?style=for-the-badge&logo=github" alt="GitHub stars"></a>
|
|
7
|
+
<a href="LICENSE"><img src="https://img.shields.io/github/license/clawplays/ospec?style=for-the-badge&color=green" alt="License"></a>
|
|
8
|
+
</p>
|
|
9
|
+
|
|
10
|
+
<p align="center">
|
|
11
|
+
<img src="https://img.shields.io/badge/Node.js-18%2B-339933?style=flat-square&logo=node.js&logoColor=white" alt="Node.js 18+">
|
|
12
|
+
<img src="https://img.shields.io/badge/npm-8%2B-CB3837?style=flat-square&logo=npm&logoColor=white" alt="npm 8+">
|
|
13
|
+
<img src="https://img.shields.io/badge/language-TypeScript-3178C6?style=flat-square&logo=typescript&logoColor=white" alt="TypeScript">
|
|
14
|
+
<img src="https://img.shields.io/badge/workflow-3_steps-0F766E?style=flat-square" alt="3-step workflow">
|
|
15
|
+
</p>
|
|
16
|
+
|
|
17
|
+
<p align="center">
|
|
18
|
+
<a href="README.md">English</a> |
|
|
19
|
+
<a href="README.zh-CN.md">中文</a> |
|
|
20
|
+
<strong>日本語</strong>
|
|
21
|
+
</p>
|
|
22
|
+
|
|
23
|
+
OSpec は AI 対話コラボレーション向けのドキュメント駆動開発ワークフローです。最初にドキュメントで要件と変更を明確にし、その後 AI との協調で実装、検証、アーカイブを進めます。
|
|
24
|
+
|
|
25
|
+
<p align="center">
|
|
26
|
+
<a href="docs/README.ja.md">ドキュメント</a> |
|
|
27
|
+
<a href="docs/prompt-guide.ja.md">プロンプトガイド</a> |
|
|
28
|
+
<a href="docs/usage.md">使い方</a> |
|
|
29
|
+
<a href="docs/project-overview.md">概要</a> |
|
|
30
|
+
<a href="docs/installation.md">インストール</a> |
|
|
31
|
+
<a href="https://github.com/clawplays/ospec/issues">Issues</a>
|
|
32
|
+
</p>
|
|
33
|
+
|
|
34
|
+
## npm でインストール
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
npm install -g @clawplays/ospec-cli
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## 推奨プロンプト
|
|
41
|
+
|
|
42
|
+
OSpec の利用は、ほとんどの場合この 3 ステップで十分です。
|
|
43
|
+
|
|
44
|
+
1. プロジェクトディレクトリで OSpec を初期化する
|
|
45
|
+
2. 要件、ドキュメント更新、バグ修正のための change を作成して進める
|
|
46
|
+
3. 受け入れ完了後にその change をアーカイブする
|
|
47
|
+
|
|
48
|
+
### 1. プロジェクトディレクトリで初期化する
|
|
49
|
+
|
|
50
|
+
推奨プロンプト:
|
|
51
|
+
|
|
52
|
+
```text
|
|
53
|
+
OSpec を使ってこのプロジェクトを初期化してください。
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Claude / Codex skill:
|
|
57
|
+
|
|
58
|
+
```text
|
|
59
|
+
$ospec を使ってこのプロジェクトを初期化してください。
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
<details>
|
|
63
|
+
<summary>コマンドライン</summary>
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
ospec init .
|
|
67
|
+
ospec init . --summary "Internal admin portal for operations"
|
|
68
|
+
ospec init . --summary "Internal admin portal for operations" --tech-stack node,react,postgres
|
|
69
|
+
ospec init . --architecture "Single web app with API and shared auth" --document-language ja-JP
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
メモ:
|
|
73
|
+
|
|
74
|
+
- `--summary`: 生成ドキュメントに書き込むプロジェクト概要
|
|
75
|
+
- `--tech-stack`: `node,react,postgres` のようなカンマ区切りの技術スタック
|
|
76
|
+
- `--architecture`: 短いアーキテクチャ説明
|
|
77
|
+
- `--document-language`: 生成ドキュメントの言語。通常は `en-US`、`zh-CN`、`ja-JP`
|
|
78
|
+
- 値を渡した場合はその内容を使ってドキュメントを生成します
|
|
79
|
+
- 値を渡さない場合は既存ドキュメントを優先利用し、無ければ補完用のプレースホルダを生成します
|
|
80
|
+
|
|
81
|
+
</details>
|
|
82
|
+
|
|
83
|
+
### 2. Change を作成して進める
|
|
84
|
+
|
|
85
|
+
要件実装、ドキュメント更新、リファクタ、バグ修正はこの流れを使います。
|
|
86
|
+
|
|
87
|
+
推奨プロンプト:
|
|
88
|
+
|
|
89
|
+
```text
|
|
90
|
+
OSpec を使ってこの要件の change を作成して進めてください。
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Claude / Codex skill:
|
|
94
|
+
|
|
95
|
+
```text
|
|
96
|
+
$ospec-change を使ってこの要件の change を作成して進めてください。
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+

|
|
100
|
+
|
|
101
|
+
<details>
|
|
102
|
+
<summary>コマンドライン</summary>
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
ospec new docs-homepage-refresh .
|
|
106
|
+
ospec new fix-login-timeout .
|
|
107
|
+
ospec new update-billing-copy .
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
</details>
|
|
111
|
+
|
|
112
|
+
### 3. 受け入れ完了後にアーカイブする
|
|
113
|
+
|
|
114
|
+
デプロイ、テスト、QA、またはその他の受け入れ確認が終わった後に、確認済みの change をアーカイブします。
|
|
115
|
+
|
|
116
|
+
推奨プロンプト:
|
|
117
|
+
|
|
118
|
+
```text
|
|
119
|
+
OSpec を使って承認済みの change をアーカイブしてください。
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Claude / Codex skill:
|
|
123
|
+
|
|
124
|
+
```text
|
|
125
|
+
$ospec を使って承認済みの change をアーカイブしてください。
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
<details>
|
|
129
|
+
<summary>コマンドライン</summary>
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
ospec verify changes/active/<change-name>
|
|
133
|
+
ospec finalize changes/active/<change-name>
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
メモ:
|
|
137
|
+
|
|
138
|
+
- 先にプロジェクト固有のデプロイ、テスト、QA を実行します
|
|
139
|
+
- `ospec verify` で change がアーカイブ可能か確認します
|
|
140
|
+
- `ospec finalize` でインデックスを再構築し、change をアーカイブします
|
|
141
|
+
|
|
142
|
+
</details>
|
|
143
|
+
|
|
144
|
+
## OSpec の動作イメージ
|
|
145
|
+
|
|
146
|
+
```text
|
|
147
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
148
|
+
│ 1. USER REQUEST │
|
|
149
|
+
│ "Use OSpec to create and advance a change for this task." │
|
|
150
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
151
|
+
│
|
|
152
|
+
▼
|
|
153
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
154
|
+
│ 2. INIT TO CHANGE-READY │
|
|
155
|
+
│ ospec init │
|
|
156
|
+
│ - .skillrc │
|
|
157
|
+
│ - .ospec/ │
|
|
158
|
+
│ - changes/active + changes/archived │
|
|
159
|
+
│ - root SKILL files and for-ai guidance │
|
|
160
|
+
│ - docs/project/* baseline knowledge docs │
|
|
161
|
+
│ - reuse docs or fall back to placeholders │
|
|
162
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
163
|
+
│
|
|
164
|
+
▼
|
|
165
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
166
|
+
│ 3. EXECUTION │
|
|
167
|
+
│ ospec new <change-name> │
|
|
168
|
+
│ ospec progress │
|
|
169
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
170
|
+
│
|
|
171
|
+
▼
|
|
172
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
173
|
+
│ 4. DEPLOY + VALIDATE │
|
|
174
|
+
│ project deploy / test / QA │
|
|
175
|
+
│ ospec verify │
|
|
176
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
177
|
+
│
|
|
178
|
+
▼
|
|
179
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
180
|
+
│ 5. ARCHIVE │
|
|
181
|
+
│ ospec finalize │
|
|
182
|
+
│ rebuild index + archive │
|
|
183
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
## 3 つの主要概念
|
|
187
|
+
|
|
188
|
+
| 概念 | 説明 |
|
|
189
|
+
|------|------|
|
|
190
|
+
| **Protocol Shell** | `.skillrc`、`.ospec/`、`changes/`、ルートの `SKILL.md`、`SKILL.index.json`、`for-ai/` を含む最小の協調骨格 |
|
|
191
|
+
| **Project Knowledge Layer** | `docs/project/*`、レイヤード skill ファイル、index 状態など AI が継続的に参照するコンテキスト |
|
|
192
|
+
| **Active Change** | 1 つの要件専用の実行コンテナ。通常 `proposal.md`、`tasks.md`、`state.json`、`verification.md`、`review.md` を持つ |
|
|
193
|
+
|
|
194
|
+
## 主な機能
|
|
195
|
+
|
|
196
|
+
- **change-ready 初期化**: `ospec init` が protocol shell と基礎ドキュメントを一度に生成
|
|
197
|
+
- **ガイド付き初期化**: AI 支援時は不足している概要や技術スタックを 1 回だけ確認可能
|
|
198
|
+
- **ドキュメント保守**: `ospec docs generate` で後から知識レイヤを更新・修復
|
|
199
|
+
- **change 実行の追跡**: proposal、tasks、state、verification、review を継続的に揃える
|
|
200
|
+
- **キュー支援**: `queue` と `run` で複数 change の明示的な実行を管理
|
|
201
|
+
- **プラグインゲート**: Stitch のデザインレビューと Checkpoint の自動化チェックをサポート
|
|
202
|
+
- **標準クローズアウト**: `finalize` が検証、インデックス再構築、アーカイブを行う
|
|
203
|
+
|
|
204
|
+
## プラグイン機能
|
|
205
|
+
|
|
206
|
+
OSpec には、文書駆動ワークフローに UI レビューとフロー検証を追加する 2 つのオプションプラグインがあります。
|
|
207
|
+
|
|
208
|
+
### Stitch
|
|
209
|
+
|
|
210
|
+
Stitch はページデザインレビューとプレビュー共有に使います。ランディングページや UI 変更が多い change に向いています。
|
|
211
|
+
|
|
212
|
+
AI 対話:
|
|
213
|
+
|
|
214
|
+
```text
|
|
215
|
+
OSpec を使って Stitch プラグインを有効にしてください。
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
Claude / Codex skill:
|
|
219
|
+
|
|
220
|
+
```text
|
|
221
|
+
$ospec を使って Stitch プラグインを有効にしてください。
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
<details>
|
|
225
|
+
<summary>コマンドライン</summary>
|
|
226
|
+
|
|
227
|
+
```bash
|
|
228
|
+
ospec plugins enable stitch .
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
</details>
|
|
232
|
+
|
|
233
|
+
### Checkpoint
|
|
234
|
+
|
|
235
|
+
Checkpoint は画面フロー検証と自動チェックに使います。重要フローや受け入れ前のランタイム検証に向いています。
|
|
236
|
+
|
|
237
|
+
AI 対話:
|
|
238
|
+
|
|
239
|
+
```text
|
|
240
|
+
OSpec を使って Checkpoint プラグインを有効にしてください。
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
Claude / Codex skill:
|
|
244
|
+
|
|
245
|
+
```text
|
|
246
|
+
$ospec を使って Checkpoint プラグインを有効にしてください。
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
<details>
|
|
250
|
+
<summary>コマンドライン</summary>
|
|
251
|
+
|
|
252
|
+
```bash
|
|
253
|
+
ospec plugins enable checkpoint . --base-url http://127.0.0.1:3000
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
メモ:
|
|
257
|
+
|
|
258
|
+
- `--base-url` は自動チェック対象となる起動中アプリの URL を指定します
|
|
259
|
+
|
|
260
|
+
</details>
|
|
261
|
+
|
|
262
|
+
## ドキュメント
|
|
263
|
+
|
|
264
|
+
### コアドキュメント
|
|
265
|
+
|
|
266
|
+
- [Docs Index](docs/README.ja.md)
|
|
267
|
+
- [Prompt Guide](docs/prompt-guide.ja.md)
|
|
268
|
+
- [Usage](docs/usage.md)
|
|
269
|
+
- [Project Overview](docs/project-overview.md)
|
|
270
|
+
- [Installation](docs/installation.md)
|
|
271
|
+
- [Skills Installation](docs/skills-installation.md)
|
|
272
|
+
|
|
273
|
+
### プラグイン仕様
|
|
274
|
+
|
|
275
|
+
- [Stitch Plugin Spec](docs/stitch-plugin-spec.zh-CN.md)
|
|
276
|
+
- [Checkpoint Plugin Spec](docs/checkpoint-plugin-spec.zh-CN.md)
|
|
277
|
+
|
|
278
|
+
## リポジトリ構成
|
|
279
|
+
|
|
280
|
+
```text
|
|
281
|
+
dist/ コンパイル済み CLI ランタイム
|
|
282
|
+
assets/ 管理対象プロトコル資産、hooks、skill payload
|
|
283
|
+
docs/ 公開ドキュメント
|
|
284
|
+
scripts/ リリースとインストール補助スクリプト
|
|
285
|
+
.ospec/templates/hooks/ パッケージ同梱の Git hook テンプレート
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
## License
|
|
289
|
+
|
|
290
|
+
This project is licensed under the [MIT License](LICENSE).
|
package/README.md
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
<h1><a href="https://ospec.ai/" target="_blank" rel="noopener noreferrer">OSpec</a></h1>
|
|
2
2
|
|
|
3
|
-
[简体中文](README.zh-CN.md)
|
|
4
|
-
|
|
5
3
|
<p align="center">
|
|
6
4
|
<a href="https://www.npmjs.com/package/@clawplays/ospec-cli"><img src="https://img.shields.io/npm/v/%40clawplays%2Fospec-cli?style=for-the-badge&logo=npm&label=npm" alt="npm"></a>
|
|
7
|
-
<a href="https://www.npmjs.com/package/@clawplays/ospec-cli"><img src="https://img.shields.io/npm/dm/%40clawplays%2Fospec-cli?style=for-the-badge&logo=npm&label=downloads" alt="npm downloads"></a>
|
|
5
|
+
<a href="https://www.npmjs.com/package/@clawplays/ospec-cli"><img src="https://img.shields.io/npm/dm/%40clawplays%2Fospec-cli?style=for-the-badge&logo=npm&label=downloads&cacheSeconds=300" alt="npm downloads"></a>
|
|
8
6
|
<a href="https://github.com/clawplays/ospec/stargazers"><img src="https://img.shields.io/github/stars/clawplays/ospec?style=for-the-badge&logo=github" alt="GitHub stars"></a>
|
|
9
7
|
<a href="LICENSE"><img src="https://img.shields.io/github/license/clawplays/ospec?style=for-the-badge&color=green" alt="License"></a>
|
|
10
8
|
</p>
|
|
@@ -16,7 +14,13 @@
|
|
|
16
14
|
<img src="https://img.shields.io/badge/workflow-3_steps-0F766E?style=flat-square" alt="3-step workflow">
|
|
17
15
|
</p>
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
<p align="center">
|
|
18
|
+
<strong>English</strong> |
|
|
19
|
+
<a href="README.zh-CN.md">中文</a> |
|
|
20
|
+
<a href="README.ja.md">日本語</a>
|
|
21
|
+
</p>
|
|
22
|
+
|
|
23
|
+
OSpec is a document-driven workflow for AI-assisted development, helping you define requirements and changes in docs first, then drive implementation, validation, and archive through AI collaboration.
|
|
20
24
|
|
|
21
25
|
<p align="center">
|
|
22
26
|
<a href="docs/README.md">Docs</a> |
|
|
@@ -37,11 +41,11 @@ npm install -g @clawplays/ospec-cli
|
|
|
37
41
|
|
|
38
42
|
Most teams only need 3 steps to use OSpec:
|
|
39
43
|
|
|
40
|
-
1. initialize
|
|
44
|
+
1. initialize OSpec in your project directory
|
|
41
45
|
2. create and advance one change for a requirement, document update, or bug fix
|
|
42
46
|
3. archive the accepted change after deployment and validation are complete
|
|
43
47
|
|
|
44
|
-
### 1. Initialize
|
|
48
|
+
### 1. Initialize OSpec In Your Project Directory
|
|
45
49
|
|
|
46
50
|
Recommended prompt:
|
|
47
51
|
|
|
@@ -92,7 +96,7 @@ Claude / Codex skill mode:
|
|
|
92
96
|
Use $ospec-change to create and advance a change for this requirement.
|
|
93
97
|
```
|
|
94
98
|
|
|
95
|
-

|
|
99
|
+

|
|
96
100
|
|
|
97
101
|
<details>
|
|
98
102
|
<summary>Command line</summary>
|
|
@@ -198,6 +202,64 @@ Archive notes:
|
|
|
198
202
|
- **Skill management**: install and inspect OSpec skills for Codex and Claude Code.
|
|
199
203
|
- **Standard closeout**: `finalize` verifies, rebuilds indexes, and archives the change before manual Git commit.
|
|
200
204
|
|
|
205
|
+
## Plugin Features
|
|
206
|
+
|
|
207
|
+
OSpec includes two optional plugins that extend the document-driven workflow with UI review and flow validation.
|
|
208
|
+
|
|
209
|
+
### Stitch
|
|
210
|
+
|
|
211
|
+
Use Stitch for page design review and preview collaboration, especially for landing pages, marketing pages, and UI-heavy changes.
|
|
212
|
+
|
|
213
|
+
AI conversation:
|
|
214
|
+
|
|
215
|
+
```text
|
|
216
|
+
Use OSpec to enable the Stitch plugin.
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
Claude / Codex skill mode:
|
|
220
|
+
|
|
221
|
+
```text
|
|
222
|
+
Use $ospec to enable the Stitch plugin.
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
<details>
|
|
226
|
+
<summary>Command line</summary>
|
|
227
|
+
|
|
228
|
+
```bash
|
|
229
|
+
ospec plugins enable stitch .
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
</details>
|
|
233
|
+
|
|
234
|
+
### Checkpoint
|
|
235
|
+
|
|
236
|
+
Use Checkpoint for app flow validation and automated checks, especially for submission flows, critical paths, and pre-acceptance runtime verification.
|
|
237
|
+
|
|
238
|
+
AI conversation:
|
|
239
|
+
|
|
240
|
+
```text
|
|
241
|
+
Use OSpec to enable the Checkpoint plugin.
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
Claude / Codex skill mode:
|
|
245
|
+
|
|
246
|
+
```text
|
|
247
|
+
Use $ospec to enable the Checkpoint plugin.
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
<details>
|
|
251
|
+
<summary>Command line</summary>
|
|
252
|
+
|
|
253
|
+
```bash
|
|
254
|
+
ospec plugins enable checkpoint . --base-url http://127.0.0.1:3000
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
Notes:
|
|
258
|
+
|
|
259
|
+
- `--base-url` points to the running app used by automated checks
|
|
260
|
+
|
|
261
|
+
</details>
|
|
262
|
+
|
|
201
263
|
## Documentation
|
|
202
264
|
|
|
203
265
|
### Core Docs
|
|
@@ -208,15 +270,11 @@ Archive notes:
|
|
|
208
270
|
- [Project Overview](docs/project-overview.md)
|
|
209
271
|
- [Installation](docs/installation.md)
|
|
210
272
|
- [Skills Installation](docs/skills-installation.md)
|
|
211
|
-
- [GitLab Custom Fork Sync](docs/custom-fork-sync.md)
|
|
212
|
-
- [Upstream Brand Protection](docs/upstream-brand-protection.md)
|
|
213
273
|
|
|
214
|
-
###
|
|
274
|
+
### Plugin Specs
|
|
215
275
|
|
|
216
276
|
- [Stitch Plugin Spec](docs/stitch-plugin-spec.zh-CN.md)
|
|
217
|
-
- [Stitch Plugin Roadmap](docs/stitch-plugin-roadmap.zh-CN.md)
|
|
218
277
|
- [Checkpoint Plugin Spec](docs/checkpoint-plugin-spec.zh-CN.md)
|
|
219
|
-
- [Current Vibe Coding Spec Flow](docs/current-vibe-coding-spec-flow.zh-CN.md)
|
|
220
278
|
|
|
221
279
|
## Repository Structure
|
|
222
280
|
|
package/README.zh-CN.md
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
<h1><a href="https://ospec.ai/" target="_blank" rel="noopener noreferrer">OSpec</a></h1>
|
|
2
2
|
|
|
3
|
-
[English](README.md)
|
|
4
|
-
|
|
5
3
|
<p align="center">
|
|
6
4
|
<a href="https://www.npmjs.com/package/@clawplays/ospec-cli"><img src="https://img.shields.io/npm/v/%40clawplays%2Fospec-cli?style=for-the-badge&logo=npm&label=npm" alt="npm"></a>
|
|
7
|
-
<a href="https://www.npmjs.com/package/@clawplays/ospec-cli"><img src="https://img.shields.io/npm/dm/%40clawplays%2Fospec-cli?style=for-the-badge&logo=npm&label=downloads" alt="npm downloads"></a>
|
|
5
|
+
<a href="https://www.npmjs.com/package/@clawplays/ospec-cli"><img src="https://img.shields.io/npm/dm/%40clawplays%2Fospec-cli?style=for-the-badge&logo=npm&label=downloads&cacheSeconds=300" alt="npm downloads"></a>
|
|
8
6
|
<a href="https://github.com/clawplays/ospec/stargazers"><img src="https://img.shields.io/github/stars/clawplays/ospec?style=for-the-badge&logo=github" alt="GitHub stars"></a>
|
|
9
7
|
<a href="LICENSE"><img src="https://img.shields.io/github/license/clawplays/ospec?style=for-the-badge&color=green" alt="License"></a>
|
|
10
8
|
</p>
|
|
@@ -16,7 +14,13 @@
|
|
|
16
14
|
<img src="https://img.shields.io/badge/workflow-3_steps-0F766E?style=flat-square" alt="3-step workflow">
|
|
17
15
|
</p>
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
<p align="center">
|
|
18
|
+
<a href="README.md">English</a> |
|
|
19
|
+
<strong>中文</strong> |
|
|
20
|
+
<a href="README.ja.md">日本語</a>
|
|
21
|
+
</p>
|
|
22
|
+
|
|
23
|
+
OSpec 是一个面向 AI 对话协作的文档驱动开发工作流,让你先用文档明确需求与变更,再驱动 AI 实现、验证与归档。
|
|
20
24
|
|
|
21
25
|
<p align="center">
|
|
22
26
|
<a href="docs/README.zh-CN.md">文档入口</a> |
|
|
@@ -37,11 +41,11 @@ npm install -g @clawplays/ospec-cli
|
|
|
37
41
|
|
|
38
42
|
大多数团队使用 OSpec,只要 3 步:
|
|
39
43
|
|
|
40
|
-
1.
|
|
44
|
+
1. 在你的项目目录初始化项目
|
|
41
45
|
2. 为文档更新、需求开发或 Bug 修复创建并推进一个 change
|
|
42
46
|
3. 在需求验收通过后归档这个 change
|
|
43
47
|
|
|
44
|
-
### 1.
|
|
48
|
+
### 1. 在你的项目目录初始化项目
|
|
45
49
|
|
|
46
50
|
推荐提示词:
|
|
47
51
|
|
|
@@ -92,7 +96,7 @@ Claude / Codex Skill 方式:
|
|
|
92
96
|
使用 $ospec-change 为这个需求创建并推进一个 change。
|
|
93
97
|
```
|
|
94
98
|
|
|
95
|
-

|
|
99
|
+

|
|
96
100
|
|
|
97
101
|
<details>
|
|
98
102
|
<summary>命令行</summary>
|
|
@@ -198,6 +202,64 @@ ospec finalize changes/active/<change-name>
|
|
|
198
202
|
- **skills 管理**:支持 Codex 和 Claude Code 的 OSpec skill 安装与检查。
|
|
199
203
|
- **标准收口路径**:`finalize` 负责验证、重建索引和归档,Git 提交仍保持手动可控。
|
|
200
204
|
|
|
205
|
+
## 插件功能
|
|
206
|
+
|
|
207
|
+
OSpec 内置两个可选插件,用来把 UI 审核和流程验证接入到文档驱动交付流程中。
|
|
208
|
+
|
|
209
|
+
### Stitch
|
|
210
|
+
|
|
211
|
+
用于页面设计审核与预览协作,适合落地页、营销页和 UI 变化较多的需求。
|
|
212
|
+
|
|
213
|
+
AI 对话方式:
|
|
214
|
+
|
|
215
|
+
```text
|
|
216
|
+
使用 OSpec 帮我打开 Stitch 插件。
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
Claude / Codex Skill 方式:
|
|
220
|
+
|
|
221
|
+
```text
|
|
222
|
+
使用 $ospec 帮我打开 Stitch 插件。
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
<details>
|
|
226
|
+
<summary>命令行</summary>
|
|
227
|
+
|
|
228
|
+
```bash
|
|
229
|
+
ospec plugins enable stitch .
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
</details>
|
|
233
|
+
|
|
234
|
+
### Checkpoint
|
|
235
|
+
|
|
236
|
+
用于应用流程验证与自动化检查,适合提交流程、关键路径和验收前的运行验证。
|
|
237
|
+
|
|
238
|
+
AI 对话方式:
|
|
239
|
+
|
|
240
|
+
```text
|
|
241
|
+
使用 OSpec 帮我打开 Checkpoint 插件。
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
Claude / Codex Skill 方式:
|
|
245
|
+
|
|
246
|
+
```text
|
|
247
|
+
使用 $ospec 帮我打开 Checkpoint 插件。
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
<details>
|
|
251
|
+
<summary>命令行</summary>
|
|
252
|
+
|
|
253
|
+
```bash
|
|
254
|
+
ospec plugins enable checkpoint . --base-url http://127.0.0.1:3000
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
说明:
|
|
258
|
+
|
|
259
|
+
- `--base-url` 用来指定运行中的应用地址,供自动化检查使用
|
|
260
|
+
|
|
261
|
+
</details>
|
|
262
|
+
|
|
201
263
|
## 文档入口
|
|
202
264
|
|
|
203
265
|
### 核心文档
|
|
@@ -208,15 +270,11 @@ ospec finalize changes/active/<change-name>
|
|
|
208
270
|
- [项目介绍](docs/project-overview.zh-CN.md)
|
|
209
271
|
- [安装说明](docs/installation.zh-CN.md)
|
|
210
272
|
- [Skills 安装说明](docs/skills-installation.zh-CN.md)
|
|
211
|
-
- [GitLab 自定义 Fork 同步方案](docs/custom-fork-sync.zh-CN.md)
|
|
212
|
-
- [上游品牌保护说明](docs/upstream-brand-protection.zh-CN.md)
|
|
213
273
|
|
|
214
|
-
###
|
|
274
|
+
### 插件高级说明
|
|
215
275
|
|
|
216
276
|
- [Stitch 插件规范](docs/stitch-plugin-spec.zh-CN.md)
|
|
217
|
-
- [Stitch 插件路线图](docs/stitch-plugin-roadmap.zh-CN.md)
|
|
218
277
|
- [Checkpoint 插件规范](docs/checkpoint-plugin-spec.zh-CN.md)
|
|
219
|
-
- [当前 Vibe Coding Spec Flow](docs/current-vibe-coding-spec-flow.zh-CN.md)
|
|
220
278
|
|
|
221
279
|
## 仓库结构
|
|
222
280
|
|
package/dist/cli.js
CHANGED
|
@@ -224,7 +224,7 @@ const services_1 = require("./services");
|
|
|
224
224
|
|
|
225
225
|
|
|
226
226
|
|
|
227
|
-
const CLI_VERSION = '0.
|
|
227
|
+
const CLI_VERSION = '0.3.0';
|
|
228
228
|
|
|
229
229
|
function showInitUsage() {
|
|
230
230
|
console.log('Usage: ospec init [root-dir] [--summary "..."] [--tech-stack node,react] [--architecture "..."] [--document-language zh-CN|en-US]');
|