本文へスキップ
Skillpedia
エージェント33k · #8877

claude-code-sessions

できること

このスキルは、エージェントに保存されたClaude Codeのセッション履歴を調べさせます。過去の作業を見つけたり、使用量を確認したり、前回の続きから再開したりしたい開発者向けです。

使う場面

  • ✓話した内容で、過去のセッションを検索したいとき。
  • ✓トークンの使用量を確認したり、よく使ったツールを知りたいとき。
  • ✓以前のセッションから、作業を再開したいとき。

スキルのリンク

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/productivity/claude-code-sessions/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/productivity/claude-code-sessions/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“先週チェックアウトのバグに取り組んだセッションを見つけ、そこから再開できるように要約を教えてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、Claude Codeがあなたのコンピューターに保存したセッションファイルを読みます。検索、統計、一覧、書き出しのコマンドを実行します。削除やクリーンアップのコマンドは、依頼された場合だけ実行されます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

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

よくある質問

どこからセッションを読みますか?

Claude Codeがユーザーのプロジェクトフォルダーに書き込むセッションファイルから読みます。

セッションを削除できますか?

はい。ただし、明示的に依頼された場合だけです。クリーンアップや削除のコマンドは、セッションファイルを削除することがあります。

ダッシュボードはありますか?

はい。複数の表示でセッションを示すウェブダッシュボードがあると、スキルに記載されています。

詳細

作者による元の説明

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

人気

GitHubのスター
33k
ランキング
#8877
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル