Index of every page on this site: llms.txt
All skills
aktsmm avatar

/git-commit-push

@9bedf91
by yamapanaktsmm/agent-skills27 stars
5
Run it yourself

ディスク上の変更を作業単位でコミット&プッシュ

Use this Skill: https://skilld.dev/gh/aktsmm/agent-skills/git-commit-push

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈22 tokens for metadata: the name and description. ≈611 when used: this file.

How this Skill uses context

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

This Skill turns off automatic use in Claude Code. Its description stays out of the automatic Skill list by default.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

<!-- syncToGlobal: true --> <!-- author: aktsmm --> <!-- repository: https://github.com/aktsmm/Agent-Customization --> <!-- license: CC BY-NC-SA 4.0 --> <!-- copyright: Copyright (c) 2025 aktsmm -->

Git Commit & Push

ディスク上の変更を作業単位で commit & push する。エディタ内の未保存の編集は、この環境では保存できない場合がある。

保存

  • 今回の依頼またはハーネスの状態から保存済み・未保存なしと確認できれば、保存処理と再確認は不要。
  • それ以外は、現在のハーネスで許可された保存機能があれば使い、正常完了を確認する。拡張機能や補助スクリプトは追加しない。
  • 保存手段がない、失敗・キャンセル・未保存の残存、または完了未確認でも、確認質問や停止はせず、ディスク上の内容で Git 操作を続行する。最終報告で保存結果と、未保存の編集が反映されていない可能性を明記する。保存済みとは推測しない。

Git 操作

  1. 作業ディレクトリ、現在のブランチ、送信先 remote / upstream、git config user.name を確認する。
  2. git fetch <remote> と git status -sb で同期状態と変更を確認する。未コミット変更も未送信コミットもなく、behind でもなければ Nothing to commit/push で終了する。
  3. 未コミット変更がある場合は差分を確認し、対象パスを明示して git add -- <対象パス>、git diff --cached --check、git commit の順に実行する。複数PoC・別artifact/test・無関係な変更は作業単位へ分類し、scope別の明示pathでstageして別コミットにする。
  4. push 直前に送信先を再 fetch し、ahead / behind を確認する。behind の解消は作業ツリーが clean かつ fast-forward 可能な場合の git pull --ff-only に限る。解消できなければ停止して状況を報告し、rebase・autostash・履歴変更を承認なく実行しない。
  5. git push を実行する。rejected の場合は手順4で再確認し、解消できた場合だけ1回再試行する。
  6. 完了後、リモートリポジトリの URL を Markdown リンクで表示する。

コミットメッセージ

Conventional Commits 形式: <type>(<scope>): <subject> - <user.name>。<user.name> は手順1で取得した値を使う。

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts12d3 checks · Risk SAFE
  • Gen Agent Trust Hub12d

    This skill provides standard Git repository management capabilities, including staging, committing, and pushing changes. It follows transparent procedures for handling file saves and commit message formatting without any malicious behavior.

  • Socket12d

    No alerts

  • Snyk12d

    Risk: LOW · No issues

Signed by skilld at 9bedf91. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 15 hours ago.

Activeupdated last month
disable-model-invocation
true
user-invocable
true
metadata
{
  "author": "yamapan (https://github.com/aktsmm)"
}

README badge

README badge for aktsmm/agent-skills/git-commit-push