From sessionlog
Identifies current Claude Code session ID, JSONL log path, message count, project directory, and lists all project sessions with counts. For session log queries.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sessionlog:infoThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Identify the current Claude Code session and report its log file location.
Identify the current Claude Code session and report its log file location.
project_dir="$HOME/.claude/projects/$(pwd | sed 's|/|-|g')"
echo "Project session directory: $project_dir"
current_session=$(ls -t "$project_dir"/*.jsonl 2>/dev/null | head -1)
session_id=$(basename "$current_session" .jsonl)
echo "Session ID: $session_id"
echo "Session file: $current_session"
jq -r 'select(.type == "user") | {sessionId, version, entrypoint, cwd, gitBranch, timestamp} | to_entries[] | "\(.key): \(.value)"' "$current_session" | head -6
echo "Messages: $(jq -c 'select(.type == "user" or .type == "assistant")' "$current_session" | wc -l | tr -d ' ')"
echo ""
echo "All sessions in this project:"
ls -lt "$project_dir"/*.jsonl 2>/dev/null | awk '{print $NF}' | while read f; do
sid=$(basename "$f" .jsonl)
msgs=$(jq -c 'select(.type == "user" or .type == "assistant")' "$f" | wc -l | tr -d ' ')
echo " $sid ($msgs messages)"
done
Present results as a clean summary:
npx claudepluginhub florianbuetow/claude-code --plugin sessionlogLocates, lists, filters, and extracts structured data from Claude Code native session logs. Supports both single and multiple session analysis.
Extracts user inputs from Claude Code session history and organizes them into date-based markdown files in a project's .chats directory for documentation and reference.
Lists recent Claude Code sessions across all projects with summaries, activity, and resume commands. Re-enter work after reboot or context switch.