
Scan sessions and learn
Reviews recent Claude Code sessions to find repeated workflows and friction, proposing
Scan sessions and learn is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- Python
- Platforms
- Claude Code
- GitHub stars
- 10
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Scan sessions and learn
This skill looks back across recent Claude Code sessions to surface the habits a developer repeats, such as rules re-explained often, command chains run in the same order, and steps where work keeps stalling. It counts these patterns across a time window, filters out headless runs and short sessions, and turns the strongest ones into a few lessons. Each lesson is checked against the existing AGENTS.md, CLAUDE.md, SKILL.md files and memory to see whether it is already covered or ignored, then routed to the skill or file that owns the fix.
The workflow runs a Python scanner that produces a summary and digest of sessions, optionally splitting large sets into batches that subagents review. The agent can pull matching prompts or error snippets from specific sessions to confirm whether a prompt was a correction or just a habit. A handoff file records findings and their status so later runs pick up where the last one stopped. The skill only proposes changes and never edits files itself. Its optional new-skills mode looks for routines done by hand that a new skill could absorb.
It expects Claude Code session history on the local machine and Python 3 to run the scanner. Output is a report in chat plus one handoff file, and it offers to save a few durable facts to a memory store only when asked.
When your agent uses it
Retrospective over recent Claude Code sessions — find the workflows you repeat and where they stall, check each lesson against what your skills and AGENTS.md already say, and hand it to the one place that owns the fix (improve-skills, skill-flow, agents-md-improver, or a proposed edit). `--new-skills` narrows it to routines you still do by hand that a new skill should carry. Proposes only; never edits. Looks at work habits, not beliefs (socrates) or context cost (manage-context).
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Runs Python scripts(see the files on GitHub)
- No network calls found in its scripts(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 6 files (47 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/scan-sessions-and-learn to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/scan-sessions-and-learn &&
cp -R "$tmp/scan-sessions-and-learn" ~/.claude/skills/scan-sessions-and-learn &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/scan-sessions-and-learn inside it instead.
Copy the skill folder to ~/.agents/skills/scan-sessions-and-learn to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/scan-sessions-and-learn &&
cp -R "$tmp/scan-sessions-and-learn" ~/.agents/skills/scan-sessions-and-learn &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/scan-sessions-and-learn inside it instead.
Copy the skill folder to ~/.cursor/skills/scan-sessions-and-learn to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/scan-sessions-and-learn &&
cp -R "$tmp/scan-sessions-and-learn" ~/.cursor/skills/scan-sessions-and-learn &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/scan-sessions-and-learn inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/ccomkhj/skills.git --path scan-sessions-and-learnOr copy the folder to ~/.gemini/skills/scan-sessions-and-learn yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/scan-sessions-and-learn:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ccomkhj/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/scan-sessions-and-learn &&
cp -R "$tmp/scan-sessions-and-learn" ~/.copilot/skills/scan-sessions-and-learn &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/scan-sessions-and-learn inside it instead.
Get the folder:
git clone --depth 1 https://github.com/ccomkhj/skills.gitThen copy skills/scan-sessions-and-learn into your agent's skills folder as scan-sessions-and-learn. Agents that support SKILL.md read one folder per skill.
What it does
- Session pattern scanning
- Scans recent Claude Code sessions with a Python script, filtering by time window, repository and minimum turn count.
- Friction detection
- Flags rewound prompts, interrupts, rejections and repeated tool failures as candidates for closer review.
- Existing rule checks
- Compares each lesson against AGENTS.md, CLAUDE.md, skill files and memory to label it missing, ignored or covered.
- Routed proposals
- Sends each finding to one owning skill or file with a concrete suggested change, without editing anything.
- New skill discovery
- A narrower mode that finds routines performed by hand that a new skill could carry.
- Persistent handoff file
- Keeps findings and their status in one file so later runs continue from earlier results.
Good for
- Find the workflows I repeat across my recent coding sessions
- Check whether my AGENTS.md already covers a rule I keep re-explaining
- Identify manual routines that would be worth turning into a new skill
- Review where my Claude Code sessions stall and suggest which skill to update
Scan sessions and learn FAQ
Does Scan sessions and learn change my files?
No. It proposes changes and never edits. It writes only one handoff file that records findings and their status.
What does Scan sessions and learn need to run?
It runs a Python 3 script against local Claude Code session data, invoked with the scanner's default flags for a seven-day window unless overridden.
What do the window flags do?
You can set a number of days or sessions, pick a repository or current, set a minimum turn count, and enable the new-skills mode.
Is Scan sessions and learn available as a plugin?
No Claude Code plugin marketplace listing is set for this skill; it is a plain skill folder in the ccomkhj/skills repository.
How do I install Scan sessions and learn in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/scan-sessions-and-learn to use it in all your projects, or to .claude/skills/scan-sessions-and-learn in one project.
Does Scan sessions and learn run scripts?
Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Scan sessions and learn?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Scan sessions and learn?
The closest alternatives to Scan sessions and learn are Reflect, Skill creator, Skill update, Automate me and Retro.
Where this comes from
- Description: from the skill's own SKILL.md.
More from ccomkhj/skills

Audits AGENTS.md project memory files and proposes targeted, approved updates
- Open source
- 10 GitHub stars
- Developer tools

Builds interactive HTML lessons that teach AI, ML or science concepts through worked cases
- Open source
- 10 GitHub stars
- Education and exam prep

Runs a project and builds an interactive walkthrough from what actually executed
- Open source
- 10 GitHub stars
- Developer tools

Turns a clear improvement target into a measurable Claude Code /goal condition
- Open source
- 10 GitHub stars
- Developer tools

Races Claude against Codex in separate git worktrees until a measurable goal is met
- Open source
- 10 GitHub stars
- Developer tools

Runs a per-turn race between two coding agents and keeps the better diff
- Open source
- 10 GitHub stars
- Developer tools




