commit-history
Skill này làm gì
Skill này liệt kê các commit do phiên agent tạo ra, có thể lọc theo nhánh hoặc kho mã. Mỗi commit hiển thị phiên mà nó đến từ.
Khi nào nên dùng
- ✓Khi bạn muốn xem các commit mà một agent đã đưa lên gần đây.
- ✓Khi bạn muốn danh sách các commit đã liên kết cho một nhánh hoặc kho mã.
- ✓Khi bạn muốn mỗi commit hiển thị kèm chi tiết phiên của nó.
Liên kết skill
https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/commit-history/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Cho tôi xem 20 commit gần nhất mà agent đã thực hiện trên main, kèm các phiên của chúng.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent gọi công cụ liệt kê commit với nhánh và giới hạn của bạn, rồi hiển thị kết quả theo thứ tự mới nhất trước. Mỗi mục gồm SHA ngắn, thông điệp, phiên được liên kết và số lượng quan sát.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
- Parse
$ARGUMENTSforbranch=<name>,repo=<url-or-fragment>,limit=<n>. A bare numeric token is the limit. Defaults: no branch, no repo, limit 100, max 500. - Call
memory_commitswith the parsed filters. - 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
filesis present. - 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.
Câu hỏi thường gặp
Nếu danh sách trống thì sao?
Nghĩa là bộ lọc không khớp với gì. Hãy thử bỏ bộ lọc nhánh hoặc kho mã.
Nó có thể hiển thị bao nhiêu commit?
Mặc định là 100, và tối đa là 500.
Nó có hiển thị các file đã thay đổi không?
Có, khi thông tin file có sẵn cho commit đó.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 30k
- Vị trí xếp hạng
- #9346
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
agentmemory-agents
30kGiúp agent của bạn kết nối máy chủ bộ nhớ agentmemory với các công cụ lập trình như Claude Code, Cursor và Codex.
agentmemory-architecture
30kGiải thích cách agentmemory lưu trữ, tìm kiếm và quản lý bộ nhớ cho agent lập trình, từ lúc ghi nhận đến lúc gợi nhớ lại.
agentmemory-config
30kGiúp agent của bạn thiết lập và kiểm tra máy chủ bộ nhớ agentmemory, gồm cổng, cài đặt và các tính năng bật tắt.
agentmemory-hooks
30kGiúp agent của bạn tự động ghi lại các ghi chú hữu ích từ phiên lập trình, mà bạn không phải lưu từng cái bằng tay.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.