session-scan

session-scan is a skill for Claude Code, Codex 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 CodeCodex

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.

agentmods
npx agentmods add skills/slbug/claude-ruby-grape-rails/session-scan
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, Codex.

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00039 $0.01224
Opus 5 $0.00019 $0.00612
Sonnet 5 $0.00008 $0.00245
Haiku 4.5 $0.00004 $0.00122

Measured 3d ago against content hash 8f6d72bb0de5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 4d ago), licensed MIT. It adds 39 tokens to every session and 1,224 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

ml-data-pipeline-architecture

Patterns for efficient ML data pipelines using Polars, Arrow, and ClickHouse. TRIGGERS - data pipeline, polars vs pandas, arrow format.

terrylica/cc-skills · 38 tokens

lineage

Use when user invokes /lineage with a column name (optionally qualified with table/schema). Also triggers on "trace this column", "where does X come from", "what reads from Y table". Traces column-level data lineage through SQL, Kafka, Spark, JDBC, and ORM codebases. Produces a structured lineage path with confidence…

harnessprotocol/harness-kit · 94 tokens

nosql-database-design

Designs a NoSQL data model by leading with access pattern analysis. Covers DynamoDB single-table design (PK/SK/GSI) and MongoDB embedding vs referencing, consistency models, and capacity planning. Invoked when the user asks to design a DynamoDB schema, MongoDB data model, or NoSQL data model.

soulcodex/agentic · 71 tokens

relational-database-design

Designs or reviews a relational database schema for a given domain. Covers table structure, normalization, indexes, constraints, and migration strategy. Invoked when the user asks to design a schema, review a database structure, or optimize a data model.

soulcodex/agentic · 55 tokens

business-intelligence-pro

Activates BusinessIntelligence-Pro for KPI design, dashboard strategy, and SQL optimization. Use when you need north star metric and metric tree design, LookML or Looker explore architecture, complex SQL with window functions and CTEs, threshold-based and ML-powered alerting design, or data storytelling for executive…

vignesh2027/Claude-Agentic-Skills2.0-version · 68 tokens

Add Postgres-native vector retrieval to agent and RAG workflows with pgvector

Store embeddings beside application data in Postgres, create vector indexes, and query nearest neighbors for semantic search, RAG, recommendations, or agent memory retrieval.

agentskillexchange/skills · 47 tokens