retrospective-audit

retrospective-audit is a skill for Claude Code from The01Geek/prflow. It costs 91 tokens per session (4,427 once invoked), scanned A, original, MIT.

A review step that studies repeated problems found in past pull requests and turns one recurring pattern into a GitHub issue specification.

In plain words
What is it for?
Use it to analyze selected pull-request context bundles, rank related sub-patterns, and prepare an issue for later implementation. It does not edit code or create a pull request.
Why use it?
It helps identify the underlying cause of repeated failures instead of treating each occurrence as an isolated problem.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions CLAUDE.md; mentions subagents.

Part of the prflow plugin — 20 skills, 21 agents shipped together

Good fit Use it to analyze selected pull-request context bundles, rank related sub-patterns, and prepare an issue for later implementation. It does not edit code or create a pull request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/the01geek/prflow/retrospective-audit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add The01Geek/prflow --skill retrospective-audit
Clone the repo
git clone --depth 1 https://github.com/The01Geek/prflow

Made for: Claude Code.

Or install prflow, the plugin that ships this one along with the rest of its 20 skills, 21 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for retrospective-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/the01geek/prflow/retrospective-audit/github.svg)](https://agentmods.dev/skills/the01geek/prflow/retrospective-audit)
Your own site
<a href="https://agentmods.dev/skills/the01geek/prflow/retrospective-audit"><img src="https://agentmods.dev/badge/skills/the01geek/prflow/retrospective-audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for retrospective-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/the01geek/prflow/retrospective-audit"><img src="https://agentmods.dev/badge/skills/the01geek/prflow/retrospective-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,427 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 46
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00091 $0.04427
Opus 5.5 $0.00036 $0.01771
Sonnet 5.5 $0.00018 $0.00885
Haiku 4.5 $0.00009 $0.00443

Measured 24d ago against content hash 23b3d6677890, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

retrospective-audit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 24d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/retrospective-audit/SKILL.md · 167 lines

How it starts

The opening of the file, as written. The whole thing — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.

retrospective-audit — Stage B Issue-Spec Brief

You are the optimizer side of the devflow self-improving loop, invoked as a subagent for ONE recurring failure pattern. Turn the pattern into a single, well-formed GitHub issue spec that the orchestrator files; a human triages it and it is executed through the normal /prflow:implement → review pipeline — so you make no working-tree edits, create no worktree, and open no PR.

You are given:

  1. An array of context-bundle paths — a most-recent-first subset of the pattern's occurrence PRs, bounded by audit_bundle_cap (the same schema the context bundle carries; each bundle includes pr, issue, pr_comments, pr_reviews, review_comments, workpad_body, human_postbot_diff, commits, signals, and the full diff). The dispatch prompt states how many bundles you received (delivered) versus how many occurrences the pattern has (total); the pattern metadata's occurrences[] (item 2) is the authoritative full list.
  2. The pattern metadata: {tag, slug, category, occurrence_count, status, first_seen, last_seen, occurrences: [{pr, ts, verdict, summary, descriptors, suggested_interventions}], descriptors: [<string>, ...]} — where tag/slug is the coarse category (incomplete-edit, doc-accuracy, …), the category-level descriptors is the union of the occurrences' free-text descriptions of what actually went wrong, and each element of occurrences[] carries that occurrence's own summary (a string or null), descriptors (an array), and suggested_interventions (an array) as recorded on its corpus entry — so you can cluster sub-patterns from per-occurrence attribution without reopening every context bundle (see § 1). The pattern object is handed to you by path on disk, not inlined into your prompt.
  3. Read the candidate-surfaces catalog at [[PLUGIN_ROOT]]/lib/intervention-surfaces.md with your file-read tool for the surfaces to propose against.

Your only stdout output is exactly one JSON object carrying a findings array of one to three sub-pattern findings (see § 5). Make no edits, run no git commands, do not commit, push, open PRs, or file issues — the orchestrator files one issue per finding from the JSON you return.

Hard rules:

  • One pattern per invocation. One proposed change per finding (up to three findings, see § 5). No bundled fixes.
  • You propose; you do not implement. Never edit the working tree.
  • Build the JSON with [[PLUGIN_ROOT]]/scripts/run-jq.sh -n (§ 6) — never hand-write or heredoc JSON.

Configuration (handed to you by value — resolve nothing). Your dispatch prompt supplies one absolute value: the bundled-helper root, used wherever this brief writes [[PLUGIN_ROOT]]; use it verbatim. Do not invoke a helper to derive it — as a subagent no anchor of yours resolves. If your dispatch prompt carries no bundled-helper root, use jq on PATH for the § 6 construction and read the bundled documents relative to the repository root. Report neither substitution on stdout — the stdout contract admits only the single JSON object defined in § 5.

Scope of the anchor rule in this brief. The paragraph that follows is the shared copy every PRFlow skill carries; in this file it governs nothing, because this brief is a dispatched subagent that invokes no bundled helper through the anchor.

Portable helper anchor (single-statement). The bundled-helper commands in this skill spell the skill directory as ${CLAUDE_SKILL_DIR:-<absolute skill base directory this runner reports in context>}. That is source notation: substitute the resolved absolute directory for the whole expansion at each call site before emitting — a runner isolating its shell refuses a command whose name an expansion computes. Take $CLAUDE_SKILL_DIR's value when the runner reports one, else locate the directory yourself — this text lives in a file inside it, whose sibling ../../scripts/ directory exists — from the skill base directory the runner reports in context (e.g. a Base directory for this skill: line), accepting a candidate only once ls <candidate>/../../scripts/ succeeds in the same shell the helper commands run in. If a path form is rejected, use the form that shell reports (pwd shows it); a Windows-form base directory (C:\...) may first be converted with one standalone wslpath -u '<path>' then cygpath -u '<path>' command in order — no platform branch — using the output only when the command succeeded and printed a non-empty path, else falling through to the filesystem check. Substitute inline at every call site — never capture it into a shell variable that a later statement reads, because some runners' inline-bash marshaling drops such variables. If no candidate validates — neither $CLAUDE_SKILL_DIR nor a runner-reported base directory whose ../../scripts/ exists — stop and report that the helper anchor could not be resolved rather than running a command with a broken path.

Read the full file on GitHub · 167 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 24d ago Changed · -4 lines 23b3d6677890
  2. 1mo ago Changed 312dd8634ef6
  3. 1mo ago Changed a1bb2f0fa635
  4. 1mo ago Changed · +2 lines e773749fe3d6
  5. 2mo ago Changed f3aa37b257d6
  6. 2mo ago First seen · 169 lines · 91 tokens per session scan A 654ede498c24

Subscribe to this mod's changes

retrospective-audit is a skill published in the GitHub repository The01Geek/prflow (100 stars, last pushed yesterday), licensed MIT. It adds 91 tokens to every session and 4,427 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

retrospective-audit compared with skills from other repositories

retrospective-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
retrospective-auditThe01Geek/prflowSkill100yesterdayMITA91Claude Code
checktw93/WazaSkill7.5ktodayMITA41Claude Code
flow-next-worktree-kitgmickel/flow-nextSkill7212d agoMITA43Claude Code, Codex
prumputun/cc-thingzSkill4946d agoMITA51Claude Code
plugin-code-review-orchestratedexplyt/spring-pluginSkill1672d agoApache-2.0A72Claude Code, Codex
agent-debug-ciNVIDIA/elementsSkill116todayApache-2.0A80Claude Code, Codex
github-bugs-triageexplyt/spring-pluginSkill1672d agoApache-2.0A84Claude Code, Codex