/la:pr-testsfrom la
Stage 2 of the /la:pr flow: writes a failing test suite (TDD-first) from an agreed plan, then optionally reviews tests against the plan via Codex. Useful for structured PR workflows with OpenSpec.
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.
Stage 2 of 4 of the /la:pr flow. Prerequisite: /la:pr has run in this
session, preflight included, and established BRANCH, CHANGE_ID, OPENSPEC, and the full tracker
issue (body + comments), if there is one. If any of that is missing, invoke the la:pr skill
instead — it rehydrates and dispatches back here. The /la:pr stopping policy
applies throughout this stage.
Before writing anything, recover the durable plan from pr-plan:
OPENSPEC=1 — read the whole change folder
openspec/changes/<CHANGE_ID>/ (proposal, design, tasks, delta specs).OPENSPEC=0 — the finalized plan is a comment on the tracker issue.TDD-first: land the full
test suite for the agreed plan before writing any implementation. Tests
should fail for the right reason (feature missing), not for setup reasons.
Run the tests in the /la:pr local test scope to confirm that.
If OPENSPEC=1, derive the test cases from the delta scenarios in
openspec/changes/<CHANGE_ID>/specs/<capability>/spec.md: every
#### Scenario: needs at least one covering test.
When writing tests, follow the la:concise-comments skill: no design essays,
ticket-ID-on-every-line, or code-restating comments; docstrings to a line.
Rationale belongs in the spec / PR description / the tracker issue — not in
code — so verbose comments never get written in the first place.
Codex follows reviewers.codex. If la-config get reviewers.codex prints false, skip this step. Otherwise, if the Codex MCP server (mcp__codex__codex) is not available, STOP and tell me: this repo requires Codex reviews, so never skip one silently.
Hand both the plan (from pr-plan, post-discussion) and the new tests
to mcp__codex__codex and ask it to verify that the tests faithfully cover
the plan: every behavior in the plan has at least one test, edge cases
discussed during the plan review are exercised, and no test asserts behavior
that contradicts the plan. Codex should not modify files.
Bring the findings back to me. Adjust the tests (add, remove, or fix) based on what we agree on before writing implementation.
If OPENSPEC=1, "the plan" includes the delta specs: verify every ADDED/MODIFIED
requirement and each of its scenarios has a covering test.
Once the tests are finalized (Step 2 findings resolved), git add every file
this stage created or changed — by specific named path — then commit them. This
is the full set: new test modules and their fixtures/helpers, plus any file this
stage only modified (a flipped existing test, a reworded docstring, an
amended golden file, an approved plan/spec edit). Per the /la:pr
"commit at the end of every stage" rule, do this without asking. Rules that
still hold:
git add -A / git add . / git add tests/ — only specific named
paths. Listing several named paths in one git add command is fine; a bulk
add (all files, ., or a directory) is not.pr-implement.🛑 HARD STOP (reset point 2 of 3) — before implementation. The finalized failing tests, and every other file this stage created or changed, are committed. Say we're at reset point 2 and STOP — do not start implementing. I'll
/clearand re-invoke/la:pr, which will detect and runpr-implement.
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