/second-brain-skills:retrofrom second-brain-skills
Closes a work session by reconciling against wider collaboration, inventorying built artifacts from git log and recent files, classifying them as keep/one-off/promote, routing durable ones to memory/canon/skills, and saving a vault note.
Ships in second-brain-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
🧒 When reporting to a non-technical owner: end with a child-simple "In plain words" recap in his language. His standing request (memory
eli5-always). Reports TO him only — not inside vault notes.
A retro = the Agile end-of-cycle ritual (Keep / Drop / Try) applied to a work session: look back, decide what survives. The goal is that nothing reusable drowns in the transcript — tools, rules, and lessons get caught and put in their right home.
Before any inventory, RECALL WIDE — this is the heart of the retro, not a formality (the owner, 2026-07-02). A session never happened in a vacuum: I run on multiple machines + a Cowork fleet concurrently, and this retro may be running days/weeks/months after the work. So recall here serves TWO jobs, not one:
capture-rules-into-bible) applied to retro.⏳ Measure the time-gap FIRST. Check when this session's work actually happened (turnstate ledger / the digest's day-span) vs now. Old session → widen every lookup below to cover "what changed SINCE" — don't recall only the session's own window.
Recall stack — cheap→expensive, mostly 0 tokens (use the existing tools, don't reinvent):
python "$IMPORTS_ROOT/turnstate/turnstate_show.py" — the black box of what THIS session actually asked / decided / touched (facts, not memory).ls "$OBSIDIAN_VAULT/01-Conversations/Claude/Retros/" — widen the window to span the gap; read any same-topic retro since./search <topic words> (search_catalog.db, ~99k Telegram/FB/ChatGPT/Claude) — what did the owner or another session dictate elsewhere about this topic?/ask <topic> ($IMPORTS_ROOT/brain_ask.py) — what does the Second Brain already hold / already decide on this?/inbox + _machine-bus + consensus commits — everything agreed on the OTHER machines; did a peer already decide, or undo, this?/declined — did we already reject something this session quietly re-did?Attribution guard: the Step-1 inventory is machine-wide and WILL include other sessions' artifacts (skills/scripts/commits from the fleet). Treat anything NOT created in THIS conversation as someone else's — flag it, never claim or re-route it.
Output of Step 0 — one tight "🔎 reconciliation" block up front (checked + verdict):
Ground the recap in facts, not memory alone — run the SHARED inventory script (same one the daily sweep uses, so the logic never drifts):
python "$IMPORTS_ROOT/retro_inventory.py" 1 (arg = days; widen for a multi-day session)BUILT_ARTIFACTS <n> and writes $IMPORTS_ROOT/retro_candidates/digest-latest.md — Read that digest: new/changed skills, _imports scripts/sidecars, durable notes (Protocols + Concepts), and recent descriptive vault commits.pre-intervention ones are auto-backups.)CLAUDE.md edits, decisions made, rules captured, things flagged for the owner.3–7 beats: starting idea → what got built → key realizations → what was decided. Honest, concise, his voice. This is the "Stan at the end of South Park" recap.
For every thing made this session, also AUDIT a tested? ✅/❌ column — did it pass /tt (=/test) when built? Retro does NOT do the testing itself (too late/cold at session end); it only audits the line. Any durable artifact that is ❌ or untested → flag it + offer to run /tt on it NOW (per [[test-after-build-skill]]). Then classify:
Retro is the SAFETY NET of the task journal ([[task-journal-done-undone-linking]]): the in-session reflex ("formulated it → straight into the registry") catches tasks at birth; retro catches what slipped. Two moves, both against the ONE journal ([[task-backlog-registry]] — v2 markdown-first, SHIPPED 2026-07-07):
$OBSIDIAN_VAULT/10-Tasks/task-*.md (template _Task-Template.md, MOC _Tasks-MOC.md). They are synced to the fleet, so they work from ANY machine without the bus and without an engine. Creating a task = a new file task-YYYY-MM-DD-slug.md; closing it = editing the frontmatter (state/status + evidence). The schema is strict: an unknown state/prio → schema_errors in the audit, not a silent default.tasks_index.py (markdown → _Dashboards/Task-Backlog.html + 10-Tasks/_audit/audit-latest.json). It runs at night on the anchor node as the ONLY writer — do NOT run it by hand on the hub/laptop (two writers of one synced derivative = a sync conflict).The two retro operations:
done with evidence (the /tt proof, commit, counter) + link what it unblocked. Claimed-done without proof → flag, don't close.Canon = $OBSIDIAN_VAULT/04-Projects/ROADMAP.md (the living public roadmap for followers). Three moves, all against THAT file:
The Connect rule ([[connect-rule-pipeline-ownership]]) applied at wrap-up: for EVERY artifact of this session, take the chain to its end — "we assembled it" is NOT the finish line. The finish = built → handed to a consumer → actually used. Three outcomes per artifact:
Silence ≠ used. "We built it" without a named consumer = an unfinished Connect, NOT "done". In one line: "🔗 Connect: ✅N used · 🔗M handed-over-waiting · ⚠️K into thin air". Exception — an R&D probe (edge 5 of the rulebook entry, DR26-07-04-HUB-13): an explicitly marked experiment with a live time-box + a learning metric does NOT count as ⚠️ "thin air" — it is 🧪; but a probe with an EXPIRED time-box and no consumption/conclusion = ⚠️ → auto-kill (archive), with no sunk-cost negotiation. "Used" = a state change (applied/closed/recorded), not "opened" (Goodhart). This does not duplicate the journal (Step 3📋) — the journal catches "open/closed", Connect catches "does the built thing have a consumer, and does that consumer consume".
One cheap deterministic move: python ~/.claude/scripts/onair.py list (memory onair-board).
onair close <id> — never leave a stale sign hanging.The retro-time CLOSURE of the drift rule ([[goal-drift-offload-to-seed-sessions]] / CLAUDE.md § "drift from the main goal"): mid-flight that rule offloads weeds AS they appear; retro is the safety net for what slipped — the topics the session got blown into that are NOT the main goal and NOT finished.
Procedure (cheap — reuse material already in hand: Step 0 spine, Step 1 inventory, Step 3📋 journal):
spawn_task chip ITSELF — no asking, no waiting (the owner, 2026-07-11: "the retro command activates the neighbouring child sessions without my nudges"). Chip prompt = a self-contained seed (Outcome · Context from recall · Scope · Deliverable · DoD — the seed format from [[decompose-into-parallel-sessions]]); title = an imperative verb phrase. Creating a chip is SAFE and non-executing — the child session starts only when the owner clicks it, so no permission is needed. Register each chip in the task journal (Step 3📋) too — chip AND registry entry, never either-or./bg <seed>.Distinct from Step 4★ (repeats → skill) and Step 3📋 (open/closed bookkeeping): this step catches abandoned directions and hands each one a clean child session. Fires (data loss / security / sync down) are never "drift to defer" — they were handled in-session or escalate now.
operating-agreement → "Where durable rules go")CLAUDE.md (short pointer) / a skill / memory / hook.reglament-*, via skill bible).python ~/.claude/scripts/rule_home_guard.py <slug/keywords> (exit 1 = no always-loaded trace → fix before closing the retro).If the session was MEANINGFUL for the cofounder line (built/decided/learned something real about the business or about working with the owner — not a trivial lookup): append ONE entry to memory cofounder-growth-log.md — date · shell · a lesson about working with him · one self-upgrade — and review the recent entries: what to keep in the character, what to tune. Durable character changes fold DOWN into cofounder-identity (memory) and/or ~/.claude/skills/cofounder/references/system-prompt.md — the log is the journal, those are the canon. Twin of [[persona-pulse-measurement]] (that one logs friction/wins about ME helping HIM; this one logs MY growth). Skip silently for trivial sessions.
The retro is the main systemic "beat writer" (the context is hot, the facts are verified). For every narratively significant event of the session (a milestone/failure/turn/decision/money/a response from the outside world — the beat_kind dictionary in _SHOW-CANON.md): create a beat in $OBSIDIAN_VAULT/04-Projects\show-canon\beats\ from _TEMPLATE-beat.md (3 axes + beat_kind are mandatory; set reveal honestly — anything unresolved = live_hold). Then update the affected arcs/loops/season → python $IMPORTS_ROOT/content-factory\canon_render.py (lint + fresh public registries; pushing follows its own rules, not this one). An ordinary session with no narrative events → skip silently. This runs BEFORE Step 4🎬: the fact goes into the canon first, the content judgement second (the verdict then anchors on the beats just created).
Judge at retro-time, while context is hot: does THIS session deserve content? Verdict = human-post (route → content-factory / /episode / /intention; draft-first; the owner's authorial voice = the best model) · dev-log (a machine-readable "problem → how we fixed it → next-day correction" for robots/future model generations → the /episode dev-log tier, GitHub EN) · both · no (skip silently). The nightly robots (facebook-diary-auto, content-factory, intention-lane) stay as the safety net — this step is the hot-context first pass, and the owner can override at any moment ("this deserves a post"). Attribution + CTA per [[cofounder-identity]] ("Invented by Mycroft and Tony, Palo Alto AI Research Lab") and [[cofounder-cta-public-contact]].
This is the step the owner asked for (2026-06-18): at a finished milestone, don't just note a repeating action — offer to turn it into a skill. It's the retro-time expression of the standing rule evaluate-recurring-into-routine (a recurring task → judge "should this become a routine?"). Mirror of [[capture-rules-into-bible]] (that catches rules; this catches tasks-to-automate).
Trigger (catch it, don't wait to be asked): any action that repeated ≥2–3× this session/milestone, OR that we'll clearly return to later (a manual sequence I re-typed, a multi-step procedure, a recurring check).
Procedure — 4 cheap moves:
automation-inventory for an existing skill/routine/hook that already covers it. If one exists, point the owner to it instead of building a twin.SKILL.md. One markdown file with a procedure, NOT a server / DB / webhook / external service. (This is the exact trap the Codex milestone-retro report fell into — over-engineered for a SWE team; rejected 2026-06-18.) If the thing genuinely needs more than a markdown procedure, flag it ⚠️ ADDED COMPLEXITY and let the owner decide.show-before-after) — one compact block:
WHAT: build
/<skill-name>· BEFORE: how I do it by hand today (on a real example from this session) · AFTER: one command/<name>· what breaks: nothing (it's a layer on top) · do it? yes/no
skill-creator. Pick the right home by SHAPE (per operating-agreement → "Where durable rules go"):
skill-creator).update-config), not a skill.schedule)./compact line (Step 6).The retro's distilled output IS the bridge file — so close the loop without losing context. Two moves:
6a. Auto-save the retro to the vault IN COMPACT FORMAT (standing authorization from the owner, 2026-06-12 — no per-run ask):
Write a clean note to $OBSIDIAN_VAULT/01-Conversations/Claude/Retros/retro-<YYYY-MM-DD>-<latin-topic-slug>.md — the filename is ALWAYS Latin per [[vault-conventions]] (a Cyrillic topic → a transliterated slug; keep the original title in the frontmatter aliases:).
title, date, type: retro, source: claude-session, tags) + the arc (Step 2) + the reuse table (Step 3/4) + the compact 7-header distillation (DECISIONS / TODO / NOW / PATHS AND VALUES / COUNTERS / OPEN / TOOLS AND CONTRACTS — per $USERPROFILE/.claude/compact-prompt.md). This note IS the archive — it doubles as the compact summary, so retro and compact are never written twice.[[...]] may target ONLY existing vault notes (reglament-*, protocol-*, concept-*, decision-*, another retro — verify each exists before writing); memory slugs (machine-migration, ak47-simplicity…) go as plain inline code. Caught 2026-07-04 (a re-check by another model): a retro shipped 7/7 broken links — all of them memory slugs. Canon: deterministic-script-gotchas → "Vault wikilinks ≠ memory slugs"./ask-searchable — no manual reindex needed.6b. Hand the owner the ready paste block — ⚠️ CORRECTED 2026-07-22: a bare /compact does NOT read CLAUDE.md § Compact Instructions. That earlier claim was FALSE — PreCompact hooks cannot inject instructions (only block; issue #14160 pending), and the evidence is that 354/354 past compacts came out in the DEFAULT English template. Our 7-header format is applied ONLY when the block is pasted INLINE after the command: /compact <text>. So PRINT the fenced "ready-made line" block from $USERPROFILE/.claude/compact-prompt.md and tell him to PASTE it right after /compact. Then the fork:
"Done, everything is in the vault. Want to stay in the task but travel light — PASTE the block below in full after
/compact(without it the compression falls back to the default English template instead of our 7-header one). Or start a new chat — everything is already archived and does not depend on that click."
/compact myself — it's a harness command. The archive is automatic; the squeeze + paste belongs to the human.facebook-diary-daily) and NOT the preference scanner (preference-sweep-daily)./compact block if the chat got long).Like this skill? It is part of second-brain-starter-kit: the second brain we built for ourselves and run every day at Palo Alto AI Research Lab. Install the whole set with npx skills add tonydzi/second-brain-starter-kit. Everything is open source and free, so take what you need.
Flagships worth a look on their own: secondop-panel (a second opinion from a panel of external models), claude-memory-tidy (stop your agent's memory from rotting), telegram-mcp-kit (your own Telegram over MCP in about 15 minutes).
Author: Anton Dziatkovskii, Palo Alto AI Research Lab. Telegram @tonydzi - WhatsApp +1 341 222 9178 - X @Tony_Stef_
Engineers: want to test-drive this setup? Message me. I hand out free starter seeds to engineers who test and report back, and custom skill requests are welcome.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub tonydzi/second-brain-starter-kit --plugin second-brain-skills248 skills in this plugin
/03Run an autonomous consensus round between agent peers on several machines: they negotiate a decision over a shared channel and execute it without a human relaying messages. Use when multiple machines must agree on a change. Triggers: "/03", "work it out among yourselves", "find consensus". Wakes the human only for irreversible actions or a deadlock./1Recover a session after a hard crash (app died, machine rebooted, context lost mid-work): replay the turn-state ledger for the last requests, files and decisions, run a green/red health ping over the system map, file sync and MCP connectors, then rebuild the previous session history for pickup. Triggers: "/1", "resume after crash", "wake"./agendaShow the operator's day: today's calendar plus what needs them personally (leads due, people awaiting a reply, deadlines), pulled from Calendar and Telegram and ranked. Read-only: sends and commits nothing. Triggers: "/agenda", "what's on today", "my agenda".Other plugins' skills for the same job