handoff
Skill này làm gì
Skill này tiếp tục phiên agent gần nhất của thư mục dự án hiện tại. Nó bắt đầu với bất kỳ câu hỏi chưa được trả lời nào và gợi ý bước tiếp theo.
Khi nào nên dùng
- ✓Khi bạn nói “lúc nãy chúng ta đang ở đâu” hoặc yêu cầu tiếp tục từ chỗ đã dừng.
- ✓Khi bạn bắt đầu một phiên mà không có ngữ cảnh mới về dự án.
- ✓Khi bạn muốn tiếp tục công việc từ phiên cuối trong cùng thư mục.
Liên kết skill
https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/handoff/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
“Chúng ta đang ở đâu với việc tái cấu trúc auth? Hãy tiếp tục từ phiên gần nhất trong dự án này.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent tìm phiên gần nhất của thư mục dự án khớp và gợi nhớ các bộ nhớ chính của nó. Nó nêu câu hỏi còn mở trước, rồi đến bước tiếp theo, và không tự bịa chi tiết cho các phiên trống.
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 to resume work. Optional cwd override: $ARGUMENTS
Quick start
memory_sessions { "project": "<current-project-id>", "limit": 20 }
Pick the most recent session whose cwd matches this project, then:
memory_recall { "query": "<session top concepts>", "project": "<current-project-id>", "limit": 10 }.
When an agent is requested, pass the same agentId to both calls.
Expected output:
Resuming 7f3a9c2 "Auth refresh rework".
Open question: should logout revoke all device tokens or just the current one?
Next step: decide revoke scope, then update auth/logout.ts.
Why
Match the session by directory boundary, not raw prefix, so a sibling repo never gets mistaken for this one. Never invent observations for an empty session.
Workflow
- Resolve the project path: if
$ARGUMENTSis given, normalize it to absolute (path.resolve(process.cwd(), $ARGUMENTS)); else use the cwd. - Call
memory_sessionswith the exact project identifier when known, andagentIdwhen requested. Otherwise follownextCursoruntil the matching directory is found or pagination ends. Preserve filters between pages. Pick the most recent session whose normalizedcwdmatches by directory boundary: equality, ORcwd.startsWith(projectPath + sep), ORprojectPath.startsWith(cwd + sep). Prefercompletedoverabandoned. No match: report that this project has no matching session and stop. Do not substitute a different project's session. - If the session ended on an unanswered user-facing question, surface it FIRST.
Look in
summaryor recentconversationobservations whosenarrativeends in?. - Summarize: title/summary, key files, key decisions or errors, using
memory_recallon the top concepts, limit 10, preserving the chosen project and agent scope. Check each result's session or project provenance before including it; a query alone does not enforce scope. - End with one concrete "next step?" pointer.
Anti-patterns
WRONG: session.cwd.startsWith(projectPath) matches /repo-a-staging when the
project is /repo-a, resuming the wrong repo's session.
RIGHT: session.cwd === projectPath || session.cwd.startsWith(projectPath + sep),
a directory-boundary check that cannot cross sibling repos.
Checklist
- cwd override resolved to an absolute, normalized path.
- Match used a directory-boundary check, not a raw prefix.
- Unanswered question (if any) leads the response.
- Empty session is reported plainly, with an offer to start fresh.
See also
recap,session-history,recall: same session data, broader views.
Troubleshooting
See TROUBLESHOOTING.md if memory_sessions or memory_recall is not available.
Câu hỏi thường gặp
Nó khớp dự án của tôi bằng cách nào?
Nó khớp theo thư mục, nên một dự án anh em có tên tương tự không bị nhầm lẫn.
Nếu không có phiên nào khớp thì sao?
Agent báo rằng không tìm thấy phiên khớp.
Tôi có thể trỏ nó đến thư mục khác không?
Có. Bạn có thể đưa đường dẫn thư mục để tiếp tục từ đó thay vì thư mục hiện tại.
Chi tiết
Mô tả gốc của tác giả
Resume the most recent agent session for the current working directory, leading with any unanswered question. Use when the user says "where were we", "resume", "handoff", "pick up where I left off", or starts a session with no fresh context.
repo: rohitg00/agentmemory
Độ phổ biến
- Sao GitHub
- 30k
- Vị trí xếp hạng
- #9348
- 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ự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.