ccg-workflow 1.7.52 → 1.7.54
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.md +16 -14
- package/dist/cli.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/shared/{ccg-workflow.BqEmGd17.mjs → ccg-workflow.Dkg0yRxv.mjs} +1 -1
- package/package.json +1 -1
- package/templates/commands/spec-impl.md +5 -5
- package/templates/commands/spec-init.md +12 -12
- package/templates/commands/spec-plan.md +4 -4
- package/templates/commands/spec-research.md +6 -2
- package/templates/commands/spec-review.md +5 -5
package/README.md
CHANGED
|
@@ -43,34 +43,36 @@ npx ccg-workflow
|
|
|
43
43
|
| `/ccg:worktree` | Worktree 管理 |
|
|
44
44
|
| `/ccg:init` | 初始化 CLAUDE.md |
|
|
45
45
|
| `/ccg:enhance` | Prompt 增强 |
|
|
46
|
-
| `/ccg:spec-init` | 初始化 OpenSpec 环境 |
|
|
47
|
-
| `/ccg:spec-research` | 需求 → 约束集 |
|
|
48
|
-
| `/ccg:spec-plan` | 约束 → 零决策计划 |
|
|
49
|
-
| `/ccg:spec-impl` | 按计划执行 + 归档 |
|
|
50
|
-
| `/ccg:spec-review` | 双模型交叉审查 |
|
|
51
46
|
|
|
52
|
-
|
|
47
|
+
**注意**:v1.7.52 起,`/ccg:spec-*` 命令已迁移到 OPSX 架构。请使用 `/opsx:*` 命令代替:
|
|
48
|
+
- `/opsx:init` - 初始化 OPSX 环境
|
|
49
|
+
- `/opsx:research` - 需求 → 约束集
|
|
50
|
+
- `/opsx:plan` - 约束 → 零决策计划
|
|
51
|
+
- `/opsx:impl` - 按计划执行 + 归档
|
|
52
|
+
- `/opsx:review` - 双模型交叉审查
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
### OPSX 规范驱动(v1.7.52+)
|
|
55
|
+
|
|
56
|
+
集成 [OPSX 架构](https://github.com/fission-ai/opsx),把需求变成约束,让 AI 没法自由发挥:
|
|
55
57
|
|
|
56
58
|
```bash
|
|
57
59
|
# 初始化
|
|
58
|
-
/
|
|
60
|
+
/opsx:init
|
|
59
61
|
|
|
60
62
|
# 研究需求 → 输出约束集
|
|
61
|
-
/
|
|
63
|
+
/opsx:research 实现用户认证
|
|
62
64
|
|
|
63
65
|
# 并行分析 → 零决策计划
|
|
64
|
-
/
|
|
66
|
+
/opsx:plan
|
|
65
67
|
|
|
66
68
|
# 按计划执行
|
|
67
|
-
/
|
|
69
|
+
/opsx:impl
|
|
68
70
|
|
|
69
71
|
# 独立审查(随时可用)
|
|
70
|
-
/
|
|
72
|
+
/opsx:review
|
|
71
73
|
```
|
|
72
74
|
|
|
73
|
-
|
|
75
|
+
**重要**:v1.7.52 起,旧的 `/ccg:spec-*` 命令已废弃,请使用 `/opsx:*` 命令。每阶段之间可 `/clear`,状态存在 `opsx/` 目录,不怕上下文爆。
|
|
74
76
|
|
|
75
77
|
### 规划与执行分离
|
|
76
78
|
|
|
@@ -187,4 +189,4 @@ MIT
|
|
|
187
189
|
|
|
188
190
|
---
|
|
189
191
|
|
|
190
|
-
v1.7.
|
|
192
|
+
v1.7.52 | [Issues](https://github.com/fengshao1227/ccg-workflow/issues)
|
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import cac from 'cac';
|
|
3
3
|
import ansis from 'ansis';
|
|
4
|
-
import { z as diagnoseMcpConfig, A as isWindows, B as readClaudeCodeConfig, C as fixWindowsMcpConfig, D as writeClaudeCodeConfig, r as readCcgConfig, b as initI18n, s as showMainMenu, i as init, E as configMcp, F as version, a as i18n } from './shared/ccg-workflow.
|
|
4
|
+
import { z as diagnoseMcpConfig, A as isWindows, B as readClaudeCodeConfig, C as fixWindowsMcpConfig, D as writeClaudeCodeConfig, r as readCcgConfig, b as initI18n, s as showMainMenu, i as init, E as configMcp, F as version, a as i18n } from './shared/ccg-workflow.Dkg0yRxv.mjs';
|
|
5
5
|
import 'inquirer';
|
|
6
6
|
import 'node:child_process';
|
|
7
7
|
import 'node:util';
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as changeLanguage, x as checkForUpdates, y as compareVersions, d as createDefaultConfig, e as createDefaultRouting, g as getCcgDir, f as getConfigPath, t as getCurrentVersion, v as getLatestVersion, j as getWorkflowById, h as getWorkflowConfigs, a as i18n, i as init, b as initI18n, l as installAceTool, m as installAceToolRs, k as installWorkflows, p as migrateToV1_4_0, q as needsMigration, r as readCcgConfig, s as showMainMenu, o as uninstallAceTool, n as uninstallWorkflows, u as update, w as writeCcgConfig } from './shared/ccg-workflow.
|
|
1
|
+
export { c as changeLanguage, x as checkForUpdates, y as compareVersions, d as createDefaultConfig, e as createDefaultRouting, g as getCcgDir, f as getConfigPath, t as getCurrentVersion, v as getLatestVersion, j as getWorkflowById, h as getWorkflowConfigs, a as i18n, i as init, b as initI18n, l as installAceTool, m as installAceToolRs, k as installWorkflows, p as migrateToV1_4_0, q as needsMigration, r as readCcgConfig, s as showMainMenu, o as uninstallAceTool, n as uninstallWorkflows, u as update, w as writeCcgConfig } from './shared/ccg-workflow.Dkg0yRxv.mjs';
|
|
2
2
|
import 'ansis';
|
|
3
3
|
import 'inquirer';
|
|
4
4
|
import 'node:child_process';
|
package/package.json
CHANGED
|
@@ -16,9 +16,9 @@ description: '按规范执行 + 多模型协作 + 归档'
|
|
|
16
16
|
|
|
17
17
|
**Steps**
|
|
18
18
|
1. **Select Change**
|
|
19
|
-
- Run
|
|
19
|
+
- Run `/opsx:list` to inspect Active Changes.
|
|
20
20
|
- Confirm with user which change ID to implement.
|
|
21
|
-
- Run
|
|
21
|
+
- Run `/opsx:show <change_id>` to review tasks.
|
|
22
22
|
|
|
23
23
|
2. **Apply OPSX Change**
|
|
24
24
|
- Use `/ccg:spec-impl` (which uses OpenSpec skills internally) to enter implementation mode.
|
|
@@ -109,9 +109,9 @@ description: '按规范执行 + 多模型协作 + 归档'
|
|
|
109
109
|
- This merges spec deltas to `openspec/specs/` and moves change to archive.
|
|
110
110
|
|
|
111
111
|
**Reference**
|
|
112
|
-
- Check task status:
|
|
113
|
-
- Validate before archive:
|
|
114
|
-
- View active changes:
|
|
112
|
+
- Check task status: `/opsx:show <id>`
|
|
113
|
+
- Validate before archive: `/opsx:validate <id>`
|
|
114
|
+
- View active changes: `/opsx:list`
|
|
115
115
|
- Search existing patterns: `rg -n "function|class" <file>`
|
|
116
116
|
|
|
117
117
|
**Exit Criteria**
|
|
@@ -18,26 +18,26 @@ description: '初始化 OpenSpec (OPSX) 环境 + 验证多模型 MCP 工具'
|
|
|
18
18
|
- Identify OS using `uname -s` (Unix) or environment variables (Windows).
|
|
19
19
|
- Inform user which OS was detected.
|
|
20
20
|
|
|
21
|
-
2. **Check and Install OpenSpec**
|
|
22
|
-
- Verify if
|
|
21
|
+
2. **Check and Install OpenSpec (OPSX)**
|
|
22
|
+
- Verify if OPSX commands are available: `/opsx:version`
|
|
23
23
|
- If not installed or not found:
|
|
24
24
|
```bash
|
|
25
25
|
npm install -g @fission-ai/openspec@latest
|
|
26
26
|
```
|
|
27
27
|
- **Path Verification**:
|
|
28
|
-
- If `
|
|
29
|
-
1.
|
|
30
|
-
2.
|
|
31
|
-
3.
|
|
32
|
-
- Confirm installation success by running
|
|
28
|
+
- If `/opsx:version` command is not found after installation:
|
|
29
|
+
1. Ensure Claude Code commands are properly loaded
|
|
30
|
+
2. Restart Claude Code session if needed
|
|
31
|
+
3. Check if OPSX skills are installed in `.claude/skills/`
|
|
32
|
+
- Confirm installation success by running `/opsx:version` again.
|
|
33
33
|
|
|
34
|
-
3. **Initialize
|
|
34
|
+
3. **Initialize OPSX for Current Project**
|
|
35
35
|
- Run:
|
|
36
36
|
```bash
|
|
37
|
-
|
|
37
|
+
/opsx:init --tools claude
|
|
38
38
|
```
|
|
39
39
|
- Verify `openspec/` directory structure is created.
|
|
40
|
-
- Verify `.claude/skills/` contains `
|
|
40
|
+
- Verify `.claude/skills/` contains `opsx-*` skills.
|
|
41
41
|
- Report any errors with remediation steps.
|
|
42
42
|
|
|
43
43
|
4. **Validate Multi-Model MCP Tools**
|
|
@@ -66,7 +66,7 @@ description: '初始化 OpenSpec (OPSX) 环境 + 验证多模型 MCP 工具'
|
|
|
66
66
|
```
|
|
67
67
|
Component Status
|
|
68
68
|
─────────────────────────────────
|
|
69
|
-
OpenSpec CLI
|
|
69
|
+
OpenSpec (OPSX) CLI ✓/✗
|
|
70
70
|
Project initialized ✓/✗
|
|
71
71
|
OPSX Skills ✓/✗
|
|
72
72
|
codeagent-wrapper ✓/✗
|
|
@@ -84,7 +84,7 @@ description: '初始化 OpenSpec (OPSX) 环境 + 验证多模型 MCP 工具'
|
|
|
84
84
|
- Code Review: `/ccg:spec-review` (Independent dual-model review)
|
|
85
85
|
|
|
86
86
|
**Reference**
|
|
87
|
-
- OpenSpec CLI:
|
|
87
|
+
- OpenSpec (OPSX) CLI: `/opsx:help`
|
|
88
88
|
- CCG Workflow: `npx ccg-workflow`
|
|
89
89
|
- Codex/Gemini MCP: Bundled with codeagent-wrapper
|
|
90
90
|
- Node.js >= 18.x required for OpenSpec
|
|
@@ -16,9 +16,9 @@ description: '多模型分析 → 消除歧义 → 零决策可执行计划'
|
|
|
16
16
|
|
|
17
17
|
**Steps**
|
|
18
18
|
1. **Select Change**
|
|
19
|
-
- Run
|
|
19
|
+
- Run `/opsx:list` to display Active Changes.
|
|
20
20
|
- Confirm with user which change ID to refine.
|
|
21
|
-
- Run
|
|
21
|
+
- Run `/opsx:status <change_id>` to review current state.
|
|
22
22
|
|
|
23
23
|
2. **Multi-Model Implementation Analysis (PARALLEL)**
|
|
24
24
|
- **CRITICAL**: You MUST launch BOTH Codex AND Gemini in a SINGLE message with TWO Bash tool calls.
|
|
@@ -102,8 +102,8 @@ A change is ready for implementation only when:
|
|
|
102
102
|
- [ ] User has explicitly approved all constraint decisions
|
|
103
103
|
|
|
104
104
|
**Reference**
|
|
105
|
-
- Inspect change:
|
|
106
|
-
- Check conflicts:
|
|
105
|
+
- Inspect change: `/opsx:status <id>`
|
|
106
|
+
- Check conflicts: `/opsx:schemas`
|
|
107
107
|
- Search patterns: `rg -n "INVARIANT:|PROPERTY:" openspec/`
|
|
108
108
|
- Use `AskUserQuestion` for ANY ambiguity—never assume
|
|
109
109
|
<!-- CCG:SPEC:PLAN:END -->
|
|
@@ -31,8 +31,12 @@ description: '需求 → 约束集(并行探索 + OPSX 提案)'
|
|
|
31
31
|
- Use enhanced prompt for ALL subsequent steps.
|
|
32
32
|
|
|
33
33
|
1. **Generate OPSX Change**
|
|
34
|
-
-
|
|
34
|
+
- Create a new change using OPSX command:
|
|
35
|
+
```bash
|
|
36
|
+
/opsx:new "<brief-descriptive-name>"
|
|
37
|
+
```
|
|
35
38
|
- This scaffolds `openspec/changes/<name>/` with proposal.md.
|
|
39
|
+
- If change already exists, use `/opsx:list` to find it and continue.
|
|
36
40
|
|
|
37
41
|
2. **Initial Codebase Assessment**
|
|
38
42
|
- Use `mcp__ace-tool__search_context` to scan codebase.
|
|
@@ -94,7 +98,7 @@ description: '需求 → 约束集(并行探索 + OPSX 提案)'
|
|
|
94
98
|
- If approaching 80K tokens, suggest: "Run `/clear` and continue with `/ccg:spec-plan`"
|
|
95
99
|
|
|
96
100
|
**Reference**
|
|
97
|
-
- OPSX CLI:
|
|
101
|
+
- OPSX CLI: `/opsx:status`, `/opsx:show`
|
|
98
102
|
- Check prior research: `ls openspec/changes/*/`
|
|
99
103
|
- Use `AskUserQuestion` for ANY ambiguity—never assume or guess
|
|
100
104
|
<!-- CCG:SPEC:RESEARCH:END -->
|
|
@@ -15,13 +15,13 @@ description: '双模型交叉审查(独立工具,随时可用)'
|
|
|
15
15
|
|
|
16
16
|
**Steps**
|
|
17
17
|
1. **Select Proposal**
|
|
18
|
-
- Run
|
|
18
|
+
- Run `/opsx:list` to display Active Changes.
|
|
19
19
|
- Confirm with user which proposal ID to review.
|
|
20
|
-
- Run
|
|
20
|
+
- Run `/opsx:show <proposal_id>` to load spec and tasks.
|
|
21
21
|
|
|
22
22
|
2. **Collect Implementation Artifacts**
|
|
23
23
|
- Identify all files modified by this proposal.
|
|
24
|
-
- Use `git diff` or
|
|
24
|
+
- Use `git diff` or `/opsx:diff <proposal_id>` to get change summary.
|
|
25
25
|
- Load relevant spec constraints and PBT properties from `openspec/changes/<id>/specs/`.
|
|
26
26
|
|
|
27
27
|
3. **Multi-Model Review (PARALLEL)**
|
|
@@ -113,8 +113,8 @@ Review is complete when:
|
|
|
113
113
|
- [ ] User decision captured (archive / return to impl / defer)
|
|
114
114
|
|
|
115
115
|
**Reference**
|
|
116
|
-
- View proposal:
|
|
116
|
+
- View proposal: `/opsx:show <id>`
|
|
117
117
|
- Check spec constraints: `rg -n "CONSTRAINT:|MUST|INVARIANT:" openspec/changes/<id>/specs/`
|
|
118
|
-
- View implementation diff:
|
|
118
|
+
- View implementation diff: `/opsx:diff <id>` or `git diff`
|
|
119
119
|
- Archive (after passing): `/ccg:spec-impl` → Step 10
|
|
120
120
|
<!-- CCG:SPEC:REVIEW:END -->
|