Retro

From NazmusSayad/.dotfiles · View interactive version

Retro is an AI agent skill from the GitHub repository NazmusSayad/.dotfiles. Audits the user's history and reports issues.

How to use this skill

Skill file

Purpose

The audit is a report that helps the user understand what keeps going wrong between them and their agents. It is not a fix. Do not edit instructions, skills, settings, hooks, or project files, and do not offer to apply changes; the only files you write are the report's. A finding may say what would help, but its job is to explain the problem and its cause clearly enough that the user can decide what to do.

The most important findings are repeated ones: mistakes the agent made again and again, and problems the user's prompting caused again and again. One-off incidents matter only when they were costly.

Scope

Analyze the user's history in ~/.claude. If the user names a date range or project, analyze only that; otherwise analyze all of it. The analysis is complete when every session in scope has been analyzed and returned findings with evidence, not summaries of what each session was about.

What to look for

The user's corrections are the strongest evidence of a problem: interruptions, rejected tool calls, repeated requests, "no", "I said", reverted work, and frustration. For each one, read what happened before it and decide the cause:

This attribution is the core of the audit. Do not blame the user for an agent failure or excuse the agent for ignoring a clear instruction.

Behavior problems are about how the agent works with the user rather than whether a result was correct: doing more or less than asked, acting when the user was discussing, going deep on side investigations instead of delivering what was asked, asking questions it could answer itself or deciding things that were the user's to decide, continuing after an interruption without adjusting, looping or giving up, agreeing instead of pushing back, and claiming completion without verifying. Keep these apart from agent mistakes, which are wrong results such as broken code, wrong files, or incorrect facts.

Some problems never produce a correction, so also look for:

Tooling problems also deserve their own attention:

Communication problems are failures even when the agent's actions were right: replies the user could not follow, answers that missed the question, conclusions buried in detail, jargon, or excessive length. Signals include "what?", the user rephrasing the same question, and the user acting on a misunderstanding of the reply.

Skill loading problems show up in which skills loaded and when:

Typos and casual wording matter only when they caused a misunderstanding.

Cite each finding with the session file, timestamp, and a short quote. Count how often it recurs and across how many sessions and projects. A pattern seen once is an anecdote, and the report should say so. Never quote secrets, credentials, or tokens from transcripts.

Compare with existing instructions

Read the user's global and project instructions, settings, and skills. For each recurring problem, note whether an instruction already covers it. A covered problem that keeps happening says something different from an uncovered one. Also note instructions that are never relevant, that would not change the agent's default behavior, or that led to behavior the user corrected.

Report

Write the report as three files in ~/.claude/audits/<YYYY-MM-DD>/. Each problem goes in exactly one of them:

Group findings by the behavior or cause behind them, not by symptom, so one behavior is one finding with its incidents as evidence. When a finding says what would help, say it at that level, not as a patch for one incident. Order findings in every section by how much they cost the user, weighing frequency and impact.

overview.md

Start with the coverage: the sessions, prompts, projects, machines, and date range analyzed, plus anything skipped. Then:

  1. Repeated agent mistakes: wrong results the agent keeps producing, how often, where, and whether an existing instruction should have prevented them.
  2. Behavior issues: how the agent keeps working against the user's intent, how often, where, and whether an existing instruction should have prevented it.
  3. Repeated prompting problems: what in the user's prompts keeps causing misunderstandings or rework, how often, with examples of the prompt and what it led to.
  4. Communication issues: the kinds of replies that confused the user or missed the point, with examples.
  5. Tooling issues: failing tools, tool misuse, and tool economy that are not tied to one project, with how often each occurred and what it cost.
  6. Environment gaps: navigation, missing checks, information access, and repeated workflows that are not tied to one project.

projects.md

One section per project or machine that has problems of its own: navigation, missing checks, information access, its own tooling problems, repeated workflows, its instruction files that are weak, conflicting, unused, or counterproductive, and its costliest sessions in back-and-forth, retries, and compactions, with what went wrong in each.

skills.md

One section for each skill with problems, then one for the global instructions. Each section stands on its own: how often it loaded in the sessions where it applied, missed and wrong loads, rules that were broken or led to behavior the user corrected, rules that conflict, principles the user keeps restating that it should state, and what would make it work better. Then list the skills with no problems and the skills never used, so every skill the user has appears.

If earlier audits exist in ~/.claude/audits/, end each file with Change since the last audit: for each problem in the most recent earlier audit that belongs in this file and whose scope overlaps this one, say whether it is resolved, still happening, or worse, and mark which problems in this file are new.

In the chat, summarize the few most important repeated problems and link the three files.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.