/maturity-skills:agent-log-scanfrom maturity-skills
Scan Claude Code agent transcripts (session-history JSONL) for antipatterns and turn them into config and routine changes. Use when the user asks to scan agent logs or transcripts, analyze session history, "why do my agents keep failing", "what happened across my sessions", wants retry loops / permission thrash / API dead-ends / usage-limit interruptions found, or wants to learn from agent history to raise autonomy and cut permission prompts.
Ships in maturity-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Mine an agent-transcript corpus for antipatterns with the bundled scanner and read only its aggregate. A corpus is hundreds of megabytes; the lesson it carries fits on a page. The agent never reads raw logs.
scripts/agentlog.py scan <corpus> (Python 3 stdlib, streaming, deterministic) on the corpus: ~/.claude/projects for everything, or one project folder. Read ONLY the aggregate it prints. Never open or cat a .jsonl: one line can be a 5 MB base64 image and one file can be 100 MB+.file:line @offset only. --show-text (snippets <=160 chars) is opt-in, and only when the human asked for text.slice <file> <line> --around K prints K one-line node summaries either side of a finding; bisect <file> reports the top cohesion boundaries of one session with byte offsets, so you jump O(1) into the middle of a huge session and divide and conquer instead of reading forward.Substring detectors drown in conversational mentions: a transcript corpus is full of agents talking about errors, limits, and permissions. Every detector marker must be anchored structurally — to how the harness writes the event into the transcript — not to phrases that also occur in prose:
isMeta user turns whose content string starts with the sentinel; conversational text never fires) it reported 40, all true positives.tool_result with is_error: true whose text starts with a verbatim harness denial sentinel; a denial report is an unquoted active-voice "classifier denied ..." in free text (peer messages, queue-operation records, prose). Documentation about permissions, the cross-session boilerplate that mentions "denied permission" hypothetically, ALLOW decisions, and tool results that merely quote a denial never fire.slice into confirmed events and read their structure: entry type, flags, block type, text position), add each false-positive class to the adversarial fixture, and re-verify the ground-truth counts. A sentinel nobody has observed is a guess, not a detector.Drill into each finding with slice until you can put it in exactly one class:
The point is raising the approval/autonomy range from mass data. End with a concrete change list:
Denial evidence authorizes narrow proposals, never self-service:
file:line is the citation).permissions.allow rules (or hand off to the fewer-permission-prompts routine) and stop; observed sessions show agents retrying config self-edits through different write mechanisms after a denial — up to four attempts — and every such attempt is itself permission-thrash.scripts/agentlog.py ledger <workflows-root-or-project-dir>... aggregates subagent workflow runs (wf_*/ dirs holding journal.jsonl + agent-<id>.jsonl) into a per-run/per-agent table: agents started/completed, tool calls, output tokens, input+cache tokens, context tokens (each agent's final context footprint — the same figure the workflow runner reports as per-agent tokens), wall and per-agent durations, and agent labels. Deterministic, streaming, and privacy-default like the rest of the tool: labels and numbers only, never prompt or message text. --outcomes <json> joins a run-id -> {confirmed, fixed, tests_added, mutants_killed, note} map and adds a tokens-per-finding column; --json is the machine form.
The routine:
Finish with a summary: sessions scanned, antipatterns by class, top error clusters, and the change list, with zero raw log lines having entered context.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub ancplua/maturity-skills --plugin maturity-skills6 skills in this plugin
/emitter-corpusValidate a parser or importer against a corpus of files as real upstream producers actually write them, and land that corpus as permanent CI fixtures. Use when the user asks whether a parser handles other tools' output, wants format-compatibility testing, interop validation, "does it work with X's files", or a regression corpus or interop fixtures for an input format./maintenance-runOrchestrate a full autonomous maintenance run on a repo - parallel finders, root-cause dedupe, adversarial verification, a fixer fleet with disjoint ownership, single-writer integration, and a hard termination rule. Use when the user asks for an autonomous maintenance run, a repo health pass, "find and fix everything", recurring or scheduled repo maintenance, a multi-agent bug-hunting sweep, or asks whether/when a maintenance loop should stop./mutation-testerRun mutation testing and turn surviving mutants into targeted tests, or keep a recorded mutation-score baseline as a regression gate. Use when the user asks for mutation testing, a mutation score, Stryker, "how good are my tests really", test-suite strength auditing, wants test gaps found beyond line coverage, or wants repeated maintenance runs to prove the suite did not weaken./perf-gateMeasure a project's own performance claims (README, docs) against reality and attribute regressions to code. Use when the user asks to verify a performance claim, benchmark a tool, check "does it really handle X MB / X requests", validate streaming or O(n) claims, or establish a perf baseline./regression-reviewAdversarially review only the previous change-set's diff, hunting bugs that change-set itself introduced. Use when the user asks whether the last run/PR/merge broke anything, "did that fix introduce a bug", "review what the previous run changed", wants a post-merge or post-run regression hunt, wants an autonomous run's own output audited, or as the opening step of a follow-up maintenance run.