pre-commit-review

Summarize and review staged code changes for security, performance, and quality issues.

Updated Jan 29, 2026
One-click install
npx skills add https://github.com/liuhean2021/Anan-Agent-Skills --skill pre-commit-review-liuhean2021
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pre-commit-review
Source: https://github.com/liuhean2021/Anan-Agent-Skills/tree/main/skills/pre-commit-review
Command: npx skills add https://github.com/liuhean2021/Anan-Agent-Skills --skill pre-commit-review-liuhean2021

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of summarizing code changes and performing a thorough code review before you commit, ensuring that your changes are functional, safe, and do not introduce regressions.

Core Features & Use Cases

  • Modification Summary: Provides a detailed breakdown of what was changed in each file.
  • Code Review: Analyzes code for potential issues, impact on other functionalities, security vulnerabilities, performance bottlenecks, and adherence to project standards.
  • Use Case: Before pushing your code, use this Skill to get a comprehensive review that highlights potential bugs, suggests improvements, and confirms that your changes won't break existing features.

Quick Start

Use the pre-commit-review skill to review my staged code changes.

Frequently Asked Questions about pre-commit-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform an automated code review before a git commit?

Automated pre-commit code review analyzes staged git changes to summarize modifications and detect security, performance, and quality issues. It ensures commits are functional, safe, and adhere to project standards before integration.

Can I check staged code changes for impact on existing features?

Yes, pre-commit code review analyzes staged modifications to verify they do not introduce regressions or affect other functionalities. It provides a detailed breakdown of changes to confirm your updates won't break existing features.

Does pre-commit code review work with TypeScript, Vue3, and NestJS?

Pre-commit code review adheres to project-specific technical stacks including TypeScript, Vue3, and NestJS. It checks staged modifications against these frameworks' standards to ensure code changes maintain quality and compatibility.

What is the best way to ensure code quality and generate a commit summary?

The best way to ensure code quality is using an automated pre-commit review that summarizes modifications and analyzes potential vulnerabilities. It checks for security, performance, and quality issues to guarantee safe, functional commits.

Why do I need a pre-commit review instead of just pushing code directly?

A pre-commit review prevents regressions by highlighting potential bugs and suggesting improvements before integration. Pushing code directly risks introducing security vulnerabilities and breaking existing functionalities that automated analysis would catch.