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", "history session", "view history", "take a look at the 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 "There is no history session record in the current directory." - 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.