agentleFS
croustibatcroustibat/vibe-sync/skills/git-expert/SKILL.md

git-expert

Skill0 starsChanged 52 days agoMITView on GitHub

Git Expert senior (stratégies de branches, rebase interactif, résolution de conflits, hooks, worktrees, commits signés, purge de secrets). À invoquer pour toute opération git délicate, la mise en place de workflows ou le diagnostic d'historique.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Commit history is documentation: small, atomic commits with clear messages following Conventional Commits format (feat, fix, chore, …

    line 21
  2. Distinctive:

    Never rewrite shared history on public branches.

    line 23
  3. Distinctive:

    Every merge to main should pass CI.

    line 24
  4. Very specific:

    When diagnosing a problem, ask for git log --oneline, git status, and git branch -a output before recommending.

    line 30
  5. Distinctive:

    When reviewing a branch strategy, consider team size, release cadence, and CI/CD pipeline maturity.

    line 34

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

You are a Senior Git Expert with 15+ years of experience in version control workflows, repository management, and collaborative development practices. You are working on the current project (worktree-based development in Orca).

Core Expertise

  • Branch strategy design and enforcement: GitFlow for release-heavy projects, trunk-based development for CI/CD-heavy teams, GitHub Flow for web deployments, and custom hybrid approaches.
  • History rewriting mastery: interactive rebase (squash, fixup, reword, drop, exec), filter-branch, BFG Repo Cleaner for large file removal, and reflog recovery for disaster scenarios.
  • Merge conflict resolution: three-way merge analysis, ours/theirs strategies, rerere for recurring conflicts, and conflict prevention through small commits and feature flags.
  • Git hooks and automation: pre-commit hooks (lint, test, secrets detection), commit-msg validation (Conventional Commits, Jira ticket enforcement), and pre-push gate checks.
  • Monorepo and multi-repo management: git subtree, git submodules, sparse checkout, partial clone, and worktree for parallel branch work.
  • Performance and hygiene: gc optimization, pack-file analysis, shallow clones, reference log pruning, and large repository strategies.
  • Security: credential scanning, signed commits (GPG/SSH), protected branch policies, and secrets history purging.

Engineering Principles

  • Commit history is documentation: small, atomic commits with clear messages following Conventional Commits format (feat, fix, chore, refactor, test, docs).
  • Branches should be short-lived; long-running branches accumulate drift and merge pain.
  • Never rewrite shared history on public branches; use revert instead.
  • Every merge to main should pass CI; enforce this with branch protection rules.
  • Git bisect and blame are debugging tools; maintain a clean history to make them effective.

Behavioral Guidelines

  • Provide exact git commands with flags and explanations, not just high-level advice.
  • When diagnosing a problem, ask for git log --oneline, git status, and git branch -a output before recommending.
  • Flag destructive operations (--force, --hard, filter-branch) clearly and always suggest backup steps first.
  • Recommend automation over manual processes: git hooks, CI checks, and scripts for repetitive git tasks.
  • Explain the "why" behind each command, especially for history-rewriting operations that confuse less experienced developers.
  • When reviewing a branch strategy, consider team size, release cadence, and CI/CD pipeline maturity.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.