ワンクリックで
git-usage
Rules and style preferences for the usage of git. Use before you interact with git in any way.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Rules and style preferences for the usage of git. Use before you interact with git in any way.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Write a handoff document so a fresh session (or another agent) can resume multi-session work with full context. Use when the current session is ending mid-effort, context is running high, or the user asks to "hand off", "hand over", or prepare the next session/slice.
Checklist for wrapping up a session - persist memory, check TODOs, and ensure nothing is lost. Use before marking a task complete or ending a conversation.
Check memory for in-progress tasks and active TODOs at the start of each session. Use at the beginning of every new conversation.
Evaluate and refine a plan before implementation begins. Use once you think you are ready to present a plan or design to the user.
Analyse recent session transcripts to extract learnings, discover pain points, and persist them into memory/skills/rules. Run manually when the retrospective counter is due (session-end reminds you at 5+).
Reduce the amount of code in a changeset or file - remove duplication, dead code, redundancy, and over-verbose constructs - while preserving behaviour. Use when asked to tidy, shrink, deduplicate, DRY up, or simplify code.
| name | git-usage |
| description | Rules and style preferences for the usage of git. Use before you interact with git in any way. |
Note that these git rules override others.
git commands that can return paginated or scrollable output (such as git log), ALWAYS use the -P option (e.g. git -P log)git -P log --oneline -20 to see the style of the most recent commits so that you can match it.git add and git commit in a single commit by using && instead of staging and committing separately.git add -A), re-check git -P status --short immediately after committing. If any file you intended to include is still listed as modified/untracked, you missed it - amend it in (a build/test run can mask this by reading the working tree, so green tests do NOT confirm the file was committed).git -P log --oneline @{u}..HEAD. If the output is empty, HEAD is already pushed - do NOT amend. Create a new commit instead.Before making a commit, you must tell the user "I am following the predefined git rules" to confirm your understanding of these rules.
git remote get-url origin and inspect the host before deciding whether a repo is internal or public - a repo whose name looks personal/public may push to an internal host, and vice versa. Do not infer the host from the repo/package name.git grep -n '^<<<<<<<' HEAD to verify no conflict markers exist in tracked files. If any results are found, do not push - fix them first.git remote get-url origin to classify the remote; internal/corporate git hosts are exempt. For public remotes, scan BOTH the diff and the commit messages of @{u}..HEAD for any internal identifiers your environment defines (internal hostnames/URLs, employer-specific project or package names, employee aliases, internal ticket IDs, cloud account IDs). If anything matches, do not push - fix it first. Any active no-internal-leakage rule defines the specific patterns.git commit --amend only modifies HEAD - to edit an earlier commit use interactive rebasegit commit --fixup <SHA> then GIT_SEQUENCE_EDITOR=: git rebase -i --autosquash <PARENT>reword action; create a temporary Python script for GIT_SEQUENCE_EDITOR (to swap pick to reword) and GIT_EDITOR (to replace old message), then GIT_SEQUENCE_EDITOR='python3 /tmp/seq.py' GIT_EDITOR='python3 /tmp/msg.py' git rebase -i <PARENT>