session-trends
FeaturedAnalyze trends across session metrics. Computes windowed aggregates, deltas, and compares against MEMORY.md findings. Use periodically for progress tracking.
Code & Development 507 stars
35 forks Updated yesterday MIT
Install
Quality Score: 94/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Session Trends
Analyze trends from the metrics ledger. Computes windowed aggregates,
fingerprint distributions, and compares against MEMORY.md baselines.
## Requirements
Requires `.claude/session-metrics/metrics.jsonl` from `/session-scan`.
## Usage
```
/session-trends # All windows (7d, 30d, all)
/session-trends --window 30d # Specific window only
/session-trends --project enaia # Filter by project
/session-trends --compare MEMORY.md # Compare against memory baseline
/session-trends --html out.html # Write HTML report with ASCII bars
```
For pure context-window stats (max prompt tokens, ctx %, compaction rate)
across raw Claude Code JSONL files, see the `--scan-jsonl` mode of
`compute-metrics.py` (inspired by badlogic / earendil-works/pi).
## Pipeline
### Step 1: Parse Arguments
Extract from `$ARGUMENTS`:
- **`--window WINDOW`**: Time window — `7d`, `30d`, or `all` (default: show all three)
- **`--project NAME`**: Filter metrics by project name
- **`--compare PATH`**: Path to MEMORY.md for baseline comparison
(default: auto-detect from `.claude/` project memory)
### Step 2: Read Metrics Ledger
Read `.claude/session-metrics/metrics.jsonl`.
If empty or missing:
> No metrics found. Run `/session-scan` first.
If `--project` specified, filter entries by project field.
### Step 3: Compute Trends via Python
```bash
python3 .claude/skills/session-scan/references/compute-metrics.py \
--trends .claude/s...
Details
- Author
- oliver-kriska
- Repository
- oliver-kriska/claude-elixir-phoenix
- Created
- 5 months ago
- Last Updated
- yesterday
- Language
- Python
- License
- MIT
Integrates with
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
Code & Development Featured
session-scan
Compute metrics for Claude Code sessions. Discovers via ccrider, filters trivial, computes friction/opportunity/fingerprint scores. Use for broad session triage.
507 Updated yesterday
oliver-kriska Code & Development Featured
session-deep-dive
Deep qualitative analysis of high-signal sessions. Spawns subagents with v2 template, synthesizes patterns, compares against known findings. Use after /session-scan.
507 Updated yesterday
oliver-kriska Data & Documents Featured
session-report
Generate an explorable HTML report of Claude Code session usage (tokens, cache, subagents, skills, expensive prompts) from ~/.claude/projects transcripts.
32,767 Updated today
anthropics