Chuyển đến nội dung
Skillpedia
Agent30k · #9354

session-history

Skill này làm gì

Skill này hiện các phiên làm việc gần đây trên dự án hiện tại dưới dạng dòng thời gian. Mỗi phiên hiện trạng thái, số quan sát và các quyết định chính.

Khi nào nên dùng

  • ✓Khi bạn hỏi lần trước chúng ta đã làm gì hoặc muốn liệt kê các phiên trước đây.
  • ✓Khi bạn muốn tổng quan về công việc trước đây trên dự án hiện tại.
  • ✓Khi bạn muốn xem các quyết định chính của từng phiên trước.

Liên kết skill

https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/session-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/session-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

“Lần trước chúng ta đã làm gì trên dự án này? Hãy cho tôi xem lịch sử phiên.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent liệt kê các phiên của dự án theo thứ tự ngày ngược, hiện mã ngắn, thời gian bắt đầu, trạng thái và số quan sát của từng phiên. Nó thêm điểm nổi bật và các quyết định chính nếu chúng đã được ghi lại.

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 an overview of recent sessions on this project.

Quick start

memory_sessions { "project": "<current-project-id>", "limit": 20 }

Expected output:

7f3a9c2 · app · 2026-06-07 09:00 · completed · 14 obs
  - decision: Rotate refresh tokens on every use
b21d004 · app · 2026-06-05 14:00 · completed · 9 obs
  - code: limit.ts counts per-IP

Why

Only show sessions and observations the tool returned. An empty history is a real answer, never a cue to invent past work.

Workflow

  1. Use the exact project identifier recorded by the host and pass it to memory_sessions, with agentId when requested. If it is unknown, page through sessions using nextCursor and match normalized cwd by directory boundary before choosing the most recent 20. Never substitute another project.
  2. Preserve scope filters on every page; stop at the requested count or a null nextCursor. State when the displayed history is a partial page. Present in reverse chronological order: session id (first 8), project, start time, status.
  3. For sessions with observations, show the key highlights (type plus title).
  4. Note the total observation count per session.
  5. When a session summary exists, surface its title and the key decisions.

Anti-patterns

WRONG: the tool returns two sessions, you describe "several sessions of steady progress" and add ones you remember from the conversation.

RIGHT: show exactly the two sessions returned, each with its real id, status, and observation count.

Checklist

  • Every session shown came from the tool response.
  • Project/directory scope was checked before selecting the displayed window.
  • Order is reverse-chronological.
  • Per-session observation counts match the response.
  • No session or highlight was invented or merged.

See also

  • recap: same data grouped by date with highlights.
  • handoff: jump straight into the most recent session.
  • recall: search across all sessions by topic.

Troubleshooting

See TROUBLESHOOTING.md if memory_sessions is not available.

Câu hỏi thường gặp

Nếu không có lịch sử thì sao?

Skill nói rõ như vậy. Nó không bịa ra các phiên trước đây.

Nó có thể hiện phiên của dự án khác không?

Không. Nó chỉ bám vào dự án bạn đang làm và không thay bằng dự án khác.

Nó có hiện mọi phiên không?

Nó hiện một số lượng nhất định, chẳng hạn hai mươi phiên gần nhất, và ghi chú khi danh sách chỉ là một phần.

Chi tiết

Mô tả gốc của tác giả

Show what happened in recent past sessions on this project as a clean timeline. Use when the user asks "what did we do last time", "session history", "past sessions", or wants an overview of previous work.

repo: rohitg00/agentmemory

Độ phổ biến

Sao GitHub
30k
Vị trí xếp hạng
#9354
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ự