/taogenna:claude-sessionsfrom taogenna
Inspect past Claude Code session transcripts (~/.claude/projects/<project>/<uuid>.jsonl) with jq: list projects and sessions, pull chat text and tool calls, search for a keyword. Use when the user asks what happened in an earlier session, wants to find something said or done before, or wants to debug a past run.
Ships in taogenna. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Every session is one JSONL file under ~/.claude/projects/<project-key>/, where the
project key is the session's working directory with every non-alphanumeric character
replaced by -.
# 1) Browse all project keys (more robust than deriving from pwd)
ls -la ~/.claude/projects/
# 2) Set project key (pick from the listing above, or derive from pwd)
PROJECT_KEY="$(pwd | sed 's/[^[:alnum:]]/-/g')"
SESSION_DIR="$HOME/.claude/projects/$PROJECT_KEY"
# 3) List recent sessions (sorted by modification time, most recent first)
ls -lt "$SESSION_DIR"/*.jsonl 2>/dev/null | head -10
# 4) Set session (pick from the listing above by date/size)
SESSION="$SESSION_DIR/<uuid>.jsonl"
# 5) List record types in a session
jq -r '.type' "$SESSION" | sort | uniq -c | sort -rn
# 6) Pull chat text (user + assistant messages only)
jq -r '
select(.type == "user" or .type == "assistant") |
"[" + .type + "] " + (
if (.message.content | type) == "array" then
[.message.content[] | select(.type == "text") | .text] | join(" ")
elif (.message.content | type) == "string" then
.message.content
else ""
end
)[:500]
' "$SESSION" | head -50
# 7) Pull tool calls
jq -r '
select(.type == "assistant") |
.message.content[]? |
select(.type == "tool_use") |
"[TOOL] " + .name + " — " + (.input | tostring)[:150]
' "$SESSION" | head -20
# 8) Search for a keyword
grep -n "keyword" "$SESSION"
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub taogenna/configuration --plugin taogenna2 skills in this plugin