mcpField
G
git-hero

git-hero

github.com/bseneDevelopment7179 installsUpdated 1d ago
Repository

About git-hero

git-hero is a Git guidance skill for developers, covering questions, workflows, recovery, and commit discipline. It combines practical advice with on-demand reference material.

Key features

  1. 01Answers Git questions by context
  2. 02Guides safe recovery
  3. 03Applies Conventional Commits
  4. 04Promotes atomic commits
  5. 05Routes specialized Git topics

Use cases

  1. 01Choosing merge or rebase workflows
  2. 02Diagnosing lost or uncertain changes
  3. 03Writing consistent commit messages

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/bsene/skills --skill git-hero

After installing, type/git-heroin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

gitlab-dag/references/
dry-patterns-and-examples.md
needs-keyword.md
parallel-and-matrix.md
gitlab-dag/resources/
gitlab-dag-advanced.md
gitmoji/references/
gitmoji-catalog.md
references/
commands.md
commit.md
concepts.md
config-recipes.md
conventional-commits.md
gitlab-flow.md
scenarios.md
workflow-decisions.md

Details

From the project README

Git Hero

Comprehensive Git mastery — best practices, expert Q&A, gitmoji, and CI/CD pipelines.

Answer Git questions

Match the user's language and experience. For conceptual questions, explain what and why before showing a concrete command; use a commit graph when it clarifies history. For workflow questions, state the recommendation, its trade-offs, and the command sequence. Keep simple command answers short; read references only when the question needs them.

For recovery, diagnose with git status and, when needed, git reflog before suggesting a corrective command. Prefer the safest fix and explain data loss or history rewriting before recommending destructive commands. Do not rewrite shared history as a default fix.

Route to specialized skills

  • Commit emoji / Gitmoji → gitmoji. Plain Conventional Commits need no emoji.
  • GitLab pipelines, DAG, needs:, parallel matrix → gitlab-dag.

Commit Discipline

Format

Every commit message follows Conventional Commits, optionally prefixed with gitmoji:

<emoji> <type>(<scope>): <imperative description>

Rules:

  • One-liner only -- no body, no footer, no blank lines
  • Imperative mood -- "add feature" not "added feature" or "adds feature"
  • Lowercase description -- no capital after the colon
  • No trailing period
  • Scope is optional but recommended for multi-module repos
  • No Co-Authored-By: Claude trailer — never append it, regardless of tool defaults

Example: feat(auth): add OAuth2 login with Google

Atomic Commits

One logical change per commit. Each commit should:

  • Compile and pass tests on its own
  • Be revertable without side effects
  • Have a message that fully describes the change

Smell test: if the message needs "and", split the commit.

Read On Demand

Read WhenFile
Choosing a commit type by release impact, breaking changes (! / BREAKING CHANGE), scope selection, commitlint validationConventional Commits
Configuring git (aliases, GPG signing, push safety, force push, reflog, modern syntax, rerere)Config Recipes
Choosing a workflow, merge vs rebase, branch naming conventions, branch lifecycleWorkflow Decisions
Environment/release branches, GitLab Flow, feature switches, cherry-pick backports, or CI pipeline quick winsGitLab Flow and Pipelines
Understanding HEAD, branches, zones, remotes, objects, or merge vs rebaseGit Concepts
Looking up command flags, inspection, worktrees, submodules, or history rewritingCommand Cheatsheet
Understanding snapshots, commit objects, hashes, or the add/commit lifecycleCommit Internals
Undoing, amending, moving commits, resolving conflicts, or using stashCommon Scenarios

Benchmark

These historical results predate the Git Guru consolidation; the merged skill has not been rerun. Scenario IDs remain unchanged to preserve run provenance.

Scenario: .benchmarks/scenarios/git-hero-001-atomic-commits.md · Run: 2026-09-04 · Log: .benchmarks/runs/2026-09-04/git-hero-001-atomic-commits.json

ModelWithoutWithDelta
claude-opus-4-8100%100%+0%
claude-sonnet-4-6100%100%+0%
claude-haiku-4-5100%100%+0%

NEUTRAL (run 2026-09-04). All models 100% with and without — atomic-commit guidance is at ceiling on this scenario; the router's value is triage, not code change. Gate per .agents/skills/skill-optimizer/rules/release-gates.md.

Git questions (formerly Git Guru)

Scenario: .benchmarks/scenarios/git-guru-001-merge-vs-rebase.md · Run: 2026-08-31 · Log: .benchmarks/runs/2026-08-31/git-guru-001-merge-vs-rebase.json

ModelWithoutWithDelta
claude-opus-4-883%83%+0%
claude-sonnet-4-683%100%+17%
claude-haiku-4-583%83%+0%

SOFT PASS (run 2026-08-31). Sonnet +17; opus/haiku unchanged. Merge-vs-rebase criteria are mostly default behavior. Gate per .agents/skills/skill-optimizer/rules/release-gates.md.

Comments

Markdown supported