git-operations-rules

📁 totto2727-dotfiles/agents 📅 8 days ago
8
总安装量
8
周安装量
#35529
全站排名
安装命令
npx skills add https://github.com/totto2727-dotfiles/agents --skill git-operations-rules

Agent 安装分布

gemini-cli 8
github-copilot 8
codex 8
kimi-cli 8
amp 8
opencode 8

Skill 文档

Git Operations Rules

Rule (CRITICAL)

These rules MUST ALWAYS be followed when performing git operations.

git -C

Do not use git -C <path>. Always cd to the repository directory first, or use absolute paths within the current working directory.

git unstage

Use git unstage to reset the staging area. Do not pass any options.

git unstage

git undo

Use git undo to undo the last commit. Do not pass any options.

git undo

git stash

Do not use shorthand. Use explicit commands:

  • To save changes: git stash push (not git stash)
  • To restore: git stash apply (not git stash pop)

Before stashing, stage any new (untracked) files with git add so they are tracked; otherwise they will not be included in the stash.

git add <new-files>
git stash push -m "<message>" -- <paths>

Related Skills