observability:session SKILL.md skillA
observability:session from bendrucker/claude is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add bendrucker/claude/observability:session@git:20261103.02d6c50Pins git:20261103.02d6c50 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- bendrucker/claude
- Path
plugins/observability/skills/session/SKILL.md- Versions recorded
- 14
- Latest version
- git:20261103.02d6c50, committed Nov 3, 2026
- First version recorded
- Oct 6, 2026
- Size
- 9,900 bytes
- Repository stars
- 18
- License
- MIT
Query Claude Code session history via a DuckDB index over `~/.claude/projects/`. Use when asked about Claude Code activity ("how many tokens today?", "what did I work on this week?", "which sessions discussed X?") or instead of reading, grepping, or jq-ing session transcripts. Not for codebase search, git log queries, or arbitrary databases.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Session
Query Claude Code history from a DuckDB index over the JSONL session files. Report each figure with the named query or SQL that produced it, and any `index-health` alert or Known Blind Spot that bounds it.
Current session ID: `${CLAUDE_SESSION_ID}`
## Arguments
- `--refresh`: run `refresh.ts --refresh` before querying. Default: the incremental refresh.
- `--host <label>`: scope queries through the `host` param. Default: every host, including `local`.
- `--since <date>`: pass as the `after_date` param. Default: the full index.
## Database
The index is `~/.local/share/claude-sessions/session.duckdb` (under `$XDG_DATA_HOME` when set). Use that path directly in every query and agent prompt.
### Refresh
Run `refresh.ts` before querying. It imports changed files, drops rows for deleted ones, and prints the DB path. Within `--max-age` (default 300 seconds) of the last refresh it exits without opening the database. Pass `--refresh` when the user asks for the latest data.
```bash
bun ${CLAUDE_SKILL_DIR}/scripts/refresh.ts
```
### Querying
Open the index with `duckdb -readonly -json -init ${CLAUDE_SKILL_DIR}/resources/limits.sql`:
…Read the whole file at its exact version.
How to install
mdr add bendrucker/claude/observability:session@sha256:2a80adcd9413d6cdThe line at the top of this page pins the label git:20261103.02d6c50, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_b34yrrwlpbgbce35)
5 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 14 versions of this file, between Oct 6, 2026 and Nov 3, 2026, about one every 2 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261103.02d6c50 latest | 2026-11-03 | 02d6c50 | 9,900 B | A | view · diff |
| git:20261030.03f7155 | 2026-10-30 | 03f7155 | 9,884 B | A | view · diff |
| git:20261030.8d6d2d4 | 2026-10-30 | 8d6d2d4 | 13,492 B | A | view · diff |
| git:20261022.258ba8b | 2026-10-22 | 258ba8b | 13,472 B | A | view · diff |
| git:20261020.fdf4cdd | 2026-10-20 | fdf4cdd | 13,197 B | A | view · diff |
| git:20261020.56c0e8f | 2026-10-20 | 56c0e8f | 13,207 B | A | view · diff |
| git:20261019.097cecd | 2026-10-19 | 097cecd | 13,227 B | A | view · diff |
| git:20261019.415152e | 2026-10-19 | 415152e | 12,626 B | A | view · diff |
| git:20261019.74fc4ac | 2026-10-19 | 74fc4ac | 12,501 B | A | view · diff |
| git:20261019.d6a39c6 | 2026-10-19 | d6a39c6 | 12,455 B | A | view · diff |
| git:20261019.12d96a9 | 2026-10-19 | 12d96a9 | 12,542 B | A | view · diff |
| git:20261018.57b9598 | 2026-10-18 | 57b9598 | 12,520 B | A | view · diff |
| git:20261006.0320d93 | 2026-10-06 | 0320d93 | 12,083 B | A | view · diff |
| git:20261006.a882371 | 2026-10-06 | a882371 | 12,070 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (9900 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
bendrucker/claude · 18 stars · license MIT · pushed 2026-11-07 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_b34yrrwlpbgbce35 GET https://markdownregistry.com/api/v1/resolve?ref=bendrucker/claude/observability:session GET https://markdownregistry.com/api/v1/blob/2a80adcd9413d6cd918462f40402fdf26eb67ae3ad0648409c108a138b59cbb2
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.