Skip to main content
skill CX Codex

claude-code-sessions — Claude Code skill: features and install

claude-code-sessions is a Claude Code skill for searching and analyzing session history. Find earlier work, inspect token use, or rebuild context from a past session.

no license 54 installs updated 2026-11-17

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --skill productivity/claude-code-sessions
Open on GitHub

What claude-code-sessions does

The skill reads Claude Code session files from ~/.claude/projects/ and lets you search their contents, inspect usage stats, and track tasks across sessions. Its 11 skills cover searches, session comparisons, Markdown exports, and prompts that recover context for earlier work.

Most actions only read session data; separate skills handle deletion. Session files must be available under ~/.claude/projects/. The web dashboard runs with bun run ui and serves at localhost:3000, so Bun is needed for that interface. Core features need no API key or extra runtime dependencies.

What it helps with

  • locate a session by searching its messages
  • inspect token use and model distribution
  • compare files and tools across two sessions
  • find unfinished tasks across projects
  • reconstruct context from an earlier session

Example prompts for the agent

  • Find the session where I worked on a database migration.
  • Show token usage and model distribution across my projects.
  • Create a prompt that restores context from this session.

How to install claude-code-sessions

1claude-code-templates

npx claude-code-templates@latest --skill productivity/claude-code-sessions

2Skills CLI (Vercel)

npx skills add davila7/claude-code-templates --skill claude-code-sessions -a claude-code

3Manually: put the files in place

~/.claude/skills/claude-code-sessions/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/claude-code-sessions/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about claude-code-sessions

How do I install claude-code-sessions in Claude Code?

Run npx claude-code-templates@latest --skill productivity/claude-code-sessions.

What does claude-code-sessions do?

It searches and analyzes Claude Code session history, including usage stats and tasks. It can compare sessions, export them as Markdown, and create a context-recovery prompt.

What does the claude-code-sessions dashboard need?

Bun is needed to run the dashboard. Start it with bun run ui and open localhost:3000; session files are read from ~/.claude/projects/.

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set745

The whole set →
test-detect test-detect detects the project’s test framework, runs the matching checks, and can create starter tests for a source file. CX Codex +1 56installs neon-postgres neon-postgres provides patterns for Neon serverless Postgres, connection pooling with PgBouncer, and dual-connection setups for Prisma or Drizzle ORM. CX Codex +1 56installs observability-langsmith The observability-langsmith skill covers LangSmith tracing, evaluation, and monitoring for LLM applications. Use it to inspect runs, test model outputs, and watch production metrics. CX Codex +1 56installs claude-opus-4-5-migration claude-opus-4-5-migration — a skill that scans your codebase for model strings and API calls and switches them to Opus 4.5. Useful when a project needs the newer model. CX Codex +1 55installs hono This skill guides Hono API and app development, covering routes, middleware, validation, and typed RPC clients. Use it when building for runtimes such as Bun or Cloudflare Workers. CX Codex +1 54installs command-creator command-creator is a Claude Code skill that turns recurring workflows into slash commands, configuring arguments and storage scope and generating Markdown files. CX Codex +1 54installs plan-mode-game The plan-mode-game hook opens a browser game when Claude Code enters Plan Mode and tracks tool activity. It gives you something to do while a plan takes shape. 54installs szamlazz Issue, cancel, and download Hungarian invoices through the szamlazz.hu Agent API. It also looks up taxpayer details and keeps a reusable customer cache. CX Codex +1 54installs

Project sponsors

Companies that keep this analytics open