Skip to content
Back to skills

Commit History

ASecurity

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

  • 29,173 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 26, 2026
toolsgit

Works with

  • mcp

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add rohitg00/agentmemory --skill commit-history --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Commit History?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Commit History
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rohitg00-commit-history/badge)](https://www.skillsdirectory.com/skills/rohitg00-commit-history)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: commit-history
description: List recent git commits that are linked to agent sessions, optionally filtered by branch or repo. Use when the user asks "show agent commits", "what has the agent shipped", or wants a list of commits with their session context.
argument-hint: "[branch=... repo=... limit=...]"
user-invocable: true
---

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

Parse `$ARGUMENTS` for optional `branch=<name>`, `repo=<url-or-fragment>`, and `limit=<n>` tokens. A bare numeric token becomes the limit. Defaults: no branch filter, no repo filter, limit 100, max 500.

Call the `memory_commits` MCP tool with the parsed filters. If the MCP tool is unavailable, fall back to HTTP: build `GET $AGENTMEMORY_URL/agentmemory/commits` and append each filter as a URL-encoded query parameter (use `URLSearchParams` or `encodeURIComponent` on `branch`, `repo`, and `limit`) so values containing `?`, `&`, or `#` cannot corrupt the request. Include `Authorization: Bearer $AGENTMEMORY_SECRET` when set.

Render the result as a reverse-chronological list:
- Short SHA, branch, authored timestamp
- Commit message first line
- Linked session id(s) (first 8 chars each) and observation counts where present
- File count when `files` is provided

If the result is empty, tell the user the filter matched no commits and suggest dropping the branch/repo filter. Do not invent commits.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.