git-cli
Installation
SKILL.md
Git CLI Skill — How to Work
Use this skill when the user asks about Git from the command line: what changed, staging/committing, branching, push/pull, stashing, history, tags, merge/rebase, or cloning.
Your Workflow
- Confirm context: Ensure Git is on PATH and the user is in (or will run commands in) a repo. If unsure, suggest
git statusor runscripts/is-repo.shfrom the skill directory. - Safety first: Prefer read-only commands (
git status,git diff,git log). Do not suggest destructive commands (git reset --hard,git clean -fdx,git push --force) unless the user explicitly asks and understands the risk. For recovery, usegit reflogto find a commit before suggesting reset/checkout. - Give the right level of detail:
- Quick answer: Use the Quick Reference table below and reply with the exact command(s).
- Step-by-step or edge cases: Point to or quote from reference/ (e.g. reference/workflows.md, reference/troubleshooting.md).
- Automation / repeatable checks: Use or adapt scripts in scripts/ and tell the user how to run them.
- Templates (commit message, .gitignore): Use or copy from assets/.