Use when explaining System V AMD64, ARM AAPCS, RISC-V psABI, stack frames, variadic calls, or FFI register rules. Not for the Rust FFI binding layer: use rust-ffi.
日本語の概要は準備中です。原文の説明を表示しています。
Use when asked to publish the checked-out branch: commit and push it on whatever branch it is, the default branch included. Not for creating branches, PRs, force pushes, or pushing any other branch; when the request excludes the default branch, use commit-push-current.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
| Field | Bound contract |
|---|---|
| Trigger | User asks to commit and push to the branch currently checked out, including the default branch. |
| Authority | Remote: pushes local commits to origin/<current-branch>; requires explicit human invocation. Invoking on the checked-out branch (including main/master) is explicit authorization to push to that branch. Preview the push target and consequence before pushing. |
| Side effect | Creates local commits and pushes them to origin/<current-branch>. No branch creation, no branch switch, no force push, no PR. |
| Done | Current branch is committed and pushed, or detached/diverged/no-origin state is reported without unsafe recovery. |
git status) and diff against HEAD (git diff HEAD): required, gathered by the skill.git branch --show-current): required, gathered by the skill; empty output means detached HEAD.git log --oneline -10): required, gathered by the skill.git rev-list --left-right --count origin/$(git branch --show-current)...HEAD 2>/dev/null || echo 'NO_REMOTE_BRANCH' (left count = commits only on origin, right count = commits only on HEAD); NO_REMOTE_BRANCH means the branch has no counterpart on origin yet.git remote): required, gathered by the skill.Resolve branch state. Run git branch --show-current.
Check for work against the gathered status and divergence counts.
0: report "nothing to commit, already up to date" and stop.NO_REMOTE_BRANCH: skip to step 6.origin/<current-branch>, regardless of any differently-configured upstream, because step 6 pushes there. NO_REMOTE_BRANCH also fires in detached HEAD, where the branch expansion is empty; the detached-HEAD bullet in step 1 runs first and stops, so keep these branches in this order.
Done when: the tree state is classified as clean-and-current (stop), clean-and-ahead (skip to step 6), or dirty (continue to step 3), and the classification is recorded.Determine commit message conventions. Match repo style in this priority: project instructions in context > recent commits > seven-rule style (capitalized imperative subject, 50 chars target and 72 hard, no trailing period; blank line; body wrapped at 72 explaining what and why, not how; footers Closes #N, See also: #N, BREAKING CHANGE: <what broke>). In a repo that uses conventional commits, default to fix: over feat: when ambiguous: code added to remedy broken or missing behavior is fix:; feat: is for capabilities the user could not previously do. The user may override. Done when: the commit message convention is identified (project instructions, recent-commit style, or seven-rule default) and the convention source is named, so step 4 and 5 produce messages that match repo style.
Group the changes into logical commits. One concern per commit, where a concern is one reason the tree changed. Two changes belong in the same commit only when reverting one without the other leaves the tree broken (the revert test). Split by mechanism, not by file: where one file carries two mechanisms, write the filtered patch out of git diff -- <file>, keep only the hunks for one mechanism, and stage it with git apply --cached <patch>: the first real split is unverified and must be confirmed with the user before it is applied, because this headless form was not executed this session and git add -p needs a TTY the agent lacks. A lint, format, or whitespace sweep is its own commit, never folded into a behavior change. Order commits so each one is independently coherent. Done when: each group is a single concern by the revert test, no group mixes a behavior change with a lint or whitespace sweep, and every group has its files and staging method identified.
Commit each group. Run the repo-native verification gate (type-checker and/or linter, whichever the repo defines) once per commit group before staging that group; a failing group is not ready to commit; skip silently if neither is configured. Stage and commit each group in a single call, naming files explicitly: never git add -A or git add ., which can sweep in sensitive files (.env, credentials) or unrelated changes. After committing, run git status to verify success and record the commit hash(es) and subject line(s) for the final report. Use a heredoc to preserve message formatting:
git add file1 file2 file3 && git commit -m "$(cat <<'EOF'
Add first-class subject line here
Optional body explaining why this change was made,
not just what changed.
EOF
)"
Done when: every group is committed with its hash and subject recorded, git status confirms each commit, and no git add -A or git add . was used, or a verification gate failure stopped the group and the failing group is named.
git remote.
origin remote (empty output, or other remotes present but none named origin): do not push, and do not add, invent, or guess a remote. Report "local-only, no remote: commits only" (or "no origin remote configured" if other remotes exist) and stop.origin present: push with one unconditional form, always targeting origin even if the branch's configured upstream points elsewhere, setting upstream if missing:
git push -u origin HEAD
git push -u origin HEAD succeeded and the branch is on origin/<current-branch>, or no origin remote exists and the stop is reported without inventing a remote.git add -A or git add . to force it through.origin remote: Stop without pushing. Never add, invent, or guess a remote.git rev-list --left-right --count origin/<current-branch>...HEAD. Leave resolution to the user. Never --force, --force-with-lease, or any force variant without explicit user authorization.git status does not confirm the commits.The current branch carries one commit per logical concern, each proven by git status and reported with its hash and subject line, pushed to origin/<current-branch>; or a terminal state is reported: detached HEAD, nothing to do, no origin remote, or push rejected with divergence counts.
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Use when explaining System V AMD64, ARM AAPCS, RISC-V psABI, stack frames, variadic calls, or FFI register rules. Not for the Rust FFI binding layer: use rust-ffi.
日本語の概要は準備中です。原文の説明を表示しています。
Use when configuring ADC sampling time, DMA-driven ADC, calibration, or DAC channel setup on bare-metal MCUs. Not for the DMA stream itself: use dma-baremetal.
日本語の概要は準備中です。原文の説明を表示しています。
Use when creating AF_XDP sockets, configuring UMEM and XSK rings, writing an XDP redirect program, or choosing copy versus zero-copy mode. Not for full kernel bypass: use dpdk.
日本語の概要は準備中です。原文の説明を表示しています。
Use when a completed session needs an agent-environment retrospective. Not for an engineering retrospective from telemetry: use engineering-retrospective.
日本語の概要は準備中です。原文の説明を表示しています。
Use when a redacted, trimmed agent transcript must be appended to a GitHub PR or issue body, with human approval and preview. Not for automated or model-initiated insertion.
日本語の概要は準備中です。原文の説明を表示しています。
Use when a repo needs agent setup, AGENTS.md added or made lean, CLAUDE.md audited, or agent instructions scored or pruned. Not for remote, credential, publish, deploy, or irreversible changes.
日本語の概要は準備中です。原文の説明を表示しています。