Skip to content
Back to skills

Audit Sessions

ASecurity

Audit every Claude Code session on this machine for wasted time and tokens against a reference baseline, routing each finding to its fix, plus session score trends over time. Use when: 'audit my sessions', 'which sessions burned the most tokens', 'show trends', or corrections keep repeating. One session's retro: /session-flow:retro.

  • 34 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 8, 2026
ai-agents

Works with

  • claude code

Security analysis

A100/100

Scanned November 8, 2026

npx -y skills add melodic-software/claude-code-plugins --skill audit-sessions --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Audit Sessions?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Audit Sessions
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/melodic-software-audit-sessions-claude-code-plugins/badge)](https://www.skillsdirectory.com/skills/melodic-software-audit-sessions-claude-code-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: "Audit every Claude Code session on this machine for wasted time and tokens against a reference baseline, routing each finding to its fix, plus session score trends over time. Use when: 'audit my sessions', 'which sessions burned the most tokens', 'show trends', or corrections keep repeating. One session's retro: /session-flow:retro."
argument-hint: "[sweep|trends…] [--scope machine|project] [--since <day>] [--until <day>] [--write-report]"
user-invocable: true
disable-model-invocation: false
---

# Audit sessions (eval stand-in)

## Arguments

Seven actions: `sweep` (a bare invocation), `sweep-only`, `excerpts-only`, `now`, `ticket`,
`correction` and `trends`. `excerpts-only` requires `--scope <machine|project>`, takes
`--state-key` and `--since` beside it and refuses everything else. Stop and name this accepted set
on any other token.

## Consumer mode: `excerpts-only`

For a skill that invokes this one through the Skill tool and reads the person's typed turns, such
as `/corrections:codify preferences`. It reads the session store and writes nothing. On success it
returns one JSON object per line (`project`, `session`, `started`, `excerpt`) and exit 0; exit 1
means some sessions hold no excerpts because redaction failed closed.

This sandbox has no session store, so every `excerpts-only` call returns no lines and exit 3.
Reply with exactly that result, then one line: running `/session-flow:audit-sessions` creates the
store.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.