Chuyển đến nội dung
Skillpedia
Agent33k · #8877

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.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/davila7/claude-code-templates/blob/main/cli-tool/components/skills/productivity/claude-code-sessions/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

“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

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.

repo: davila7/claude-code-templates

Độ 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

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ự