Two-phase code review. Phase 1 runs fast pre-commit checks for spec compliance, type safety, and stack alignment. Phase 2 audits SOLID principles and structural integrity. Use before committing or opening a PR.
How this skill is triggered — by the user, by Claude, or both
Slash command
/axis-human-ai-toolbox:code-reviewThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Two-phase code review skill. Phase 1 catches surface-level issues fast. Phase 2 audits structural correctness using SOLID as the primary framework and KISS/DRY/YAGNI for implementation quality.
Two-phase code review skill. Phase 1 catches surface-level issues fast. Phase 2 audits structural correctness using SOLID as the primary framework and KISS/DRY/YAGNI for implementation quality.
With a base branch — reviews only the files changed between your current branch and the specified base:
/code-review --base-branch main
/code-review --base-branch develop
/code-review --base-branch origin/main
Without arguments — Claude will detect your local branches and ask you to pick the base interactively:
/code-review
You'll be prompted with a question like:
"Which branch should be used as the base for this review?" Options:
main,master,develop, or any other local branch detected. Select one or type a custom name.
Tip: Run
/init-projectfirst if the project has noAGENTS.md. The review uses it for stack-aware checks in Phase 1.
Mindset: There is no reward for speed. The reward comes from persistence on resolving issues to a high standard. Consistent iteration produces better outcomes than fast completion.
Current branch: !git branch --show-current
Available local branches:
!git branch
Step 1 — Parse the argument.
Check if $ARGUMENTS contains --base-branch. If it does, extract the value that follows it and use that as BASE_BRANCH. Skip to Step 3.
Step 2 — Ask the user (only if --base-branch was not provided).
Use AskUserQuestion with the following question:
main) plus any branches found locally. Cap at 4 options; if there are more, include the 3 most relevant and leave "Other" for free input. If there is no more options but default, just use the default.Step 3 — Scope the review to changed files. Run:
git diff <BASE_BRANCH>...HEAD --name-only
Read only the files returned by that command. Do not review files that were not changed relative to BASE_BRANCH.
If the diff is empty, inform the user: "No changes detected between the current branch and <BASE_BRANCH>." and stop.
Catch the 80% of issues before going deeper. Run this first.
console.log, commented-out code, TODO-without-ticketany / unknown casts without justificationCheck the detected stack (see AGENTS.md if available) and verify conventions are followed:
Phase 1 outcome:
if/else or switch chains that must grow for each new type. Subclass methods throwing "Not Implemented".new SpecificClass() inside constructors. Tight coupling to third-party SDKs in business logic.isExpired vs flag). Related code is colocated.ptr, tmp, idx).Before any signature change, identify every file that imports the target.
If a signature changes, all dependent files must be updated in the same change. Never leave broken imports or type errors downstream.
AGENTS.md)After completing both phases, report findings in this format:
## Code Review Results
### ❌ Errors (must fix)
- <specific issue, file:line, remediation>
### ⚠️ Warnings (should fix)
- <specific issue, file:line, remediation>
### ✅ Passed
- <what was verified>
### Recommendation
Approve / Request Changes — <one-line rationale>
AGENTS.md, suggest running /init-project first for better stack-aware reviewnpx claudepluginhub axis-human/dev-workflow-plugin --plugin axis-human-ai-toolboxGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.