spec-runtime-setup
为 Claude Code、Codex、Cursor、Kiro、Qoder、OpenCode、ZCode、Pi 安装、配置、验证并刷新 spec-first 所需的 harness runtime 就绪事实。
ASCII 链路图
text
Codebase -> Spec -> Plan -> Tasks -> Code -> Review -> Knowledge
|
v
spec-runtime-setup
entry: spec-runtime-setup
type: workflow command链路图表示该技能在研发阶段上的位置;阶段之间不是必经顺序,按当前任务直接进入最匹配的入口即可。
基本信息
| 字段 | 内容 |
|---|---|
| Skill | spec-runtime-setup |
| 类型 | workflow command |
| 研发链路位置 | Codebase |
| 当前入口 | spec-runtime-setup |
| 兼容别名 | /spec:runtime-setup、$spec-runtime-setup |
| 宿主投递 | Claude Code: command · Codex: skill · Cursor: skill · Kiro: skill · Qoder: command · OpenCode: command · ZCode: skill · Pi: skill |
| Source | skills/spec-runtime-setup/SKILL.md |
源码描述(原文)
Install, configure, verify, and refresh required harness runtime readiness facts for spec-first workflows on Claude Code, Codex, Cursor, Kiro, Qoder, OpenCode, ZCode, or Pi.
Source 契约摘要
以下各条摘自上游 SKILL.md 的契约摘要小节(Workflow Contract Summary 或 Contract Summary),过长时截断。
- 何时使用 — Host runtime setup, MCP setup, helper-tool readiness, missing runtime assets, or project-local setup fact refresh.
- 何时不使用 — Ordinary planning, implementation, review, debugging, or code impact questions that can proceed from direct source evidence; route those through the
using-spec-firstentry map (spec-plan/spec-work/spec-debug/spec-code-review). - 输入 — Current host, repo target, loaded skill(s), combined
setup-registry.json, host config status, git/workspace target facts, and project instruction. - 输出 — Readiness ledger v2, provider readiness v2 facts, generated runtime manifest freshness, setup scenario fingerprint, project-local config bootstrap status, optional project setup facts under
.spec-first/config/, and a grouped status block. - 产物 —
.spec-first/config/tool-facts.json,.spec-first/config/runtime-capabilities.json,.spec-first/config.local.example.yaml,.spec-first/config.local.yamlwhen explicitly created,.gitignorelocal-config safety rule when explicitly ensured, and.spec-first/workspace/scenario-fingerprint-setup.jsonwhen applicable. - 失败模式 — Missing dependencies, host config write failure, ambiguous parent workspace target, symlink escape, invalid registry schema, helper install failure, or unsupported host.
- 下游消费者 —
using-spec-first, plan/work/review/debug workflows, doctor/update guidance, and humans repairing setup. - 核心边界 — The Node module establishes deterministic readiness facts; the LLM workflow determines how to utilize these facts. Setup shall not require sufficient semantic understanding of code, nor shall it mandate that routine work depend on external analysis services.
何时使用
- 当前任务必需的 MCP、helper CLIs 或 runtime capabilities 缺失。
- 需要完成或修复包含 CodeGraph / Graphify 的完整 setup baseline;
--only仅用于高级子集修复。 - 宿主、provider、helper 配置或 setup facts 发生变化后。
边界
- 不是每次 plan/work 的硬前置;可选能力缺失时可以说明限制后继续。
- 不提供代码理解权威;下游仍要用 bounded direct source reads、rg、ast-grep、git diff、tests/logs 和用户证据确认结论。
- 修改 host runtime 前必须遵守当前 host 的权限和配置边界。
源码校准
本页由脚本从上游
skills/spec-runtime-setup/SKILL.md生成;入口、兼容别名与宿主投递以src/cli/contracts/dual-host-governance/skills-governance.json为准。
