SKILL

openspec-init

为 /la:pr 流程在当前仓库初始化或修复 OpenSpec。确保 openspec CLI 可用,优先全局安装,npx 作为后备;使用 `openspec init --tools none` 创建 openspec/ 结构,仅建立语料库,不添加 /opsx:* 命令,并完成验证。当 openspec/ 缺失或无效时由 /la:pr 调用,也可直接运行。

译文已校对
查看英文原文

Initialize or repair OpenSpec in the current repo for the /la:pr flow. Ensures the openspec CLI is available (global install, npx fallback), scaffolds openspec/ with `openspec init --tools none` (corpus only, no /opsx:* commands), and verifies. Invoked by /la:pr when openspec/ is absent or invalid, or run directly.

适用对象:对象待分类。自动收录 · 待核查。

原作者说明节选

从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。

查看英文原文

原文涵盖的主题

  • Step 1 — Resolve the CLI (set OPENSPECCMD)
  • Step 2 — Check repo state
  • Step 3 — Initialize (absent)
  • Step 4 — Repair (invalid)
  • Step 5 — Verify and stage

Bring the current repo to a valid OpenSpec state: the openspec CLI resolvable and an openspec/ corpus (specs/ + changes/) present and healthy. Corpus only — no /opsx: slash commands or AGENTS wiring, because the /la:pr flow replaces propose/apply. 1. If command -v openspec succeeds → OPENSPECCMD=openspec. 2. Else install globally: npm i -g @fission-ai/openspec (no sudo where the npm global prefix is user-writable — nvm/fnm//.local-style node). Re-check command -v openspec. 3. If the global install fails (non-writable prefix, no permission, or offline): fall back to OPENSPECCMD="npx -y @fission-ai/openspec@1.11.0" (bump the pin as needed). If even npx can't fetch, STOP and tell me — do not proceed. Use $OPENSPECCMD for every openspec call below and hand it back to the caller. Run from the repo root (init writes openspec/ into the cwd). Classify: Absent — no openspec/config.yaml → Step 3. Healthy — openspec/config.yaml exists and $OPENSPECCMD list runs cleanly → nothing to do; report and return. (A healthy repo may have no specs/ or changes/ yet — see Step 3 — so their absence is NOT invalid.) Invalid — openspec/ exists but has no config.yaml, or list/doctor errors → Step 4. Add --fo

这里只展示节选,请以完整原文和当前要求为准。

来源仓库
MotleyAI/living-architecture
源文件
plugin/skills/openspec-init/SKILL.md
固定版本
d515fa3449c9734b464fc67d231a6e6b051106fc
阅读完整原作者说明 ↗

来源与内容状态

本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。

原作者:MotleyAI/living-architecture · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-09T18:02:06.019Z。

分类由名称、说明与路径规则生成,分类不代表已核实适配。

许可与权利归属

MIT。第三方内容及版权归原作者,使用条件以原文为准。

许可原文 ↗

本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。

限制与注意事项

  • 元数据收录不代表本站已经安装、适配、实测或进行安全审查。