Retro

From tonydzi/second-brain-starter-kit · View interactive version

Retro is an AI agent skill from the GitHub repository tonydzi/second-brain-starter-kit. Close a work session properly: reconcile it against the wider collaboration, inventory what was actually built from git log and recently-touched files, summarize the arc, classify each artifact as keep, one-off or promote-to-permanent, route the durable ones to memory, canon or a new skill, save the

How to use this skill

Skill file

/retro β€” session retrospective (what we built Β· what we keep)

πŸ§’ 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.

Step 0 β€” RECALL & RECONCILE FIRST (situate this session in the WHOLE collaboration)

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:

⏳ 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):

  1. This session's spine (0 tok): python "$IMPORTS_ROOT/turnstate/turnstate_show.py" β€” the black box of what THIS session actually asked / decided / touched (facts, not memory).
  2. Recent retros: ls "$OBSIDIAN_VAULT/01-Conversations/Claude/Retros/" β€” widen the window to span the gap; read any same-topic retro since.
  3. Neighboring chats (lexical, 0 tok): /search <topic words> (search_catalog.db, ~99k Telegram/FB/ChatGPT/Claude) β€” what did the owner or another session dictate elsewhere about this topic?
  4. Vault meaning (RAG): /ask <topic> ($IMPORTS_ROOT/brain_ask.py) β€” what does the Second Brain already hold / already decide on this?
  5. Memory + vault grep for every rule/concept/decision this session touched β€” already captured? superseded / changed since?
  6. Peers & cross-machine: /inbox + _machine-bus + consensus commits β€” everything agreed on the OTHER machines; did a peer already decide, or undo, this?
  7. Declined journal: skill /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):

If a parallel session already captured the durable item, SKIP re-capturing β€” just cross-link.

Step 1 β€” Inventory (deterministic first; AK-47, ~free)

Ground the recap in facts, not memory alone β€” run the SHARED inventory script (same one the daily sweep uses, so the logic never drifts):

Step 2 β€” Summarize the arc ("today we learned")

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.

Step 3 β€” Classify each artifact (Keep / Drop / Try) + tested? audit

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:

Step 3πŸ“‹ β€” Journal sync (the task registry; the owner's decree 2026-07-04)

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):

The two retro operations:

Announce the delta in one line: "πŸ“‹ journal: +N new Β· βœ…M closed Β· unchanged K". Don't duplicate neighbouring registries (the DR registry, the improvements backlog, declined) β€” link, don't copy.

Step 3πŸ—Ί β€” Roadmap checkpoint (the owner's decree 2026-07-16: "every retro says how far we moved on the roadmap")

Canon = $OBSIDIAN_VAULT/04-Projects/ROADMAP.md (the living public roadmap for followers). Three moves, all against THAT file:

Announce in one line: "πŸ—Ί roadmap: βœ…N advanced Β· βž•M added Β· ⏸ no movement". Projecting the file publicly happens only through the content gate β€” the retro publishes nothing outbound.

Step 3πŸ”— β€” Connect check (built β†’ handed over β†’ IS IT USED?) β€” the owner, 2026-07-04

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".

Step 3πŸŽ™ β€” ON AIR check (v1.1, 2026-07-11)

One cheap deterministic move: python ~/.claude/scripts/onair.py list (memory onair-board).

Step 3β›³ β€” Drift audit β†’ child sessions (the owner's decree 2026-07-11: retro spawns them ITSELF, no nudges)

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):

  1. Name the session's MAIN goal (turnstate spine / the first ask). One line: "β›³ session goal: <X>".
  2. List the drift: topics we discussed / dug into / half-built that are neither the main goal nor done. Cross-check chips already issued mid-flight β€” those are NOT re-spawned, only their Connect status is reported.
  3. For each REAL drifted topic the retro CREATES the 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.
  4. Threshold & cap: only a real weed (discussed seriously / carries value / would otherwise be lost) β€” not every stray thought; ≀5 chips per retro, the rest goes journal-only. Fallback on a bare CLI (no chip tool): text seeds + /bg <seed>.
  5. Report line: "β›³ drift audit: goal <X> Β· drifted into N topics β†’ 🧷M chips created Β· ♻️K issued mid-flight Β· πŸ“‹J journal-only". No drift β†’ one word ("β›³ no drift"), skip the ceremony.

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.

Step 4 β€” Route durable items to their home (per `operating-agreement` β†’ "Where durable rules go")

Step 4πŸ““ β€” The cofounder growth log (persona versioning; the owner, 2026-07-02)

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.

Step 4🎭 β€” THE DAY'S BEATS INTO THE CANON (the law "canon before content", 2026-07-10)

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).

Step 4🎬 β€” Content check (the owner: "all our sessions are content", 2026-07-02)

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]].

Step 4β˜… β€” The "repeats β†’ make a skill" reflex (milestone closeout)

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:

  1. RECALL first β€” don't duplicate. Skim the available skills + memory 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.
  2. ⚠️ AK-47 guard β€” a skill is just a 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.
  3. OFFER as BEFORE→AFTER (per 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

  1. On the owner's "+" β†’ build it via skill-creator. Pick the right home by SHAPE (per operating-agreement β†’ "Where durable rules go"):

Then route/link it normally (Step 4) and mention it in the final report (post-hoc, not for permission).

Step 5 β€” Output (tight + scannable; a review artifact, not a novel)

  1. 🎬 "Today we learned" β€” the arc (Step 2).
  2. ♻️ Reuse table β€” artifact Β· 🟒/🟑/⬆️ Β· tested? βœ…/❌ Β· why Β· routed-to.
  3. πŸ”β†’πŸ›  Repeats β†’ skills β€” any action that repeated this milestone, offered as BEFOREβ†’AFTER (Step 4β˜…); mark each built / proposed / declined.
  4. πŸ”— Connect β€” "βœ…N used Β· πŸ”—M handed-over-waiting Β· ⚠️K into thin air" (Step 3πŸ”—); every ⚠️ flagged explicitly + the decision (wire up a consumer / discard it).
  5. β›³ Drift map β€” "goal <X> Β· drifted into N topics β†’ 🧷M chips created Β· ♻️K mid-flight Β· πŸ“‹J journal-only" (Step 3β›³); the chips are already created by now, listed post-hoc.
  6. πŸ“Œ Open items β€” anything flagged for the owner's decision; each one REGISTERED in the task journal (Step 3πŸ“‹), shown as "#id Β· task Β· link".
  7. πŸ—Ί Roadmap β€” the one-line delta from Step 3πŸ—Ί ("βœ…N advanced Β· βž•M added Β· ⏸ no movement").
  8. πŸ—œ Compact handoff β€” the saved-note path + the ready /compact line (Step 6).
  9. πŸ§’ In plain words recap.

Step 6 β€” Compact handoff (retro ⇄ compact glue; STAY in the chat, never /clear)

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:).

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."

Scope / don't-duplicate

<!--kit-footer-->


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.

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.