agentleFS
HippocampusEvolveHippocampusEvolve/universal-agent-seed/.claude/skills/reflect/SKILL.md

reflect

Skill0 starsChanged 4 months agoMITView on GitHub

Triage staged learnings in .claude/knowledge/pending.md and promote the genuinely high-confidence ones into core-rules.md / conventions.md / bugs-and-fixes.md or the right SKILL.md — safely, with dedup, backups, and (when git is on) a commit. Use when the SessionStart banner reports pending learnings, when the user runs /reflect, or after a session that contained notable corrections or decisions.

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

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

  • 0

    Common

    Most of the 163 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Default to rejecting when unsure — a wrong rule is worse than a missing one.

    line 32
  2. Very specific:

    Deduplicate: if a candidate restates something already in core-rules.md / conventions.md, skip it (or tighten the existing entry instead of …

    line 33
  3. Very specific:

    When you add a bullet under Learned rules in core-rules.md, append a provenance tag so the loop is measurable later: - <rule> <!-- …

    line 42
  4. Very specific:

    Before editing a file, copy it to <file>.bak (gitignored).

    line 48
  5. Very specific:

    If the repo is a git repo, stage the changed knowledge/rules/skills files and commit: docs(knowledge): reflect — <short summary>.

    line 53
  6. Very specific:

    Mirror to AGENTS.md: if you promoted anything into Learned rules, run mise run mirror-rules (or python scripts/mirror_rules.py).

    line 56
  7. Very specific:

    Keep core-rules.md tight (aim < ~40 rules).

    line 67
  8. Very specific:

    If pending.md is empty and the conversation had no corrections, say so and stop.

    line 68

“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 — promote staged learnings safely

You are folding the project's recent experience into its durable memory. This is the review gate that keeps auto-capture honest: nothing becomes a rule without your judgment, and every change is reversible.

Inputs

  • .claude/knowledge/pending.md — candidates staged by the SessionEnd hook (each a ### entry tagged HIGH/MED).
  • The current conversation (additional corrections the hook may have missed).

Procedure

  1. Read pending.md and skim the recent conversation. Build a list of candidate learnings.
  2. Judge each candidate against three tests — keep only if it passes all:
    • Specific — names a concrete behavior, file, command, or convention (not "write good code").
    • Reusable — will matter again in future sessions, not a one-off for this task.
    • Actionable — you can phrase it as a directive the next session can follow. Default to rejecting when unsure — a wrong rule is worse than a missing one.
  3. Deduplicate: if a candidate restates something already in core-rules.md / conventions.md, skip it (or tighten the existing entry instead of adding a new one).
  4. Route each surviving learning to exactly one home:

    • Behavior directive / "always|never" → .claude/rules/core-rules.md → Learned rules.
    • Project naming/pattern/anti-pattern → .claude/knowledge/conventions.md.
    • A gotcha + its fix → .claude/knowledge/bugs-and-fixes.md (one table row).
    • A repeatable multi-step procedure → suggest /distill <name> to make it a skill.
    • A durable architecture fact/decision → .claude/knowledge/architecture.md.

    When you add a bullet under Learned rules in core-rules.md, append a provenance tag so the loop is measurable later: - <rule> <!-- YYYY-MM-DD s:<session-id-prefix> -->.

  5. Edit bounded & small (the SkillOpt principle): make the minimal edit that captures the learning. Keep each rule one or two lines. Don't bloat files — prune stale/contradicted rules in the same pass.
  6. Back up & record:
    • Before editing a file, copy it to <file>.bak (gitignored).
    • Append a one-line entry to .claude/knowledge/session-log.md (- YYYY-MM-DD · <what was learned/changed>).
    • Move processed ### entries out of pending.md into .claude/knowledge/.archive/pending-<date>.md (create the dir; it's gitignored).
    • If the repo is a git repo, stage the changed knowledge/rules/skills files and commit: docs(knowledge): reflect — <short summary>. If not a git repo, skip the commit silently.
  7. Mirror to AGENTS.md: if you promoted anything into Learned rules, run mise run mirror-rules (or python scripts/mirror_rules.py). It regenerates the <!-- BEGIN learned (generated) --> block in AGENTS.md from core-rules.md so Cursor / Copilot / Codex see the same rules. Include AGENTS.md in the commit from step 6.
  8. Report a short summary: what you promoted, where, and what you rejected (and why).

Safety rails

  • Never promote a candidate that contradicts an existing rule without flagging the conflict to the user and asking which wins.
  • Never edit .claude/settings.json, hooks, or permissions from this skill.
  • Keep core-rules.md tight (aim < ~40 rules). If it grows past that, consolidate.
  • If pending.md is empty and the conversation had no corrections, say so and stop.

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.