Retrospects on tasks against local Codex/Claude Code transcripts to identify repeated agent failure modes and propose durable fixes in AGENTS.md or skills.
How this skill is triggered — by the user, by Claude, or both
Slash command
/paulrberg-agent-skills:agents-introspection <task><task>The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Analyze the user's task against prior Codex and Claude Code work in the current directory, then turn repeated agent failure modes into concrete prevention steps.
Analyze the user's task against prior Codex and Claude Code work in the current directory, then turn repeated agent failure modes into concrete prevention steps.
<task> (required): the task, decision, incident, or proposed workflow to evaluate in light of prior agent transcripts. If omitted but the current conversation clearly states a task, use that task.pwd -P.Look only at Codex and Claude Code transcripts for the current project unless the user explicitly names additional project paths. Run the miner per transcript sources; resolve scripts/transcript-miner.py relative to this skill directory and pass --project "$project_path" so the helper scopes itself to the user's cwd. Pass --max-sessions N to keep the evidence set small. Open transcript bodies only after a session plausibly matches the current project or task.
Sample enough history to distinguish a pattern from a one-off:
For each relevant session, extract concise evidence for:
AGENTS.md / skill guidance.just, wrong shell dialect, brittle parsing, missing narrow verification.Target only Codex and Claude Code.
Answer these questions:
Separate evidence-backed findings from speculation. If transcript coverage is thin, say so and lower confidence.
Recommend the smallest durable intervention:
AGENTS.md when the lesson is project-wide, stable, and useful to every agent working here.If the current invocation explicitly asks to apply fixes, make the edits and verify them. Otherwise, report recommendations first and wait for confirmation before changing AGENTS.md, creating skills, or editing existing skills.
Use this structure:
## Historical Scope
- Project path:
- Sources checked:
- Sessions sampled:
## Findings
- [confidence] Failure mode:
Evidence:
Relevance to current task:
Prevention:
## Durable Fixes
- Apply now:
- Consider later:
- Not worth changing:
## Verification
- Commands run:
- Gaps:
Keep the report terse and evidence-led. Mention exact files changed and checks run when fixes are applied.
rg, fd, jq, and structured parsing over ad hoc pipelines.npx claudepluginhub paulrberg/agent-skillsAnalyzes current Claude Code session for agent efficiency (tool precision, autonomy) and quality (CLAUDE.md compliance, code patterns), scoring dimensions and surfacing 2-3 actionable improvements.
Session retrospective that reviews the current conversation to find mistakes, trace root causes, and propose process improvements for Claude Code.
Analyzes Claude Code usage patterns and work history to suggest new agents/skills, prune memory, consolidate lessons into governance files, or extract standalone executables from audit candidates.