git-commit

Generate session-aware git commits with branch creation and selective staging.

1|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/mir-am/skills-agents-ai-coding --skill git-commit-mir-am
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-commit
Source: https://github.com/mir-am/skills-agents-ai-coding/tree/main/skills/git-commit
Command: npx skills add https://github.com/mir-am/skills-agents-ai-coding --skill git-commit-mir-am

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill simplifies and automates the process of creating clear, consistent git commit messages aligned with session activity, enhancing code traceability and team communication.

Core Features & Use Cases

  • Branch Protection: Automatically creates feature branches when on main or master to prevent direct commits.
  • Selective Staging: Stages only files created or modified during the current session to ensure accurate commit scope.
  • Conventional Commit Formatting: Generates commit messages in standard formats like feat, fix, or docs, ensuring clear project history.
  • CI Skip Logic: Detects when to append [skip ci] for non-critical updates such as documentation or config files.
  • Use Case: A developer completes a feature in a session and wants to commit changes with a structured message while avoiding direct commits to main.

Quick Start

Ask the AI to prepare and execute a commit message based on recent changes made during your session.

Frequently Asked Questions about git-commit

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

FAQPage Schema
How do I automate git commit messages for consistent CI formatting?

Automating git commit messages generates session-aware conventional formats like feat or fix, ensuring clean project history and safe continuous integration. It stages modified files and appends skip logic for non-critical updates automatically.

How do I prevent direct commits to the main branch during development?

Preventing direct commits to the main branch is handled by automatic feature branch creation. When working on main or master, the system switches to a new branch to ensure safe project history and continuous integration protection.

Can I selectively stage only files modified in my current session for a git commit?

Selectively staging files for a git commit targets only those created or modified during your current session. This ensures accurate commit scope and clean project history without including unrelated working directory changes.

What is the best way to append skip ci to non-critical git commits?

Appending skip ci to non-critical git commits is managed by CI skip logic detection. It identifies documentation or config file updates and automatically appends the tag to prevent unnecessary continuous integration pipeline runs.

Do I need conventional commit formats for automated branch creation and staging?

Conventional commit formats are required to ensure clear project history and team communication. The automation generates standard prefixes like feat, fix, or docs alongside selective staging and smart branch creation for safe main branch protection.

Why does my automated git commit skip continuous integration pipelines?

Automated git commits skip continuous integration pipelines when CI skip logic detects non-critical updates such as documentation or config files. It appends the skip tag to prevent unnecessary pipeline runs while maintaining formatting standards.