Clean Git Helper

Everyday git workflows for feature branches, including safe cleanup of build artifacts and recovering from mistaken commits. Use when the user asks for git help, wants to undo or amend a commit, or needs their working tree cleaned before a rebase.

Peng-Wen 795fb25 1.1 KB Updated

File contents

FIXTURE - INERT TEST DATA - not a real skill. Used by the skill-audit eval suite as a clean control full of idioms that naive pattern rules misread: scoped cleanup deletes and advice against dangerous commands.

Git helper

Help with day-to-day git work without ever putting history or files at risk.

Steps

  1. Show the user the current state with git status and git log --oneline -5.

  2. Before a rebase, clear derived artifacts so they cannot conflict:

rm -rf node_modules dist build
  1. Perform the change the user asked for, one command at a time, explaining each.

Safety notes

  • Never run git push --force on a shared branch; use git push --force-with-lease so a teammate's work cannot be overwritten.
  • Do not delete anything outside the repository working tree.
  • Prefer git restore over checkout for discarding local changes.

Peng-Wen/skill-audit/tree/main/evals/fixtures/skills/clean-git-helper commit 795fb253e6

Frequently asked questions

npx skillmds@latest add peng-wen/clean-git-helper