From yellow-review
Internal reference for PR review workflow patterns. Use when agents or commands need shared conventions for adaptive selection, output format, or error handling.
How this skill is triggered — by the user, by Claude, or both
Slash command
/yellow-review:pr-review-workflowThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Reference patterns and conventions for PR review workflows. Loaded by commands
Reference patterns and conventions for PR review workflows. Loaded by commands and agents for consistent behavior.
Use when yellow-review plugin commands or agents need shared context for adaptive agent selection, output format, error handling, or Graphite integration.
This skill is not user-invokable. It provides shared context for the yellow-review plugin's commands and agents.
code-reviewer — runs on every PRcode-simplifier — runs as final pass after fixes appliedSelection is based on git diff --stat and git diff output analysis:
pr-test-analyzer — Selected when:
*test*, *spec*, __tests__/*comment-analyzer — Selected when:
/**, """, ''', or @param/@returns/@throws
annotations.md documentation filestype-design-analyzer — Selected when:
.ts, .py, .rb, .go, .rsinterface, type, class, struct, enum,
model, dataclasssilent-failure-hunter — Selected when:
try, catch, except, rescue, recoverfallback, default, || null, ?? undefined, or NoneThese are spawned via Task tool when conditions match:
security-sentinel — Selected when:
auth*, *security*, *crypto*, *.shexec, eval, password, token, secret, shellarchitecture-strategist — Selected when:
performance-oracle — Selected when:
query, SELECT, INSERT, loop, while, for.*rangepattern-recognition-specialist — Selected when:
agents/*.md, commands/*.md, skills/*/SKILL.md,
plugin.json (plugin authoring convention checks)code-simplicity-reviewer (yellow-core) — Available as additional pass when:
Gross changes = additions + deletions from git diff --stat | tail -1.
# awk field references ($1, $2) don't need shell quoting
git diff --numstat origin/main...HEAD | awk '
$1 != "-" { add += $1; del += $2 }
END { print add + del }
'
Binary files show - in numstat and are excluded.
All agents use this consistent format:
**[P1|P2|P3] category — file:line**
Finding: <what the issue is>
Fix: <concrete suggestion>
| HTTP Status | Category | Action |
|---|---|---|
| 401 | Authentication | Report: "Run gh auth login to re-authenticate" |
| 403 | Permission | Report: "Insufficient permissions for this repo" |
| 404 | Not Found | Report: "Repository or PR not found" |
| 429 | Rate Limit | Exit with: "GitHub API rate limit exceeded. Wait and retry." |
| 5xx | Server | Report: "GitHub server error. Retry in a few minutes." |
| Error | Action |
|---|---|
| Dirty working directory | Error: "Uncommitted changes detected. Commit or stash first." |
gt submit failure | Report error, suggest gt stack to diagnose |
| Merge conflict on restack | Abort restack, report to user for manual resolution |
gt track failure | Warn and proceed with raw git (degraded mode) |
/review:prfix: address review findings from <agent-list>
/review:resolvefix: resolve PR #<num> review comments
/review:allSame per-PR messages as above, applied to each PR in sequence.
All default single-commit branches use gt modify -m "<message>". Only use
gt modify --commit -m "<message>" when you intentionally want multiple
commits on one branch. Push via gt submit --no-interactive.
gt modify -m "fix: ..."gt submit --no-interactivegt upstack restack (abort on conflict, report to user)gt checkout <branch>gt loggh pr checkout <PR#> to create local branchgt track to adopt into Graphitegt track fails: warn and proceed with raw git (degraded mode)To spawn cross-plugin agents from yellow-review commands, use the Task tool:
Task(subagent_type="yellow-core:security-sentinel",
prompt="Review these files for security issues: <file-list>")
Agent type names follow the pattern: yellow-core:<agent-name>.
To spawn the optional Codex supplementary reviewer (requires yellow-codex):
Task(subagent_type="yellow-codex:codex-reviewer",
prompt="Review this PR for bugs, security issues, and quality problems.
Base branch: <base-ref>. PR title: <title>.")
The codex-reviewer runs in parallel with other agents and returns P1/P2/P3
findings tagged with [codex] for convergence analysis. If yellow-codex is
not installed, the agent spawn silently fails — no degradation to the review.
Located at skills/pr-review-workflow/scripts/:
<owner/repo> <pr-number> — Returns JSON array of
unresolved, non-outdated review threads<thread-node-id> — Resolves a single thread
(idempotent)Both require gh and jq to be installed.
After resolving threads:
get-pr-commentsGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub kinginyellows/yellow-plugins --plugin yellow-review