/la:arch-initfrom la
Scaffolds a living-architecture model for a new repo: writes language sections in index.yaml, runs la-arch-scaffold to generate as-is C4 model and views, guides wedge selection, and gets la-arch-check passing.
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.
Preflight: run la-doctor --plugin <this skill's base directory> --require-config once per session before using any la-* or dr-* command. If it reports the missing-config finding (the one naming /la:init), run the fast path of the la:init skill, then re-run this preflight; stop and show the user its output on anything it still reports, or on any other failure.
The syntax of the model, index.yaml, views and arc42 files, and every check la-arch-check runs, are in
the la:living-architecture skill; read it first. Everything this skill writes is normative, like tests:
show each model, arc42 and index.yaml edit and get the user's OK before landing it.
architecture/index.yaml does not exist (otherwise this is maintenance: use la:living-architecture).openspec: true in the config means openspec/ is healthy; if not, run la:openspec-init first.dr-typecheck. If it checks a language that has no baseline, offer
dr-typecheck --write-baseline (the one legitimate recording; afterwards the baseline only shrinks). If it
prints "nothing to check", tell the user that la:arch-cleanup cannot verify moves without one, and offer
to set commands.typecheck first.Write architecture/index.yaml with one section per language the repo has: root_package (or
root_packages when the language's code sits in several sibling directories under one source_root), and
source_root / tsconfig where needed. Confirm them with the user. From now until step 8 la-doctor
reports architecture: false against the new index; that is expected.
Run la-arch-scaffold. It writes, atomically, the as-is model in architecture/model.c4 (one node per
top-level unit, one arrow per measured runtime import edge), one view per language in architecture/views.c4,
system.arc42.md with the generated diagrams and TODO sections, and legacy_arrows / diagrams in
index.yaml. It refuses (exit 2, writing nothing) when any LikeC4 file (.c4, .likec4) or arc42 file
already exists under architecture/. Show the user the model and the arrow list.
Offer only genuine options: less work is never a pro and more work never a con unless the amount is ridiculously large, and an option that breaks something working today is not offered without a very good reason.
Interview the user, one question at a time, each with PROS/CONS and a RECOMMENDATION:
#legacy and set legacy_arrows.baseline to
their exact count;The model stays true at every step: every arrow is a measured edge, and grandfathered ones are #legacy,
never omitted.
Draft system.arc42.md from the repo's own CLAUDE.md / AGENTS.md and the structure you measured:
Purpose and context, numbered Principles (each with a status tag: [enforced: …], [review] or
[target: …]), and Rationale. Present the principles ONE BY ONE and land each only on the user's OK. Write an
element arc42 file (architecture/<element id>.arc42.md) only for the 1–3 elements that earn prose now.
If the repo has an ADR or decisions file, fold its present-tense rules into the owning elements' principles, then, with the user's OK, delete it (history stays in git and the OpenSpec archive).
The scaffold maps no specs. Map every openspec/specs/<id> exactly once: in one element's metadata specs (at any depth), or
in cross_cutting_specs with its touches: list. Decide each with the user.
Run la-arch-diagrams, LikeC4 model validation (npx likec4 validate, or the lightest command that parses
the model) and la-arch-check, and fix until all are green.
Set architecture: true in living-architecture.yaml and run la-doctor --plugin <this skill's base directory> --require-config
until it passes. Do not wire CI. The user commits.
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./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./initOnboard a repo to the la plugin — detect its tracker, test/lint/type-check commands, Codex, Sonar and any existing OpenSpec or architecture setup, propose a complete living-architecture.yaml with a source for every key, ask only what cannot be detected, write the file, then offer the type-check baseline and la:arch-init. Also the fast path other skills run when a repo has no config, and the way to edit or convert an existing config.Other plugins' skills for the same job