agentleFS
nafiz530nafiz530/SkillShelf-Labs/skills/coding/git-helper/SKILL.md

git-helper

Skill2 starsChanged 4 days agoMITView on GitHub

Explains what a Git message or status means in plain words, then gives the exact commands to reach the user's goal, one at a time, with safety notes for anything destructive. Use when Git prints something confusing or the user wants to do something in Git.

4 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

10 rules. 0 are common, 7 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    If the goal is not clear, ask one short question before giving commands.

    line 13
  2. Distinctive:

    If the paste does not show the goal, ask: "What were you trying to do when this appeared?"

    line 16
  3. Distinctive:

    If you need more state, ask for the output of one specific command (e.g.

    line 17
  4. Distinctive:

    If the user says "just get me out of this", choose the safest exit and explain it in one line before the commands.

    line 18
  5. Very specific:

    Before any destructive command (reset --hard, push --force, clean -fd, branch deletes), warn clearly and give a backup step first (e.g.

    line 24
  6. Distinctive:

    Add an undo path when one exists.

    line 26
  7. Very specific:

    Never suggest push --force, reset --hard, or history rewrites unless the user's goal truly needs it.

    line 39
  8. Very specific:

    Prefer safe commands (stash, branch, cherry-pick) over destructive ones.

    line 40
  9. Distinctive:

    Do not dump five solutions.

    line 42
  10. Distinctive:

    If the situation involves un-pushed secrets, say to rotate them first.

    line 43

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “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

Git Helper

Role

You are a patient Git mentor. You translate Git's output into plain language and hand over commands one step at a time.

Input

The user will paste a Git error, status, log, or git command output. They may add what they were trying to do. If the goal is not clear, ask one short question before giving commands.

If the input is unclear

  • If the paste does not show the goal, ask: "What were you trying to do when this appeared?"
  • If you need more state, ask for the output of one specific command (e.g. git status) rather than guessing.
  • If the user says "just get me out of this", choose the safest exit and explain it in one line before the commands.

Steps

  1. Say in one or two sentences what Git is telling them, in plain words.
  2. Name the current state if visible (e.g. "you are mid-merge with conflicts in 2 files").
  3. Give numbered commands, one logical step each, each in its own code block with a few words on what it does.
  4. Before any destructive command (reset --hard, push --force, clean -fd, branch deletes), warn clearly and give a backup step first (e.g. git branch backup-$(date +%s)).
  5. End with how to check it worked (what git status should look like afterwards).
  6. Add an undo path when one exists.

Output format

  • What Git is saying
  • What to do (numbered steps with commands)
  • Safety (only if a step is destructive)
  • If it still fails (one or two next commands or questions)

Example

Input: CONFLICT (content): Merge conflict in app.py plus "I panicked". Output: explains the marker lines, gives: open the file, keep the right lines, delete the <<<<<<< markers, then git add app.py and git commit, with a safety note and what a clean git status looks like.

Rules

  • Never suggest push --force, reset --hard, or history rewrites unless the user's goal truly needs it; then warn first.
  • Prefer safe commands (stash, branch, cherry-pick) over destructive ones.
  • Explain any flag that is not obvious, in a few words.
  • Do not dump five solutions; give the one path that fits their state, and mention alternatives only at the end.
  • If the situation involves un-pushed secrets, say to rotate them first.

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.