agentleFS
t0ddharrist0ddharris/claude-code-skills/.claude/skills/reflect/SKILL.md

reflect

Skill2 starsChanged 5 months agoMITView on GitHub

Analyze the current conversation for corrections, approvals, and patterns, then propose updates to the skill files that were used. Trigger with /reflect or automatically at end of /brief. Use when the user says 'reflect,' 'learn from this,' 'update the skill,' or 'remember this for next time.'

105 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use make-bot-ui, principle-attack-the-premise 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.
  • 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 8 projects that use this

  • TheOnlyFusionCubeSkill

    principle-attack-the-premise

    Inventory who actually owns or exhibits the imbalance, then challenge the shared premise before writing another patch. Use when two or more fixes that share one premise have failed the same gate.

    Also in 10 projects that use this

  • TheOnlyFusionCubeSkill

    principle-test-behavior-not-implementation

    Call the system the way its consumer does and assert meaningful observable output; avoid mocks or assertions that only mirror internal calls. Use when when writing or evaluating tests.

    Also in 10 projects that use this

  • shishivSkill

    setup-pstack

    Configure pstack delegation against the active Pi host. Use for /skill:setup-pstack, "configure pstack models", or checking delegation readiness.

    Also in 13 projects that use this

  • finograficSkill

    figure-it-out

    Design an auditable playbook when no narrower one fits: a large migration, an ambitious multi-part change, or work a human reviews after stepping away. Scales rigor to the task, runs a hypothesis loop, and logs decisions via show-me-your-work. Use for /figure-it-out, 'figure it out', a large migration, or when no narrower playbook applies.

    Also in 19 projects that use this

  • shishivSkill

    automate-me

    Use for \"automate me\", \"create/update/refresh my -mode skill\", \"turn/capture my preferences or working style into a skill\", or wanting agents to follow how the user works. Drafts or revises a personal -mode skill via create-skill + unslop, optionally pulling fresh evidence from recent transcripts.

    Also in 16 projects that use this

  • +1 more from shishiv

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 98 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If no skills were used this session, check whether the corrections apply to:

    line 18
  2. Distinctive:

    Add learnings that weren't detected

    line 91
  3. Distinctive:

    Write as actionable rules, not session logs ("Always X" not "Todd said to do X")

    line 110
  4. Distinctive:

    Keep each entry to one sentence.

    line 111
  5. Very specific:

    After applying updates, scan the full ## Learnings section.

    line 115
  6. Very specific:

    When invoked as Step 2.5 of the /brief workflow:

    line 126
  7. Distinctive:

    Run after the brief is written, before the git question

    line 127
  8. Distinctive:

    Keep output concise: just the signals table and proposed changes

    line 128
  9. Distinctive:

    If no learnings were detected, say so in one line and move on

    line 130
  10. Distinctive:

    Run the full flow above

    line 135
  11. Distinctive:

    Ask the user about git separately (commit the skill updates?)

    line 136
  12. Distinctive:

    Before proposing any learning, ask yourself:

    line 149
  13. Distinctive:

    Is it already captured?: Check the skill file, CLAUDE.md, memory, and session brief.

    line 152
  14. Distinctive:

    If a session produced no generalizable learnings, that's fine.

    line 155

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

Scan the current conversation for signals (corrections, approvals, patterns) and propose updates to the skill files that were invoked during the session. Every correction should only need to happen once.

Step 1: Identify Skills Used

Scan the conversation for skill invocations. Look for:

  • Explicit /skill-name calls
  • Skill tool invocations (the Skill tool being called)
  • Agent delegations that loaded a skill

If no skills were used this session, check whether the corrections apply to:

  • General behavior → suggest a CLAUDE.md or memory update instead
  • A specific skill that should have been used → note the routing gap
  • Neither → report "no learnings to extract" and stop

Step 2: Extract Signals

Scan the full conversation for three signal types:

HIGH confidence (explicit corrections):

  • User said "no," "don't," "never," "stop," "wrong," "not that"
  • User rejected output and asked for a different approach
  • User provided a specific rule ("always do X," "use Y not Z")
  • User flagged an error, bad pattern, or bad output

MEDIUM confidence (validated patterns):

  • User approved output without pushback ("yes," "perfect," "looks good," accepted without changes)
  • A non-obvious approach worked and the user confirmed it
  • User's positive reaction to a specific technique or format

LOW confidence (observations):

  • Patterns that seemed to work but weren't explicitly validated
  • Ambiguous signals worth reviewing later

Not a signal, skip these:

  • One-time contextual decisions (e.g., "make this one shorter" doesn't mean all future outputs should be shorter)
  • Task-specific details that don't generalize beyond this session
  • Things already documented in the skill file, CLAUDE.md, or memory
  • Corrections to factual or biographical content (those belong in a dedicated facts/context file, not skills)
  • Preferences already captured in the session brief's carried-forward sections

Step 3: Read the Target Skill Files

For each skill identified in Step 1, read its SKILL.md. Check:

  • Does a ## Learnings section exist at the bottom? If not, it will be created.
  • Is this learning already captured? Don't duplicate.
  • Does this learning contradict an existing learning or rule? Flag the conflict for the user to resolve.

Step 4: Propose Updates

Present proposed changes in this format. Always label each proposed update with a letter (A, B, C...) so the user can approve or reject individual items by letter.

## Reflect: Session [N] Learnings

### Signals Detected
- **[HIGH]** [What happened] → [Proposed rule]
- **[MEDIUM]** [What happened] → [Proposed rule]

### Proposed Skill Updates

**[skill-name]:**
- **(A)** [HIGH] Add: "[actionable rule]"
- **(B)** [MEDIUM] Add: "[pattern description]"

**[other-skill-name]:**
- **(C)** [HIGH] Add: "[actionable rule]"

### Skipped (already captured)
- [Any signals that are already in the skill or CLAUDE.md]

### No Changes (if applicable)
- [Why no updates are warranted this session]

Letters run continuously across skills (A, B, C...) so the user can say "approve A and C, skip B" without ambiguity.

STOP and wait for user approval before making any changes.

The user can:

  • Accept all proposed changes (Y / approve all)
  • Accept some, reject others by letter ("A and C" / "skip B")
  • Modify the wording of any proposed change
  • Add learnings that weren't detected
  • Reject everything (no changes made)

Step 5: Apply Approved Changes

Append approved learnings to the skill's ## Learnings section at the bottom of SKILL.md:

## Learnings

<!-- Updated by /reflect. Promote stable patterns to the main skill body. -->

- **[HIGH]** Rule description here. *(Session N, YYYY-MM-DD)*
- **[MEDIUM]** Pattern description here. *(Session N, YYYY-MM-DD)*

Format rules:

  • One line per learning, prefixed with confidence tag
  • Include session number and date for traceability
  • Write as actionable rules, not session logs ("Always X" not "Todd said to do X")
  • Keep each entry to one sentence. If it needs more, it's too complex for a learning: promote it directly to the main skill body instead.

Step 6: Graduation Check

After applying updates, scan the full ## Learnings section. If any learning:

  • Has been present for 5+ sessions without being contradicted
  • Is HIGH confidence
  • Applies broadly (not an edge case)

Suggest promoting it into the main skill body (the relevant framework, principles, or guidelines section). Once promoted, remove it from ## Learnings to keep the section lean.

Tell the user which learnings are candidates for graduation and where in the skill body they'd go. Apply only with approval.

When Called from /brief

When invoked as Step 2.5 of the /brief workflow:

  • Run after the brief is written, before the git question
  • Keep output concise: just the signals table and proposed changes
  • Skill updates are committed together with the brief in one commit
  • If no learnings were detected, say so in one line and move on

When Called Standalone (/reflect)

When invoked directly:

  • Run the full flow above
  • Ask the user about git separately (commit the skill updates?)

Scope Boundaries

This skill does NOT:

  • Modify factual or biographical content files (those are managed separately, outside this skill)
  • Modify CLAUDE.md (use /revise-claude-md for that; but DO suggest CLAUDE.md updates if a learning is cross-cutting)
  • Modify memory files (the memory system is separate)
  • Auto-commit without user approval
  • Extract learnings when no skills were used (suggests alternatives instead)

Quality Gate

Before proposing any learning, ask yourself:

  1. Is this generalizable? Would this apply in the next 5 sessions, not just this one?
  2. Is this actionable? Can a future session follow this rule without ambiguity?
  3. Is it already captured? Check the skill file, CLAUDE.md, memory, and session brief.
  4. Is it the right home? Skill-specific → skill file. Cross-cutting → suggest CLAUDE.md. Factual/biographical → suggest a dedicated facts/context file.

If a session produced no generalizable learnings, that's fine. Say "no new learnings detected" and move on. Not every session teaches something new. Forcing weak learnings into skills degrades them over time.

Learnings

<!-- Updated by /reflect. Promote stable patterns to the main skill body. -->
  • [HIGH] Each run, scan the memory directory for thematic clusters (3+ related feedback/gotcha memories): propose graduating the theme into a dedicated skill. (Session 4 (Apexfall), 2026-07-06, per Todd)

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.