agent-session-auditorlisted
Install: claude install-skill YosefHayim/dufflebag
# Agent Session Auditor
Turn repeated user requests into evidence-backed skill candidates. The audit is read-only, local-first, privacy-preserving, and honest about coverage.
## Safety
- Get scope from the request: machine, user account, time range, agent families, and whether archived sessions count. Do not broaden to other users, cloud accounts, or network stores.
- Never modify, migrate, compact, or delete a session store. Open databases read-only and copy a database to temporary storage before queries when its client may create journal files.
- Extract user-authored prompts only. Exclude system/developer messages, assistant replies, tool calls/results, injected repo instructions, retries, and generated continuation noise.
- Redact secrets, tokens, credentials, personal/customer data, private URLs, and sensitive absolute paths before examples or intermediate artifacts leave their source.
- Keep clustering local by default. Obtain explicit approval before sending transcript-derived text to a hosted embedding or model service.
## Workflow
1. Prefer the **one-command pipeline** when this skill is installed with scripts:
```bash
python3 scripts/runSessionAudit.py
# or with explicit paths:
python3 scripts/runSessionAudit.py --home "$HOME" --out "./docs/session-audit-$(date +%F)"
```
Resolve `scripts/runSessionAudit.py` from this skill’s install directory (global or project). The script discovers Codex + Grok stores under `$HOME`, writes coverage, prompt