session-scan

session-scan is a skill for Claude Code from slbug/claude-ruby-grape-rails. It costs 39 tokens per session (1,224 once invoked), scanned A, original, MIT.

A command that calculates exploratory statistics from recent Claude and Codex sessions stored in a local database. It filters sessions by date, project, or provider.

In plain words
What is it for?
Use it to scan recent sessions, limit results, focus on a project or provider, and examine activity over a chosen time period.
Why use it?
It gives contributors a repeatable way to inspect recent agent usage without relying on an AI to score or interpret the sessions.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths; mentions subagents; mentions Codex.

Good fit Use it to scan recent sessions, limit results, focus on a project or provider, and examine activity over a chosen time period.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/slbug/claude-ruby-grape-rails/session-scan
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add slbug/claude-ruby-grape-rails --skill session-scan
Clone the repo
git clone --depth 1 https://github.com/slbug/claude-ruby-grape-rails

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for session-scan

README.md
[![agentmods](https://agentmods.dev/badge/skills/slbug/claude-ruby-grape-rails/session-scan/github.svg)](https://agentmods.dev/skills/slbug/claude-ruby-grape-rails/session-scan)
Your own site
<a href="https://agentmods.dev/skills/slbug/claude-ruby-grape-rails/session-scan"><img src="https://agentmods.dev/badge/skills/slbug/claude-ruby-grape-rails/session-scan/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for session-scan

Your own site · 80×15
<a href="https://agentmods.dev/skills/slbug/claude-ruby-grape-rails/session-scan"><img src="https://agentmods.dev/badge/skills/slbug/claude-ruby-grape-rails/session-scan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,224 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.01224
Opus 5.5 $0.00016 $0.00490
Sonnet 5.5 $0.00008 $0.00245
Haiku 4.5 $0.00004 $0.00122

Measured 3mo ago against content hash 8f6d72bb0de5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

session-scan scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (references/compute-metrics.py, references/scan-sessions.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/session-scan/SKILL.md · 124 lines

How it starts

The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Session Scan (Tier 1)

Audience: Agents, Not Humans

Imperative-only. Contributor analytics, NOT release gating.

Requirements

Requirement Detail
ccrider installed https://github.com/neilberkman/ccrider
ccrider sync ran populates SQLite DB from CC / Codex session files
Python 3.14+ (uses str | None / list[X] natively)

DB Path Resolution

Search order:

  1. --db PATH flag
  2. CCRIDER_DB env var
  3. $XDG_CONFIG_HOME/ccrider/sessions.db
  4. $HOME/.config/ccrider/sessions.db (Linux / macOS default)
  5. $HOME/Library/Application Support/ccrider/sessions.db (macOS alt)
  6. $APPDATA/ccrider/sessions.db (Windows)

No candidate exists → script exits with code 2, lists tried paths. Ask contributor for DB path, re-run with --db PATH. Do NOT hard-fail until contributor confirms no path is available.

Usage

Command Behavior
/session-scan default 7-day window
/session-scan --since 2026-02-01 start date filter
/session-scan --project myapp substring on project_path
/session-scan --provider claude exact match on provider
/session-scan --limit 20 cap candidate count
/session-scan --list discovery only, no scoring
/session-scan --rescan recompute already-scanned sessions
/session-scan --db /custom/path/to/sessions.db DB override

--provider takes exact sessions.provider value from --list output. Examples (claude, codex, claude-code) are illustrative — filter is exact match.

Main-Context Workflow

1. Parse Arguments

Pass $ARGUMENTS through to scan-sessions.py. Supported flags:

Flag Default
--since DATE 7 days ago
--project SUBSTR matches sessions.project_path LIKE '%SUBSTR%'
--provider NAME exact match on sessions.provider
--limit N 50
--list discovery only
--rescan recompute scanned sessions
--db PATH DB override
--metrics-dir DIR .claude/session-metrics
--min-messages N 5 (filter trivial ping/hi sessions)

Read the full file on GitHub · 124 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 124 lines · 39 tokens per session scan A 8f6d72bb0de5

Subscribe to this mod's changes

session-scan is a skill published in the GitHub repository slbug/claude-ruby-grape-rails (7 stars, last pushed 2d ago), licensed MIT. It adds 39 tokens to every session and 1,224 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

session-scan compared with skills from other repositories

session-scan next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
session-scanslbug/claude-ruby-grape-railsSkill72d agoMITA39Claude Code
todosJetBrains/thinkrailSkill8.5ktodayApache-2.0A58Claude Code, Codex
omh-morning-briefrlaope/oh-my-hermesSkill6.2ktodayMITA96Claude Code, Codex
about-thinkrailJetBrains/thinkrailSkill8.5ktodayApache-2.0A153Claude Code, Codex
research-councilchrisblattman/claudeblattmanSkill49813d agoMITA64Claude Code, Codex
announcement-digestchrisblattman/claudeblattmanSkill49813d agoMITA26Claude Code, Codex
schedule-querychrisblattman/claudeblattmanSkill49813d agoMITA17Claude Code