원클릭으로
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 직업 분류 기준
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.
Find outstanding TODOs across a workspace - scans TODO.md files and TODO/FIXME/HACK/XXX/BUG markers in code, then presents them grouped by file. Use whenever the user asks about TODOs, outstanding work, or "any todos in X".
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+).
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.
Evaluate and refine a plan before implementation begins. Use once you think you are ready to present a plan or design to the user.
| 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 diff <path> to check for pre-existing hunks that are not yours. git add <path> stages the WHOLE file, so any foreign unstaged edit in that file gets folded into your commit (tell-tale: more insertions than you wrote). When a file carries edits you did not make, stage only your hunks with git add -p <path> and confirm with git -P diff --cached <path> before committing. If a foreign hunk already slipped into an unpushed commit, recover with git reset --soft HEAD~1 then re-stage with -p.git commit: if the file(s) you are about to commit are the same file(s) HEAD touched, and HEAD is unpushed, and no other unrelated commit landed in between - that is "aligns with the previous commit." Default to amending; only create a new commit if you can name a reason the two changes are independent (e.g. HEAD already backs an approved/in-review change elsewhere, or genuinely unrelated work landed on the same file by coincidence).git -P log --oneline @{u}..HEAD. If the output is empty, HEAD is already pushed - do NOT amend. Create a new commit instead.git rebase (or fast-forward) instead of git merge. Reserve git merge only for integrating a remote/collaborator branch you cannot rewrite (already pushed and shared). If a merge commit ends up in history by mistake and none of the affected commits have been pushed, rebase it away rather than leaving it.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>