
Stage Chapters
Turns your git branch into a narrative code review by clustering related hunks across files into coherent chapters, each with a summary and flagged judgment calls. It wraps stagereview's prep and show commands, generating a structured story from your diff that opens in a browser SPA. The clustering logic is smart about grouping moves and refactors together rather than splitting them into separate deletions and additions, and it enforces that every hunk appears exactly once. Most useful when you want a reviewer to understand the why and flow of a feature branch, not just see a flat diff. The chapter ordering puts foundation changes first, then core logic, then integration.
- skills.sh installs
- 381
- GitHub stars
- 277
- last updated
- Aug 21, 2026
Install
$ npx -y skills add reviewstage/stage-cli --skill stage-chapters --agent claude-codeInstalls into .claude/skills of the current project.
Files
stage-chapters
Generates a Stage chapter run for the current local git branch and opens it in a browser. Uses stagereview prep to compute the diff, then generates chapters and a prologue, and hands the result to stagereview show to launch the SPA.
Prerequisites
Run these checks before any other work. If either fails, stop with the error message — do not continue.
-
stagereviewis installed. Runwhich stagereview. If it exits non-zero, instruct the user:stagereview is not installed. Run: npm install -g stagereview Then retry /stage-chapters.Stop.
-
The current directory is a git repo. Run
git rev-parse --is-inside-work-tree. If it does not printtrue, stop with:/stage-chapters must be run inside a git repository.
Step 1 — Run prep
PREP_FILE=$(stagereview prep)
Sponsors
Details
- Repository
- github.com/reviewstage/stage-cli
- Categories
- Git & Pull Requests, Code Review & Quality, Automation & Workflows, CLI & Terminal
- First seen
- Jun 3, 2026