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

/git-commit

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

ディスク上の変更を作業単位でコミット(Pushなし)

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

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

SKILL.md

≈21 tokens for metadata: the name and description. ≈599 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

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

手順

  1. Get-Location; git branch --show-current で現在地とブランチを確認
  2. git config user.name でユーザー名を取得(コミットメッセージに使用)
  3. 未保存なしと確認済みの場合以外は、現在のハーネスで許可された保存機能があれば使う。保存機能がない・失敗した・完了未確認でもディスク上の内容で続行し、最終報告で未保存の編集が反映されていない可能性を明記する。保存用の拡張機能や補助スクリプトは追加しない。
  4. 保存処理後に git status --short、git diff、git diff --cached を確認する。変更がなければ「Nothing to commit」で終了する。既存 staged を含め今回の対象を確定し、無関係な変更や所有不明の変更が混在して対象を決められない場合は確認する。
  5. 作業単位ごとに対象パスを明示して git add -- <対象パス> を実行する。成功後に git diff --cached で staged 全体がその作業単位だけであることを確認し、git diff --cached --check を実行する。add またはチェックに失敗したら停止して報告する。無関係な staged が残る場合は勝手に解除せず停止して確認する。
  6. チェック成功後に git commit -m '<コミットメッセージ>' を実行し、成功を確認してから次の作業単位へ進む。独立した作業は別コミットにする。完了後はコミットIDと残った変更を報告し、push は実行しない。

コミットメッセージのフォーマット

Conventional Commits 形式でコミットメッセージを作成してください。

<type>(<scope>): <subject> - <user.name>

例(git config user.name を反映):

  • feat(auth): ログイン機能を追加 - <user.name>
  • fix(api): タイムアウトエラーを修正 - <user.name>
  • docs(readme): セットアップ手順を更新 - <user.name>

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 instructions for the agent to commit local file changes using Git. It restricts operations to the local environment by explicitly forbidding the push command and uses secure command-line practices to handle file paths safely.

  • 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