pre-commit-quality-review
Skill by chen08209
Pre-commit Quality Review checks that iterative edits form a clear, maintainable implementation before they become a commit, amend, or squash. It is for developers who prepare commits with an AI assistant.
Install pre-commit-quality-review
Built from the published package, never by AI.
git clone --depth 1 https://github.com/chen08209/FlClash /tmp/FlClash && mkdir -p ~/.claude/skills && cp -r /tmp/FlClash/.agents/skills/pre-commit-quality-review ~/.claude/skills/pre-commit-quality-reviewRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install pre-commit-quality-review in Claude Code
git clone --depth 1 https://github.com/chen08209/FlClash /tmp/FlClash && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/FlClash/.agents/skills/pre-commit-quality-review ~/.gemini/antigravity-cli/skills/pre-commit-quality-reviewAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install pre-commit-quality-review in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Pre-commit Quality Review is an agent skill that checks code for structural problems before it is committed. It triggers when the user asks to commit, amend, or squash code, or asks for a pre-commit structural quality review. Most small changes skip the review. A review runs when a core implementation is replaced, when responsibilities or dependencies change materially, or when accumulated patches add branches, duplicate paths, or indirection.
The skill compares the intended commit with its baseline, such as HEAD, the parent of an amended commit, or the empty tree for an initial commit. It reads the final implementation of the affected code and reports only issues the change introduced or worsened, with a concrete maintenance cost. When findings exist, it pauses and asks before editing or committing. It then runs the Flutter checks that AGENTS.md requires. The skill grants no extra authority, so commit, push, and history rewrites stay under the user's existing authorization. It is written for developers whose projects use AGENTS.md and Flutter.
Written from the project's SKILL.md and checked against it.
What it can do
- TriageDecides when a structural review is needed and skips formatting, renames, and simple local fixes.
- Baseline comparisonCompares the staged snapshot with HEAD, an amend parent, a squash base, or the empty tree.
- Structural reviewChecks responsibilities, dependencies, complexity, duplication, and leftover remnants in the affected code.
- User decision pauseAsks whether to optimize first when qualifying findings exist, and waits before editing or committing.
- Pre-commit checksRuns flutter pub get, flutter analyze, and covering flutter test suites before the commit is made.
What you need
- AGENTS.md and .agents/rules.md in the repository
- Flutter toolchain for flutter pub get, flutter analyze, and flutter test
Try asking
- Review my staged changes for structure before I commit them.
- Do a pre-commit structural quality review, then squash these commits.
- Amend my last commit after checking the code for duplication.
Good to know
- Does not review business logic, UI behavior, performance, security, or full functional behavior.
- Does not require fixing historical debt that the change did not introduce or worsen.
- Asks the user when the commit range or parent is materially ambiguous.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/pre-commit-quality-review/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB
Alternatives to pre-commit-quality-review
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
pre-commit-quality-review: common questions
Does it commit code automatically?
No. When findings exist, it pauses and asks before editing or committing. Commit, push, and history rewrites stay under the user's existing authorization.
When does the structural review run?
Most commits skip it. It runs when a core implementation is replaced, when responsibilities or dependencies change materially, or when accumulated patches add branches or indirection. An explicit review request also triggers it.
What does the review check?
It checks responsibilities and cohesion, dependencies and abstractions, complexity, duplication, and leftover remnants. It reports only issues the change introduced or worsened.
How do I install pre-commit-quality-review?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is pre-commit-quality-review free?
The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.
Is pre-commit-quality-review safe to use?
It scores 86 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to pre-commit-quality-review?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
