From prism
Analyzes Claude Code session health using PRISM: token usage, CLAUDE.md audits, session failures, and project listings.
How this skill is triggered — by the user, by Claude, or both
Slash command
/prism:prism-analyzeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Analyze Claude Code session health using PRISM.
Analyze Claude Code session health using PRISM.
When the user asks to analyze their Claude Code sessions, check token usage, audit their CLAUDE.md, understand why sessions are failing, list their projects, or see what PRISM can see.
First check if PRISM is installed:
prism --version
If the command is not found, install it first:
pip install prism-cc
Then verify it installed correctly:
prism --version
Once confirmed installed, proceed with the analysis.
Run the analysis (reads JSONL from ~/.claude/projects/ by default):
prism analyze
If prism is not installed:
pip install prism-cc
prism analyze
For a specific project:
prism analyze --project <path>
For JSON output (useful for scripting):
prism analyze --json
For CLAUDE.md recommendations:
prism advise
List all projects PRISM can see:
prism projects
This prints each project name, session count, and last-active timestamp. Use it when the user asks what projects PRISM has data for, or to confirm that sessions are being recorded.
If the user has agentsview installed, PRISM can read from its SQLite database instead of raw JSONL. This gives real API token counts and agentsview's own health scores alongside PRISM's.
prism analyze --source agentsview
prism analyze --source agentsview --agentsview-db /path/to/sessions.db
prism analyze --source agentsview --json
DB path resolution when --agentsview-db is not specified:
AGENTSVIEW_DATA_DIR env → AGENT_VIEWER_DATA_DIR env → ~/.agentsview/sessions.db
Use --source agentsview when the user mentions agentsview, asks for real
token counts, or wants richer session data. Use the default (no flag) when
they just want a quick analysis from raw session files.
PRISM prints a health report table and top issues per project.
Run prism (no args) to open the interactive TUI dashboard.
Run prism dashboard to open the HTML dashboard in your browser.
npx claudepluginhub jakeefr/prism --plugin prismAnalyzes Claude Code session patterns, categories, trends, benchmarks, and usage for behavioral insights and recommendations. Activates on 'patterns', 'insights', 'how am I doing' queries.
Generates usage analytics dashboard from Claude Code sessions with epistemic protocol coverage metrics, friction analysis, growth timelines, and improvement recommendations.
Audits CLAUDE.md files using PRISM session data to ADD, TRIM, WARN, or RESTRUCTURE rules for better adherence and token efficiency.