claude-code-sessions
Skill này làm gì
Skill này cho phép agent của bạn xem lại lịch sử phiên Claude Code đã lưu. Skill dành cho lập trình viên muốn tìm lại công việc cũ, kiểm tra mức dùng hoặc tiếp tục nơi họ đã dừng.
Khi nào nên dùng
- ✓Khi bạn muốn tìm một phiên cũ bằng cách tìm nội dung đã trao đổi.
- ✓Khi bạn muốn kiểm tra mức dùng token hoặc xem bạn đã dùng công cụ nào nhiều nhất.
- ✓Khi bạn muốn tiếp tục công việc từ một phiên trước đó.
Liên kết skill
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/productivity/claude-code-sessions/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
“Tìm phiên mà tôi đã sửa lỗi thanh toán tuần trước và tóm tắt để tôi tiếp tục từ đó.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent đọc các file phiên mà Claude Code lưu trên máy tính của bạn, rồi chạy các lệnh tìm kiếm, thống kê, liệt kê hoặc xuất. Các lệnh xóa và dọn dẹp chỉ chạy khi bạn yêu cầu.
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.
Claude Code Sessions
Session intelligence plugin for Claude Code. Reads the JSONL session files that Claude Code writes to ~/.claude/projects/ and makes them searchable and analyzable.
What It Does
Claude Code records every session as a JSONL file — messages, tool calls, token counts, diffs, tasks. This plugin reads those files and provides two interfaces. Most operations are read-only; delete and cleanup skills can remove session files when explicitly invoked.
11 skills usable directly in Claude Code:
| Skill | Purpose |
|---|---|
/session-search "query" |
Full-text search across every session |
/session-stats |
Token usage, model distribution, tool breakdown |
/session-list |
List sessions sorted by recency, size, or duration |
/session-detail |
Deep dive into a specific session |
/session-diff |
Compare two sessions — files, tools, topics |
/session-timeline |
Chronological view of sessions on a project |
/session-resume |
Generate a context recovery prompt from any session |
/session-tasks |
Find pending and orphaned tasks across sessions |
/session-export |
Export a session as clean markdown |
/session-cleanup |
Find empty, tiny, or stale sessions |
/session-delete |
Delete sessions and their associated tasks |
Web dashboard at localhost:3000 with four views: Dashboard (summary stats), Sessions (sortable table with bulk operations), Search (full-text with context snippets), Tasks (grouped by status with orphan detection).
Install
/plugin marketplace add apappascs/claude-code-sessions
/plugin install claude-code-sessions@claude-code-sessions
No API keys. No config. No runtime dependencies. It reads what's already on disk.
For the dashboard:
bun run ui
# → http://localhost:3000
Architecture
Same TypeScript modules power skills, dashboard, and CLI:
lib/formatters.ts — pure utilities, no I/O
lib/session-parser.ts — parses one JSONL file into structured data
lib/session-store.ts — scans all sessions, aggregates, searches
ui/server.ts — HTTP endpoints + static file serving
Each lib file doubles as a standalone CLI:
bun run lib/session-store.ts list --sort recency --limit 10
bun run lib/session-store.ts search "database migration" --since 2025-01-01
bun run lib/session-parser.ts stats path/to/session.jsonl
Use Cases
- Find the session where you solved a specific problem weeks ago
- See which projects consume the most tokens
- Track pending tasks across all sessions and projects
- Resume a past session with full context
- Compare how two sessions approached the same problem
- Export session transcripts for documentation
Links
- GitHub: github.com/apappascs/claude-code-sessions
- License: MIT
Câu hỏi thường gặp
Nó đọc phiên từ đâu?
Từ các file phiên mà Claude Code ghi trong thư mục projects của người dùng trên máy tính của bạn.
Nó có xóa được phiên không?
Có, nhưng chỉ khi bạn yêu cầu rõ ràng. Các lệnh dọn dẹp và xóa có thể xóa file phiên.
Có bảng điều khiển không?
Có. Skill nhắc đến một bảng điều khiển web hiển thị các phiên theo nhiều chế độ xem.
Chi tiết
Mô tả gốc của tác giả
Search, analyze, and manage Claude Code session history. Use when the user wants to find past sessions, check token usage, review tool breakdowns, resume previous work, or manage tasks across sessions. Provides 11 skills and a web dashboard.
Độ phổ biến
- Sao GitHub
- 33k
- Vị trí xếp hạng
- #8877
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
owasp-security
33kDạy agent hướng dẫn bảo mật OWASP cho ứng dụng web, API, di động, container và agent AI, để nhận ra các điểm yếu phổ biến và gợi ý cách sửa.
agent-management
33kCho phép agent của bạn tạo, liệt kê, cho ngủ đông, đánh thức, đổi tên và xóa các agent AI bằng dòng lệnh AI Maestro, quản lý vòng đời của từng agent.
agent-messaging
33kCho phép agent của bạn gửi, nhận và trả lời tin nhắn có chữ ký giữa các agent AI, dùng Agent Messaging Protocol, chủ yếu trên máy của bạn.
docs-search
33kCho phép agent của bạn tìm trong tài liệu code được tạo tự động, như chữ ký hàm, định nghĩa lớp và chú thích, để kiểm tra API thật trước khi sửa code.
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.