git
Installation
SKILL.md
Git Workflow Skill
This skill is runtime-neutral and works in Claude Code, OpenCode, and Codex. Use the current runtime's shell, read, edit/write, search, and question tools. Do not add any AI attribution footer for any runtime.
Runtime Notes
- Claude Code: use
AskUserQuestionfor choices when available. - OpenCode: use the question tool for choices when available.
- Codex: ask the user directly when interactive input is required.
- If an interactive git command would be required, avoid it and use non-interactive alternatives. Do not use
git add -punless the runtime can safely drive the interaction; otherwise stage explicit files or ask the user which files to include.
Atomic Commits
Before committing, review all changes and organize into logical units:
- Group related changes - Same feature, bug fix, or refactor belongs together
- Separate unrelated changes - Different fixes or features get separate commits
- Single responsibility - Each commit should be independently revertible
- Don't mix concerns - Keep formatting separate from logic changes