A viewer for reviewing local code changes in small individual chapters. Works with any AI agent.
$ npx -y skills add reviewstage/stage-cli --agent claude-code
Repo: reviewstage/stage-cli
What's inside
npm install -g stagereview
Then add the skill to your agent:
npx skills add ReviewStage/stage-cli
npx skills remove ReviewStage/stage-cli
npm uninstall -g stagereview
In your AI agent, run:
/stage-chapters
This organizes your local changes into reviewable chapters and opens a browser UI. Everything happens on your machine.
| Flag | Description |
|---|---|
--base <ref> | Base ref to diff against (default: auto-detect main/master) |
--compare <ref> | Compare ref to diff against --base |
--ref <mode> | Diff scope: work (staged + unstaged + untracked), staged, or unstaged (default: auto-detect) |
--pr <number-or-url> | Review a GitHub pull request by number or URL (requires gh) |
Examples:
# Review only staged changes
/stage-chapters --ref staged
# Diff against a specific branch
/stage-chapters --base feature-a
# Compare two branches
/stage-chapters main feature
/stage-chapters main..feature
/stage-chapters --base main --compare feature
# Review a teammate's PR by number or URL
/stage-chapters --pr 123
/stage-chapters --pr https://github.com/owner/repo/pull/123
.stageignoreAdd a .stageignore file to your repo root to exclude files from the diff analysis. Uses .gitignore-style patterns, one per line:
# Build artifacts
build/**
dist/**
# Generated code
*.generated.ts
# But keep this one
!dist/important.js
Ignored files still appear in the "Other changes" chapter so nothing is silently hidden. Comments (#), blank lines, and negation patterns (!) are supported โ last matching pattern wins.
.agents/
agents/
code-architecture-reviewer.md
code-refactor-master.md
documentation-architect.md
frontend-error-fixer.md
plan-reviewer.md
refactor-planner.md
web-research-specialist.md
skills/
deslop-ui/
SKILL.md
fixing-ci/
SKILL.md
fixing-pr-comments/
SKILL.md
iterate-pr/
SKILL.md
linear-issue/
SKILL.md
quality-review/
SKILL.md
rebase-origin-main/
SKILL.md
trade-off/
SKILL.md
.claude/
agents/
auto-error-resolver.md
code-architecture-reviewer.md
code-refactor-master.md
documentation-architect.md
frontend-error-fixer.md
plan-reviewer.md
refactor-planner.md
web-research-specialist.md
settings.json
skills
.codex/
agents
skills
.github/
PULL_REQUEST_TEMPLATE.md
workflows/
ci.yml
.gitignore
.husky/
pre-commit
.nvmrc
AGENTS.md
assets/
screenshot.png
stage-mark.svg
biome.json
CLAUDE.md
LICENSE
package.json
packages/
cli/
drizzle/
drizzle.config.ts
0000_initial.sql
0001_view_state.sql
0002_grey_genesis.sql
0003_file_view.sql
0004_silly_firebird.sql
0005_quiet_mimic.sql
0006_puzzling_beast.sql
meta/
_journal.json
0000_snapshot.json
0001_snapshot.json
0002_snapshot.json
0003_snapshot.json
0004_snapshot.json
0005_snapshot.json
0006_snapshot.json
package.json
src/
__tests__/
build-other-changes.test.ts
comments.routes.test.ts
diff-parser.test.ts
diff.routes.test.ts
filter-files.test.ts
fixtures.ts
format-diff.test.ts
git.test.ts
github.test.ts
import-chapters.test.ts
path.test.ts
pull-request-mutations.routes.test.ts
pull-request.routes.test.ts
runs.routes.test.ts
schema.test.ts
server.test.ts
view-state.routes.test.ts
viewer.routes.test.ts
build-other-changes.ts
db/
client.ts
local-user.ts
path.ts
schema/
chapter-file-view.ts
chapter-run.ts
chapter-view.ts
chapter.ts
columns.ts
comment-thread.ts
comment.ts
file-view.ts
index.ts
key-change-view.ts
key-change.ts
diff-parser.ts
filter-files.ts
format-diff.ts
git.ts
github/
exec.ts
index.ts
mutations.ts
pull-request-ref.ts
pull-request.ts
repo.ts
viewer.ts
index.ts
prep.ts
routes/
comments.ts
diff.ts
json.ts
pull-request-mutations.ts
pull-request-shared.ts
pull-request.ts
runs.ts
view-state.ts
viewer.ts
runs/
import-chapters.ts
scope-key.ts
schema.ts
scope.ts
server.ts
show.ts
tsconfig.json
tsdown.config.ts
types/
package.json
src/
chapters.ts
comments.ts
diff.ts
index.ts
parsed-diff.ts
prologue.ts
pull-request.ts
view-state.ts
viewer.ts
tsconfig.json
web/
components.json
index.html
package.json
public/
favicon-16.png
favicon-32.png
favicon.ico
src/
app/
__root.tsx
index.tsx
runs.$runId.chapters.$chapterNumber.tsx
runs.$runId.files.tsx
runs.$runId.index.tsx
runs.$runId.tsx
components/
chapter/
__tests__/
hunk-highlight-overlay.test.ts
chapter-file-list.tsx
chapter-navigator.tsx
chapter-panel-constants.ts
chapter-side-panel.tsx
chapter-summary.tsx
file-header.tsx
hunk-highlight-overlay.tsx
index.ts
key-change-reference-tooltip.tsx
pierre-diff-viewer.tsx
rendered-line-target.ts
text-selection-popup.tsx
comments/
comment-actions.tsx
comment-form.tsx
comment-markdown-editor.tsx
comment-thread.tsx
markdown-toolbar.tsx
diff/
diff-settings-form.tsx
files/
collapsible-picker.tsx
file-diff-list.tsx
file-filter-input.tsx
file-picker.tsx
file-tree.tsx
index.ts
sidebar-layout.tsx
keyboard/
shortcut-label.tsx
shortcuts-dialog.tsx
layout/
theme-toggle.tsx
topbar.tsx
prologue/
prologue-section.tsx
pull-request/
ci-checks.tsx
merge-status-summary.ts
merge-status.tsx
overview-column-header.tsx
overview-sidebar.tsx
pull-request-body-card.tsx
pull-request-header-skeleton.tsx
pull-request-header.tsx
pull-request-status.tsx
reviewers.tsx
section-label.tsx
shared/
avatar-stack.tsx
bot-badge.tsx
ci-status-icon.tsx
copy-markdown-button.tsx
deployment-link-list.tsx
line-counts.tsx
mermaid-diagram.tsx
reviewer-avatars.tsx
segmented-toggle.tsx
shortcut-tooltip.tsx
status-badge.tsx
user-name.tsx
user-utils.ts
ui/
__tests__/
markdown.test.tsx
alert-dialog.tsx
avatar.tsx
badge.tsx
button.tsx
checkbox.tsx
collapsible.tsx
dialog.tsx
dropdown-menu.tsx
input.tsx
label.tsx
markdown.tsx
popover.tsx
progress.tsx
select.tsx
separator.tsx
skeleton.tsx
sonner.tsx
switch.tsx
tooltip.tsx
lib/
__tests__/
comment-drafts.test.ts
comment-threads-context.test.tsx
file-focus-shortcuts.test.ts
file-tree.test.ts
filter-files-for-chapter.test.ts
fixtures.tsx
format-chapter-markdown.test.ts
format-prologue-markdown.test.ts
line-refs-by-file.test.ts
parse-diff.test.tsx
use-file-collapse-state.test.ts
use-text-selection.test.ts
use-view-state-reads.test.tsx
use-view-state-writes.test.tsx
chapter-context.tsx
collapse-actions-context.tsx
comment-drafts.ts
comment-threads-context.tsx
diff-types.ts
file-status.ts
file-tree.ts
filter-files-for-chapter.ts
format-chapter-markdown.ts
format-prologue-markdown.ts
format.ts
keyboard-shortcuts.ts
line-refs-by-file.ts
mermaid-renderer.ts
parse-diff.ts
pull-request-context.tsx
pull-request-mutations.ts
sort-line-refs.ts
split-with-newlines.ts
syntax-themes.ts
theme.tsx
use-chapter-navigation-keys.ts
use-chapters.ts
use-comment-threads.ts
use-current-file.ts
use-diff-patch.ts
use-diff-settings.tsx
use-file-collapse-keys.ts
use-file-collapse-state.ts
use-file-diff-navigation.ts
use-file-keyboard-mode-exit-key.ts
use-file-navigation-keys.ts
use-file-viewed-key.ts
use-is-mac.ts
use-local-storage.ts
use-pull-request-status-actions.ts
use-pull-request.ts
use-resizable-panel.ts
use-reviewer-manager.ts
use-shortcut.ts
use-text-selection.ts
use-view-state.ts
use-viewer.ts
utils/
utils.ts
pull-request-status.ts
main.tsx
router.tsx
routes/
chapter-detail-page.tsx
chapters-index-page.tsx
files-page.tsx
pull-request-layout.tsx
routeTree.gen.ts
styles/
globals.css
tsconfig.json
vite.config.ts
pnpm-lock.yaml
pnpm-workspace.yaml
README.md
skills/
stage-chapters/
SKILL.md
TESTING.md
vitest.config.tsFAQ
stage-cli is a Claude Code plugin with 1 hand-picked skill for code review work, indexed on Flowy. Install it with the command on its page. It includes stage-chapters. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.