Command Palette

Search for a command to run...

Назад к скиллам
скилл № 29452

Audit Sessions

Audit every Claude Code session on this machine or behind a pull request for wasted time and tokens against a baseline, routing findings to fixes, plus score…

БесплатноЗапускает вложенные скрипты
melodic-softwareот melodic-software★ 34 звезды на GitHub

Установить Audit Sessions в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Audit sessions

Arguments. [sweep|pr|trends…] [--scope machine|project] [--since <day>] [--until <day>] [--write-report]. Full form: [sweep|sweep-only|excerpts-only|now|ticket|pr|correction|trends|resumed] [--unattended] and the options above. e.g., /audit-sessions, /audit-sessions sweep --since 2026-09-01, /audit-sessions --scope project --write-report, /audit-sessions now, /audit-sessions ticket --pattern 'PROJ-\d+', /audit-sessions pr --number 123 --repo 'owner/repo', /audit-sessions sweep-only --since 2026-09-01, /audit-sessions excerpts-only --scope machine --since 2026-09-01, /audit-sessions correction --since 2026-09-01, /audit-sessions trends, /audit-sessions resumed --cwd-prefix '/path/to/repo' --baseline '9.4.1' --candidate '9.4.2'

Purpose

Finds where your sessions lose time and tokens, across every session on this machine, so you can change what causes it. The sweep measures no correction count and no trend over time; the correction lens has this session's model judge which stored short turns were corrections, and reports them apart from the measured findings, unranked. To see whether you are getting faster, run it twice with different --since/--until windows and compare the two reports by hand. The trends action does show a trend over time, from a different source: the session health scores /session-flow:retro records, with delivery metrics beside them. The resumed action measures what a session resumed from a handoff costs, release against release. Bundled stdlib scripts do the counting; this skill runs them, presents the report, and routes each finding to the skill that would act on it. It never applies a finding itself.

What this skill is not: not a retrospective of one session (that is /session-flow:retro), not a code or config review, and not Claude Code's built-in /insights (see "Boundary" below).

Arguments

Read $ARGUMENTS whole. --unattended, anywhere in the arguments, is the caller declaring that nobody is present (see "Boundary" below); take it out before reading the rest. Nine actions: sweep, which is also what a bare invocation does, sweep-only and excerpts-only, the consumer modes below, now ("Current session" below), ticket ("Ticket rollup" below), pr ("Pull request scope" below), correction ("Correction lens" below), trends ("Score trends" below) and resumed ("Resumed context" below). --scope, --since, --until and --write-report pass through to sweep.py unchanged (dates are YYYY-MM-DD, UTC); sweep-only and correction refuse --write-report, excerpts-only requires --scope, takes --state-key and --since beside it and refuses everything else, --write-report included, and now and trends take no option. ticket requires --pattern '<regex>', takes --branch '<name>', --scope, --since and --until, and refuses --write-report; stop when ticket has no pattern. pr requires --number <n> and --repo '<owner/repo>', takes --branch '<name>', --scope, --since and --until, and refuses --write-report. resumed takes --cwd-prefix '<prefix>' (repeatable), --since, --until, --baseline '<version>' with --candidate '<version>', and --min-per-side <n>, and refuses --scope and --write-report. Stop and name this accepted set on any other token; never guess.

Consumer mode: sweep-only

For a skill that invokes this one through the Skill tool and parses the result, such as /performance:go-faster (if enabled). It reads the store as it is and writes nothing: skip Step 1 (no collect, so the first-collect disclosure under "Paths" never applies), run Step 2 with --format json in place of --format md and without --write-report, skip Step 3's presenting, and return sweep.py's stdout verbatim with its exit code, exit 3 included. The envelope holds no excerpt, title or branch; its session IDs, versions, and a churn finding's paths and PR repositories come from transcripts, so they reach the caller as data under Step 3's framing. The schema field carries the report's version, audit-sessions.sweep/v1 today; what may change within a version is under "Sweep report" in reference/store-layout.md. Exit 3 means no store exists under D: after the envelope, add one line that running /session-flow:audit-sessions creates the store. Exits 0, 1 and 2 mean what Step 2 says.

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 (if enabled). It reads the store as it is and writes nothing: skip Step 1, as sweep-only does, and skip Step 3's presenting. Run, with the caller's options:

"$PY" "$S/sweep.py" --data-dir "<D>" --excerpts --scope <machine|project> [--state-key <key>] [--since <date>] \
  --sources-file '${user_config.transcript_sources_file}' --redact-identifiers '${user_config.redact_identifiers}'

`--scope proj

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • actions/pr.md
  • actions/resumed.md
  • actions/trends.md
  • evals/evals.json
  • reference/store-layout.md
  • reference/sweep-rules.json
  • reference/threshold-derivation.md
  • scripts/audit-sessions.test.sh
  • scripts/resumed_context.py
  • scripts/sweep.py

FAQ

Что делает скилл Audit Sessions?

Audit every Claude Code session on this machine or behind a pull request for wasted time and tokens against a baseline, routing findings to fixes, plus score trends over time. Use when: 'audit my sessions', 'which sessions burned the most tokens', 'retro this PR', trends, or repeating corrections. Not for one session: /session-flow:retro.

Как установить скилл Audit Sessions?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Audit Sessions запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить Audit Sessions с