agentleFS
DATA-AI-XYZDATA-AI-XYZ/Tandem/skills/reflect/SKILL.md

reflect

Skill0 starsChanged 6 months agoMITView on GitHub

End-of-session reflection that proposes updates to CLAUDE.md / SOP.md / PROJECT-CONTEXT.md based on what happened. Use when the user asks to reflect on a session, capture lessons, propose CLAUDE.md updates, or invokes /tandem:reflect. The blog's "stop hooks reflect on what happened and propose CLAUDE.md updates" recommendation, implemented as a manual skill (less noisy than an auto-firing Stop hook that triggers on every trivial session).

172 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use poteto-help, setup-pstack and 10 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.
  • ianclearySkill

    poteto-help

    Guides users through pstack setup, /poteto-mode, and picking the skill, playbook, or principle for a task. Type /poteto-help with a question.

    Also in 14 projects that use this

  • bnemaSkill

    setup-pstack

    Configure which Pi models pstack uses per role. Detects available provider/model specs and writes pstack's user configuration. Use for /setup-pstack, "configure pstack models", or changing pstack model choices.

    Also in 24 projects that use this

  • eryzerzSkill

    make-bot-ui

    Use when building a custom UI (page, dashboard, buttons) that should wake a Grok Bot over a webhook, when the user must provide a webhook sender key, or when exposing that UI on Tailscale.

    Also in 19 projects that use this

  • ianclearySkill

    principle-explain-the-number

    Apply before you trust, report, or act on a number you measured: a speedup, a regression, a throughput, a latency, or an eval result. Find what limits it, and rule out that it measured something other than the work you think.

    Also in 26 projects that use this

  • jaydubya818Skill

    automate-me

    Use when the user wants working preferences captured in a reusable mode skill.

    Also in 39 projects that use this

  • jaydubya818Skill

    poteto-mode

    Use when non-trivial work should follow the smallest rigorous Jstack workflow.

    Also in 27 projects that use this

  • +6 more from jaydubya818

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 163 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use at the end of a substantive session (>30 min of real work) to capture lessons that should bleed back into the kit's rules.

    line 8
  2. Distinctive:

    Before scanning from memory, read what the run recorded at the time.

    line 12
  3. Distinctive:

    Read the current month only — that is the in-flight view this skill needs, and the ledger grows monotonically, so loading all of it would …

    line 21
  4. Distinctive:

    Propose, don't commit: No file edits during reflect.

    line 70
  5. Distinctive:

    Read-only — reflect proposes.

    line 84
  6. Very specific:

    If a proposal touches _00-Project-Management/90-Standards/SOP.md, also bump the file's version: field in frontmatter once the user approves.

    line 86

“Common” is measured: kept by at least 6 in 10 of the 163 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

Tandem: reflect (self-improvement)

Use at the end of a substantive session (>30 min of real work) to capture lessons that should bleed back into the kit's rules. The blog's "self-improvement loop" pattern.

Ground the scan in the ledger first

Before scanning from memory, read what the run recorded at the time. The retro ledger holds one line per development boundary — the friction, the kit signals and the estimate-vs-actual calls each close-out wrote as it happened — and recalling those is stronger evidence than reconstructing them at the end of a long session:

node _00-Project-Management/93-Scripts/retro-report.js --month <YYYY-MM>

Read the current month only — that is the in-flight view this skill needs, and the ledger grows monotonically, so loading all of it would cost more than it is worth here. This is 93-Scripts/retro-report.js, the same aggregator close-phase and monthly-retro read: reflect does not re-implement the join, so the three surfaces cannot disagree about what happened.

An empty window changes nothing about this skill. The output says No retro records for this window.; carry on with the scan below exactly as before. No error, no banner, and nothing attributed to a ledger that has nothing in it — a reflection with no ledger line to cite is still a valid reflection, and every session before 2026-08 has none.

What to scan in this session

  1. Decisions made — did you create an ADR? Did you make a decision that should have become an ADR but didn't? (the rule says "any non-obvious decision" — be honest.)
  2. Friction encountered — did you have to explain the same convention to Claude twice? That's a PROJECT-CONTEXT.md candidate.
  3. Workarounds applied — did you bypass a rule or use a one-off command? Why? Should the rule change, or should there be a new entry in PROJECT-CONTEXT.md's "Known stack gotchas"?
  4. Skills that didn't fire — did Claude paste a prompt's content instead of loading a skill? The skill's description: may not match the trigger phrase the user actually used.
  5. Tools used that surprised you — was an agent invoked when a direct Read would have been faster? Was main-thread context bloated by grep results? Subagent policy adjustment needed?
  6. Patterns that recurred — did you tell Claude to do something three times that could be a hook?

What to output

A proposal — not a commit. The user decides what lands.

🪞 Session reflection — <ISO date>

What worked:
  - <specific thing, ≤2 lines>

What hurt:
  - <specific thing, ≤2 lines>

Proposed kit changes (review before applying):
  1. [PROJECT-CONTEXT.md] Add to "Known stack gotchas": <symptom> — <fix>. Reason: <one line>.
  2. [SOP.md §<N>] Tighten rule: <current text> → <proposed text>. Reason: <one line>.
  3. [skills/<name>/SKILL.md] Update description to include trigger phrase: "<phrase user actually used>". Reason: <one line>.
  4. [hooks/hooks.json] New hook candidate: <event> running <command>. Reason: <one line>.

ADR backlog (decisions made this session without an ADR — file these now):
  - <decision> made at <timestamp/commit>. Should be ADR-<NNNN>.

Tech debt observed (file as BACKLOG entries):
  - <observation>

User confirmation needed to apply any of the above.

Output rules

  • Propose, don't commit. No file edits during reflect. The user reviews and explicitly approves each item before it lands.
  • One proposal per finding — not bundled.
  • Cite evidence: "I noticed X at <approx point in session>" — concrete, not vague.
  • Skip the section entirely if there's no finding for that category. Don't pad.
  • ≤ 30 lines total. If the session yielded more than 5 findings, prioritise the top 3 and note the rest as "additional minor findings: <count>".

Anti-patterns

  • Proposing rule changes for one-off situations. The bar is "this would have helped me twice or more in the past month."
  • Suggesting new skills when a richer description on an existing skill would solve it.
  • Auto-applying proposals without user approval — even small ones. The user owns the kit.

Non-negotiable rules from CLAUDE.md

  • Read-only — reflect proposes; user applies.
  • Subagent delegation for multi-file scans of past sessions.
  • If a proposal touches _00-Project-Management/90-Standards/SOP.md, also bump the file's version: field in frontmatter once the user approves.

End-of-reflect summary

A single line: "X proposals · Y ADRs to backfill · Z tech-debt items. Apply now? (y/n)"

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.