/la:openspec-initfrom la
Initializes or repairs an OpenSpec corpus in the current repo for the /la:pr flow. Ensures the openspec CLI is available, scaffolds openspec/ with corpus-only config, and verifies health.
Ships in la. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
OPENSPEC_CMD)command -v openspec succeeds → OPENSPEC_CMD=openspec.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.OPENSPEC_CMD="npx -y @fission-ai/[email protected]" (bump the pin
as needed). If even npx can't fetch, STOP and tell me — do not proceed.Use $OPENSPEC_CMD for every openspec call below and hand it back to the caller.
Run from the repo root (init writes openspec/ into the cwd). Classify:
openspec/config.yaml → Step 3.openspec/config.yaml exists and $OPENSPEC_CMD 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.)openspec/ exists but has no config.yaml, or list/doctor
errors → Step 4.$OPENSPEC_CMD init --tools none --no-animation
Add --force only if it complains about legacy files. This creates just
openspec/config.yaml (schema: spec-driven); --tools none keeps it
corpus-only (no /opsx:* commands or AGENTS wiring — /la:pr gets its authoring
format from openspec instructions). Note: changes/<id>/ is created later by
openspec new change, and specs/ by the first openspec archive — init alone
lays down only config.yaml.
$OPENSPEC_CMD update.specs/|changes/, unparseable corpus) → report
the exact doctor/list error and ask how to proceed. Never guess-fix a
corrupted corpus.$OPENSPEC_CMD list must succeed (and
$OPENSPEC_CMD validate --strict if any specs/changes already exist).git add openspec/ plus any other newly created
files — never git add -A. Do NOT commit; leave that to me.openspec/ lives on the branch, so init on the mainline (then
merge) if you want every future branch/worktree to inherit it — don't init
per-worktree.Return to the caller (e.g. /la:pr) with OpenSpec now valid.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub motleyai/living-architecture --plugin la16 skills in this plugin
/arch-cleanupUse to carve or tighten ONE architecture boundary in a repo with the living-architecture setup — take a coherent batch of grandfathered `#legacy` arrows (or extract a new node), refactor them away with verified moves (deterministic-refactor), and shrink the legacy-arrow baseline monotonically. Behaviour-preserving by definition; one slice = one branch/PR./arch-initBuild a repo's first living-architecture model — write the language sections of architecture/index.yaml, scaffold the as-is model from the measured imports (la-arch-scaffold), choose the wedge with the user, draft the principles from the repo's own instructions, map the specs, and get la-arch-check green. Syntax and maintenance are in the la:living-architecture reference./codex-reviewUse the codex MCP server to review the current git diff. Focus on correctness, regressions, security issues, tests, and maintainability. Return only actionable findings with file/line references and severity. Do not modify files./concise-commentsRules for concise code comments/docstrings, plus a pass to trim verbose ones. Use when writing or reviewing code, or when asked to reduce comment verbosity / trim over-commented code / cut docstring bloat. Referenced by /la:pr and /la:process-reviews./fetch-coderabbit-threadsUse when the user asks to fetch / list / read / show unresolved CodeRabbit review threads on a GitHub PR. Pulls thread URL, file:line, author, and full comment body for every thread CodeRabbit opened that is not yet resolved, plus CodeRabbit's review-summary nitpicks./fetch-failed-pr-checksUse when the user asks to check / fetch / list / show failed CI checks (GitHub Actions, external CI) on a GitHub PR — including details/logs of the failures. Pulls the statusCheckRollup, filters to non-passing terminal states, and (for GitHub Actions runs) appends a log excerpt, or why there is none.Other plugins' skills for the same job