agentleFS
ariadossariadoss/superskills/skills/debrief/SKILL.md

debrief

Skill13 starsChanged 9 days agoMITView on GitHub

Take the current session apart: what went right, what went wrong, and where each lesson should live (a skill edit, a new skill, a project rule, a memory note, a script, or a hook). Checks whether an existing skill already covers the lesson before proposing anything new. Use at the end of a session, or when asked to "debrief", "what did we learn", or "codify this". Proposes only. Not for saving a finished procedure as a skill (/skillify), not for resuming work in a new session (/handoff), and not for pruning the skill list (/prune-skills).

36 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use brief, review-pr and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AnthropicSkill

    brief

    Generate contextual briefings for legal work — daily summary, topic research, or incident response. Use when starting your day and need a scan of legal-relevant items across email, calendar, and contracts, when researching a specific legal question across internal sources, or when a developing situation (data breach, litigation threat, regulatory inquiry) needs rapid context.

    Also in 3 projects that use this

  • DockerSkill

    review-pr

    Review one or more incoming Docker documentation pull requests as a maintainer. Independently validate technical claims, assess editorial fit and information architecture, choose a verdict, and draft exact inline or PR-wide feedback behind a confirmation gate. Use for requests such as "review PR 123", "is this PR correct?", "does this information belong here?", "validate this PR", or "help review backlog PRs". Do not use to maintain or fix a PR you own; use maintain-pr for that.

    Also in 3 projects that use this

  • AWSSkill

    ship

    Finalize dev work on an issue branch — update docs, push, and open a PR.

    Also in 3 projects that use this

  • VercelSkill

    setup

    Set up Vercel CLI and project configuration. Use when the user says "set up Vercel", "configure Vercel", "link to Vercel", or "vercel init".

    Also in 3 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 33 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Check visibility without printing remote URLs, which can embed credentials: run gh repo view --json visibility -q .visibility 2>/dev/null.

    line 28
  2. Very specific:

    Before the Bash call, write the lesson (one sentence) to a scratch file with the file-writing tool, not the shell, and put its absolute …

    line 100
  3. Very specific:

    If it prints CENSUS=missing, say the lookup tool could not be found and continue with the manual read below.

    line 106
  4. Very specific:

    After a yes, make the edit, then tell the user what gates apply: a change to a skill's description or body is a behaviour change, so run …

    line 133
  5. Distinctive:

    Do not invent lessons to fill the list.

    line 139
  6. Distinctive:

    Do not paste private details into a skill that other people install.

    line 140

“Common” is measured: kept by at least 6 in 10 of the 33 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Debrief

A session produces lessons. Most are trivia, a few deserve a permanent home. This skill separates them and says where each one goes. It proposes; you decide.

Announce at start: "I'm using the debrief skill to review this session."

Step 1: Classify the repo

Check visibility without printing remote URLs, which can embed credentials: run gh repo view --json visibility -q .visibility 2>/dev/null. If that fails, run git remote get-url origin | sed -E 's#//[^@/]*@#//#' to see the host and repo with any credentials removed, and judge from that. If visibility still cannot be determined, say "unknown, treat as public". For a public repo, nothing goes into a tracked file that is session-specific (ticket numbers, dates, outages, client names, plans, research, private paths) or that describes the project's own internals (how its code works, its private rules). Those lessons go to untracked local notes or private memory only. Only lessons true in any project may be proposed for a tracked file. Say which case applies before proposing anything.

Step 2: List what went right and wrong

Work from this session's own history. List at most five of each, one line each: a decision that paid off, a mistake that cost time, a correction the user gave, a step that was repeated by hand. Skip anything that only mattered to this one task. Never quote session or transcript text into a proposal: it can hold secrets, tokens or client names. Describe the lesson in your own words.

Step 3: Keep only lessons worth keeping

A lesson stays if it will recur and is not obvious from the code or docs. One-offs and facts the repo already records are dropped, and you say that you dropped them.

Step 4: Check existing coverage

For each lesson that stays, ask whether a skill already covers it. The overlap tool (skill_overlap.py query) lives in the superskills repo, not the working directory. Find the repo the way /superskills-doctor does and run the lookup in a single Bash call, since separate calls do not share shell variables.

LESSON_FILE=/absolute/path/lesson.txt   # written with the file tool beforehand
NAME=debrief
WANT=scripts/skill-census/skill_overlap.py
SKILL_DIR="${SKILL_DIR:-}"   # set to this skill's base directory when the host provides it
case "$SKILL_DIR" in /*) : ;; *) SKILL_DIR="" ;; esac   # only an absolute path is trusted, never resolved against the cwd
ROOT=""
for cand in "${SKILL_DIR:+$SKILL_DIR/../..}" "${CLAUDE_PLUGIN_ROOT}"; do
  [ -n "$cand" ] && [ -f "$cand/$WANT" ] && { ROOT="$(cd "$cand" && pwd -P)"; break; }
done
if [ -z "$ROOT" ]; then
  # What ./setup creates: Claude Code and ZCode link SKILL.md, OpenCode links it under a
  # superskills- prefix, Codex links the whole skill folder (so SKILL.md itself is no symlink).
  for probe in "$HOME/.claude/skills/$NAME/SKILL.md" \
               "$HOME/.codex/skills/$NAME/SKILL.md" \
               "$HOME/.config/opencode/skills/superskills-$NAME/SKILL.md" \
               "$HOME/.config/opencode/skills/$NAME/SKILL.md" \
               "$HOME/.zcode/skills/$NAME/SKILL.md"; do
    # Only a file that resolves to a real path counts; never fall back to the cwd.
    [ -f "$probe" ] || continue
    real="$(readlink -f "$probe" 2>/dev/null || perl -MCwd=realpath -e 'print realpath($ARGV[0])' "$probe")"
    if [ -n "$real" ] && [ -f "$real" ]; then
      ROOT="$(cd "$(dirname "$real")/../.." 2>/dev/null && pwd -P)"
      [ -f "$ROOT/$WANT" ] && break
      ROOT=""
    fi
  done
fi
if [ -z "$ROOT" ]; then echo "CENSUS=missing"; else
  CENSUS="$ROOT/scripts/skill-census"
  echo "ROOT=$ROOT"
  # One lesson per run. The lesson is read from a file you wrote with the Write
  # tool, so no shell ever parses its text.
  python3 -I "$CENSUS/skill_overlap.py" query "$ROOT" --stdin --top 3 < "$LESSON_FILE"
fi

The locate block above is intentionally duplicated in /superskills-doctor, /debrief and /prune-skills (a skill needs the repo path before it can source anything); tests/locate-block.bats keeps the three identical.

Before the Bash call, write the lesson (one sentence) to a scratch file with the file-writing tool, not the shell, and put its absolute path on the first line of the block as LESSON_FILE=/absolute/path/lesson.txt. For several lessons, write one file each and repeat the python3 line with each path. Never put lesson text on the command line or in a here-document.

If it prints CENSUS=missing, say the lookup tool could not be found and continue with the manual read below. Do not invent scores.

Overlap has low recall. It is a coarse word-match score, and real neighbours such as qa-full and basic-review score only about 0.09. An empty or weak result does NOT mean no skill covers the lesson. Before you propose a new skill, also read the name and description lines of candidate skills under skills/ and design-skills/ yourself, and judge. Prefer extending an existing skill over adding one. If a skill scores high, read it before deciding; the score is a hint, not proof.

Step 5: Route each lesson to one home

  • Existing skill gap: edit that skill. Name the file and the sentence.
  • Repeatable procedure with no home: hand off to /skillify.
  • Project rule: a line in CLAUDE.md or AGENTS.md.
  • About the user or how they like to work: a memory note.
  • Same input always gives the same output: a script (and, if a skill already runs that check, one line in that skill calling it).
  • Must happen every time, with no judgment: a hook. Describe it and hand off to /update-config. Do not edit settings.json here.

Each proposal says what changes, where, and why, in two short lines.

Step 6: Stop and ask

This skill proposes only. Never write a file before the user says yes to that item, and never create, edit or delete a skill without an explicit yes for it. After a yes, make the edit, then tell the user what gates apply: a change to a skill's description or body is a behaviour change, so run /eval before pushing; ./scripts/lint-skills.sh and ./tests/run.sh must pass.

Gotchas

  • Do not invent lessons to fill the list. Zero is a valid result.
  • Do not paste private details into a skill that other people install.
  • A missing overlap hit is not evidence of a gap. Read the descriptions.
  • The cross-session sweep is out of scope: this reads only the current session.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.