git
Git rules — safe operations, preventing destructive commands on user's working tree. Auto-invoke whenever using git commands.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Git rules — safe operations, preventing destructive commands on user's working tree. Auto-invoke whenever using git commands.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Use fff MCP / Grep / Read / Glob — never Bash grep/cat/find/head/tail/sed/awk/rg/wc — for file search and read. Use jq for JSON parsing/shaping (not node -e / python -c). A hook hard-blocks the banned Bash calls, and the dedicated tools return clean, cacheable, line-numbered results. Auto-invoke when searching, reading, or counting in files.
Planning and problem-solving discipline: enter plan mode first, write plans in the plan file (not chat), structured research, validation, implementation. Auto-invoke when the user says "plan", "make a plan", or when fixing issues or implementing features.
Use before any action: five-question self-check that catches destructive ops, scope creep, fabrication, premature completion, and ignored instructions. Auto-invoke before executing commands, editing files, or answering factual questions.
Reconcile skill collections, backport from ~/.claude/skills into a marketplace plugins tree, scrubbing proprietary refs. Use when local has diverged from upstream, or when promoting local-only skills to a marketplace.
Communication and scope discipline: how to interact with the user, handle rejection, stay in scope. Always active.
Final checklist before declaring any task complete. Auto-invoke before saying "done", "ready", "complete", or asking to commit/push.
| name | git |
| description | Git rules — safe operations, preventing destructive commands on user's working tree. Auto-invoke whenever using git commands. |
| user-invocable | true |
git mv for renames/moves. Never plain mv.git stash — moves user's uncommitted work without permission.git checkout HEAD -- . or git restore . — wipes ALL uncommitted changes. Selectively revert only files I touched.git status before deleting any file. If a file is modified (staged or unstaged), it is active work and MUST NOT be deleted. When tests fail after a deletion, the deletion was the mistake — restore the deleted files. A drop in test count is a regression, not cleanup.