analyze-patterns
Skill4 starsChanged 9 months agoMITView on GitHub
Analyze tool operation logs to identify repeated patterns across sessions and auto-generate reusable skills. !python3 $HOME/.claude/scripts/pre-analyze.py You have received a structured pre-analysis report above. Use it to evaluate patterns and make recommendations. Do NOT read the raw JSONL log file. Briefly summarize the statistics: activity level, dominant tools, most active directories. Read all .md files in ~/.claude/commands/ and all SKILL.md in ~/.claude/skills/*/ to understand what skills already exist. For each pattern, compare against existing skills: For each actionable pattern, output:
2 other projects use a version of this.
Adopted by
Most recently taken up by
- garavitgabriel/clay-backend-plugintheir own version, first seen Jul 22, 2026
- denenis-lab/my-claude-skillstheir own version, first seen Jul 1, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- denenis-lab/my-claude-skills★ 2same name
- garavitgabriel/clay-backend-plugin★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Read all .md files in ~/.claude/commands/ and all SKILL.md in ~/.claude/skills/*/ to understand what skills already exist.
- Very specific: line 42
Ask the user which to create/update.
- Distinctive: line 46
If the summary mentions log cleanup needed, offer to trim (keep 30,000 lines).
- Distinctive: line 53
If no patterns found, suggest using Claude Code for more sessions
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Analyze tool operation logs to identify repeated patterns across sessions and auto-generate reusable skills.
Pre-analysis data
!python3 $HOME/.claude/scripts/pre-analyze.py
Instructions
You have received a structured pre-analysis report above. Use it to evaluate patterns and make recommendations. Do NOT read the raw JSONL log file.
1. Review statistics
Briefly summarize the statistics: activity level, dominant tools, most active directories.
2. Scan existing skills
Read all .md files in ~/.claude/commands/ and all SKILL.md in ~/.claude/skills/*/ to understand what skills already exist.
3. Evaluate detected patterns
For each pattern, compare against existing skills:
- Already covered → Skip
- Partially overlapping → Suggest updating the existing skill
- New pattern → Suggest creating a new skill
For each actionable pattern, output:
### Pattern: <name>
- **Overlap**: [None / Partial with `<skill>` / Fully covered]
- **Recommendation**: [Create new / Update existing / Skip]
- **Frequency**: N sessions
- **Typical steps**: specific operations
- **Parameterizable**: what varies → use $ARGUMENTS
- **Suggested filename**: <name>.md
- **Suggested content**: (complete .md)4. Create skills
Ask the user which to create/update. Write .md files to ~/.claude/commands/.
5. Log maintenance
If the summary mentions log cleanup needed, offer to trim (keep 30,000 lines).
Notes
- Generated skills use
$ARGUMENTSfor user-provided arguments - Skill content should be clear instructions for Claude, not shell scripts
- Prioritize high-value patterns that save the most time
- If no patterns found, suggest using Claude Code for more sessions
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

