/apogee:review-work [base branch, default: develop (main on a hotfix branch)]from apogee
Review a work branch before it merges, as one loop: run the tests of the change, review the whole branch (built-in /code-review for bugs and security, an Apogee rules audit, an intent verdict against what was asked), fix the valid findings, re-run the tests. Called by /apogee:finish with the branch base; also on the user's request. Not for prose (README, docs): /apogee:readme has its own check.
Ships in apogee. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
One loop that leaves the branch reviewed, fixed and tested:
1. tests of the change what is already broken
2. review the whole branch bugs and security, rules, intent
3. fix valid high/medium findings, committed on the branch
4. tests of the change again the fixes broke nothing (at most two repair rounds)
5. report
You are the judge throughout. Reviewers have fresh eyes and no conversation context; you have the context and the authority to reject. The full test suite is not part of this loop: it runs in the release preparation and in CI.
Context from user: $ARGUMENTS
Base. $ARGUMENTS names it; otherwise the base of the current branch type: main (the
production branch) on hotfix/*, gitflow.branch.develop (fallback develop) on anything else.
Range. Everything the branch adds over its base, committed or not:
git diff --stat <base>...HEAD; git diff <base>...HEAD # committed on the branch
git diff --stat HEAD; git diff HEAD # not committed yet
Both empty → nothing to review; say so and stop.
Kind. Changed files that are all prose or config (*.md, docs/**, *.json/*.yml/
*.toml with no code next to them) → prose branch: skip /code-review and the tests (steps
1, 2a, 4); run the rules audit and the intent verdict only.
Run the tests that cover what the branch changed, with the targeted form the project's CLAUDE.md
Testing section documents (HTML comments stripped); without one, the test files for the changed
code via the project's runner.
git worktree add <tmp> <base>, removed after);
otherwise state "fails, origin unverified". Failures that also fail on the base are reported
separately and not fixed here./code-reviewInvoke the built-in skill through the Skill tool: skill: "code-review" with args
<effort> <base>...HEAD, effort sized to the change: low under 50 changed lines, medium
under 400, high above. Always pass the explicit range: without a target /code-review reviews
only the commits ahead of the branch's upstream, and /apogee:start publishes the branch, so
already-pushed work would be left out. A range covers commits only, so commit pending changes
(step 0 lists them) through apogee:git-commit before this step.
/code-review runs as a background subagent and its findings arrive as a later notification.
Start it, run 2b and 2c while it works, and do not start step 3 before its findings are in. Take
its verified findings as the bug and security list.
If the Skill tool reports that code-review is not available in this client, fall back to the Bug
Hunter procedure in references/legacy-parallel-reviewers.md
on the same range, and say so in the report.
Spawn one read-only agent (subagent_type: "Explore"), named Rules Auditor, with the branch
diff, the step 1 test output, the contents of ${CLAUDE_PLUGIN_ROOT}/rules/RULES.md pasted in (a
subagent cannot resolve the plugin path), and this brief:
You are a Rules Auditor. The toolkit rules (RULES.md) are pasted below; read CLAUDE.md for this
project's own rules, decisions and exceptions (CLAUDE.md wins on conflict), then check ONLY the diff
against these categories. Do not look for general bugs; another pass does that.
COMPLIANCE — violations of RULES.md and of the rules and decisions in CLAUDE.md. Cite the rule.
SIMPLICITY — a new abstraction, layer, option or flag with a single user or none; a generic
solution built for one case; speculative extensibility. Cite the line.
TESTS — new behaviour without tests; tests asserting exact strings where structure would do.
LANGUAGE — identifiers, comments and docs in English; no narrating comments.
AI TOOLING — nothing under .claude/, docs/apogee/, .beads/, .scratch/, or CLAUDE.md/GEMINI.md/AGENTS.md is
staged or referenced as a deliverable (these are local-only by decision).
Any claim about a third-party library or API must be checked against its current documentation via
Context7 (resolve-library-id, then query-docs) before you report it. Tag each such finding
[verified] or [unverified]; unverified claims are discarded by the judge.
For each finding: - [high|medium|low] `file:line` — what. **Rule:** which rule. [verified|unverified|n/a]
If a category has nothing, write "No issues found." Do not invent issues to seem thorough.
Compare what the branch does with what was asked:
br show <epicId> --json for the epic linked to this branch
(external_ref) and its steps.docs/apogee/ai-context/progress.md, or the user's
request in this session.State MATCHES, PARTIAL (name what is missing), or DRIFTED (name what was done instead, and whether it was asked for). Drift is a finding even with zero bugs.
Combine the step 1 failures, the /code-review findings, the Rules Auditor's, and the verdict:
| Verdict | When | Action |
|---|---|---|
| Valid (high/medium) | The reasoning holds and you agree | Fix it now, on the branch |
| Valid (low) | Real but minor | Report; fix only if asked |
| False positive | The reviewer lacked context, or the behaviour is intentional | Reject with one line |
| Unverified | A library/API claim tagged [unverified] | Discard |
Each fix is committed through apogee:git-commit (fix(<scope>): …), one commit per finding or
per tight group. A PARTIAL verdict is fixed only when the missing part is small and clearly asked
for; otherwise it goes to the report for the user to decide.
Only when step 3 changed code. Re-run the step 1 tests, plus tests for whatever the fixes touched.
## Review: <branch> vs <base>
Range: X files, Y lines. Intent: MATCHES | PARTIAL (…) | DRIFTED (…)
Tests of the change: before N passed / M failed → after N passed (or: no tests cover the change)
| # | Source | Verdict | Category | File | Issue | Action |
|---|--------|---------|----------|------|-------|--------|
| 1 | tests | Fixed | BUG | src/x.ts:42 | Null check missing | fix(x): … |
| 2 | rules | Rejected | SIMPLICITY | src/y.ts:10 | Intentional extension point (ADR 3) | — |
Pre-existing failures, deferred low findings and a large-fix warning (fixes over ~100 lines: "a second review may be worth it") go below the table. No findings at all → one line.
The loop ends on the last commit it made; /apogee:finish uses that commit to know the review
and the tests are current.
git-commit.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mishagin-dev/apogee --plugin apogee20 skills in this plugin
/ai-clean-roomPersonal black-box clean-room skill: build an independent product that reproduces the functionality of a closed-source reference application using only its public documentation, observed behavior and screenshots, without copying its code, texts, icons, design or name. Manual invocation only (/apogee:ai-clean-room)./brOfficial skill for beads_rust (`br`), a local-first, dependency-aware issue tracker for AI agents. Use when creating issues, triaging backlogs, managing dependencies, finding ready work, updating status, or exporting the local JSONL backup (br sync --flush-only)./cleanupReclaim disk space that agent work leaves behind: linked git worktrees (of the repository and of every submodule), the stale records of worktrees deleted by hand, orphaned worktree directories, and the build directories (Rust target/, DerivedData) that make each copy 5–35 GB. Inventories first with a read-only script, deletes only what the user picks. Use when the disk fills up, when worktrees pile up after parallel agents, or when the user asks to clean up, tidy up or free space, in any language. Offered by the session-start reminder and by /apogee:finish./finishClose the unit of work /apogee:start opened, and the only way work is closed in an Apogee project. feature/bugfix: review, docs, public docs, clean tree, git-flow finish into develop, push develop. hotfix: review, then the release preparation (version, CHANGELOG, gate, notes) and the operator's commands. research: check the note is complete, mark it done, propose the follow-up. Detects the type from the current branch./git-commitThis skill should be used whenever creating a git commit or writing a commit message — when the user asks to "commit", "create a commit", "git commit", "write a commit message", "commit my changes", or "conventional commit". Generates a Conventional Commits message from the staged diff (falling back to all changes), validates it against strict rules, and creates the commit. Commit messages are always written in English. Applies only inside a git repository./git-flowDrive the installed git flow binary (AVH Edition) for Git Flow branching: init a repo, start/finish/publish feature and bugfix branches, cut and finish a release with tag and back-merge, ship a hotfix, or open a support branch. Use when asked to run git flow, start or finish a feature/release/hotfix, cut a release, tag a version, or initialize Git Flow. Applies only inside a git repository.