Use this skill when analyzing Claude Code conversation logs to extract insights, identify patterns, detect detritus, and generate actionable lessons for improvement. This skill is triggered when the user asks about "analyzing conversations", "learning from history", "extracting insights from logs", "improving from past sessions", or "understanding conversation patterns".
Analyzes Claude Code conversation logs to extract patterns, identify inefficiencies, and generate actionable lessons. Triggered when users ask about analyzing conversations, learning from history, or improving from past sessions.
/plugin marketplace add jasonkneen/codesurf-insights/plugin install jasonkneen-codesurf-insights@jasonkneen/codesurf-insightsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Use this skill when analyzing Claude Code conversation logs to extract insights, identify patterns, detect detritus, and generate actionable lessons for improvement. This skill is triggered when the user asks about "analyzing conversations", "learning from history", "extracting insights from logs", "improving from past sessions", or "understanding conversation patterns".
Analyze conversations across these 6 dimensions:
Evaluate how clearly the user communicated their intent:
Insight format: "User could have specified X upfront to avoid Y clarification cycles"
Assess whether Claude correctly understood the request:
Insight format: "Model misunderstood X as Y, causing Z wasted attempts"
Identify assumptions Claude made that proved wrong:
Insight format: "Assumed X without verification, should have asked/checked first"
Find where conversations could have been shorter:
Insight format: "Could have achieved same result in N fewer turns by doing X"
Extract reusable knowledge:
Insight format: "LESSON: When encountering X, do Y because Z"
Identify domain-specific terminology:
Insight format: "User uses 'X' to mean Y - add to vocabulary"
Identify and flag these patterns as detritus:
When adding lessons to CLAUDE.md, use this format:
## Learned Insights (Auto-generated)
<!-- codesurf-insights: START -->
### Session: YYYY-MM-DD
**Efficiency**: [insight]
**Lesson**: [insight]
**Language**: Added "[term]" = [meaning]
<!-- codesurf-insights: END -->
Place between marker comments so future updates can replace/append cleanly.
Claude Code stores conversations at:
~/.claude/projects/{project-hash}/conversations/{conversation-id}.jsonEach conversation contains:
messages: Array of user/assistant message pairsmetadata: Timestamps, model used, tools invokedtool_calls: Record of tool invocations and resultsParse with:
const conversation = JSON.parse(fs.readFileSync(path));
const messages = conversation.messages || [];
Set configurable thresholds for analysis:
| Metric | Default | Description |
|---|---|---|
| min_messages | 10 | Minimum messages to trigger analysis |
| detritus_ratio | 0.3 | Archive if >30% is detritus |
| insight_confidence | 0.7 | Minimum confidence to report insight |
| max_insights_per_session | 5 | Limit insights to most valuable |
Analyzing conversation abc123...
├── Messages: 47
├── Detritus detected: 12 (25%)
├── Insights extracted: 4
│ ├── [EFFICIENCY] Could use Task agent for parallel searches
│ ├── [LESSON] Check imports before suggesting new ones
│ ├── [ASSUMPTION] Verified user wants TypeScript, not JavaScript
│ └── [LANGUAGE] "PR" = Pull Request in this context
└── Done. Report saved to ~/.claude/insights/reports/2024-01-15.md
Markdown with full details, examples, and recommendations.
Concise, actionable additions between marker comments.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.