reflect-on-changes
Skill13 starsChanged 7 months agoApache-2.0View on GitHub
Analyze recent code changes, review findings, and touched docs to codify what changed in the repository. Use when work is complete, after a review/fix loop, or whenever the agent should update docs, commands, skills, and conventions based on recent changes while identifying repeatable problems that should become lint rules or other mechanical checks.
In this repository8 other files it gives its agents.
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 15 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
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 8
Use this skill after meaningful code changes, review passes, workflow updates, or bug-fix loops.
- Distinctive: line 14
Update the docs, commands, or skills that became stale because of the change.
- Distinctive: line 22
Read any rolling review artifacts if present.
- Distinctive: line 23
Read touched docs, commands, skills, configs, and validation scripts before concluding they are up to date.
- Distinctive: line 30
Update the source of truth directly.
- Distinctive: line 31
Prefer updating the most specific doc first, then update summaries.
- Distinctive: line 32
Keep related docs and affected command/skill files in sync.
- Distinctive: line 34
Look for issues that appeared more than once in the same task or across related files.
- Distinctive: line 35
Treat "we had to fix this manually again" as a strong signal for mechanical enforcement.
- Distinctive: line 54
follow-up lint-rule or validation candidates deferred
- Distinctive: line 58
If a rule matters and can be checked mechanically, prefer enforcement over prose.
- Distinctive: line 59
If the same review comment would likely be written again, propose a lint rule or validation script.
- Distinctive: line 60
If the rule is still ambiguous or product-dependent, document it instead of enforcing it.
- Distinctive: line 61
Do not add noisy checks just because something is theoretically automatable.
- Distinctive: line 72
If nothing needed updating, say that explicitly and explain why the current docs/checks already cover the change.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Reflect on Changes
Use this skill after meaningful code changes, review passes, workflow updates, or bug-fix loops.
The goal is to turn local knowledge into durable repository knowledge.
Core Outcomes
- Update the docs, commands, or skills that became stale because of the change.
- Identify repeatable problems that should be enforced mechanically instead of re-reviewed manually.
- Either implement the enforcement immediately when it is low-risk and clearly scoped, or record a concrete follow-up.
Workflow
- Gather the learning scope.
- Inspect the current diff against
mainplus any untracked files that matter. - Read any rolling review artifacts if present.
- Read touched docs, commands, skills, configs, and validation scripts before concluding they are up to date.
- Inspect the current diff against
- Determine what repository knowledge changed.
- conventions
- command behavior
- skill behavior
- validation workflow
- developer expectations
- Update the source of truth directly.
- Prefer updating the most specific doc first, then update summaries.
- Keep related docs and affected command/skill files in sync.
- Mine repeated problems from the change and review history.
- Look for issues that appeared more than once in the same task or across related files.
- Treat "we had to fix this manually again" as a strong signal for mechanical enforcement.
- Choose the right enforcement layer.
- ESLint: AST-shaped TS/JS rules and import/code-organization invariants.
- Nx/module-boundary config: project graph and tag dependency rules.
- Semgrep: security patterns and broader code-shape checks.
- Knip: dead code, unused exports, dependency drift.
- Custom script/CI check: docs freshness, repo metadata, or non-AST structural validation.
- Docs only: judgment-heavy guidance that should not be mechanized yet.
- Act on the best candidates.
- Implement low-risk, well-understood enforcement immediately when it fits the current task.
- Otherwise add a concrete follow-up entry with:
- the repeatable problem
- recommended enforcement layer
- why it is worth mechanizing
- any expected false-positive risk or rollout caveat
- Summarize what was learned.
- docs updated
- commands/skills updated
- enforcement added
- follow-up lint-rule or validation candidates deferred
Heuristics
- If a rule matters and can be checked mechanically, prefer enforcement over prose.
- If the same review comment would likely be written again, propose a lint rule or validation script.
- If the rule is still ambiguous or product-dependent, document it instead of enforcing it.
- Do not add noisy checks just because something is theoretically automatable.
Output
Return a concise learning summary with these sections:
Docs updatedWorkflow or skill changesMechanical enforcement addedDeferred lint-rule candidates
If nothing needed updating, say that explicitly and explain why the current docs/checks already cover the change.
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.

