ultra-builder-pro-cli 0.10.0 → 0.11.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.
Files changed (92) hide show
  1. package/CHANGELOG.md +45 -1
  2. package/README.md +1 -1
  3. package/adapters/_shared/codex-assets.cjs +23 -341
  4. package/adapters/_shared/runtime-assets.cjs +24 -0
  5. package/adapters/_shared/tests/runtime-assets.test.cjs +11 -4
  6. package/adapters/claude.js +28 -5
  7. package/adapters/kimi.js +15 -138
  8. package/adapters/opencode.js +14 -47
  9. package/adapters/tests/claude.test.cjs +22 -8
  10. package/adapters/tests/codex.test.cjs +19 -6
  11. package/adapters/tests/kimi.test.cjs +11 -11
  12. package/adapters/tests/opencode.test.cjs +11 -7
  13. package/agents/code-reviewer.md +24 -85
  14. package/agents/debugger.md +30 -132
  15. package/agents/review-code.md +24 -104
  16. package/agents/review-comments.md +20 -83
  17. package/agents/review-coordinator.md +40 -137
  18. package/agents/review-design.md +21 -118
  19. package/agents/review-errors.md +22 -70
  20. package/agents/review-spec.md +36 -0
  21. package/agents/review-tests.md +20 -76
  22. package/agents/tdd-runner.md +26 -84
  23. package/commands/learn.md +5 -36
  24. package/commands/ultra-change.md +5 -43
  25. package/commands/ultra-deliver.md +4 -46
  26. package/commands/ultra-dev.md +4 -48
  27. package/commands/ultra-doctor.md +4 -30
  28. package/commands/ultra-init.md +5 -47
  29. package/commands/ultra-plan.md +5 -48
  30. package/commands/ultra-research.md +5 -54
  31. package/commands/ultra-status.md +5 -44
  32. package/commands/ultra-test.md +5 -45
  33. package/commands/ultra-think.md +5 -40
  34. package/docs/PLAN.zh-CN.md +3 -3
  35. package/docs/ROADMAP.md +1 -1
  36. package/docs/SKILL-AUTHORING.md +75 -0
  37. package/package.json +3 -2
  38. package/skills/cc-collab/SKILL.md +16 -18
  39. package/skills/code-review-expert/SKILL.md +39 -114
  40. package/skills/code-review-expert/references/correctness-reliability.md +30 -0
  41. package/skills/code-review-expert/references/design-boundaries.md +26 -0
  42. package/skills/code-review-expert/references/removal-plan.md +17 -45
  43. package/skills/codex-collab/SKILL.md +23 -28
  44. package/skills/codex-collab/evals/evals.json +18 -23
  45. package/skills/integration-rules/SKILL.md +28 -67
  46. package/skills/learn/SKILL.md +46 -106
  47. package/skills/security-rules/SKILL.md +34 -56
  48. package/skills/testing-rules/SKILL.md +28 -52
  49. package/skills/ultra-change/SKILL.md +57 -114
  50. package/skills/ultra-deliver/SKILL.md +49 -87
  51. package/skills/ultra-dev/SKILL.md +42 -105
  52. package/skills/ultra-doctor/SKILL.md +39 -72
  53. package/skills/ultra-init/SKILL.md +59 -140
  54. package/skills/ultra-plan/SKILL.md +48 -88
  55. package/skills/ultra-research/SKILL.md +59 -152
  56. package/skills/ultra-research/references/architecture.md +38 -0
  57. package/skills/ultra-research/references/problem-product.md +39 -0
  58. package/skills/ultra-research/references/quality-delivery.md +34 -0
  59. package/skills/ultra-research/references/synthesis.md +38 -0
  60. package/skills/ultra-research/references/users-scope.md +40 -0
  61. package/skills/ultra-review/SKILL.md +54 -98
  62. package/skills/ultra-review/references/unified-schema.md +76 -101
  63. package/skills/ultra-review/scripts/review_wait.py +242 -77
  64. package/skills/ultra-status/SKILL.md +29 -51
  65. package/skills/ultra-test/SKILL.md +37 -72
  66. package/skills/ultra-think/SKILL.md +43 -102
  67. package/skills/ultra-verify/SKILL.md +44 -84
  68. package/skills/ultra-verify/evals/evals.json +24 -27
  69. package/spec/schemas/command-manifest.schema.json +7 -25
  70. package/spec/schemas/skill-manifest.schema.json +9 -79
  71. package/skills/code-review-expert/references/code-quality-checklist.md +0 -112
  72. package/skills/code-review-expert/references/integration-checklist.md +0 -46
  73. package/skills/code-review-expert/references/security-checklist.md +0 -100
  74. package/skills/code-review-expert/references/solid-checklist.md +0 -65
  75. package/skills/ultra-research/steps/step-00-problem-validation.md +0 -154
  76. package/skills/ultra-research/steps/step-01-opportunity-discovery.md +0 -172
  77. package/skills/ultra-research/steps/step-02-market-assessment.md +0 -195
  78. package/skills/ultra-research/steps/step-03-competitive-landscape.md +0 -197
  79. package/skills/ultra-research/steps/step-04-product-strategy.md +0 -196
  80. package/skills/ultra-research/steps/step-05-assumptions-validation.md +0 -234
  81. package/skills/ultra-research/steps/step-10-user-personas.md +0 -169
  82. package/skills/ultra-research/steps/step-11-user-scenarios.md +0 -181
  83. package/skills/ultra-research/steps/step-20-user-stories.md +0 -156
  84. package/skills/ultra-research/steps/step-21-features-scope.md +0 -157
  85. package/skills/ultra-research/steps/step-22-success-metrics.md +0 -195
  86. package/skills/ultra-research/steps/step-30-architecture-context.md +0 -154
  87. package/skills/ultra-research/steps/step-31-solution-strategy.md +0 -172
  88. package/skills/ultra-research/steps/step-32-building-blocks.md +0 -188
  89. package/skills/ultra-research/steps/step-40-deployment.md +0 -123
  90. package/skills/ultra-research/steps/step-41-quality-risks.md +0 -135
  91. package/skills/ultra-research/steps/step-99-synthesis.md +0 -188
  92. package/skills/ultra-review/scripts/review_verdict_update.py +0 -99
@@ -1,52 +1,10 @@
1
1
  ---
2
- description: Converge and deliver a verified baseline or continuous change — reconcile specs, archive evidence, version, tag, and push
2
+ description: Converge current evidence and specification learning into an archived or released baseline
3
3
  argument-hint: "[version-type]"
4
- allowed-tools: Task, Read, Write, Edit, Bash, Grep, Glob, AskUserQuestion
5
- model: opus
6
4
  workflow-ref: "@skills/ultra-deliver/SKILL.md"
7
- cli_fallback: "direct user interaction"
8
- mcp_tools_required:
9
- - change.list
10
- - change.get
11
- - change.context
12
- - change.converge
13
- - change.archive
14
5
  ---
15
6
 
16
- # /ultra-deliver
7
+ # Converge and deliver
17
8
 
18
- ## 目标
19
-
20
- `/ultra-test` 绿灯后,把 active delta 合并回 baseline,重跑发布证据,调用
21
- `change.converge` 与 `change.archive`,再完成版本号、tag、push 和 delivery report。
22
-
23
- ## 参数
24
-
25
- | 位 | 含义 | 缺省 |
26
- |----|------|------|
27
- | `$1` | 版本跳跃(`patch`/`minor`/`major`) | 按 commit 类型自动判断 |
28
-
29
- ## Workflow
30
-
31
- 完整流程见 `@skills/ultra-deliver/SKILL.md`(绑定 change → baseline reconciliation →
32
- build/test → release commit → context/convergence/archive → tag/push → report)。
33
-
34
- **命令入口做的事**:
35
- 1. 读 `.ultra/test-report.json` 验 `passed=true` + `git_commit === HEAD`
36
- 2. `git status` 清洁检查;不干净 → 通过 Host 原生提问界面选处理方式
37
- 3. 有 active change 时合并 delta、刷新 context,并通过确定性 convergence gate
38
- 4. archive 完成后才允许 tag/push
39
- 5. 写带 change id、archive path、baseline updates 的 delivery report
40
-
41
- ## 用法
42
-
43
- ```bash
44
- /ultra-deliver # 自动判断版本号
45
- /ultra-deliver major # 强制 major bump(breaking changes)
46
- /ultra-deliver patch # 强制 patch
47
- ```
48
-
49
- ## 下一步
50
-
51
- 部署到 Railway / Vercel,或在 release channel 广播。`delivery-report.json` 里
52
- `pushed=true` 后即可视作发布完成。
9
+ Read and follow `@skills/ultra-deliver/SKILL.md`, using `$ARGUMENTS` only for an explicitly requested version policy.
10
+ Treat the referenced skill as the only workflow definition.
@@ -1,54 +1,10 @@
1
1
  ---
2
- description: Agile development execution — one task through TDD + review gate, writing state via MCP task.update
2
+ description: Execute one authoritative Ultra task through implementation, verification, and review
3
3
  argument-hint: "[task-id]"
4
- allowed-tools: Read, Write, Edit, Bash, Grep, Glob, Task, AskUserQuestion, Skill
5
- model: opus
6
4
  workflow-ref: "@skills/ultra-dev/SKILL.md"
7
- mcp_tools_required:
8
- - task.update
9
- - task.get
10
- - task.list
11
- - change.get
12
- - change.context
13
5
  ---
14
6
 
15
- # /ultra-dev
7
+ # Execute one Ultra task
16
8
 
17
- ## 目标
18
-
19
- 把一个 task 从 `pending` 推到 `completed`:进入 feature 分支 → RED/GREEN/REFACTOR
20
- TDD → 质量门 → `/ultra-review all` → 完成 → commit/merge。**单写**:状态只通过
21
- MCP `task.update` 改一次;projector 自动更新 tasks.json + context-md frontmatter。
22
- MCP 状态工具失败时 fail closed;`LEGACY_STATE_MIGRATION_REQUIRED` 只允许先跑
23
- v4.4→v4.5 迁移,绝不从 `tasks.json` 回退或直接改投影。
24
-
25
- ## 参数
26
-
27
- | 位 | 含义 | 缺省 |
28
- |----|------|------|
29
- | `$1` | task id | 拓扑序第一个 `pending` |
30
-
31
- ## Workflow
32
-
33
- 完整 8 步流程见 `@skills/ultra-dev/SKILL.md`(Resume Check → Design Gate → 选 task →
34
- 状态 in_progress → 环境 → TDD → 质量门 → checkpoint → review → 完成 → commit/merge → report)。
35
-
36
- **命令入口做的事**:
37
- 1. 读 `.ultra/workflow-state.json` 决定新跑 vs resume
38
- 2. 首跑通过 Host 原生提问触发 Design Approval Gate
39
- 3. 驱动 skill 走 TDD + review 循环;状态仅通过 MCP `task.update`
40
- 4. task 有 `change_id` 时把需求变化写进 active delta,并用 `change.context` 刷新上下文
41
- 5. Step 4.5 review 通过 `/ultra-review` 和 Host 原生 subagent 执行
42
- 6. Step 4.4 pre-review checkpoint 写入 workflow-state.json,不依赖 `/compact`
43
-
44
- ## 用法
45
-
46
- ```bash
47
- /ultra-dev # 自动选下一个 pending task
48
- /ultra-dev 3 # 直接做 task 3
49
- ```
50
-
51
- ## 下一步
52
-
53
- 单个 task 完成后自动提示下一个 `/ultra-dev`;所有 Walking Skeleton +
54
- critical-path task 完成 → `/ultra-test` 做交付前质量审计。
9
+ Read and follow `@skills/ultra-dev/SKILL.md`, using `$ARGUMENTS` as the optional task id.
10
+ Treat the referenced skill as the only workflow definition.
@@ -1,36 +1,10 @@
1
1
  ---
2
- description: Inspect Ultra runtime health and optionally run explicit backup-first mechanical recovery
2
+ description: Diagnose Ultra state and installed-plugin health with optional explicit repair
3
3
  argument-hint: "[--repair]"
4
- allowed-tools: Read, Bash
5
- model: opus
6
4
  workflow-ref: "@skills/ultra-doctor/SKILL.md"
7
- mcp_tools_required:
8
- - system.doctor
9
- cli_fallback: "system doctor"
10
5
  ---
11
6
 
12
- # /ultra-doctor
7
+ # Diagnose Ultra health
13
8
 
14
- ## 目标
15
-
16
- 诊断 state.db、projection、incident、session 和 active change artifact 的健康状态。
17
- 默认只读;只有显式传入 `--repair` 才允许备份后执行机械恢复。
18
-
19
- ## Workflow
20
-
21
- 完整契约见 `@skills/ultra-doctor/SKILL.md`。
22
-
23
- 1. 默认调用 `system.doctor {"repair": false}`。
24
- 2. 只报告失败检查、incident、游标落后和归属边界。
25
- 3. `--repair` 时必须先生成 state.db 备份,再恢复 orphan、消费 staleness event、
26
- 重排超时中断或失败的 projection 并重新投影。
27
- 4. 修复后重新读取报告;仍 degraded 就明确剩余阻塞,不宣称完成。
28
-
29
- ## 用法
30
-
31
- ```bash
32
- /ultra-doctor
33
- /ultra-doctor --repair
34
- ```
35
-
36
- Memory 和代码图谱属于外部 provider,本命令既不收集也不修复它们。
9
+ Read and follow `@skills/ultra-doctor/SKILL.md`; allow repair only when `$ARGUMENTS` explicitly contains `--repair`.
10
+ Treat the referenced skill as the only workflow definition.
@@ -1,52 +1,10 @@
1
1
  ---
2
- description: Initialize Ultra Builder Pro project — scaffold .ultra/, initialize state.db and continuous-change directories, optional git
3
- argument-hint: <name> <type> <stack> [git]
4
- allowed-tools: Read, Write, Bash, Grep, Glob, AskUserQuestion
5
- model: opus
2
+ description: Initialize an Ultra project with authoritative state and baseline specification files
3
+ argument-hint: "[name] [type] [stack] [git]"
6
4
  workflow-ref: "@skills/ultra-init/SKILL.md"
7
- mcp_tools_required:
8
- - task.init_project
9
- cli_fallback: "task init-project"
10
5
  ---
11
6
 
12
- # /ultra-init
7
+ # Initialize an Ultra project
13
8
 
14
- ## 目标
15
-
16
- 搭 `.ultra/` 骨架(specs + tasks + changes + docs + reports),初始化权威
17
- `state.db`,写入带元数据的初始 `tasks.json`,并按需初始化 git。Claude Code、
18
- OpenCode、Codex 三个 runtime 行为一致。
19
-
20
- ## 参数
21
-
22
- | 位 | 含义 | 缺省 |
23
- |----|------|------|
24
- | `$1` | 项目名 | 当前目录名 |
25
- | `$2` | 项目类型(`web`/`api`/`cli`/`fullstack`/`other`) | 从 package 文件识别 |
26
- | `$3` | 技术栈(逗号分隔) | 从 package 文件识别 |
27
- | `$4` | `git` → 初始化 git | 检测已有 `.git/` 时询问 |
28
-
29
- ## Workflow
30
-
31
- 完整流程见 `@skills/ultra-init/SKILL.md`(4 步:状态检测 → 参数补全 →
32
- `task.init_project` 拉起骨架 → git 集成)。
33
-
34
- **命令入口做的事**:
35
- 1. 解析 `$1-$4`,补缺省
36
- 2. 探测 runtime 能力:优先走 MCP `task.init_project`;不可达时退回 `ultra-tools task init-project`
37
- 3. 按 skill 的 4 步工作流推进
38
- 4. 完成后提示下一步命令
39
-
40
- ## 用法
41
-
42
- ```bash
43
- /ultra-init # 交互模式(自动识别)
44
- /ultra-init my-app # 带项目名
45
- /ultra-init my-app api # 带类型
46
- /ultra-init my-app fullstack react,postgres git # 完整 + git
47
- ```
48
-
49
- ## 下一步
50
-
51
- **CRITICAL**:跑 `/ultra-research` 做 17 步 discovery 把 spec 填满,
52
- **然后**才跑 `/ultra-plan` 生成任务。直接 plan 会产出基于模糊需求的任务。
9
+ Read and follow `@skills/ultra-init/SKILL.md`, using `$ARGUMENTS` as optional project metadata.
10
+ Treat the referenced skill as the only workflow definition.
@@ -1,53 +1,10 @@
1
1
  ---
2
- description: Generate task breakdown from complete specs — walking-skeleton first, vertical slices, via MCP task.create
3
- argument-hint: [scope]
4
- allowed-tools: Read, Write, Edit, Bash(mkdir .ultra/*), Grep, Glob, AskUserQuestion
5
- model: opus
2
+ description: Convert validated requirements into dependency-valid Ultra tasks with bounded context and exact verification
3
+ argument-hint: "[scope]"
6
4
  workflow-ref: "@skills/ultra-plan/SKILL.md"
7
- mcp_tools_required:
8
- - task.create
9
5
  ---
10
6
 
11
- # /ultra-plan
7
+ # Plan executable slices
12
8
 
13
- ## 目标
14
-
15
- 把 `/ultra-research` 验证过的完整 spec 转成可执行的任务计划:先 Walking
16
- Skeleton 贯穿所有层,再切 vertical slices,每 3-4 个 feature task 插一个
17
- Integration Checkpoint。任务写入 state.db(MCP `task.create`),projector
18
- 自动生成 `.ultra/tasks/tasks.json` + contexts/*.md frontmatter。
19
-
20
- 入口先写 active `.ultra/workflow-state.json`。MCP 不可用或返回
21
- `LEGACY_STATE_MIGRATION_REQUIRED` 时立即停止,提示运行
22
- `ultra-tools migrate --from=4.4 --to=4.5 --source-dir <project-root>`;绝不读取或写入
23
- `tasks.json` 作为回退。
24
-
25
- ## 参数
26
-
27
- | 位 | 含义 | 缺省 |
28
- |----|------|------|
29
- | `$1` | scope 模式(EXPAND / SELECTIVE / HOLD / REDUCE) | 询问用户;默认 SELECTIVE |
30
-
31
- ## Workflow
32
-
33
- 完整 8 步流程见 `@skills/ultra-plan/SKILL.md`。
34
-
35
- **命令入口做的事**:
36
- 1. 探测 spec 完整度 — 未填充则 block 并转 `/ultra-research`
37
- 2. 使用 Host 原生提问界面交互选 scope 模式
38
- 3. 驱动 skill 跑生成 → 依赖分析 → `task.create` 循环 → 写 context-md 正文
39
- 4. 跑 7 项 verification(requirement coverage / 无环 / trace_to / 复杂度等)
40
- 5. 输出 report + 下一步
41
-
42
- ## 用法
43
-
44
- ```bash
45
- /ultra-plan # 交互模式;默认 SELECTIVE
46
- /ultra-plan EXPAND # 直接进入"激进扩张"模式
47
- /ultra-plan REDUCE # MVP 最小化模式
48
- ```
49
-
50
- ## 下一步
51
-
52
- 所有 CRITICAL check 过了 → `/clear` 然后 `/ultra-dev` 开始 TDD。
53
- 单个 task 完成后 `/ultra-status` 看进度。
9
+ Read and follow `@skills/ultra-plan/SKILL.md`, using `$ARGUMENTS` to select the requested scope.
10
+ Treat the referenced skill as the only workflow definition.
@@ -1,59 +1,10 @@
1
1
  ---
2
- description: Think-Driven Interactive Discovery — 17-step research with per-step web search and spec-file output
3
- argument-hint: [topic]
4
- allowed-tools: Task, Read, Write, WebSearch, WebFetch, Grep, Glob, AskUserQuestion
5
- model: opus
2
+ description: Research unresolved product or architecture decisions and update the authoritative baseline specifications
3
+ argument-hint: "[scope-or-question]"
6
4
  workflow-ref: "@skills/ultra-research/SKILL.md"
7
5
  ---
8
6
 
9
- # Ultra Research v2
7
+ # Research a baseline
10
8
 
11
- **Step-file architecture**: Each research step is a self-contained instruction file loaded just-in-time for maximum LLM attention density.
12
-
13
- ## How This Works
14
-
15
- 1. Read the main skill file: `skills/ultra-research/SKILL.md`
16
- 2. Follow the activation sequence (pre-checks → project type detection → step routing)
17
- 3. For each step: Read `skills/ultra-research/steps/step-{NN}-{name}.md` and follow ALL instructions
18
- 4. Each step writes output immediately to spec files, then presents [C] Continue gate
19
- 5. Only proceed to next step after user confirms [C]
20
-
21
- ## Step Sequence
22
-
23
- | Step | File | Focus |
24
- |------|------|-------|
25
- | **R0: Product Discovery** | | |
26
- | 00 | `step-00-problem-validation.md` | Validate the problem is real |
27
- | 01 | `step-01-opportunity-discovery.md` | Map opportunity space (OST) |
28
- | 02 | `step-02-market-assessment.md` | TAM/SAM/SOM sizing |
29
- | 03 | `step-03-competitive-landscape.md` | Competitor analysis |
30
- | 04 | `step-04-product-strategy.md` | Vision, segments, trade-offs |
31
- | 05 | `step-05-assumptions-validation.md` | Risk assumptions + experiments |
32
- | **R1: User & Scenario** | | |
33
- | 10 | `step-10-user-personas.md` | 2-3 personas |
34
- | 11 | `step-11-user-scenarios.md` | 3-5 user scenarios |
35
- | **R2: Feature Definition** | | |
36
- | 20 | `step-20-user-stories.md` | Stories + acceptance criteria |
37
- | 21 | `step-21-features-scope.md` | MVP scope + exclusions |
38
- | 22 | `step-22-success-metrics.md` | KPIs + targets |
39
- | **R3: Architecture** | | |
40
- | 30 | `step-30-architecture-context.md` | Quality goals, constraints |
41
- | 31 | `step-31-solution-strategy.md` | Tech stack decisions |
42
- | 32 | `step-32-building-blocks.md` | Modules + runtime scenarios |
43
- | **R4: Quality & Deploy** | | |
44
- | 40 | `step-40-deployment.md` | Infrastructure + CI/CD |
45
- | 41 | `step-41-quality-risks.md` | Quality scenarios + risks |
46
- | **Synthesis** | | |
47
- | 99 | `step-99-synthesis.md` | Distillate + validation |
48
-
49
- ## Critical Rules
50
-
51
- - **Read SKILL.md first** — it has activation logic and project type detection
52
- - **One step at a time** — never load multiple step files simultaneously
53
- - **Write immediately** — every step writes to spec file before presenting to user
54
- - **Web search mandatory** — factual claims need sources, no exceptions
55
- - **User gate** — halt at [C] Continue, do not auto-proceed
56
-
57
- ## Begin
58
-
59
- Read `skills/ultra-research/SKILL.md` now and follow the activation sequence.
9
+ Read and follow `@skills/ultra-research/SKILL.md`, using `$ARGUMENTS` to bound the research scope.
10
+ Treat the referenced skill as the only workflow definition.
@@ -1,49 +1,10 @@
1
1
  ---
2
- description: Real-time project status — progress + risks + workflow routing, via MCP task.list
3
- argument-hint: "[task-id]"
4
- allowed-tools: Read, Bash(git status), Bash(git log *), Grep, Glob, Task
5
- model: opus
2
+ description: Report authoritative Ultra health, readiness, evidence freshness, and one next action
3
+ argument-hint: "[task-or-change-id]"
6
4
  workflow-ref: "@skills/ultra-status/SKILL.md"
7
- mcp_tools_required:
8
- - task.list
9
- - task.get
10
- - change.list
11
- - system.doctor
12
5
  ---
13
6
 
14
- # /ultra-status
7
+ # Report Ultra status
15
8
 
16
- ## 目标
17
-
18
- 一次调用拿整个项目近况:任务进度(来自 state.db `task.list`)+ 测试状态(`test-report.json`)+
19
- 发布状态(`delivery-report.json`)+ active change + runtime health + 下一步命令路由。只读。
20
- 任务状态只接受 MCP `task.list`/`task.get`;失败时原样报告并停止,绝不读取
21
- `tasks.json` 冒充权威数据。旧 v4.4 数据必须先执行正式迁移。
22
-
23
- ## 参数
24
-
25
- | 位 | 含义 | 缺省 |
26
- |----|------|------|
27
- | `$1` | 单 task id(只看这个 task) | 不填 → 全局报告 |
28
-
29
- ## Workflow
30
-
31
- 完整 5 阶段见 `@skills/ultra-status/SKILL.md`(validation → load → progress → risk → routing)。
32
-
33
- **命令入口做的事**:
34
- 1. 环境检查(state.db 可达 + 有 task)
35
- 2. `task.list` + `change.list` + read-only `system.doctor`;读 test/delivery report
36
- 3. 算进度 + 风险(含 projection、incident、context/docs drift)
37
- 4. 初始交付后不再显示终局 Done;健康 baseline 的下一项日常工作路由到 `/ultra-change`
38
-
39
- ## 用法
40
-
41
- ```bash
42
- /ultra-status # 项目全局报告
43
- /ultra-status 3 # 只看 task 3
44
- ```
45
-
46
- ## 下一步
47
-
48
- 看输出的 `▶ Next Up` 块。常见场景:有 pending → `/ultra-dev`;全绿 → `/ultra-test`;
49
- test passed → `/ultra-deliver`;已归档且 baseline 健康 → `/ultra-change`。
9
+ Read and follow `@skills/ultra-status/SKILL.md`, using `$ARGUMENTS` to select a specific task or change.
10
+ Treat the referenced skill as the only workflow definition.
@@ -1,50 +1,10 @@
1
1
  ---
2
- description: Pre-delivery quality audit — Anti-Pattern + Coverage Gap + Wiring + E2E + Perf + Security
3
- argument-hint: [scope]
4
- allowed-tools: Bash, Read, Write, Edit, Task, Grep, Glob, AskUserQuestion
5
- model: opus
2
+ description: Run the independent pre-delivery verification gate and record current acceptance evidence
3
+ argument-hint: "[scope]"
6
4
  workflow-ref: "@skills/ultra-test/SKILL.md"
7
- mcp_tools_required:
8
- - task.list
9
- - change.list
10
5
  ---
11
6
 
12
- # /ultra-test
7
+ # Verify delivery readiness
13
8
 
14
- ## 目标
15
-
16
- `/ultra-deliver` 前的项目级质量审计:6 类 gate(Anti-Pattern / Coverage Gap /
17
- Wiring / E2E / Performance / Security)× auto-fix loop。**只读** state.db,
18
- 写 `.ultra/test-report.json` 作为 `/ultra-deliver` 的准入凭证。
19
- completed-task 前置检查必须来自 MCP `task.list`;失败时停止,绝不回退到
20
- `tasks.json`。`LEGACY_STATE_MIGRATION_REQUIRED` 必须先完成 v4.4→v4.5 迁移。
21
-
22
- **注意**:这不是跑单测(那是 `/ultra-dev`)。这是交付前的体检。
23
-
24
- ## 参数
25
-
26
- | 位 | 含义 | 缺省 |
27
- |----|------|------|
28
- | `$1` | 审计范围(`all`/`anti-pattern`/`coverage`/`e2e`/`perf`/`security`) | `all` |
29
-
30
- ## Workflow
31
-
32
- 完整 8 步见 `@skills/ultra-test/SKILL.md`(pre-check → 6 gates → auto-fix → persist → report)。
33
-
34
- **命令入口做的事**:
35
- 1. 探测项目类型 + `task.list` 确认 ≥1 completed
36
- 2. 按 scope 跑 gates;失败进 auto-fix(最多 5 轮)
37
- 3. 写 `.ultra/test-report.json`(change_id + exact commands + gate 明细 + blocking_issues)
38
- 4. 通过 → 提示 `/ultra-deliver`
39
-
40
- ## 用法
41
-
42
- ```bash
43
- /ultra-test # 全量审计
44
- /ultra-test security # 只跑安全审计
45
- /ultra-test coverage # 只找覆盖缺口
46
- ```
47
-
48
- ## 下一步
49
-
50
- `passed=true` → `/ultra-deliver`;`passed=false` → 修或跟进 `blocking_issues`。
9
+ Read and follow `@skills/ultra-test/SKILL.md`, using `$ARGUMENTS` to bound the verification scope.
10
+ Treat the referenced skill as the only workflow definition.
@@ -1,45 +1,10 @@
1
1
  ---
2
- description: Deep analysis with adversarial reasoning — Evidence-First + Multi-Perspective + Stress-Test + Confidence-Quantified recommendation
3
- argument-hint: "[problem or decision to analyze]"
4
- allowed-tools: Read, Grep, Glob, Bash, Write, Task, WebSearch, WebFetch, AskUserQuestion, mcp__exa__web_search_exa, mcp__exa__get_code_context_exa, mcp__context7__resolve-library-id, mcp__context7__query-docs
5
- model: opus
2
+ description: Analyze a consequential question with evidence, uncertainty, and proportionate stress testing
3
+ argument-hint: "[question]"
6
4
  workflow-ref: "@skills/ultra-think/SKILL.md"
7
- cli_fallback: "direct user interaction"
8
5
  ---
9
6
 
10
- # /ultra-think
7
+ # Analyze a consequential question
11
8
 
12
- ## 目标
13
-
14
- 结构化深度分析复杂问题/决策/诊断。Evidence-First 标注(Fact/Inference/Speculation)+
15
- 多视角 + 对抗压测(Steel-Man / Pre-Mortem / Sensitivity / Second-Order)→
16
- 量化置信度的推荐 + 验证计划。
17
-
18
- ## 参数
19
-
20
- <problem>
21
- $ARGUMENTS
22
- </problem>
23
-
24
- ## Workflow
25
-
26
- 完整 5 步见 `@skills/ultra-think/SKILL.md`(Scope → Evidence → Multi-Perspective →
27
- Adversarial → Synthesis)。
28
-
29
- **命令入口做的事**:
30
- 1. 读 `$ARGUMENTS` 判定问题范围 — 模糊 → 用 Host 原生提问界面最多澄清 3 个问题
31
- 2. 简单问题 → 直接答;复杂 → 跑完整框架
32
- 3. 输出 Markdown 报告(Problem / Analysis / Options / Adversarial / Recommendation /
33
- Verification / Next Steps)
34
-
35
- ## 用法
36
-
37
- ```bash
38
- /ultra-think "should we switch from REST to gRPC for the internal API?"
39
- /ultra-think "why is the deploy pipeline flaky every 3rd run?"
40
- ```
41
-
42
- ## 下一步
43
-
44
- 方案进入 spec → `/ultra-research` 补证据或 `/ultra-plan` 直接排任务;
45
- 纯诊断 → 跟着 Verification Plan 走,取证后再定。
9
+ Read and follow `@skills/ultra-think/SKILL.md`, treating `$ARGUMENTS` as the question to resolve.
10
+ Treat the referenced skill as the only workflow definition.
@@ -10,9 +10,9 @@
10
10
  > Kimi Code 采用各自 native plugin 呈现,其他旧 runtime adapter 已退役。下文所有与此冲突的
11
11
  > memory/hindsight 章节仅作为历史实施记录,不再是当前需求或运行时契约。
12
12
 
13
- **当前状态**:v0.10.0;四宿主 native plugin、32 个 live MCP tool、
14
- schema 10.0(16 表)、Context Spine v2 / breadcrumb / spec-learning、持续
15
- change/context/convergence/doctor、incident debug lane、
13
+ **当前状态**:v0.11.0;四宿主 native plugin、32 个 live MCP tool、
14
+ schema 10.0(16 表)、portable Skill authoring contract、双轴 review、
15
+ Context Spine v2 / breadcrumb / spec-learning、持续 change/context/convergence/doctor、incident debug lane、
16
16
  checkpoint 恢复消费与跨宿主安装 provenance/doctor 已落地;npm 发布由
17
17
  `v*.*.*` tag 触发。以下 Phase 0-9 正文保留为 2026-04 的实施历史,不再作为
18
18
  当前 runtime 或发布状态的事实来源。
package/docs/ROADMAP.md CHANGED
@@ -13,7 +13,7 @@ sharing one authoritative workflow store.
13
13
 
14
14
  **Distribution channels (v1.0)**: npm · Homebrew · pip.
15
15
 
16
- **Release line**: `0.10.x`; every release is gated by `npm run verify:release`.
16
+ **Release line**: `0.11.x`; every release is gated by `npm run verify:release`.
17
17
 
18
18
  ---
19
19
 
@@ -0,0 +1,75 @@
1
+ # Skill authoring contract
2
+
3
+ Ultra Builder Pro keeps one portable source workflow and adapts only runtime metadata
4
+ or host invocation details. This contract follows OpenAI Skills guidance and the Agent
5
+ Skills progressive-disclosure format:
6
+
7
+ - <https://learn.chatgpt.com/docs/build-skills>
8
+ - <https://learn.chatgpt.com/docs/customization/overview>
9
+ - <https://agentskills.io/specification>
10
+ - <https://agentskills.io/skill-creation/best-practices>
11
+
12
+ ## Surface ownership
13
+
14
+ | Content | Owner |
15
+ |---|---|
16
+ | Repeatable task procedure and conditional references | `skills/<name>/SKILL.md` |
17
+ | Codex display, invocation policy, and dependencies | `skills/<name>/agents/openai.yaml` after adaptation |
18
+ | Host launcher | `commands/<name>.md` |
19
+ | Durable repository or user engineering policy | `AGENTS.md` or the host equivalent |
20
+ | Deterministic lifecycle enforcement | one hook implementation |
21
+ | Live external data or actions | MCP server or connector |
22
+ | Bounded delegated role | `agents/<name>.md` |
23
+
24
+ Do not duplicate a rule across these surfaces.
25
+
26
+ ## Portable `SKILL.md`
27
+
28
+ Source frontmatter contains only `name` and `description`. The description says what
29
+ the Skill does and when it should activate. The body uses imperative, outcome-oriented
30
+ steps and includes only information an agent cannot reliably infer from the task,
31
+ repository, or host policy.
32
+
33
+ Keep the main file compact. Move conditional domain detail to `references/`, reusable
34
+ deterministic work to `scripts/`, and output material to `assets/`. Reference a file
35
+ only from the main workflow or one directly relevant reference.
36
+
37
+ ## Language
38
+
39
+ The standards do not prohibit Chinese. Ultra source prompts use English as a project
40
+ policy because one source is transformed for Claude Code, Codex, OpenCode, and Kimi
41
+ Code. The host or user instruction controls the response language; a workflow must not
42
+ hard-code the user's output language unless language is itself part of the task.
43
+
44
+ Maintainer documentation may use the language appropriate for its audience. English
45
+ source prompts are a portability rule, not a claim that multilingual Skills are invalid.
46
+
47
+ ## Content that does not belong in a Skill prompt
48
+
49
+ - release notes, migration history, old-version behavior, or implementation diary;
50
+ - host tool inventories, model pins, package paths, and dependency metadata shared by
51
+ only one runtime;
52
+ - generic engineering doctrine already owned by user or repository instructions;
53
+ - one-off project facts, volatile external facts, or copied datasets;
54
+ - duplicated command bodies, hook policy, MCP schemas, or private memory behavior;
55
+ - arbitrary coverage, confidence, complexity, option-count, or severity thresholds;
56
+ - pattern matching that turns TODOs, mocks, catch blocks, or line counts directly into
57
+ findings without a reachable impact;
58
+ - tutorial-style old/new or good/bad comparisons that do not change the workflow;
59
+ - menus of hypothetical alternatives when one repository default already satisfies the
60
+ contract.
61
+
62
+ Comparison is appropriate only when the task requires a real decision or verification:
63
+ compare credible alternatives against shared constraints, accepted specification
64
+ against delivered behavior, or independent analyses against authoritative evidence.
65
+
66
+ ## Review checklist
67
+
68
+ 1. Does the description state a precise use condition?
69
+ 2. Is every instruction reusable for this Skill rather than copied global policy?
70
+ 3. Is host-specific metadata outside the portable prompt?
71
+ 4. Does each conditional reference earn its context cost?
72
+ 5. Are judgments evidence-based rather than threshold-based?
73
+ 6. Are commands thin and agents bounded?
74
+ 7. Do positive and negative trigger evals cover accidental activation?
75
+ 8. Do source, four generated runtimes, and package contents pass validation?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultra-builder-pro-cli",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "Multi-runtime installer for the Ultra Builder Pro agent engineering system — deploys commands, agents, skills, hooks, and MCP server to Claude Code, OpenCode, Codex CLI, and Kimi Code.",
5
5
  "bin": {
6
6
  "ultra-builder-pro-cli": "bin/install.js",
@@ -50,6 +50,7 @@
50
50
  "docs/ROADMAP.md",
51
51
  "docs/ARCHITECTURE.md",
52
52
  "docs/AGENT-CONTEXT.md",
53
+ "docs/SKILL-AUTHORING.md",
53
54
  "docs/COMMIT-HASH-BACKFILL.md",
54
55
  "docs/PLAN.zh-CN.md",
55
56
  "docs/STATE-DB-ACCESS-POLICY.md",
@@ -87,7 +88,7 @@
87
88
  "test:state": "node --test 'mcp-server/**/*.test.cjs'",
88
89
  "test:orch": "node --test 'orchestrator/**/*.test.cjs'",
89
90
  "test:spec": "node spec/scripts/test-all.cjs",
90
- "test:rest": "node --test adapters/_shared/tests/*.test.cjs adapters/tests/*.test.cjs ultra-tools/*.test.cjs tests/conformance/**/*.test.cjs tests/install.test.cjs tests/package-smoke.test.cjs tests/retired-runtime.test.cjs",
91
+ "test:rest": "node --test adapters/_shared/tests/*.test.cjs adapters/tests/*.test.cjs ultra-tools/*.test.cjs tests/conformance/**/*.test.cjs tests/*.test.cjs",
91
92
  "test:all": "npm run test:state && npm run test:orch && npm run test:spec && npm run test:rest",
92
93
  "test:hooks": "pytest hooks/tests -q",
93
94
  "verify:release": "npm run test:all && npm run test:hooks && npm audit --omit=dev --audit-level=high",