commit-push

Automate git commits and pushes with automatic branch creation and naming validation.

1|1|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/kangmomin/harness-plugins --skill commit-push-kangmomin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit-push
Source: https://github.com/kangmomin/harness-plugins/tree/main/be-harness/skills/commit-push
Command: npx skills add https://github.com/kangmomin/harness-plugins --skill commit-push-kangmomin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the end-to-end git workflow for commits and pushes, including automatic branch creation when the current branch is missing or violates naming conventions.

Core Features & Use Cases

  • Branch state checks and naming validation against protected branches (main, master, dev, rc*) and naming patterns like feat/* and hotfix/*.
  • Automatic branch creation or renaming to satisfy conventions, with staged steps for previewing changes and applying overrides.
  • End-to-end commit and push workflow triggered via /be-harness:commit, followed by a push to the approved branch.
  • Reads project overrides from local files (e.g., .claude/be-harness/common.md and local override files) to adjust rules before execution.

Quick Start

Execute /be-harness:commit to commit changes in logical units, then push to the current branch following the policy.

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 while enforcing branch naming conventions?

Automating git commit and push with branch naming conventions involves validating the current branch against protected branches like main, master, dev, and rc* patterns, then automatically creating or renaming branches to match feat/* or hotfix/* rules before pushing. This ensures compliant branch execution without manual checks.

What happens if I try to commit directly to a protected git branch like main or master?

When committing to a protected git branch like main or master, the workflow detects the violation and automatically creates or renames a compliant branch based on your naming conventions, ensuring changes are redirected to an approved branch before the push executes.

Can I override default branch validation rules for specific git workflows?

You can override default branch validation rules by defining project-specific adjustments in local override files such as .claude/be-harness/common.md, allowing you to adapt branch naming patterns and pre-commit checks before the automated push executes.

What's the best way to preview branch changes before an automated git push?

The best way to preview branch changes before an automated git push is to trigger the commit workflow, which stages pre-commit checks and branch validation steps, letting you review logical commit units and branch compliance before the push is applied.

Does this automated git commit workflow require any external dependencies?

No, this automated git commit workflow requires no external dependencies, operating entirely through deterministic pre-commit checks, branch validation, and push execution while reading local project overrides to adapt rules as needed.

Why does my automated git push fail when using a custom branch naming pattern?

An automated git push may fail if the custom branch naming pattern does not match defined conventions like feat/* or hotfix/*, triggering branch validation errors that require creating or renaming the branch to satisfy compliance rules before pushing.