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 ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
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.