/la:fetch-failed-pr-checksfrom la
Fetches failed CI checks (GitHub Actions, external CI) on a PR with log excerpts. Filters to non-passing terminal states and appends failure details.
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> once per session before using any la-* or dr-* command; if it fails, stop and show the user its output.
la-fetch-failed-pr-checks <PR_NUMBER> [--repo OWNER/REPO] [--max-log-lines N]
<PR_NUMBER> — required.--repo OWNER/REPO — optional; defaults to the cwd repo via gh repo view.--max-log-lines N — cap each failed job's log excerpt at N lines (default 200). Pass 0 to skip log fetching entirely.Always emits both:
Markdown to stdout — one section per failed check: workflow / job name, conclusion, details URL, and either a log excerpt inside a collapsible <details> block whose summary names its source, or a line saying why there is none.
JSON file at ${TMPDIR:-/tmp}/failed-pr-checks-<pr>-<utc-ts>.json. Path printed on the last line, prefixed JSON: . Schema:
{
"pr": 70,
"repo": "owner/name",
"failed_checks": [
{
"typename": "CheckRun" | "StatusContext" | "WorkflowRun",
"name": "test",
"workflow_name": "CI",
"conclusion": "FAILURE",
"status": "COMPLETED",
"details_url": "https://github.com/.../actions/runs/12345/job/67890",
"completed_at": "2026-05-03T07:42:13Z",
"run_id": "12345",
"job_id": "67890",
"log_excerpt": "...",
"log_source": "log-failed" | "log" | "api-step" | "api-errors-tail" | null,
"log_attempts": [{"command": "gh run view --job 67890 --log-failed", "outcome": "empty log"}]
}
]
}
Any check whose conclusion (CheckRun/WorkflowRun) or state (StatusContext) is one of:
FAILURETIMED_OUTCANCELLEDACTION_REQUIREDSTARTUP_FAILUREERROR (StatusContext only)In-progress / pending / skipped checks are excluded.
gh pr view --json number -q .number).gh run view --log-failed, then the tail of the full log (--log), then GitHub's job-log API sliced to the failed step (its ##[error] lines plus the tail when the step can't be isolated). The <details> summary and log_source name the source; with no excerpt, the check lists each attempt and why it gave nothing. If the default 200-line excerpt isn't enough, re-run with a larger --max-log-lines (e.g. --max-log-lines 1000). Don't reach for gh run view --log directly — keep this workflow inside the command.gh pr checks / gh run view directlystatusCheckRollup typenames (CheckRun / StatusContext / WorkflowRun) — gh pr checks doesn't expose StatusContext cleanly.--max-log-lines when you need more.If the command is missing a flag you need, extend it rather than reaching for gh directly.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
16 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-reviewnpx claudepluginhub motleyai/living-architecture --plugin laOther plugins' skills for the same job