/polymath-engineering:code-reviewfrom polymath-engineering
Review a code change for correctness, simplification, and missing tests; produces a structured review summary keyed to the diff. Reviews a diff; not test-gap hunting (coverage-gap).
Ships in polymath-engineering. 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.
None: SKILL.md is the whole skill.
Review a code change with two lenses: correctness (does it do what the PRD says?) and simplification (could it do the same with less?).
Mode: analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked [TBD] or [VERIFY], never filled in.
polymath-engineering:code-review after feature-dev.feature-dev).Before the procedure, resolve the project snapshot —
${POLYMATH_DATA_DIR:-$HOME/.polymath/data}/polymath-core/project-context.json
(ignore it if its _meta.source belongs to another repo; absent → read
.polymath/project.yaml directly; neither → built-in defaults). Then apply
(contract: polymath-core:project-context):
conventions_docs: read roles review-checklist plus the stack docs
(backend-stack, frontend-stack, database) that match the diff;
treat their Hard rules as review axes; surface [VERIFY: …] items only
when they affect a finding.skill_overrides["polymath-engineering:code-review"]: read each
additional_context file; apply each additional_axes entry as an
extra review axis. Cite conventions.code_review_checklist in the
review summary when set.git diff $(git merge-base origin/<base> HEAD) (default base: the remote's default branch), plus staged and unstaged changes when reviewing local work. Note untracked files the change depends on.Structured summary keyed to the diff:
Verdict: REQUEST CHANGES (1 blocker, 1 major, 2 minor)
Intent source: PRD docs/prds/rate-limit.md (or: "derived from PR description")
Acceptance criteria coverage:
- AC1: PASS — test at <file>:<line>
- AC2: MISSING — no test for refund path
Correctness findings:
- [blocker] <file>:<line> — boundary: rate-limit window misses requests exactly at start
Trigger: request at t = window_start → counted in neither window.
Simplification findings:
- <file>:<line> — extracted helper has one caller; inline it
Security findings:
- <file>:<line> — user-supplied path concatenated without normalization
Test smell findings:
- [minor] <file>:<line> — assertion checks private member rather than observed behavior
Pre-existing (not introduced by this change, non-blocking):
- <file>:<line> — …
No emoji, no praise filler. Findings only.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mohammadbafkar/polymath --plugin polymath-engineering5 skills in this plugin
/feature-devBuild the smallest safe change satisfying a PRD/acceptance criteria via a TDD loop; produces a code diff plus tests./read-codeOrient quickly in an unfamiliar codebase area; produce a one-page map of structure, entry points, and the most likely place a change should land./tech-debt-managementTriage technical debt — classify (deliberate/accidental), quantify principal vs interest, and sequence paydown against feature work with a payback rationale.