/rails-flow:issues [issue number | label filter]from rails-flow
Triage the repo's open issues and work them through the matching pipeline — verify the issue's claims before editing, check that nothing it waits on is still open, group issues that are one change wearing several numbers, each PR closing what it fixed
Ships in rails-flow. Installing the plugin adds it to Claude Code.
Agents are named by role (developer, migrations, test_runner, reviewer, security, design_auditor), resolved from the project's stack: see reference/stack-roles.md. When the stack names no agent for a role, STOP and ask; never use a Rails agent by default.
Turn the repository's issue tracker into the work queue. One coherent branch at a time, full pipeline every time, nothing half-done.
An issue body is a hypothesis, not a specification. However confident it reads, every externally-verifiable claim in it is checked before a line is written — a stated contract, a version fact, "per the docs X" — because a plausible wrong claim implemented as written becomes a confident wrong behaviour with a spec proving it. (The marketplace that ships this flow once took an issue's four "ARIA APG" keybindings at its word; the spec had dropped them years earlier.)
Read CLAUDE.md and GUARDRAILS.md. Determine the base branch (dev if it exists).
Confirm gh is authenticated (gh auth status).
This command works the tracker, so anything not in it is invisible. If defects surfaced live in this session (the user reporting problems while reviewing the running app) and aren't filed yet, file them first — one issue each, with repro + expected/actual, batched in a single pass — so they enter the queue below instead of becoming ad-hoc hot-fixes. Then triage normally.
findings.jsonl, one issue per defectOnly a full review's dated file, docs/evidence/reviews/<date>/findings.jsonl. Never file from
docs/evidence/reviews/prs/: those records are per-PR review findings, already fixed on their
branch, and kept so recurrence can be counted (#1360), not so they can be filed again.
If a review produced docs/evidence/reviews/<date>/findings.jsonl, file from that, not from the markdown
(#138). The distinction is the whole point:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/findings.py" dedupe docs/evidence/reviews/<date>/findings.jsonl
File one issue per distinct signature, not per record. A defect seen by three passes, or
appearing on 72 pages, is one issue that says "N instances across M locations" — not N issues.
This is measured, not hypothetical: a real crawl produced 773 occurrences of one a11y defect
whose distinct count was about 18, and a developer told "773 defects" stops reading, while one
told "18, one of which is on every page" fixes the navbar.
Carry signature into the issue body. It is how the next review recognises the same defect instead
of filing it again.
gh issue list --state open --limit 50 --json number,title,labels,createdAt,body
If $ARGUMENTS names an issue number, triage and work only that one. If it names a
label, filter to it. Otherwise triage everything:
Classify each issue: bug · feature · chore/docs · needs-info.
Trust existing labels; infer from title/body when unlabeled, and apply the label
(gh issue edit <n> --add-label <type>).
needs-info: the issue lacks enough detail to act (no reproduction, ambiguous
intent). Comment with the specific questions, label it needs-info, and skip —
never fabricate requirements.
Every issue declares its mock-up (#1376), unless GUARDRAILS.md declares mockup-gate: off.
An issue whose resolution changes what a user sees (a feature, an enhancement, or a bug whose fix
alters a screen) links a clickable mock-up and the owner's approval of it (the link to the
comment where they said so); every other issue says "no visible change". Check them all at once:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/check_issue_mockup.py" --open --ready
--ready is triage's question: a linked mock-up with no approval link is not ready. For each
MISSING issue, decide which it is. If the fix plainly touches no screen, add a
## Mock-up section saying "no visible change" and say why in one line. Otherwise comment asking
for the mock-up, or for the owner's approval of the one linked, label it needs-info, and skip it:
it is not ready. On the day a project adopts
this, every open issue is missing, so settle the plain "no visible change" ones in one pass before
asking about the rest. /rails-flow:feature and /rails-flow:fix check the real change again, so
a wrong "no visible change" is caught before merge.
Compute the order, don't reason it out. Priority alone does not give an order — a P1 sitting behind an unstarted blocker is not the next task — and an order re-derived by hand each time is the reasoning that gets redone next time:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/check_issue_ready.py" --queue
Ready-now first (P1 > P2 > P3 > unranked, bugs before features, oldest first), blocked issues
under what blocks them, needs-info skipped and said so. It exits non-zero and prints no queue
when the graph is wrong — a cycle, an edge to an issue that does not exist. Those are filing
errors: fix the bodies, re-run; do not rank by priority instead. Post the queue to the user
before starting, and quote its coverage line verbatim (N/M open issues declare edges) — an
order computed from three declared edges out of forty is worth having and dishonest to report
without saying so. While triaging, add depends-on: lines to any issue whose ordering you had
to work out by reading prose.
Group issues that are one change wearing several numbers — it covers more ground per branch, and for two issues editing the same lines it is the only reviewable shape. Group when all hold:
Traceability is never pooled: the branch name carries the primary issue; the PR body carries
one Closes #n per issue; if the project keeps a CHANGELOG, one bullet per issue. Pool those and
nobody can say which fix answered which report.
For the issue — or group — at the head of the queue:
Verify the issue's claims before anything is edited. Extract them and hand the list to claim-verifier, which checks each by running or grepping, never by reasoning:
gh issue view <n> --json body --jq .body > /tmp/issue-<n>.md
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/extract_claims.py" /tmp/issue-<n>.md
A refuted claim is commented on the issue with the evidence and the issue is relabelled
needs-info; it is not implemented as written. An unverifiable claim is a question back to
the reporter, not a licence to guess. Read for omissions too: what the issue does not say the
upstream requires.
0b. Check that nothing it waits on is still open — for every issue the branch will carry, in one call, so a grouped branch declares its whole set:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/check_issue_ready.py" <n> [<m> …]
It reads depends-on: #n / blocks: #n lines (or a ```deps fence) from issue bodies
— strict syntax, so prose saying "depends on" and a Ruby depends_on: in a code sample are not
edges — and exits non-zero with the reasons on stderr when a named issue waits on open work, is
already closed, or is not in the tracker. "Take the head of the queue" was a claim nothing
checked; this is the check. On a refusal: work the blocker first, or say in the PR body that you
are going out of order and why. A READY that says "declares no edges" means the tracker names no
blocker, not that none exists.
Comment on the issue that work is starting (visibility for humans).
Branch by type off the base: bugs → fix/issue-<n>-<slug>, features/chores →
feature/issue-<n>-<slug> (a group takes the primary issue's number).
Apply the matching discipline:
migrations role for schema.Gates (all mandatory): the reviewer role → VERDICT: CLEAN; the test_runner role → full suite,
0 failures; the security role / the design_auditor role when their domains were touched.
Open the PR only when every issue it names is COMPLETELY done. The PR carries a closing keyword, so merging it closes those issues — a PR opened over unfinished work is a request to close an issue that is not fixed, and the remainder becomes invisible the moment it merges. "Done" is the whole of it: every claim in the issue body answered, every gate in step 4 green, and nothing left that you were planning to push to this branch afterwards.
A PR may close several issues; each one must independently be finished. Grouping is about sharing a branch, never about carrying a half-done issue along on a finished one's merge.
If part of a grouped branch is not finished when the rest is, do not hold the finished work
and do not ship the unfinished issue: drop that issue from the branch, remove its Closes,
and leave it open in the queue. One issue slipping is not a reason to delay the others, and a
Closes on it is a false claim about what merged.
What this rules out, because each has happened: opening a PR to "get CI running" on a branch
you intend to keep pushing to; opening a draft that names issues you have not started; and
listing a Closes for an issue whose acceptance criteria you decided to narrow without saying
so on the issue first.
One Closes #n per issue on a grouped branch, never one line for the group:
gh pr create --base <base> --title "<type>: <summary> (#<n>)" \
--body "Closes #<n>. <Summary / Changes / Proof (specs added)>"
Then check what the body claims, not only what the diff does — the same
extract_claims.py → claim-verifier pass as step 0, on your own PR body. A sentence about the
change can be wrong while the diff is internally consistent.
Merge gate: review-pr skill if the code-review-graph CLI + graph are present, else the pr-reviewer agent — repeat until CLEAN.
Close-out: run /rails-flow:pr-comments on the PR. Every review thread must be fixed on-branch or folded into a tracked issue before this issue counts as done.
Merge to dev on CLEAN (default-branch bases stop for the user). Verify the issue
auto-closed (gh issue view <n> --json state); close manually with a comment if
the keyword didn't trigger. doc-updater if behavior or architecture changed.
Only now take the next issue from the queue.
/goal there are zero open workable issues (excluding needs-info) — work them with /rails-flow:issues, one at a time. The guardrails, stop gate, and merge review keep
the run inside the rails.
Issues triaged (per class), claims refuted (with the evidence, and the issue relabelled), issues refused as not ready (and what they wait on), issues completed with PR links, issues skipped as needs-info with the questions asked, and what remains in the queue.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
26 commands in this plugin
/brain/rails-flow:brain — $ARGUMENTSInstitutionalize a lesson or decision as a docs/brain memo, indexed in MEMORY.md/brain-review/rails-flow:brain-review — $ARGUMENTSWeekly maintenance sweep of docs/brain — flag stale STATUS/evidence, surface decisions-vs-PRD drift and contradictions, compress patterns, and check hypotheses against evidence. Read-only analysis + proposed edits; never rewrites silently./brain-sync/rails-flow:brain-sync — $ARGUMENTSPublish this project's brain status to a shared cross-project brain repo, and consume sibling projects' status — so agentic flows in separate repos coordinate WITHOUT cloning each other. Uses gh (single-file reads/writes), git as source of truth./brief/rails-flow:brief — $ARGUMENTSTurn a vague ask into something buildable — ingest whatever documents or code already exist, interview only the genuine gaps, and write docs/brain/BRIEF.md as an index over the sources rather than a copy of them./claim-coordinator/rails-flow:claim-coordinatorTake the machine-wide coordinator role for THIS session, from inside it, without going to the other session to fight for it. The override a session was elected the wrong role needs: same claim as RAILS_FLOW_ROLE=coordinator, no restart./coordinate/rails-flow:coordinateCross-session coordination computed from the repository — who is idle with finished work, which announced paths collide, which conflicts are generated and which are the author's judgement. Reports and messages; it never merges, never writes, and stays silent on single-session work.npx claudepluginhub fmanimashaun/claude-skills --plugin rails-flowOther plugins' commands for the same job