/carl-tools:agent-log-forensicsfrom carl-tools
Analyzes Claude/Codex session logs to surface behavior patterns, repeated friction, and Toolsmith adoption gaps. Helps turn observed agent habits into workflow improvements.
Ships in carl-tools. 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.
Use this when the goal is not one bug fix, but making the human+agent system smarter after observing real sessions.
Third-order stance: skip the obvious "agent forgot tool" answer. Ask what hidden loop, missing affordance, brittle instruction, or human workaround made the tool forgettable in the first place. Prefer new mental paths over more reminders.
Default to the last 7 days unless the user names a different range. Include remote hosts only when the user names them (an SSH alias they use).
Prefer Toolsmith's built-in scanner when it is installed (optional; skip if absent):
toolsmith scan-agent-logs --days 7 --max-examples 12
toolsmith opportunities --days 7 --max-examples 8
toolsmith scan-agent-logs --days 7 --remote <ssh-host> --max-examples 12
If the scanner is not installed yet, say that and fall back to a lightweight count of recent ~/.claude/projects/**/*.jsonl and ~/.codex/sessions/**/*.jsonl files rather than dumping raw prompts.
Create five sections:
For Toolsmith, classify:
Read/Edit/Write, cat, nl, or broad sed -n on >200-line files.apply_patch on a large file after a search/read could have used anchors, but may still be acceptable.file_skeleton, find_and_anchor, get_function, anchored_read, anchored_edit, symbol_replace.For each repeated pattern, propose one of:
Use this table:
| Signal | Better artifact |
|---|---|
| Same review checklist repeated | Skill |
| Same shell command chain repeated | Script |
| Same repo-specific gotcha repeated | CLAUDE.md / AGENTS.md update |
| Agents know the right thing but forget | Prompt snippet / guardrail |
| Agents cannot inspect evidence cheaply | Toolsmith/MCP feature |
| User manually intervenes after agent loops | Skill or deterministic helper that removes the human bridge |
| Expected telemetry is silent | Logging/instrumentation fix before drawing conclusions |
| Same failure appears across projects | User-level skill plus project opt-out, not per-repo copy-paste |
After listing findings, do one further pass:
Name the proposed path in memorable language, for example "shadow workflow collector", "silence detector", "release exit-door drill", or "jank weather report".
Store reports in:
${TMPDIR:-/tmp}/agent-log-forensics/Include:
Use scripts/collect_toolsmith_scan.py (relative to this skill directory, via uv run) to run local and remote Toolsmith scans and write a combined Markdown report. Pass --notes-dir <dir> to choose the output location (the script default is ~/dev/agent-notes/; pass the user's notes dir or a temp dir instead).
remote-host-verifier when comparing a command across local and remote hosts.skill-creator when turning findings into new skills.status-copy-trust-audit when confusing CLI output appears repeatedly in logs.second-opinions policy).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
log-analysis, agent-behavior, workflow-optimization, toolsmith
Generated from the plugin's indexed repository (carlkibler/agent-skills) — no native marketplace selected
npx claudepluginhub p/carlkibler-carl-skillsOther plugins' skills for the same job
26 skills in this plugin
/changelog-writerDraft plain-language changelog entries from Git history, optionally updating CHANGELOG.md./chezmoi-driftCheck chezmoi dotfiles for drift, unmanaged files, and broken skill links./contacts-unifyMerge and dedupe macOS, iCloud, Google, Zoho, or VCF contacts with reviewable provenance./decision-logRecord a technical or product decision, alternatives, and rationale for future agents./dependency-pinningAudit Docker, CI, and language dependencies for SHA/digest pinning and cooldowns./django-smoke-alarmRun and triage Django/DRF security smoke checks before shipping or after scanner findings.