agentleFS
slogsdonslogsdon/loop-and-gate-foundation/skills/reflect/SKILL.md

reflect

Skill0 starsChanged 4 months agoMITView on GitHub

Close out an agent session. Use at the END of every session — logs what happened to the daily note, then writes an honest self-assessment to Reflections/ with one actionable lesson.

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

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

  • 0

    Common

    Most of the 163 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the vault isn't under git, skip.

    line 68
  2. Distinctive:

    If the same lesson already appears in a previous reflection, say so explicitly: "REPEAT SIGNAL — also in YYYY-MM-DD".

    line 80

“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

Reflect

One job: end the session with an honest written record — what happened (episodic memory) and what to do differently (improvement signal).

This is the heart of self-improvement. A reflection that never gets written, or is written as vague praise, breaks the whole loop.

All vault/… paths below resolve against the vault base (see CLAUDE.md → "Resolving the vault path"); on a clone that's the repo's vault/, on a plugin install it's the setup-recorded path. Resolve the base before writing.

Steps

  1. Log the session — append to today's vault/Daily/YYYY-MM-DD.md under ## Sessions:

    ### HH:MM — <short session title>
    
    - Goal: <what this session set out to do>
    - Did: <what actually happened, including links to any [[Knowledge notes]] captured>
    - Outcome: <done / partial / blocked — and why>
    - Open: <what the next session should pick up, or "nothing">
  2. Write the reflection — check whether vault/Reflections/YYYY-MM-DD.md already exists and APPEND a session section if it does. Never create it blind: the note is per-day but reflections are per-session, and a create against an existing path silently lands as YYYY-MM-DD 1.md, hiding a parallel session's reflection from every future improve pass.

    ## Session: <title> (HH:MM)
    
    ### What worked
    - <specific behavior that helped>
    
    ### What didn't
    - <specific behavior that hurt — be honest, this is the improvement signal>
    
    ### Lesson (one sentence, actionable)
    <a rule a future session could actually follow>
    
    ### Proposed change
    - target: <skills/<name>/SKILL.md | CLAUDE.md | vault/MEMORY.md | config.yaml | none>
    - change: <one sentence describing the edit>
    - status: proposed
  3. Update MEMORY.md — this is the session's FIRST MEMORY.md write (it's read-only until now for prompt-cache stability): mark the goal done or update its one-line status, and add any Knowledge index lines queued by capture. Stale goals rot the index.
  4. Commit memory — commit in the vault's own git repo if it has one (<base> = cat ~/.config/loop-and-gate/vault, or the clone's vault/). Stage the paths this session actually wrote — Daily/YYYY-MM-DD.md, Reflections/YYYY-MM-DD.md, MEMORY.md, plus any capture targets — never add -A, which sweeps a parallel session's or an auto-sync's work in under your message: git -C <base> add <those paths> && git -C <base> commit -m "chore: memory update — <short summary>" If the vault isn't under git, skip. Every session that can leaves an auditable trail.

Rules

  • Reflect does NOT apply changes. It only proposes them (status: proposed). The improve skill applies them later, when a signal has repeated. This gate is deliberate: unverified self-modification makes agents worse, not better.
  • "What didn't" must contain something real. A session where nothing went wrong still had something inefficient. If truly nothing: write "no signal" — but that should be rare.
  • One lesson per session, not five. Pick the one that matters most.
  • If the same lesson already appears in a previous reflection, say so explicitly: "REPEAT SIGNAL — also in YYYY-MM-DD". Repeats are what authorize the improve skill to act.

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.