/review-powers:review-ticket <JIRA-KEY or URL>from review-powers
Reviews a completed Jira ticket holistically — across subtasks and merged PRs — to surface cross-cutting issues like contract drift, duplicate helpers, obsolete scaffolding, and missing deploy order. Files improvements as a follow-up Task.
Ships in review-powers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Flow: gather → report → discussion, if any → create the Task. If no ticket was given, ask which one.
Every PR here was reviewed and merged; don't redo that. Review the ticket as one change, for what no PR-level pass could see: a contract that drifted between backend and frontend, a helper built twice, scaffolding a later PR made obsolete, a deploy order nobody wrote down. A finding is the case for a follow-up worth its cost, not a blocker.
Needed: the ticket and every subtask; every PR whose title, body or comments name a key, or whose branch starts with it, with its changes and review feeds; per repo, the code at its default branch and its AI context. No ticket or no PR changes: stop and say what's missing. Anything else missing: name it in what you read.
Script: with Python 3, gh, git and acli logged in, run
${CLAUDE_SKILL_DIR}/scripts/gather.py [--owner <owner>] [--repos-dir <dir>] <KEY> <scratchpad>/gather
in the background, unpiped, and read <scratchpad>/gather/index.md as it
fills: a foreground run shows nothing and can time out silently. A repo
still PENDING once the run ended was not gathered: treat it as FAILED.
Don't ask for the options: --owner when the context names the GitHub user
or org, --repos-dir when it says where the clones live.
No script: when one of those is missing, or the tickets aren't in Jira: collect the same with the tools you have (the tracker's, the code host's) and lay it out as layout.md says. Story, subtask and parent mean the tracker's nearest equivalent.
Read from the index outward, broadly:
docs/ the change touched or should have.Each repo's rules: its AI context won't load on its own. Its
context.md lists the files in two groups, because a long flat list goes
unread:
Follow what they point to when it bears on the change; nearest the code wins. A FAILED repo: say its code and context went unread.
Code trees are detached worktrees in the scratchpad; never read the
user's working tree. Remove them at the end (gather.py --cleanup <dir>).
No subagents: they start cold and re-read what you have; so far that doubled the cost without sharper findings.
An unread feed and a clean one look identical in a report; say which you read.
Heaviest first. Say which came back empty, as distinct from unexamined.
The user decides from the report and rarely opens the code. Skip preambles and keep prose brief and plain: what goes wrong and why, in everyday words. Names in backticks point at the code; they don't explain it. A term they would have to look up gets a few words or stays out.
Lead each finding with one concrete case, then why it happens.
An abstract point needs numbers: "3 shirts in M + 1 in L, merged by
product → the warehouse ships 4 in M". A finding that is already one input
and one wrong result is its own case, and a sentence is enough. A case that unfolds in steps
(a rollout, retries, a race) gets a few lines in text:
Old pods still serve while the migration drops `quote.status`.
during rollout: old code selects it → 500 on every quote read
safe: stop reading it now, drop it next release
Add a view only where prose would leave the reader rebuilding a shape or a flow. Pick the smallest one that makes the point, next to the sentence it supports:
What changes in something that already exists, a shape (route, fields with
type and nullability, table columns) or the fix you propose, as a diff,
never raw JSON:
GET /api/v1/orders/{orderId}
response Order
id: uuid
+ shipments: Shipment[] (required)
- legacyTotal: decimal?
Changed control flow as a call tree or pseudocode in text, the new step
marked.
An interaction across services as a mermaid sequenceDiagram, when prose
would need more than two sentences.
Which files changed as a shallow file tree, only when that matters.
Usually one kind of view, sometimes two. Use your judgement and don't overwhelm the user.
Plain conversation text, not a dialog. In order:
# [ABC-123](https://example.atlassian.net/browse/ABC-123): <title>
When a guest picks a rate, the booking page shows what it includes (e.g. breakfast) and adds its price to the total.
5 PRs in hotel-api and 2 in web, last merged 11-06, no feature flag.
Then one mermaid diagram per main action a user or system now does with
it (calculate a price, create an order, a webhook confirming), trigger to
answer, under a line naming it:
sequenceDiagram, or stateDiagram-v2 for a lifecycle;erDiagram of the changed stored data as it is now, only with three
entities or more;file:line on the
default branch, PR) and value against cost. Contract drift: the shape each
side expects, as a diff.Order findings by what ignoring each would cost, worst first: the user may stop reading anywhere. Start each with a tag for what it is about: Bug, Product, Tests, Design, Docs, Security, Deploy, Conventions, Localization, Scope, Nit, or a better word when none fits. One tag; when two fit, pick by what goes wrong if it's ignored.
Every item gets a recommendation. Trace each through every layer it crosses (can the frontend read that response, does it race with a worker, does removing X change the result); untraced, say so. Never comment on PRs.
Close with What I'd do: your verdict in one sentence and what you'd file. End it with one line inviting a change: "Go ahead, or tell me what to file instead (by finding number)." Then the next step, in this order:
review-<KEY>.html in the current directory,
not the scratchpad; the whole report in its order and tags,
self-contained except Mermaid from a CDN at a pinned version, light and
dark. Give its path, then offer 1 and 3 again.Then stop. File nothing until the user answers.
Optional. The user may question findings or change what gets filed. A reframed premise means rerunning the reasoning. Answer, then offer the next step again.
When the user says to create it, create it: no draft, no second confirmation. Show the draft only if asked.
One Task, unassigned:
Review <KEY>: <ticket title>.mermaid code block.file:line, PR), its case
from the report, which doubles as "done when". A fix is a candidate
naming its assumption; the implementer chooses.- [ ] each.Write it in what md2adf.sh handles (headings, lists, checkboxes, code
blocks, code, bold, links), then:
${CLAUDE_SKILL_DIR}/scripts/md2adf.sh task.md task.json
acli jira workitem create -p <PROJECT> -t Task -s "<title>" --parent <PARENT> --description-file task.json --json
acli jira workitem link create --out <NEW> --in <KEY> --type Relates --yes
<NEW> is the create output's key. Without acli or Jira, the tracker's
own tool for the same Task and link, with the Markdown as is where it takes
Markdown. Report the key, URL and failures.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jcesarperez/review-powers --plugin review-powers3 skills in this plugin
Other plugins' skills for the same job