本文へスキップ
Skillpedia
一般的なプログラミング30k · #9346

commit-history

できること

このスキルは、エージェントのセッションが生んだコミットを一覧にします。ブランチやリポジトリで絞り込めます。各コミットには、それが生まれたセッションが示されます。

使う場面

  • ✓エージェントが最近出荷したコミットを見たいとき。
  • ✓1つのブランチやリポジトリに絞って、リンクされたコミットの一覧がほしいとき。
  • ✓各コミットをセッションの詳細とともに表示したいとき。

スキルのリンク

https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/commit-history/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/commit-history/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“エージェントがmainブランチで行った最新の20件のコミットを、そのセッションとともに見せてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、あなたのブランチと件数を指定してコミット一覧のツールを呼び出し、結果を新しいものから順に表示します。各項目には、短いSHA、メッセージ、リンクされたセッション、観測の件数が含まれます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

The user wants a list of agent-linked commits. Filter args: $ARGUMENTS

Quick start

memory_commits { "branch": "main", "limit": 20 }

Expected output:

9a1b2c3 main 2026-06-07 "rotate refresh tokens" · session 7f3a9c2 (14 obs)
b21d004 main 2026-06-05 "rate limiter audit"    · session b21d004 (9 obs)

Why

Render only the commits the tool returned, newest first. An empty result means the filter matched nothing, not that work is missing.

Workflow

  1. Parse $ARGUMENTS for branch=<name>, repo=<url-or-fragment>, limit=<n>. A bare numeric token is the limit. Defaults: no branch, no repo, limit 100, max 500.
  2. Call memory_commits with the parsed filters.
  3. Render reverse-chronologically: short sha, branch, authored timestamp, first line of the message, linked session id(s) (first 8) with observation counts, and file count when files is present.
  4. Empty result: tell the user the filter matched nothing and suggest dropping the branch or repo filter.

Anti-patterns

WRONG (REST fallback): concatenate ?branch= + raw branch name, so a name with ?, &, or # corrupts the query string.

RIGHT: URL-encode every value with URLSearchParams/encodeURIComponent before appending to GET /agentmemory/commits.

Checklist

  • Filters parsed; bare number treated as limit; limit capped at 500.
  • Output is reverse-chronological.
  • Session ids and observation counts come straight from the response.
  • REST fallback URL-encodes branch, repo, and limit.

See also

  • commit-context: drill into one commit's session.
  • recall: search the observations behind a linked session.

Troubleshooting

See TROUBLESHOOTING.md if memory_commits is not available.

よくある質問

一覧が空の場合はどうなりますか?

絞り込みに一致するものがなかったという意味です。ブランチやリポジトリの絞り込みを外してみてください。

一度にいくつのコミットを表示できますか?

初期値は100件で、最大は500件です。

変更されたファイルも表示されますか?

はい。コミットのファイル情報が利用できる場合は表示されます。

詳細

作者による元の説明

List recent git commits linked to agent sessions, optionally filtered by branch or repo. Use when the user asks "show agent commits", "what has the agent shipped", "list linked commits", or wants commits with their session context.

repo: rohitg00/agentmemory

人気

GitHubのスター
30k
ランキング
#9346
ライセンス
Apache-2.0
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル