skills/built-in/git/SKILL.md
Everyday Git workflows and recovery: status/diff/log, branching, committing, merging vs rebasing, undoing mistakes, resolving conflicts, and inspecting history. Use when users ask how to do something in Git, are stuck (detached HEAD, merge conflict, accidental commit), or want to undo/recover work. Triggers on mentions of git, commit, branch, merge, rebase, conflict, undo, revert, stash, HEAD, 提交, 分支, 合并, 冲突, 撤销, 回滚.
npx skillsauth add microclaw/microclaw gitInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Look before you leap: git status and git log --oneline -5 before any destructive action.
git status
git diff # unstaged changes
git diff --staged # staged changes
git log --oneline -10
git log --oneline --graph --all -20
git switch -c feature/x # create + switch (modern; = checkout -b)
git add -p # stage hunks interactively
git commit -m "message"
git switch main && git merge feature/x
git restore <file> # discard unstaged changes to a file
git restore --staged <file> # unstage (keep changes)
git commit --amend # fix the last commit message/contents (only if unpushed)
git reset --soft HEAD~1 # undo last commit, KEEP changes staged
git revert <sha> # safe undo of a pushed commit (new commit)
git reflog # find "lost" commits after a bad reset
git status # see conflicted files
# edit files, remove <<<<<<< ======= >>>>>>> markers, keep the right code
git add <file> && git commit # (or: git rebase --continue)
git merge --abort # bail out and start over
git revert over git reset --hard for anything already pushed/shared.reset --hard and clean -fd are destructive — confirm the branch and stash first
(git stash).git status, git branch, git reflog orient you.documentation
Improve or write prose: tighten, clarify, fix grammar, and adjust tone/length while preserving the author's voice and meaning. Use when users ask to edit, proofread, rewrite, polish, shorten, or change the tone of text, or to draft something from notes. Triggers on mentions of edit, proofread, rewrite, polish, tighten, make it shorter/clearer/more formal, fix grammar, 润色, 改写, 校对, 修改, 精简, 改语气, 帮我写.
development
Look up a quick factual summary of a topic, person, place, or thing from Wikipedia via its public REST API (no API key). Use when users want a concise overview, 'who/what is X', background, or a definition-level explanation of a named entity. Triggers on mentions of who is, what is, tell me about, overview of, background on, wikipedia, 是谁, 是什么, 介绍一下, 简介, 维基.
testing
Convert between units of measurement precisely: length, mass/weight, temperature, area, volume, speed, data sizes, and time. Use when users ask to convert X to Y, 'how many cm in an inch', 'what's 70F in C', 'GB to MB', or mix metric and imperial. Triggers on mentions of convert, conversion, in inches/cm/km/miles, kg/lb, Celsius/Fahrenheit, 换算, 转换, 多少厘米, 多少公斤, 摄氏, 华氏.
development
Translate text between languages naturally, preserving meaning, tone, and formatting, with notes on nuance or ambiguity when it matters. Use when users ask to translate text, say something in another language, or localize a message. Triggers on mentions of translate, in English/Chinese/Spanish/Japanese/etc, how do you say, localize, 翻译, 译成, 用英文怎么说, 中译英, 英译中, 本地化.