From cass
This skill should be used when the user asks about "lessons learned", "past mistakes with", "synthesize learnings", "what went wrong with", "recurring issues", "patterns from history", "extract knowledge from sessions", "self-improvement from past", "what keeps failing", "common errors", "tool usage patterns", "which agent is best for", or wants to extract patterns, recurring issues, and actionable lessons from past coding agent sessions for self-improvement.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cass:session-learningsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Extract patterns, recurring issues, and actionable lessons from past coding
Extract patterns, recurring issues, and actionable lessons from past coding agent sessions. Synthesize knowledge from history across all agents to drive self-improvement and avoid repeating mistakes.
Start with a specific area to analyze:
# Search for errors and failures
cass search "error fix bug" --mode hybrid --json --limit 20 --fields summary
# Search for specific problem domains
cass search "<topic> problem issue" --mode hybrid --json --limit 15
# Time-scoped search
cass search "error" --days 30 --json --fields summary --limit 20
Before diving into individual sessions, get an overview:
# Error distribution by agent
cass search "error fix bug" --json --aggregate agent --days 30
# Error distribution over time
cass search "error" --json --aggregate date --days 30
# Topic frequency by workspace
cass search "<topic>" --json --aggregate workspace
Identify which tools are used most and their efficiency:
# Top tools by usage
cass analytics tools --limit 20 --json
# Tools for a specific agent
cass analytics tools --agent claude_code --limit 10 --json
# Recent tool patterns
cass analytics tools --days 7 --json
Expand relevant sessions to understand the full context:
# Get full context around a finding
cass expand <source_path> --line <line_number> -C 10 --json
# Find related sessions
cass context <source_path> --json --limit 5
After gathering evidence from multiple sessions, identify:
Invoke the mcp__memory__remember MCP tool to store each synthesized learning individually:
["cass", "session-learnings", "<topic>"]"learning" (for insights), "error" (for bug patterns), or "pattern" (for reusable approaches)"high" (for recurring issues) or "normal"Before storing, recall existing memories on the topic to avoid duplicates.
Find recurring errors and their resolutions:
# Aggregate errors by agent to find where problems concentrate
cass search "error failed exception crash" --json --aggregate agent --days 30
# Then drill into specific agents
cass search "error failed" --agent claude_code --mode hybrid --json --limit 20
# Search for specific error types
cass search "TypeError undefined null" --json --limit 10
cass search "authentication expired token" --json --limit 10
For each cluster of similar errors, extract:
Find past architectural and design decisions:
cass search "decided chose selected approach" --mode hybrid --json --limit 15
cass search "tradeoff comparison versus" --mode hybrid --json --limit 15
Extract:
Find patterns in tool and library usage:
cass search "<library-name> setup configure" --json --limit 10
cass search "<tool-name> issue workaround" --json --limit 10
Extract:
Compare how different agents handled similar problems:
# Aggregate by agent for a topic
cass search "<topic>" --json --aggregate agent
# Then drill into specific agents
cass search "<topic>" --agent claude_code --json --limit 5
cass search "<topic>" --agent codex --json --limit 5
cass search "<topic>" --agent gemini --json --limit 5
# Compare model usage across agents
cass analytics models --json
Extract:
Understand token consumption patterns:
# Token usage trends
cass analytics tokens --days 30 --group-by day --json
# Which tools consume the most tokens
cass analytics tools --limit 10 --json
Extract:
When presenting learnings, structure as:
--aggregate for fast pattern scanning before reading individual sessions.cass analytics tools to identify tool-related patterns.Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub asragab/asragab-claude-marketplace --plugin cass