debrief

debrief is a skill for Claude Code from xobotyi/cc-foundry. It costs 43 tokens per session (3,903 once invoked), scanned B, original, MIT.

A workflow that finds corrections in coding-agent session records and proposes durable lessons for instruction files or permission rules. It requires user approval before writing those lessons.

In plain words
What is it for?
Use it to review one or more sessions or repositories, collect recurring corrections, and update the agent instructions or permission rules that should contain them.
Why use it?
It prevents useful corrections from being lost when a session ends. It also keeps temporary task details separate from guidance that should affect future sessions.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Part of the the-workflow plugin — 3 skills shipped together

Good fit Use it to review one or more sessions or repositories, collect recurring corrections, and update the agent instructions or permission rules that should contain them.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xobotyi/cc-foundry/debrief
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 xobotyi/cc-foundry --skill debrief
Clone the repo
git clone --depth 1 https://github.com/xobotyi/cc-foundry

Made for: Claude Code.

Or install the-workflow, the plugin that ships this one along with the rest of its 3 skills.

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 debrief

README.md
[![agentmods](https://agentmods.dev/badge/skills/xobotyi/cc-foundry/debrief/github.svg)](https://agentmods.dev/skills/xobotyi/cc-foundry/debrief)
Your own site
<a href="https://agentmods.dev/skills/xobotyi/cc-foundry/debrief"><img src="https://agentmods.dev/badge/skills/xobotyi/cc-foundry/debrief/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 debrief

Your own site · 80×15
<a href="https://agentmods.dev/skills/xobotyi/cc-foundry/debrief"><img src="https://agentmods.dev/badge/skills/xobotyi/cc-foundry/debrief.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,903 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00043 $0.03903
Opus 5.5 $0.00017 $0.01561
Sonnet 5.5 $0.00009 $0.00781
Haiku 4.5 $0.00004 $0.00390

Measured 1mo ago against content hash 38ff49cb75aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

debrief scanned grade B with 1 finding 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 1mo 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

repository's `.claude/settings.json` for a project lesson, in `~/.claude/settings.json` for a personal one.
plugins/the-workflow/skills/debrief/SKILL.md · 228 lines

How it starts

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

Debrief

This workflow finds corrections in the session transcripts and in auto memory, and writes each durable lesson into the file the agent reads next time. Run phases 1 to 3 without stopping; the only stop is the gate in phase 4.

Phase 1 — Collect

The argument is $ARGUMENTS. An empty argument means this session only: --session ${CLAUDE_SESSION_ID}. Otherwise it names a window, repositories, or both.

The window:

  • a day count such as 14d, or a date — --since <the window>
  • all, or no window — every transcript: no flag

The repositories:

  • none named — the current repository: no flag
  • one or more paths or names — one --project <path> each, in place of the current repository; . names the current one. Resolve a name with --list-projects, which prints the last activity date, the session count, and the path of every repository that has transcripts. Ask the user when a name matches more than one path.
  • everywhere — every repository: --all-projects

Run node ${CLAUDE_SKILL_DIR}/scripts/extract-corrections.mts <flags> --context "${TMPDIR:-/tmp}/debrief-${CLAUDE_SESSION_ID}" > "${TMPDIR:-/tmp}/debrief-${CLAUDE_SESSION_ID}.jsonl". The script reads the transcripts and auto memory under ~/.claude/projects/ and prints a count per signal to stderr. A non-zero exit ends the workflow: report the script's message.

Each line of the output file is one candidate. Every candidate carries signal, text, and at; the signal decides the rest:

  • A correction — rejection (the user refused a tool call), interjection (the user sent a message while a tool call waited for approval, so the harness refused the call), interrupt (the user stopped the agent), rewind (the user discarded the agent's work and re-prompted), mid-turn (the user steered while the agent worked), follow-up (any other prompt). text is the user's words; said is the end of the agent's last text before them, where the question the user answered sits; did is the agent's last tool calls; skills lists the skills loaded in the session; project and session locate it.
  • retraction — the agent withdrew its own earlier claim or work. text starts at the line that withdraws it.
  • compaction-loss — after a compaction, the agent read its own transcript to recover what the summary dropped. text lists the reads, with <transcript> for the file; count says how many.
  • tool-error — an error the agent made and fixed on its own, repeated across sessions. text is the error; count and sessions say how often it recurred; did is the failing call and fix the call that next succeeded with the same tool; projects lists the repositories. A shell dialect error — a zsh glob, a BSD sed, a missing GNU tool — groups under its trap's name, such as Bash: zsh-nomatch, whether the command ran or not.
  • procedure — a run of steps the agent repeated in sessions sessions. text joins the steps with >; skills lists up to three skills loaded in most of those sessions; projects lists the repositories.
  • memory — an entry of the repository's auto memory, present only where auto memory is on. text is its description and body, type its memory type, file its path, project its repository.

Read the full file on GitHub · 228 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. 1mo ago Changed · +74 lines · +3 tokens per session 38ff49cb75aa
  2. 1mo ago Changed df9eb6f3b9eb
  3. 1mo ago First seen · 154 lines · 40 tokens per session scan B 7b108b816750

Subscribe to this mod's changes

debrief is a skill published in the GitHub repository xobotyi/cc-foundry (23 stars, last pushed yesterday), licensed MIT. It adds 43 tokens to every session and 3,903 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-25.

Related

debrief compared with skills from other repositories

debrief next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
debriefxobotyi/cc-foundrySkill23yesterdayMITB43Claude Code
esp32-expertjohnkozaris/jko-claude-pluginsSkill1129d agoMITA137Claude Code
reflectsneg55/agent-starterSkill77todayMITA37Claude Code
remembersneg55/agent-starterSkill77todayMITA38Claude Code
evolving-statusclaude-world/director-mode-liteSkill811mo agoMITA17Claude Code
dreamsneg55/agent-starterSkill77todayMITB27Claude Code
performance-auditgreglas75/zuvoSkill8todayMITA90Claude Code