ai-engineering-init 1.2.4 → 1.2.5

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.
@@ -1,38 +1,22 @@
1
1
  {
2
+ "version": 1,
2
3
  "hooks": {
3
4
  "beforeSubmitPrompt": [
4
5
  {
5
6
  "matcher": "",
6
- "hooks": [
7
- {
8
- "type": "command",
9
- "command": "node .cursor/hooks/cursor-skill-eval.js"
10
- }
11
- ]
7
+ "command": "node .cursor/hooks/cursor-skill-eval.js"
12
8
  }
13
9
  ],
14
10
  "preToolUse": [
15
11
  {
16
12
  "matcher": "Shell|Write|CreateFile|EditFile",
17
- "hooks": [
18
- {
19
- "type": "command",
20
- "command": "node .cursor/hooks/cursor-pre-tool-use.js",
21
- "timeout": 5000
22
- }
23
- ]
13
+ "command": "node .cursor/hooks/cursor-pre-tool-use.js"
24
14
  }
25
15
  ],
26
16
  "stop": [
27
17
  {
28
18
  "matcher": "",
29
- "hooks": [
30
- {
31
- "type": "command",
32
- "command": "node .claude/hooks/stop.js",
33
- "timeout": 10000
34
- }
35
- ]
19
+ "command": "node .claude/hooks/stop.js"
36
20
  }
37
21
  ]
38
22
  }
package/README.md CHANGED
@@ -193,6 +193,25 @@ cd ai-engineering-init
193
193
  3. Subagents 会根据任务自动委托:`/code-reviewer`、`/project-manager`
194
194
  4. 在 Settings → MCP 中确认 MCP 服务器已连接
195
195
 
196
+ #### OpenSpec 规格驱动开发(opsx 命令)
197
+
198
+ 基于 [OpenSpec](https://github.com/Fission-AI/OpenSpec) 的规格驱动开发工作流,在 Cursor Chat 中通过 `/opsx-*` 命令使用:
199
+
200
+ | 命令 | 用途 |
201
+ |------|------|
202
+ | `/opsx-new` | 新建变更,描述需求并创建规格文档 |
203
+ | `/opsx-ff` | 快速推进,一次性生成所有制品(规格+任务) |
204
+ | `/opsx-apply` | 开始实现,按任务清单编码 |
205
+ | `/opsx-continue` | 继续变更,创建下一个制品 |
206
+ | `/opsx-verify` | 验证实现是否与规格匹配 |
207
+ | `/opsx-sync` | 将 delta 规格同步到主规格 |
208
+ | `/opsx-archive` | 归档已完成的变更 |
209
+ | `/opsx-bulk-archive` | 批量归档多个变更 |
210
+ | `/opsx-explore` | 探索模式,思维伙伴式问题分析 |
211
+ | `/opsx-onboard` | 新手引导,完整工作流演示 |
212
+
213
+ **标准开发流程**:`/opsx-new` → `/opsx-ff` → `/opsx-apply` → `/opsx-verify` → `/opsx-archive`
214
+
196
215
  ### OpenAI Codex
197
216
 
198
217
  1. 修改 `AGENTS.md` 中的项目说明
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-engineering-init",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "AI 工程化配置初始化工具 — 一键为 Claude Code、OpenAI Codex 等 AI 工具初始化 Skills 和项目规范",
5
5
  "keywords": [
6
6
  "claude-code",