con un clic
branch-review
Review a branch's implementation against its branch plan
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Review a branch's implementation against its branch plan
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
| name | branch-review |
| description | Review a branch's implementation against its branch plan |
| allowed-tools | Bash(git *), Bash(gh pr *) |
Review the current branch assuming code was AI-authored from a branch plan. Focus on what a second AI pass uniquely catches: plan fidelity, fresh-context bugs, cross-cutting impact, unnecessary complexity, and security.
/branch-review [<base-branch>]
/branch-review — review current branch (base auto-detected)/branch-review develop — review against developIf the user provides a base branch, use it. Otherwise, auto-detect:
develop branch exists (git rev-parse --verify develop)develop exists and the current branch is not a release branch, use developmain — or master if main does not existRun in parallel:
git log <base>..HEAD --oneline — all commits on this branchgit diff <base>...HEAD --stat — files changedgit diff <base>...HEAD — the full diffPLAN.<branch-name>.md referenced in CLAUDE.local.md)If no branch plan exists, skip to step 4 and review the diff on its own merits.
Compare the branch plan against what was implemented:
Review the full diff with fresh context. Do not assume the author-AI made correct decisions. Check for:
Output a structured review called REVIEW.<branch name>-review.md using these sections. Omit any section that has no findings.
## Plan Fidelity
[Only if a branch plan exists]
- **Completed**: [N of M] plan tasks verified in diff
- **Skipped**: [list any plan tasks not implemented]
- **Scope drift**: [changes not in the plan]
## Issues
[Ordered by severity. Use review comment conventions.]
### blocking
- [file:line] — [description of issue and why it blocks]
### suggestion
- [file:line] — [description and suggested alternative]
### nit
- [file:line] — [cosmetic or minor observation]
### question
- [file:line] — [something unclear that the author should clarify]
## Summary
[2-3 sentence overall assessment. Is this ready for human review? Are there blocking issues?]
blocking for things that would cause bugs, security issues, or significant maintenance problemsInitialize Claude Code in a repository with standard project scaffolding. Use this skill whenever the user wants to set up Claude Code in a new repo, initialize claude configuration, run /init with extras, or mentions "ray-init". This goes beyond the built-in /init by adding gitignore rules, Sideways files, and a local planning doc.
Test-Driven Development discipline for writing code. Use this skill whenever writing new features, adding behavior, refactoring with tests, fixing bugs with regression tests, or when the user mentions TDD, red-green-refactor, test-first, failing tests, or asks to write tests before implementation. Also triggers when branch plans contain FAILING test tasks or test-first instructions.
Create a plan document for the current branch, or for a specified new/existing branch. The complete template and all instructions are provided below — do not search for examples elsewhere.
Plan and track a bugfix with diagnosis-first discipline — create a BUGFIX.<branch>.md working doc, trace the reported symptom to a proven root cause, and write a failing test that reproduces the bug BEFORE fixing it. Use when the user reports a bug to fix, asks to investigate or diagnose a defect, starts a bugfix branch, or mentions "ray-bugfix-plan". The complete template and all instructions are below — do not search for examples elsewhere.
Audit skill source files for personal references, credentials, and other publication blockers before mirroring them into the ray-ai-skills public repo. Use this skill whenever the user wants to audit one or more skills, check skills before publishing/syncing, look for hardcoded paths or sensitive content in skills, or asks "audit my skills". If no specific skills are named, audit every skill that has changed since the last sync (or is new and not yet mirrored).
Update the ray-ai-skills repo from source skills under ~/.claude/skills/ — audit, then sync, then stop before commit. Also handles adding a new skill to .shared-skills, removing a skill from the mirror, or auditing without syncing. Use this skill whenever the user wants to sync skills into the repo, publish skill changes, update the skills mirror, add a skill to the shared list, remove a skill from the shared list, or says "skills-update". Accepts natural-language targets like "sync all", "update ray-tdd and ray-commit", "remove ray-foo", "audit only", etc.