Sandbox
@smixs/mentor

Session-insights skill for Claude Code and Codex

mentor reads local Claude Code and Codex history, counts what happened across sessions, and turns that into an `/insights`-style HTML report. It uses `collect.py` to build stats and `render_report.py` to merge those stats with the analysis into one browser-openable file.

78 stars1 forksPythonUpdated 1mo ago
Who it's for

Builders who want their agent history turned into a weekly review of patterns, friction, and fixes.

What it delivers

You can see what you build, where you lose time, and what to change in your agent workflow.

What it does

Reads local session history

Parses Claude Code transcripts from `~/.claude` and Codex rollouts from `~/.codex` without uploading them.

Builds cross-session stats

Aggregates messages, sessions, tool calls, edits, files touched, tokens, daily activity, tool mix, and languages.

Writes a self-contained HTML report

Produces one `report.html` with eight sections, inline SVG icons, count-up numbers, and an animated chart.

Surfaces recurring friction

Calls out repeat problems with evidence and suggests a fix, a `CLAUDE.md` line, a hook, or a habit.

Suggests better workflows

Highlights features you under-use and new ways to apply the agent to your patterns.

How to get it

  1. 1Recommended, via skills.sh, the open marketplace for agent skills. One command installs…
    npx skills add smixs/mentor
  2. 2Useful flags
    # globally, for every project
    npx skills add smixs/mentor -g
    
    # into specific agents
    npx skills add smixs/mentor -a claude-code -a codex
    
    # no questions, for CI
    npx skills add smixs/mentor -g -y
  3. 3Manual (Claude Code) clones the skill straight into your skills directory
    git clone https://github.com/smixs/mentor.git ~/.claude/skills/mentor

README

mentor skill

mentor

a skill that reads your local session history and writes report on how you actually work.

Agents now do the work juniors used to. But juniors became seniors by getting feedback from seniors. Give agents to juniors and retire the seniors, and that feedback loop disappears. This skill is that loop, packaged as an agent skill you install once and run every week.

Example report

What the skill does

  • Reads your local session history. Claude Code transcripts under ~/.claude and Codex rollouts under ~/.codex. Nothing is uploaded; the skill runs entirely on your machine.
  • Aggregates many sessions into headline numbers (messages, sessions, tool calls, edits, files touched, tokens) plus per-day activity, tool mix, and languages.
  • Writes one self-contained report.html with eight sections, inline SVG icons, count-up numbers, and an animated chart. No dependencies and no build step, so any browser opens it.
SectionWhat it gives you
What you work onYour sessions clustered into themes, with rough share
How you use the agentTool ratios, languages, model tiering, checkpoints
What you did wellReal wins, handed back
Where things go wrongFriction points, each with evidence and a concrete fix
Features worth tryingCapabilities you under-use
Suggested CLAUDE.md additionsCopy-paste lines that kill a recurring friction
New ways to use itBetter workflows for your patterns
On the horizonWhere your workflow is heading

The friction section is the point of the skill: every friction names a repeatable fix, a CLAUDE.md line, a hook, or a habit, so the same mistake stops showing up next week.

Install the skill

Recommended, via skills.sh, the open marketplace for agent skills. One command installs the skill into any supported agent:

npx skills add smixs/mentor

Useful flags:

# globally, for every project
npx skills add smixs/mentor -g

# into specific agents
npx skills add smixs/mentor -a claude-code -a codex

# no questions, for CI
npx skills add smixs/mentor -g -y

Update the skill to the latest version: npx skills update mentor.

Manual (Claude Code) clones the skill straight into your skills directory:

git clone https://github.com/smixs/mentor.git ~/.claude/skills/mentor

For Codex, clone the skill into ~/.codex/skills/mentor instead. The bundled scripts need uv; the skill itself is plain Markdown that any skills-capable agent can read.

Use the skill

Run the command, or just ask the agent for it in your own words ("review how I work with the agent", "разбери мои сессии"):

/mentor            # both agents, last 30 days (default)
/mentor claude     # Claude Code sessions only
/mentor codex      # OpenAI Codex sessions only
/mentor both       # cross-agent read: habits that show up in both tools

Add a window with --days N. The skill writes the report to ~/.claude/usage-data/mentor-report.html and opens it. Make the skill a weekly habit, since the patterns show up over runs, not in a single one:

claude -p "/mentor both"

How the skill works

Three small scripts, no magic:

  1. collect.py parses every session in the window into one stats bundle. The numbers are counted, not guessed.
  2. The agent reads that digest and writes the eight-section analysis, grounded in your actual prompts and metrics.
  3. render_report.py merges stats and analysis into the final HTML.

The report is written in your language (English by default; Russian chrome is built into the skill). Some judgments, like themes and satisfaction, are model-inferred and flagged as such; read them as hypotheses, not verdicts.

Privacy

The skill reads local log files and writes a local HTML file. Your transcripts never leave your machine.

License

MIT, see LICENSE. Русская версия: README.ru.md.

Files in the repo

Repository payload6 top-level entries
  • assets
  • mentor
  • .gitignore
  • LICENSE
  • README.md
  • README.ru.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More skills

obra/
superpowers

An agentic skills framework & software development methodology that works.

285k
1 add

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

117k
1 add
Vincentwei1021/
anything2explainer

Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.

666

Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

71k