From code-review
Performs automated pre-commit code quality review of staged and unstaged changes, with language-aware analysis and project-specific profiles. Supports optional flags for language, profile, and skipping build/tests.
How this command is triggered — by the user, by Claude, or both
Slash command
/code-review:pre-commit-review [--language <lang>] [--profile <name>] [--skip-build] [--skip-tests]The summary Claude sees in its command listing — used to decide when to auto-load this command
## Name code-review:pre-commit-review ## Synopsis ## Description The `code-review:pre-commit-review` command performs a comprehensive code quality review of staged and unstaged changes before committing. It analyzes unit test coverage, idiomatic code patterns, DRY compliance, SOLID principles, and build verification. The command supports two layers of customization: 1. **Language skills** (`--language <lang>`): Load language-specific guidance for idiomatic code review, test conventions, and build commands. Currently shipped: `go`. Planned: `python`, `rust`, `typescript`, `java`. If not...
code-review:pre-commit-review
/code-review:pre-commit-review [--language <lang>] [--profile <name>] [--skip-build] [--skip-tests]
The code-review:pre-commit-review command performs a comprehensive code quality review of staged and unstaged changes before committing. It analyzes unit test coverage, idiomatic code patterns, DRY compliance, SOLID principles, and build verification.
The command supports two layers of customization:
Language skills (--language <lang>): Load language-specific guidance for idiomatic code review, test conventions, and build commands. Currently shipped: go. Planned: python, rust, typescript, java. If not specified, the language is auto-detected from changed file extensions.
Profile skills (--profile <name>): Load project-specific guidance that layers on top of language checks. Profiles add project conventions, shared utilities, build targets, and additional review criteria. Profiles reference the project's own agents and skills rather than embedding them.
The two layers compose: --language go --profile hypershift applies both Go idioms and HyperShift project conventions.
$ARGUMENTS for the following flags:
--language <lang>: Language skill to load (e.g., go, python, rust, typescript, java)--profile <name>: Project profile skill to load (e.g., hypershift)--skip-build: Skip build verification step--skip-tests: Skip unit test coverage review step--language is not specified, auto-detect the primary language from the file extensions of changed files:
.go -> go.py -> python.rs -> rust.ts, .tsx -> typescript.java -> javaskills/lang-<lang>/SKILL.md relative to the plugin root directory. If the skill exists, read it and store its content for use by sub-agents. If it does not exist, inform the user and proceed with a generic review.--profile is specified, check for the profile skill file at skills/profile-<name>/SKILL.md relative to the plugin root directory. If the skill exists, read it and store its content for use by sub-agents. If it does not exist, warn the user and proceed without profile-specific checks.This step is language-agnostic.
git diff --name-only to identify unstaged changes.git diff --cached --name-only to identify staged changes.After identifying changed files, launch the following reviews concurrently. Launch ALL sub-agents in parallel (single message with multiple Task tool calls) for maximum speed. Each sub-agent should be given subagent_type: "general-purpose". Do NOT set the model parameter — let sub-agents inherit the parent model, as these analysis tasks require a capable model. Pass each sub-agent the list of changed files, the loaded language skill content (if any), and the loaded profile skill content (if any) in its prompt.
Skip if --skip-tests is specified.
t.Run(), t.Parallel())..claude/agents/ — read the agents, pick the relevant ones based on changed files, and use their guidance.support/ package).subagent_type.This step can run in parallel with the review sub-agents in Step 2 since it is independent. Skip if --skip-build is specified.
Run build verification in the following priority order:
Makefile -> make build or makego.mod -> go build ./...Cargo.toml -> cargo buildpackage.json -> npm run build or yarn buildpyproject.toml or setup.py -> python -m py_compile on changed filesAfter all sub-agents and build verification complete, aggregate findings into a structured report:
--skip-build is explicitly specified.--skip-tests is specified.file:line when possible.Basic usage with auto-detected language:
/code-review:pre-commit-review
Auto-detects language from changed files and runs a full review.
Go code review with HyperShift profile:
/code-review:pre-commit-review --language go --profile hypershift
Applies Go idiomatic checks plus HyperShift project conventions.
Skip build for a docs-only change:
/code-review:pre-commit-review --skip-build
Runs all review steps except build verification.
Python review without tests:
/code-review:pre-commit-review --language python --skip-tests
Applies Python idiomatic checks but skips unit test coverage review.
Full review with explicit language, no profile:
/code-review:pre-commit-review --language rust
Applies Rust idiomatic checks with no project-specific profile.
--language <lang>: Language skill to load. Currently shipped: go. Planned: python, rust, typescript, java. If omitted, auto-detected from changed file extensions.--profile <name>: Project profile skill to load. Loads skills/profile-<name>/SKILL.md for project-specific conventions. If omitted, no profile-specific checks are applied.--skip-build: Skip the build verification step (Step 3). Useful for documentation-only changes or when build infrastructure is not available locally.--skip-tests: Skip the unit test coverage review step (Unit Test Coverage sub-agent). Useful when changes do not affect testable code.14plugins reuse this command
First indexed Mar 2, 2026
Showing the 6 earliest of 14 plugins
npx claudepluginhub harshwardhanpatil07/ai-helpers --plugin code-review/pre-commit-reviewPerforms automated pre-commit code quality review of staged and unstaged changes, with language-aware analysis and project-specific profiles. Supports optional flags for language, profile, and skipping build/tests.
/reviewPerforms a thorough PR review using your project's configured rules. Loads project-specific or auto-generated rules, then checks correctness, conventions, test coverage, architecture, and database/API design.
/reviewReviews current code changes (unstaged/staged git diffs or specified files) with confidence-based scoring on criteria like shell POSIX compatibility and conventional commits, reporting only high-confidence issues with fixes.
/reviewReviews staged or recent git changes against codebase patterns, security best practices, and acceptance criteria. Also supports reviewing specific files or feature IDs.
/code-reviewReviews local uncommitted changes or GitHub pull requests for security, code quality, and best practices. Produces a severity-graded report and can block commits on critical issues.
/code-reviewPerforms technical code review on git changes for logic errors, security vulnerabilities, performance issues, code quality, and project standards like Spring Data JDBC, generating a markdown report with prioritized issues and compliance checklist.