commit-assistant

Automate pre-commit code review and commit message generation for Git and SVN repositories.

1|Updated Apr 22, 2026
One-click install
npx skills add https://github.com/Herxinsasa/Skills-Collector --skill commit-assistant-herxinsasa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit-assistant
Source: https://github.com/Herxinsasa/Skills-Collector/tree/main/commit-assistant
Command: npx skills add https://github.com/Herxinsasa/Skills-Collector --skill commit-assistant-herxinsasa

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill solves the problem of committing code without proper review, which often leads to including debug statements, violating coding standards, or leaking sensitive information. It automates the pre-commit review process by analyzing project context, coding standards, and code diffs to produce a structured review report and commit message.

Core Features & Use Cases

  • Pre-Commit Code Review: Automatically reads project documentation and coding standards, then performs a comprehensive review of code changes using integrated review skills.
  • Multi-VCS Support: Detects and works with both Git and SVN repositories, handling staged, unstaged, and committed changes appropriately.
  • Structured Reporting: Outputs a detailed review report with severity levels (Critical, Warning, Suggestion) and a summary of changes for commit messages.
  • Use Case: A developer preparing to commit a C++ feature branch can use this Skill to catch leftover debug prints, Qt naming violations, and missing file inclusions before the code reaches the repository.

Quick Start

Use the commit-assistant skill to review my recent code changes and generate a commit message for the current branch.

Frequently Asked Questions about commit-assistant

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

FAQPage Schema
How do I automate pre-commit code review and catch debug code before committing?

Automating pre-commit code review involves analyzing code diffs against project coding standards to detect debug statements and sensitive information leakage. This process generates a structured review report with severity levels and a standardized commit message before changes reach the repository.

What is pre-commit code review and why is it needed in version control workflows?

Pre-commit code review is the process of validating code changes against coding standards and checking for sensitive information leakage before changes are committed. It is needed in version control workflows to prevent debug statements, standard violations, and security risks from entering the repository history.

Does the pre-commit review process work with both Git and SVN repositories?

Yes, the pre-commit review process works with both Git and SVN repositories by automatically detecting the version control tool in use. It handles staged, unstaged, and committed changes appropriately across both systems to ensure standardized review reporting.

How do I generate a structured commit message after validating coding standards?

Generating a structured commit message after validating coding standards requires analyzing the code diff and review summary to produce a comprehensive description of the changes. This automated generation ensures the commit message accurately reflects the structured review report and severity levels of the detected issues.

What is the best way to detect sensitive information leakage in code diffs before committing?

The best way to detect sensitive information leakage in code diffs is to apply an automated pre-commit review process that cross-references changes against project documentation and security rules. This yields a detailed report flagging critical security issues before the code is committed.

What are the limitations of automated pre-commit code review for detecting standard violations?

Limitations of automated pre-commit code review include relying on the accuracy of project documentation for context and potentially missing complex, context-specific standard violations. It primarily detects explicit debug code, naming convention breaches, and sensitive information leakage based on predefined rules.