configs/claude-code/skills/ralph-review/SKILL.md
Review a Ralph plan and bd graph for defects via Claude opus subagent.
npx skillsauth add jimweller/dotfiles ralph-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
STARTER_CHARACTER = 🔍
Dispatch an opus subagent to review the ralph plan and bd graph for defects.
The launcher validates the bd graph, captures graph state, then invokes the subagent.
Derive the slug and locate the run epic:
PROJECT_ROOT=$(git rev-parse --show-toplevel)
SLUG=$(git branch --show-current | tr '/' '-')
EPIC=$(bd list -t epic -l "ralph:${SLUG}" --json | jq -r '[.[] | select(.status=="open")] | .[0].id // empty')
Run structural checks. Each failure is a HIGH finding:
ralph:${SLUG}bd dep cycles reports no cyclesbd list --parent "$EPIC")bd ready --parent "$EPIC")bd list --parent "$EPIC") equals label set (bd list --label "ralph:${SLUG}" excluding the epic)Check for isolated nodes (MEDIUM).
If any HIGH finding, report directly and stop. The graph must be sound before review.
bd list --parent "$EPIC" --json
bd ready --parent "$EPIC" --json
bd list --label "ralph:${SLUG}" --json
Invoke the Agent tool with the review prompt below. Substitute <PROJECT_ROOT>, <SLUG>, <EPIC>, the graph validation findings, and the captured graph state.
Agent parameters:
model: opus (required, the review quality depends on this)description: "Ralph plan review"Relay the response verbatim, prefixed with the graph validation findings.
You are a plan reviewer. Read the plan, evaluate it against the graph state, and review for defects.
Read <PROJECT_ROOT>/.llmtmp/ralph-plan.md. Then locate the ## Inputs section and parse the plan documents: line. Split on commas, trim whitespace, Read each path. These are plan documents: forward-looking intent the planner consulted (a PRD, a design note). The plan must faithfully render them. Flag the plan if it omits, contradicts, or stale-references a plan document requirement.
A ralph loop is an autonomous, iterative execution mechanism. Two modes share the same artifacts:
claude --print per iteration.Mechanics:
--parent filtering.ralph:<slug>. Every child task carries both --parent <epic> and the same label. The two signals are independent for orphan detection.bd ready --parent <epic> --json, takes the first result, executes its description, closes the task, then stops.Accepted patterns (do not flag): collapsing tasks into bundles, partial completion, the ralph:<slug> label as run-identity (not workflow dispatch).
A finding is a defect, gap, or risk the author should fix before execution. Conformance is the baseline, not a finding. Severity is HIGH or MEDIUM only. Omit anything less severe.
HIGH: zero or multiple open epics for ralph:<slug>; empty descriptions; graph cycles; no children under epic; children but no ready tasks; parent/label set mismatch; per-task workflow continues after bd close instead of stopping; per-task workflow omits epic closure before sentinel; missing Run Identity section; missing Inputs section with plan documents: line; plan contradicts a plan document; Approach prose declares ordering the dependency edges do not enforce.
MEDIUM: description omits verification command or commit message; isolated task in a multi-task graph; plan duplicates bead descriptions; bead touching README.md/CLAUDE.md/.llmdocs/ authors edits instead of running /docs.
Review for these defect patterns only. Report defects found, nothing else.
bd ready order produces wrong results; implicit dependencies missing explicit edges; cycles; isolated nodesralph/ branch and BEGIN/END tags; inline edits instead of /docs delegation# Ralph Loop Review
**Model**: claude-opus
## Goal Clarity
## Task Decomposition
## Sequencing and Dependencies
## Plan Completeness
## Risk and Gaps
## Feasibility
## Summary
Finding format: - **[high]** Title. Description. or - **[medium]** Title. Description.
Every section heading present. Defects only under each. 'No findings.' when a section has no defects.
Summary: overall assessment and top 3 recommendations.
Cite task IDs and section names. Produce the review, nothing else.
testing
Search saved session transcripts for past decisions, actions, errors, and context that has left the current conversation window.
data-ai
Review a PRD for defects via Claude opus subagent.
development
Markdown authoring guidelines for formatting, code blocks, and structure. Use when writing or editing markdown files.
development
--- name: md-style description: README style guide for concise, direct documentation. Use when writing or editing README files. ß--- <!-- markdownlint-disable-file MD041 --> # README Style Guide Write concise, direct README files for experienced engineers. ## Principles - **No fluff** - Skip tables of contents, verbose explanations, development history - **No roadmaps** - Document current state only, not plans or decisions. Readme is an engineering specification. Not a project plan or chan