Agent skill · AI & Agents

analyze-sessions

Analyze session logs to discover automation opportunities. Use periodically to find patterns in your Claude Code usage that could be automated. Use periodically after multiple sessions to find automation opportunities.

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

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

Facts
Files in the skill folder: 2
SKILL.md size: 9 KB
Bundled scripts: none
Allowed tools: ReadWriteGlobGrepBash
Path: skills/analysis/analyze-sessions/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

Analyze recorded session data from ALL Claude Code projects to identify patterns and automation opportunities. ## Arguments - `--project <name>` — Analyze only sessions from the named project (matches the `project` field, which is the basename of the working directory) - `--targets-only` — Exclude toolkit sessions; only analyze target projects ## Data Location Session logs are stored centrally in `~/.claude/logs/sessions.jsonl` in JSONL format (one compact JSON object per line). Each entry contains: ```json {"session_id":"...","timestamp":"2026-01-23T12:00:00Z","project":"project-name","cwd":"/path/to/project","transcript_path":"/path/to/transcript"} ``` The session-end-logger hook is installed at the user level (`~/.claude/hooks/session-end-logger.sh`) so it captures sessions from every project. ## Analysis Process Copy this checklist and track progress: ``` Analyze Sessions Progress: - [ ] Step 1: Read session logs - [ ] Step 2: Calculate statistics (grouped by project) - [ ] Step 3: Identify target projects - [ ] Step 4: Analyze transcripts - [ ] Step 5: Find automation opportunities - [ ] Step 6: Cross-project insights - [ ] Step 7: Generate report ``` ### 1. Read Session Logs

What's inside
Steps it walks through
  1. Arguments
  2. Data Location
  3. Analysis Process
  4. 1. Read Session Logs
  5. 2. Calculate Statistics (Grouped by Project)
  6. 3. Identify Target Projects
  7. 4. Analyze Transcripts (If Available)
  8. 5. Identify Automation Opportunities
  9. 6. Cross-Project Insights
  10. 6b. Review Findings Before Writing
  11. 7. Generate Report
  12. 8. Output Summary
  13. Error Handling
  14. Limitations
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the analyze-sessions skill do?

Analyze session logs to discover automation opportunities. Use periodically to find patterns in your Claude Code usage that could be automated. Use periodically after multiple sessions to find automation opportunities.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill analyze-sessions --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