Agent skill · Code Review & Quality

introspect

Analyze Claude Code session logs - extract thinking blocks, tool usage stats, error patterns, debug trajectories. Triggers on: introspect, session logs, trajectory, analyze sessions, what went wrong, tool usage, thinking blocks, session history, my reasoning, past sessions, what did I do.

majiayu000github.com/majiayu000GitHub ↗
claude-codecan modify filesMIT
Install
npx skills add majiayu000/claude-skill-registry --skill introspect --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 11 KB
Bundled scripts: none
Allowed tools: BashReadGrepGlob
Path: skills/analysis/introspect/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Introspect Extract actionable intelligence from Claude Code session logs. Analyze tool usage, reasoning patterns, errors, and conversation flow to improve workflows and debug issues. ## Log File Structure ``` ~/.claude/ ├── history.jsonl # Global: all user inputs across projects ├── projects/ │ └── {project-path}/ # e.g., X--Dev-claude-mods/ │ ├── sessions-index.json # Session metadata index │ ├── {session-uuid}.jsonl # Full session transcript │ └── agent-{short-id}.jsonl # Subagent transcripts ``` ### Project Path Encoding Project paths use double-dash encoding: `X:\Dev\claude-mods` → `X--Dev-claude-mods` ```bash # Find project directory for current path project_dir=$(pwd | sed 's/[:\\\/]/-/g' | sed 's/--*/-/g') ls ~/.claude/projects/ | grep -i "${project_dir##*-}" ``` ## Entry Types in Session Files | Type | Contains | Key Fields | |------|----------|------------| | `user` | User messages | `message.content`, `uuid`, `timestamp` | | `assistant` | Claude responses | `message.content[]`, `cwd`, `gitBranch` | | `thinking` | Reasoning blocks | `thinking`, `signature` (in content array) | | `tool_use` | Tool invocations | `name`, `input`, `id` (in content array) | | `tool_result` |

What's inside
Steps it walks through
  1. Log File Structure
  2. Project Path Encoding
  3. Entry Types in Session Files
  4. Core Analysis Patterns
  5. List Sessions for Current Project
  6. Session Overview
  7. Tool Usage Statistics
  8. Extract Thinking Blocks
  9. Error Analysis
  10. Search Across Sessions
  11. Conversation Flow Reconstruction
  12. Subagent Analysis
  13. Advanced Analysis
  14. Token/Cost Estimation
Ships with 1 file
  • metadata.json
Commands it runs
Find project directory for current path
ls ~/.claude/projects/ | grep -i "${project_dir##*-}"
Get sessions index
cat ~/.claude/projects/X--Dev-claude-mods/sessions-index.json | jq '.'
List session files with sizes and dates
ls -lah ~/.claude/projects/X--Dev-claude-mods/*.jsonl | grep -v agent
Entry type distribution
jq -r '.type' ~/.claude/projects/$PROJECT/$SESSION.jsonl | sort | uniq -c
Session duration (first to last timestamp)
jq -s '[.[].timestamp // .[].message.timestamp | select(.)] | [min, max] | map(. / 1000 | strftime("%Y-%m-%d %H:%M"))' \
More from claude-skill-registry
All skills →
About this skill
What does the introspect skill do?

Analyze Claude Code session logs - extract thinking blocks, tool usage stats, error patterns, debug trajectories. Triggers on: introspect, session logs, trajectory, analyze sessions, what went wrong, tool usage, thinking blocks, session history, my reasoning, past sessions, what did I do.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill introspect --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going