reflect
Skill4 starsChanged 3 months agoApache-2.0View on GitHub
End-of-task reflection - mine THIS session for corrections and friction, then make surgical bounded edits to lessons.md (and only lessons.md). Use at the end of a task, after the user corrected you, or when invoked as /reflect.
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 repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .codex/AGENTS.mdAGENTS.md
- api-ts/CLAUDE.mdCLAUDE.md
- bot/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- showcase/CLAUDE.mdCLAUDE.md
- webapp/CLAUDE.mdCLAUDE.md
- gitbook/llms.txtllms.txt
- suwappubot-conventionsSkill
- aegis-goalSkill
- design-iterateSkill
- ethglobal-goalSkill
- evolveSkill
- goalSkill
- handoffSkill
- redesign-existing-projectsSkill
- suwappubot-conventionsSkill
- design-taste-frontendSkill
- suwappuSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 98 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Mine the session you are in: Look for, in priority order:
- Distinctive: line 20
If the session contains none of these, say so and stop — do not invent lessons.
- Very specific: line 22
Check for an existing lesson first: Read .claude/harness/lessons.md.
- Very specific: line 33
If the lesson you're touching has been edited 3+ times, it is not being absorbed as prose — flag it in your reply as a candidate for …
- Very specific: line 41
Must PASS. Then commit just that file: HUSKY=0 git add .claude/harness/lessons.md && HUSKY=0 git commit -m "harness(reflect): <lesson …
- Distinctive: line 43
Do not push unless the user asked or you are already pushing other work.
“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
/reflect — capture what this session taught us
The capture half of the self-improving harness (docs/harness/self-improving.md).
/reflect writes lessons; /evolve changes behavior artifacts (CLAUDE.md,
hooks, skills, agents). Do not edit anything except .claude/harness/lessons.md here.
Procedure
- Mine the session you are in. Look for, in priority order:
- Explicit user corrections ("no, do X", "I told you", repeated instructions).
- Tool-call failures you retried more than once (wrong flags, wrong paths, wrong service, permission denials).
- Anything you discovered the hard way about this repo/deploy that isn't written down (a URL, a quirk, a command that works). If the session contains none of these, say so and stop — do not invent lessons.
- Check for an existing lesson first. Read
.claude/harness/lessons.md.- Same lesson exists → do nothing (or sharpen its wording in place).
- Related lesson exists → merge into it rather than adding a sibling.
- New → add under
## Rules(behavior) or## Facts(environment memory), using the file's format. Max 3 lines per lesson.
- Respect the budget. Cap is 25 lessons. At cap: merge or evict the least-valuable lesson in the same edit. Never push the file over cap.
- Recidivism check. Run
git log --oneline -- .claude/harness/lessons.md | head -20. If the lesson you're touching has been edited 3+ times, it is not being absorbed as prose — flag it in your reply as a candidate for/evolveto promote into an enforcing artifact (hook, skill, or CLAUDE.md rule). - Gate, then commit.
Must PASS. Then commit just that file:python3 scripts/harness/harness_lint.pyHUSKY=0 git add .claude/harness/lessons.md && HUSKY=0 git commit -m "harness(reflect): <lesson title>"Do not push unless the user asked or you are already pushing other work.
Output
Reply with: lessons added/merged/evicted (titles only), any recidivism flags, and lint result. Keep it under 6 lines.
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.

