agentleFS
rafeeqinearafeeqinea/claude-academic-toolkit/skills/meta/reflect/SKILL.md

reflect

Skill0 starsChanged 9 months agoMITView on GitHub

End-of-session reflection. Analyze what happened in this conversation, extract learnings, update memory and instructions. Use when user says "reflect", "what did you learn", "session review", or at the end of a productive session.

186 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup-pstack, make-bot-ui 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.
  • 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 29 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 22 projects that use this

  • jaydubya818Skill

    poteto-mode

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

    Also in 34 projects that use this

  • jaydubya818Skill

    automate-me

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

    Also in 47 projects that use this

  • +8 more from jaydubya818

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 168 edited versions we read keep these.

  • 8

    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:

    NEVER add speculative or unverified information to memory

    line 67
  2. Distinctive:

    NEVER bloat files — every line must earn its place

    line 68
  3. Distinctive:

    If CLAUDE.md exceeds 50 lines after update, consolidate — but the merged version MUST contain ALL information from originals

    line 69
  4. Distinctive:

    Only add or improve — never delete working instructions, memories, or user preferences

    line 72
  5. Distinctive:

    Never weaken an existing rule or remove a user correction

    line 73
  6. Distinctive:

    Never replace specific instructions with vague ones

    line 74
  7. Distinctive:

    If unsure whether a change improves or degrades — don't make it, flag it for the user

    line 75
  8. Distinctive:

    If MEMORY.md exceeds 200 lines, move details to topic files and link from MEMORY.md

    line 77

“Common” is measured: kept by at least 6 in 10 of the 168 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 — Session Learning Loop

Trigger

/reflect

Purpose

Analyze the current conversation, extract what worked and what didn't, and persist improvements for future sessions. This is how I get better over time.

Workflow

Step 1: Session Analysis

Review the full conversation and identify:

  • Tasks completed: What did the user ask for? Did I deliver?
  • Mistakes made: Where did I give wrong information, take the wrong approach, or waste time?
  • Corrections received: What did the user correct me on? (These are the highest-signal learnings)
  • New knowledge gained: Facts, preferences, patterns discovered this session
  • Approaches that worked well: What should I do more of?

Step 2: Classify Learnings

Sort each learning into one of these categories:

CategoryPersists toExample
BehaviouralCLAUDE.md"User wants me to stop hedging"
Project factMEMORY.md"CG converges in 167 iters at N=64"
Bug fix / patternmemory topic file"Windows encoding issue with nlm login"
Skill gapNew skill or skill update"User frequently asks for LaTeX tables"

Step 3: Update Files

For each learning:

  1. Check for duplicates — Read the target file first. Don't write what's already there.
  2. Check for contradictions — If new info contradicts existing memory, UPDATE the old entry, don't add a second conflicting one.
  3. Apply the update:
    • CLAUDE.md: Add/modify behavioural instruction (keep total under 50 lines)
    • MEMORY.md: Add/modify fact (keep total under 200 lines)
    • Topic files: Create or update as needed
    • Skills: Modify SKILL.md if a skill needs improvement

Step 4: Report

Show the user exactly what was updated:

## Session Reflection

### What I learned
- [learning 1]
- [learning 2]

### Files updated
- CLAUDE.md: [what changed and why]
- MEMORY.md: [what changed and why]
- [other files]: [what changed and why]

### No action taken on
- [things observed but not significant enough to persist]

Rules

  • NEVER add speculative or unverified information to memory
  • NEVER bloat files — every line must earn its place
  • If CLAUDE.md exceeds 50 lines after update, consolidate — but the merged version MUST contain ALL information from originals

HARD CONSTRAINT: Never degrade

  • Only add or improve — never delete working instructions, memories, or user preferences
  • Never weaken an existing rule or remove a user correction
  • Never replace specific instructions with vague ones
  • If unsure whether a change improves or degrades — don't make it, flag it for the user
  • Monotonic improvement only — the ratchet only turns one way
  • If MEMORY.md exceeds 200 lines, move details to topic files and link from MEMORY.md
  • User corrections are the HIGHEST priority learnings — always persist these
  • Be honest in the report — don't hide mistakes

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.