Chuyển đến nội dung
Skillpedia
Lập trình chung30k · #9346

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.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/commit-history/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

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

  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.

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

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự