Skip to content
Back to skills

Git Helper

ASecurity

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.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 27, 2026
ai-agentsgogit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 27, 2026

npx -y skills add nafiz530/SkillShelf-Labs --skill git-helper --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Git Helper?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Git Helper
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nafiz530-git-helper/badge)](https://www.skillsdirectory.com/skills/nafiz530-git-helper)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: git-helper
description: 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.
---

# 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.

Files in this skill

  • README.md4.8 KB
  • SKILL.md2.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.