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

/git-pull

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

リモートからPullして変更箇所を表示

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

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

SKILL.md

≈15 tokens for metadata: the name and description. ≈640 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 pull

リモートレポジトリの最新状態に合わせて(Pull)、変更箇所を教えてください。

手順

  1. 現在地、ブランチ、remote / upstream、pull.rebase / branch.<name>.rebase / pull.ff の有効な設定を確認する。対象不明、upstream 未設定、または merge / rebase / 競合解消の途中なら変更せず停止する。
  2. pull 前の HEAD を git rev-parse HEAD で記録し、git status --short、git diff、git diff --cached、git stash list --format=%H でローカル変更・ステージ状態・未追跡ファイル・既存 stash の OID を記録する。未追跡ファイルは autostash の保護対象とみなさない。
  3. 既存の取り込み設定を変えず git pull --autostash を実行し、直後の終了コードと出力を記録する。方式未設定で履歴が分岐している場合は確認して停止し、別方式で自動再試行しない。
  4. 終了コードだけで成功とせず、git status、git diff --name-only --diff-filter=U、実行後の差分と stash の OID を確認する。取り込み処理の完了、未解決競合なし、実行前のローカル変更内容の復元を個別に検証し、ステージ状態の変化も報告する。復元は差分文字列の完全一致や変更パスだけで判定せず、記録した編集内容が取り込み後のファイルに保持・反映されたかを照合する。新規 stash が残った、変更が欠けた、または復元を確認できない場合は未完了とする。
  5. 失敗・競合・復元未確認ならそこで停止する。取り込みと復元のどちらで止まったか、merge / rebase の進行中状態、HEAD の変化、競合パス、残った stash の OID と次の確認を報告する。stash の再適用・削除、reset、abort、再 pull は承認なく実行しない。
  6. 両方の成功を確認してから pull 後の HEAD を取得し、git log --oneline <before>..<after> と git diff --stat <before> <after> / git diff <before> <after> で今回のコミットとファイル差分を要約する。rebase 時は書き換えられたローカルコミットも範囲に含まれるため、全件をリモート由来と呼ばない。HEAD が同じなら取り込み変更なしと報告する。

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.

1 warning12d3 checks · Risk SAFE
  • Gen Agent Trust Hub12d

    A git utility skill designed to synchronize a local repository with a remote one using automated verification steps to prevent data loss or state corruption during the pull process.

  • Socket12d

    No alerts

  • Snyk12d

    Risk: MEDIUM · 1 issue

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-pull