SKILL

openspec-init

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.

Target: Target not categorized. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • 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

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
MotleyAI/living-architecture
Source file
plugin/skills/openspec-init/SKILL.md
Fixed revision
d515fa3449c9734b464fc67d231a6e6b051106fc
Read the complete original documentation ↗

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: MotleyAI/living-architecture · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T18:02:06.019Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.