History session

From bighardperson/computer-science-skills-collection · View interactive version

History session is an AI agent skill from the GitHub repository bighardperson/computer-science-skills-collection. Display historical Claude Code sessions for the current directory, letting users decide whether to --resume a previous session. Reads sessions-index.json and .jsonl files from ~/.claude/projects/. Use when user types /history-session or says '历史会话', 'history session', '查看历史', '看看历史会话'.

How to use this skill

Skill file

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:

Steps

Step 1: Run the lookup script

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

Step 2: Display results

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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.