Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
bighardperson avatar

History Session

  • 8 installs
  • 33 repo stars
  • Updated April 26, 2026
  • bighardperson/computer-science-skills-collection

history-session is a Claude skill that lists prior Claude Code sessions for the current directory so the user can choose one to --resume.

About

This skill displays historical Claude Code sessions for the current working directory so the user can decide whether to resume a previous session. It runs a lookup script over ~/.claude/projects/ and prints each session's summary plus the claude --resume command. It triggers on /history-session or equivalent phrases.

  • Lists past Claude Code sessions for the current directory so a user can decide whether to --resume
  • Reads sessions-index.json and .jsonl files from ~/.claude/projects/
  • Triggered by /history-session or Chinese/English aliases

History Session by the numbers

  • 8 all-time installs (skills.sh)
  • Ranked #410 of 550 CLI & Terminal skills by installs in the Skillselion catalog
  • Data as of Jul 30, 2026 (Skillselion catalog sync)
At a glance

history-session capabilities & compatibility

Free; runs a local python3 script over existing session files.

Capabilities
session history · resume session
Use cases
orchestration
Platforms
macOS · Linux
Runs
Runs locally
Pricing
Free
From the docs

What history-session says it does

Display historical Claude Code sessions for the current directory so the user can decide whether to `--resume` one.
SKILL.md
Reads sessions-index.json and .jsonl files from ~/.claude/projects/
SKILL.md
npx skills add https://github.com/bighardperson/computer-science-skills-collection --skill history-session

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs8
repo stars33
Last updatedApril 26, 2026
Repositorybighardperson/computer-science-skills-collection

What it does

List past Claude Code sessions for the current directory so a user can pick one to --resume.

Who is it for?

Claude Code users who want to find and resume a prior session in the current project.

When should I use this skill?

The user types /history-session or asks to view Claude Code history for this directory.

By the numbers

  • each session shown as two lines: summary and the resume command

Files

SKILL.mdMarkdownGitHub ↗

history-session

Display historical Claude Code sessions for the current directory so the user can decide whether to --resume one.

Trigger

Use this skill when the user types:

  • /history-session
  • "历史会话"、"history session"、"查看历史"、"看看历史会话"

Steps

Step 1: Run the lookup script

python3 ~/.claude/skills/history-session/scripts/history_session.py "$PWD"

Step 2: Display results

  • If output is NO_SESSIONS: reply "当前目录没有历史会话记录。"
  • Otherwise, display under the heading 📋 历史会话(当前目录), outputting the script result exactly as-is — do not reformat, do not convert to a table, do not omit any lines.

Each session is two lines: the first shows the summary, the second shows the claude --resume command. Both lines must be shown.

Related skills

CLI & Terminaldevopsdocs

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.