From self-improve-skill
Analyzes session transcripts to extract learnings (corrections, discoveries, pain points) and updates CLAUDE.md, README.md docs. Auto-runs on session end or manual /reflect.
npx claudepluginhub yorrick/claude-code-plugins --plugin self-improve-skillThis skill uses the workspace's default tool permissions.
Analyze a session transcript to extract learnings and apply them as improvements to the project's documentation — CLAUDE.md, README.md, and auto-memory files.
Analyzes Claude Code sessions to improve CLAUDE.md instructions and capture learnings. Quick mode suggests CLAUDE.md tweaks; deep mode reviews problems, patterns, preferences, and gaps.
Extracts generalized learnings from conversation friction points (failed approaches, workarounds) and appends to project's CLAUDE.md with git commit.
Analyzes conversations to identify and propose targeted updates to CLAUDE.md memory files based on user corrections and misunderstandings.
Share bugs, ideas, or general feedback.
Analyze a session transcript to extract learnings and apply them as improvements to the project's documentation — CLAUDE.md, README.md, and auto-memory files.
After a session ends (or when invoked manually), reflect reads through the transcript and looks for:
Then it determines which project files would benefit from capturing these learnings and edits them directly.
When a user runs /self-improve-skill:reflect in conversation:
--non-interactive flag)When invoked by the SessionEnd hook via claude -p "/self-improve-skill:reflect --non-interactive" < transcript.jsonl:
Detect mode by checking if --non-interactive is present in the arguments.
Only edit files within the current repository. Never edit global files like ~/.claude/CLAUDE.md.
Add or update instructions that would prevent repeating mistakes or capture conventions discovered during the session. Examples:
npm run typecheck before committing — the CI check is strict"legacy/ directory uses CommonJS, not ESM"Place new entries in the most relevant existing section. If no section fits, append to the end. Keep entries concise — one line per instruction when possible.
Update if the session revealed outdated setup instructions, missing prerequisites, or incorrect documentation. Only edit sections that are clearly wrong or missing critical information.
~/.claude/projects/.../memory/)Write observations that are useful but not yet confirmed across multiple sessions. Memory is a good staging ground — things can graduate to CLAUDE.md once they prove stable. Organize by topic file (e.g., debugging.md, patterns.md), not chronologically.
Read the transcript looking for these signals:
HIGH confidence (apply in non-interactive mode):
MEDIUM confidence (memory only in non-interactive mode):
LOW confidence (memory only in non-interactive mode):
After a session where the user struggled with TypeScript strict mode:
CLAUDE.md addition:
# TypeScript
- This project uses `strict: true` in tsconfig — always handle null/undefined explicitly
- Prefer `satisfies` over `as` for type assertions
Memory file (memory/typescript.md):
## Strict mode patterns observed
- User prefers `satisfies` operator over type assertions
- Nullable fields in API responses need explicit checks, not non-null assertions