reflect
Skill4 starsChanged 5 months agoMITView on GitHub
Analyze the current session for your OWN errors and save generalizable, deduplicated lessons to .claude/reflections.md, filed under the correct category. Use when the user asks to reflect on / capture lessons from the session — "reflect", "what did you learn", "save lessons", "retrospective", "capture takeaways", "session reflection". NOT for: reviewing code (use meticulous-code-review) or writing documentation; do not auto-invoke to write reflections unless explicitly asked.
105 other projects use a version of this.
Adopted by
Most recently taken up by
- PickleBoxer/pstacktheir own version, first seen Oct 6, 2026
- t0ddharris/compound-marketingtheir own version, first seen Oct 5, 2026
- uzairansaruzi/p3-stacktheir own version, first seen Oct 5, 2026
- jonmumm/skillstheir own version, first seen Oct 4, 2026
- backnotprop/pstacktheir own version, first seen Oct 4, 2026
- creedants/pstack-t3their own version, first seen Oct 3, 2026
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.
eryzerzSkillmake-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
TheOnlyFusionCubeSkillprinciple-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
TheOnlyFusionCubeSkillprinciple-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
shishivSkillsetup-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
finograficSkillfigure-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
shishivSkillautomate-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
Other versions105 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 105
- github/gh-aw★ 5.3ksame name
- microsoft/Generative-AI-for-beginners-dotnet★ 3.1ksame name
- NeoLabHQ/context-engineering-kit★ 1.7ksame name
- backnotprop/pstack★ 991same name
- llama-farm/llamafarm★ 837same name
- haddock-development/claude-reflect-system★ 380same name
- egregore-labs/egregore★ 291same name
- zylMozart/ClaudeTeam★ 235same name
- Azure/fleet★ 226same name
- akitaonrails/my-skills★ 205same name
95 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- analytics-cleanerSkill
- apply-review-feedbackSkill
- architect-designSkill
- battle-tested-patternsSkill
- code-deletionSkill
- code-simplifierSkill
- consensus-boardSkill
- context-implementSkill
- deep-reviewSkill
- deliberate-thinkingSkill
- design-brainstormSkill
- exhaustive-testingSkill
- generate-docsSkill
- handoffSkill
- load-handoffSkill
- meticulous-code-reviewSkill
- optimizeSkill
- refactorSkill
- regression-safety-netSkill
- scope-creep-preventionSkill
- senior-reviewSkill
- ship-featureSkill
- subagent-buildSkill
- systematic-debuggingSkill
- test-first-developmentSkill
- verification-before-completionSkill
- verify-claimsSkill
- write-plansSkill
- write-promptSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 9 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 98 edited versions we read keep these.
9
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
- Distinctive: line 95
Specific in action: No vagueness like "be more careful"
- Distinctive: line 113
BEFORE writing, read existing reflections in ALL sections:
- Distinctive: line 123
Use Edit tool to add reflections UNDER THE CORRECT SECTION.
- Distinctive: line 128
Add the reflection as a new bullet under that section
- Distinctive: line 129
If the section doesn't exist, CREATE it in alphabetical order
- Distinctive: line 145
Before saving each reflection, verify:
- Distinctive: line 152
If any answer is NO → rewrite, recategorize, or discard it.
- Distinctive: line 156
When finished, briefly list:
- Distinctive: line 159
If there were no significant errors, state it honestly
“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.
Files
Context
First read .claude/reflections.md (use the Read tool; if the file does not exist yet,
treat the existing reflections as empty and create it). You must know what is already
recorded before adding anything — this is the input to Step 5 (deduplication).
Your Mission
You are your own critic. Analyze THIS conversation with brutal honesty to identify errors you made and extract lessons that will make you better in FUTURE sessions.
Step 1: Identify Errors (actively look for these patterns)
Review the conversation specifically looking for:
Execution Errors:
- Commands that failed and you had to retry
- Code that didn't compile/work on first attempt
- Incorrect paths you assumed
- Tools you used incorrectly or in wrong order
Assumption Errors:
- Things you assumed without verifying (that turned out incorrect)
- Data structures/schemas you imagined differently
- API/library behaviors you misinterpreted
Process Errors:
- Steps you skipped and then had to go back
- Times the user had to correct you
- Solutions you proposed that the user rejected
- Moments where you were too verbose or unclear
Tooling Errors:
- Wrong tool for the task (e.g., grep when you should have used an LSP tool)
- Inefficient searches that took multiple attempts
- Lack of use of available tools that would have been more efficient
Step 2: Extract the Universal Lesson
For EACH error identified, ask yourself:
- What was the ROOT CAUSE? (not the symptom)
- What PRINCIPLE did I violate? (not what command failed)
- How does this apply to ANY project? (not just this one)
- What will I do DIFFERENTLY next time? (concrete action)
Transforming error to lesson:
ERROR: "I assumed the table had column X and the query failed"
↓
ROOT CAUSE: Didn't verify schema before writing code
↓
PRINCIPLE: Verify before assuming
↓
LESSON: "Always query real schema/structure before writing queries or code that depends on it"
↓
CATEGORY: DatabaseStep 3: Categorize the Reflection
CRITICAL: Each reflection MUST go under the appropriate section in the file.
Available sections (you can create new ones if none apply):
| Section | Content |
| Database | Schema, queries, migrations, connections, transactions |
| API | Endpoints, validation, responses, authentication, HTTP |
| Frontend | React, stores, components, TypeScript types, UI/UX |
| Tooling | Tool usage (LSP, grep, git), commands, IDEs |
| Cleanup | Code deletion, refactoring, dead code, deprecations |
| Architecture | Patterns, structure, dependencies, system design |
| Communication | Clarification with user, assumptions, requirement interpretation |
If a reflection applies to multiple categories, choose the MOST SPECIFIC one to the error made.
Step 4: Reflection Format
One line per reflection. It must be:
- Actionable: Indicates WHAT TO DO, not just what to avoid
- Universal: Applies to any project/language/context
- Specific in action: No vagueness like "be more careful"
GOOD examples:
- Use LSP tools to find definitions before assuming code locations
- Verify database schema before writing queries that assume structure
- Read existing files before proposing modifications to understand contextBAD examples (DO NOT write like this):
- Be more careful (vague)
- The users table didn't have email (specific)
- Review code better (doesn't say how)Step 5: Smart Deduplication
BEFORE writing, read existing reflections in ALL sections:
- If identical reflection exists → DO NOT add
- If similar reflection exists (same idea, different wording) → IMPROVE the existing one
- If truly new → Add under the correct section
To improve an existing one, use Edit tool to replace the line with improved version.
Step 6: Write to File
Use Edit tool to add reflections UNDER THE CORRECT SECTION.
Process:
- Identify the section where the reflection goes
- Find that section in the file (## Database, ## API, etc.)
- Add the reflection as a new bullet under that section
- If the section doesn't exist, CREATE it in alphabetical order
Edit example:
# If the reflection is about Database, find:
## Database
- [existing reflections]
# And add the new one:
## Database
- [existing reflections]
- [new reflection here]Final Validation
Before saving each reflection, verify:
- Is it actionable? (says what TO DO)
- Is it universal? (applies to any project)
- Does it avoid specific names? (doesn't mention specific tables, functions, files)
- Is it in the correct section?
- Does it not duplicate an existing reflection?
If any answer is NO → rewrite, recategorize, or discard it.
Expected Output
When finished, briefly list:
- Errors identified in the session
- Reflections added/improved (indicating section)
- If there were no significant errors, state it honestly
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
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.

