commit

Stage changes, run tests, and apply pre-commit validations before committing.

Updated Sep 9, 2024
One-click install
npx skills add https://github.com/axel-kaliff/dotfiles --skill commit-axel-kaliff
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit
Source: https://github.com/axel-kaliff/dotfiles/tree/main/claude/.claude/skills/commit
Command: npx skills add https://github.com/axel-kaliff/dotfiles --skill commit-axel-kaliff

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Stage and commit changes with automatic pre-commit validation, formatting fixes, and automatic re-staging to avoid broken commits.

Core Features & Use Cases

  • Automated staging and commit loops that re-stage changes after fixes.
  • Integrated pre-commit validation and formatting checks to ensure clean commits.
  • Works across common languages and project types, with support for custom messages.

Quick Start

Stage your changes, run tests, and let the tool handle pre-commit fixes and re-staging automatically.

Frequently Asked Questions about commit

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

FAQPage Schema
How do I automate git commit with pre-commit checks and re-staging?

Automated git commit workflows stage changes, run tests, and apply pre-commit validations like formatting and lint checks. If fixes are applied, the tool automatically re-stages modified files before completing the commit.

What is the safest way to stage and commit changes without breaking the build?

Safe staging and committing validates changes through tests, formatting, and type-checks before the final commit. This ensures only verified code enters your repository, preventing broken commits from disrupting the build.

Does automated pre-commit validation work with Python and JavaScript projects?

Automated pre-commit validation works across common languages and project types, including Python and JavaScript. It integrates formatting fixes and lint checks into your daily development workflow regardless of the specific programming language.

How do I run tests and lint before a git commit automatically?

Run tests and lint before a git commit by using an automated commit loop that integrates pre-commit validation. The workflow stages your changes, executes test suites, and applies formatting checks before finalizing the commit.

Why do my pre-commit formatting fixes cause unstaged changes during a commit?

Pre-commit formatting fixes modify files during validation, un-staging them from the git index. An automated commit workflow solves this by applying fixes and then automatically re-staging the corrected files before the final commit.

Can I use automated commit flows across multiple repositories?

Automated commit flows support multi-repo projects alongside Python and JavaScript environments. The workflow applies consistent staging, testing, and pre-commit validation across different repositories within your daily development routine.