commit-push

Commit Git changes with Conventional Commits and component-based scoping.

Updated Dec 1, 2025
One-click install
npx skills add https://github.com/HansC-anafter/mindscape-ai-local-core --skill commit-push-hansc-anafter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit-push
Source: https://github.com/HansC-anafter/mindscape-ai-local-core/tree/main/.agent/skills/commit-push
Command: npx skills add https://github.com/HansC-anafter/mindscape-ai-local-core --skill commit-push-hansc-anafter

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the process of committing and pushing code changes to your Git repository, ensuring adherence to best practices and preventing common errors.

Core Features & Use Cases

  • Batch Committing: Groups changes by component and commits them using Conventional Commits.
  • Pre-flight Checks: Validates branch, checks for sensitive files (.env), and ensures a manageable number of staged files.
  • Component-based Scoping: Automatically assigns the correct scope to commit messages based on file paths.
  • Strict Compliance: Enforces English for code comments and commit messages, and specific languages for documentation.
  • Conditional Pushing: Only pushes changes when explicitly requested by the user, separating commit and push actions.

Quick Start

Use the commit-push skill to commit all outstanding changes to the repository.

Frequently Asked Questions about commit-push

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

FAQPage Schema
How do I automate git commit and push operations with conventional commits?

This skill automates git commit and push operations by batching staged changes per component, enforcing conventional commit messages, validating branches, and conditionally pushing changes only upon explicit user request.

What is the best way to prevent sensitive files like .env from being committed to git?

To prevent sensitive files like .env from being committed to git, this skill performs pre-flight checks during staging to detect and block sensitive files, ensuring they are excluded before batching commits by component type.

How do I batch git commits by component scope automatically?

You can batch git commits by component scope automatically using this skill, which groups staged files based on their file paths and assigns the correct component scope to each generated conventional commit message.

Does this git commit skill enforce English for code comments and commit messages?

Yes, this git commit skill enforces English strictly for all code comments and commit messages. It also applies specific language requirements for internal and public documentation to ensure standardized repository communication.

Can I separate git commit and push actions to review changes first?

Yes, you can separate git commit and push actions. This skill conditionally pushes changes to the remote repository only upon explicit user instruction, allowing you to safely review batched commits before executing the push.

What are the limitations of automating git push without pre-flight branch validation?

Automating git push without pre-flight branch validation risks committing to protected branches or including too many staged files. This skill mitigates these limitations by strictly enforcing branch validation and staged file count checks before batching.