commit-history — скилл для Claude Code: что делает и как установить
Скилл выводит список коммитов git, привязанных к сессиям агента, с фильтрацией по ветке или репозиторию.
npx skills add rohitg00/agentmemory --skill commit-history -a claude-codeЧто делает commit-history
Скилл обращается к инструменту memory_commits, чтобы найти коммиты, сохранённые агентом во время работы. Ответ сортируется от новых к старым. В каждой строке выводятся короткий sha, имя ветки, дата создания, первая строка сообщения коммита, идентификаторы сессий и число наблюдений.
Если передать аргументом просто число, скилл примет его за лимит записей. По умолчанию лимит равен 100, а верхняя планка ограничена 500. При обращении через запасной REST-интерфейс к GET /agentmemory/commits инструмент всегда кодирует параметры URL.
Скилл не сможет работать, если в окружении не настроен вызов memory_commits. Пустой результат выдачи означает только то, что фильтр ничего не нашёл, поэтому первым делом стоит сбросить параметр ветки или репозитория.
Какие задачи решает
- посмотреть коммиты, созданные агентом за прошлые сессии
- отфильтровать историю коммитов по ветке или репозиторию
- найти идентификаторы сессий и число наблюдений для каждого коммита
- ограничить список нужным числом записей до 500
Примеры запросов агенту
- Покажи коммиты агента в ветке main limit=20
- Какие коммиты сделал агент за последнее время?
- Выведи список привязанных коммитов с сессиями
Как установить commit-history
1Через Skills CLI (Vercel)
npx skills add rohitg00/agentmemory --skill commit-history -a claude-code2Вручную: положить файлы
~/.claude/skills/commit-history/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/commit-history/
1Через Skills CLI (Vercel)
npx skills add rohitg00/agentmemory --skill commit-history -a codex2Вручную: положить файлы
.agents/skills/commit-history/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add rohitg00/agentmemory --skill commit-history -a cursor2Вручную: положить файлы
.cursor/skills/commit-history/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install rohitg00/agentmemory commit-history2Вручную: положить файлы
.github/skills/commit-history/SKILL.md1Через Skills CLI (Vercel)
npx skills add rohitg00/agentmemory --skill commit-history -a gemini-cli2Командой платформы
gemini skills install https://github.com/rohitg00/agentmemory --path plugin/skills/commit-historyВручную: положить файлы
.devin/skills/commit-history/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add rohitg00/agentmemory --skill commit-history -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора11
Весь набор →Похожие
Вопросы о commit-history
Как установить commit-history в Claude Code?
Выполните команду npx skills add rohitg00/agentmemory --skill commit-history -a claude-code.
Что делает commit-history?
Он вызывает инструмент memory_commits и показывает список коммитов, связанных с сессиями агента, от свежих к старым.
Какие параметры фильтрации поддерживает скилл?
Поддерживаются branch, repo и limit, при этом одиночное число сразу считывается как лимит выдачи до 500 записей.
Исходный текст
SKILL.md · Apache-2.0
---
name: commit-history
description: 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.
argument-hint: "[branch=... repo=... limit=...]"
user-invocable: true
---
The user wants a list of agent-linked commits. Filter args: $ARGUMENTS
## Quick start
```json
memory_commits { "branch": "main", "limit": 20 }
```
Expected output:
```text
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](TROUBLESHOOTING.md) if `memory_commits` is not available.
© rohitg00 · Apache-2.0 · rohitg00/agentmemory