Back to Skills

commit-with-validation

Create single atomic commit with proper message format, issue linking, and pre-commit hook validation for WescoBar workflows

6stars3forksUpdated 3/1/2026

Security Assessment

Safe(100/100)
Security Score100/100

About commit-with-validation

The 'commit-with-validation' skill automates the process of creating a single atomic commit in Git, ensuring that the commit message adheres to a standardized format and that the commit is properly linked to an issue. This workflow also integrates pre-commit hook validation to ensure that the code quality is checked before the commit is made. By following the WescoBar git discipline, this skill provides consistency across commits and ensures that all necessary checks and validations are completed before code is committed to the repository. It is designed to make the commit process more structured and less error-prone, especially in larger teams or projects.

Main features of the 'commit-with-validation' skill include automatic issue number extraction from branch names, commit message formatting based on predefined types such as 'feat', 'fix', and 'refactor', and interactive prompts for users to input additional details like the commit subject and body. It also integrates with pre-commit hooks, ensuring that no commits bypass the quality checks. The skill validates pre-requisites, formats the commit message according to a consistent template, stages changes, and validates pre-commit requirements before creating the final commit.

The skill is ideal for developers working in structured workflows such as Conductor Phase 4, Step 2, where all tests have passed, and quality gates have been met. It can be used after completing a feature implementation, before creating a pull request, and when the audit score is above a threshold of 8.0. This skill is particularly helpful for teams that want to enforce a consistent commit process and ensure quality checks are never skipped.

FAQ

How do I use this skill?

This skill can be used after completing feature implementation and ensuring all tests have passed. It guides you through validating pre-requisites, selecting the commit type, formatting the commit message, staging changes, and executing pre-commit hook validations.

Is this skill compatible with all Git workflows?

This skill is specifically designed for use within the WescoBar git workflow, particularly for Conductor Phase 4, Step 2. It may not be suitable for workflows that do not require the same commit message format or pre-commit validations.

What are the prerequisites for using this skill?

You must be on a feature branch, have staged or unstaged changes, and meet the requirement that all tests pass and the audit score is ≄ 8.0. The branch name should also include an issue number (e.g., 'feature/issue-123').

Can I bypass the pre-commit hooks during commit creation?

No, the skill explicitly forbids using the '--no-verify' flag to bypass pre-commit hooks. This ensures that all commits adhere to the quality checks set by the hooks.

Install commit-with-validation

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill