Agent skill · Audited from source
Audit Session Metrics
skill · centminmod/my-claude-code-setupMIT licenceAudited 8 Oct 2026 · source 279fe3d84db5
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 279fe3d84db5 and found no filesystem, network or shell access and no hard-coded secrets. What it does: Audit a session-metrics JSON export for token-usage waste and produce a plain-English findings report. Trigger when the user runs /audit-session-metrics, when session-metrics suggests an audit after an HTML export, or…
Cite
Cite this page
ModelsAtlas. “Audit Session Metrics (centminmod/my-claude-code-setup)”. Retrieved 8 Oct 2026. https://modelsatlas.com/skills/centminmod/audit-session-metrics
Trust audit
Audit 0.4.1 · source read 8 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | PASS | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha 279fe3d84db5 · 8 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publishercentminmod GitHub userOwner of the repository this skill is read from
- Source foldercentminmod/my-claude-code-setup/.claude/skills/audit-session-metricsThe exact folder we audited
- LicenceMITAs the repository states it
- Commit pinned for this verdict279fe3d84db5A new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Audit a session-metrics JSON export for token-usage waste and produce a plain-English findings report. Trigger when the user runs /audit-session-metrics, when session-metrics suggests an audit after an HTML export, or…
---
name: audit-session-metrics
effort: low
description: >
Audit a session-metrics JSON export for token-usage waste and produce a
plain-English findings report. Trigger when the user runs
/audit-session-metrics, when session-metrics suggests an audit after an
HTML export, or when the user asks to audit / review / find waste in a
saved session-metrics JSON. Two modes: "quick" (ratios + cache health +
top expensive turns/sessions) and "detailed" (adds CLAUDE.md / settings /
re-read scan). Supports session, project, and instance JSON scopes.
Args: $ARGUMENTS[0] = quick|detailed,
$ARGUMENTS[1] = path to a session-metrics JSON export.
---
# Audit Session-Metrics
Reads a session-metrics JSON export and produces a prioritised, plain-English
audit of token-usage waste. It runs on the session's current model (it no
longer pins one — a hard model pin capped the usable context at that model's
window and broke invocation on long sessions). The work is mostly
summarisation over a small disk-read export, so for a much cheaper run
`/model haiku` before invoking. On the Anthropic API `haiku` is Haiku 5.5
(1M window, so long sessions fit; prompts over 100K tokens bill at its higher
rate). On Bedrock, Google Cloud, Microsoft Foundry, and Claude Platform on AWS
it is still Haiku 4.5 with a 200k window — short/early sessions only there.
Supports three JSON scopes auto-detected from `digest.scope`:
- **session** — single session (`session_*.json`) — per-turn analysis
- **project** — all sessions for one project (`project_*.json`) — per-session analysis
- **instance** — all projects (`instance/*/index.json`) — per-project analysis
## Dispatch — how to route this invocation
**First positional argument received:** `$ARGUMENTS[0]`
**Second positional argument received:** `$ARGUMENTS[1]`
Read `$ARGUMENTS[0]` and match by **literal equality**:
| `$ARGUMENTS[0]` | Route | Then read (session scope) | Then read (project/instance scope) |
|-----------------|--------------------------|---------------------------|------------------------------------|
| `quick` | Quick audit | [`references/quick-audit.md`](references/quick-audit.md) | see Scope routing below |
| `detailed` | Detailed audit | [`references/detailed-audit.md`](references/detailed-audit.md) | see Scope routing below |
| *(empty / other)* | Print usage and stop | this file's "Usage" block below | — |
`$ARGUMENTS[1]` must be the path to a JSON export written by session-metrics.
Accepted patterns:
- `exports/session-metrics/session_<id8>_<ts>.json` — session scope
- `exports/session-metrics/project_<ts>.json` — project scope
- `exports/session-metrics/instance/<datedir>/index.json` — instance scope
If `$ARGUMENTS[1]` is missing, empty, or the file does not exist, print:
> Usage: /audit-session-metrics {quick|detailed} <path-to-session-metrics.json>
>
> Accepted JSON types:
> session: exports/session-metrics/session_*.json
> project: exports/session-metrics/project_*.json
> instance: exports/session-metrics/instance/*/index.json
...and stop without further work.
## Steps
1. Run the extract helper once with the input path:
```
python3 scripts/audit-extract.py $ARGUMENTS[1] --mode $ARGUMENTS[0]
```
The helper emits a single JSON digest to stdout. Read `digest.scope`
from the output — it will be `"session"`, `"project"`, or `"instance"`.
**Do not** read the raw `.jsonl`, and **do not** re-derive numbers the
digest already carries.
2. **Scope routing — read the matching reference file:**
| `digest.scope` | `$ARGUMENTS[0]` | Reference file |
|----------------|-----------------|----------------|
| `session` | `quick` | [`references/quick-audit.md`](references/quick-audit.md) |
| `session` | `detailed` | [`references/detailed-audit.md`](references/detailed-audit.md) |
| `project` | `quick` | [`references/project-quick-audit.md`](references/project-quick-audit.md) |
| `project` | `detailed` | [`references/project-detailed-audit.md`](references/project-detailed-audit.md) |
| `instance` | `quick` or `detailed` | [`references/instance-quick-audit.md`](references/instance-quick-audit.md) |
Follow the playbook step-by-step. Do not improvise additional phases.
3. For `detailed` mode **on session scope only**, the playbook also asks
you to read the user's config files (`~/.claude/CLAUDE.md`,
`./CLAUDE.md`, `~/.claude/settings.json`, `./.claude/settings.json`,
`./.claudeignore`). Each is capped at ≤500 lines — if a file is
bigger, that itself is a finding.
4. **Output contract — three artefacts.** All playbooks specify the
same three-artefact contract:
- **JSON sidecar** at `<project>/exports/session-metrics/audit_<id8>_<ts>_<mode>.json` — structured findings (versioned schema, enum'd metrics).
- **Markdown copy** at `<project>/exports/session-metrics/audit_<id8>_<ts>_<mode>.md` — same content rendered for humans.
- **Inline chat output** — the markdown content printed in your reply.
`<id8>` and `<ts>` come from `digest.session_id_short` and
`digest.ts_str` (the helper parses the input filename and
normalises all three filename patterns).
5. **Write order.** Populate the JSON object first using the digest
values, write the JSON sidecar, render the markdown using the
template in the playbook, write the markdown copy, then print the
markdown inline (without the H1 heading — the chat client already
shows context above the audit). Finish with two stderr-style lines
on their own:
`[audit] saved → <json-path>`
`[audit] saved → <md-path>`
**IMPORTANT:** Use the **Write tool** directly for steps 3 and 5.
Do NOT generate a Python script (e.g. writing to `/tmp/audit_synthesis.py`
and executing it) — this adds unnecessary failure modes (syntax errors,
f-string escaping) and is never required. Build the JSON in the AI's own
Excerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 279fe3d
git clone https://github.com/centminmod/my-claude-code-setup git -C my-claude-code-setup checkout 279fe3d84db5
The author documents no install command, so this uses the repository directly. Our verdict covers commit 279fe3d84db5 only.
Works in which agents?
What its own text says, not a test
| Agent | Status | More |
|---|---|---|
| Claude Code | Mentioned in its text, not tested | Skills for Claude Code · About Claude Code |
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
279fe3d84db5
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/centminmod/audit-session-metrics/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
centminmod/my-claude-code-setup
Generate, edit-from-reference, or analyze images with AI via OpenRouter (Gemini, GPT Image, Seedream, Qwen, MAI, Grok, FLUX.2, Recraft, Muse, Riverflow; Cloudflare AI Gateway BYOK). Also analyze a video…
centminmod/my-claude-code-setup
Consult official Claude Code documentation from code.claude.com using selective fetching. Use when working on hooks, skills, subagents, plugins, agent teams, MCP servers, permissions, settings, CI/CD (GitHub Actions,…
centminmod/my-claude-code-setup
Dual-AI code analysis pairing OpenAI Codex with Claude code-searcher — the lightest consult variant, two citation-verified perspectives. Use for a quick second opinion on a code question.
centminmod/my-claude-code-setup
Tally Claude Code session token usage and cost estimates from the raw JSONL conversation log. Trigger when the user asks about session cost, token usage, API spend, cache hit rate, input/output tokens, or wants a…
fcakyon/claude-codex-settings
Battle-tested Claude Code, OpenAI Codex, Cursor configs, plugins, hooks and agents with Kimi, MiniMax and GLM API support.
fcakyon/claude-codex-settings
Battle-tested Claude Code, OpenAI Codex, Cursor configs, plugins, hooks and agents with Kimi, MiniMax and GLM API support.
Add this badge to your README
[](https://modelsatlas.com/skills/centminmod/audit-session-metrics/)
<a href="https://modelsatlas.com/skills/centminmod/audit-session-metrics/"><img src="https://modelsatlas.com/skills/centminmod/audit-session-metrics/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Audit Session Metrics
What does the Audit Session Metrics skill do?
Is Audit Session Metrics safe to install?
What can Audit Session Metrics access on my machine?
Which assistants does Audit Session Metrics work with?
How current is this page?
Sources
- github.com/centminmod/my-claude-code-setup/tree/master/.claude/s — the audited source at commit 279fe3d84db5 and every finding aboveObserved · 8 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Audit Session Metrics skill do?
- Is Audit Session Metrics safe to install?
- What can Audit Session Metrics access on my machine?