self-improve
Installation
SKILL.md
Self-Improve
Review the current conversation to extract durable lessons and route each one to the right knowledge layer.
Step 1: Detect Context
Available destinations:
- Project CLAUDE.md / AGENTS.md — The root
.claude/CLAUDE.md(may be a symlink to../AGENTS.md— resolve it), plus any nestedCLAUDE.md/AGENTS.mdfiles in subdirectories. Claude Code loads a subdirectory's file on demand when files in that subtree are accessed, so a lesson scoped to one subtree belongs in the nearest enclosing file, with the root reserved for project-wide rules. - Auto memory — The project-specific memory directory at
~/.claude/projects/<project-hash>/memory/. ReadMEMORY.mdthere if it exists. - Skills — Project skills at
skills/or.claude/skills/(resolve symlinks)
Discover the project CLAUDE.md/AGENTS.md files (the root file and any nested ones in subdirectories) and read them, then read MEMORY.md. List all skill directories but do not read them yet — Step 2 needs to run first so you know what to look for.
Turbo Skill Detection
Read ~/.turbo/config.json for repoMode. If repoMode is "fork" or "source", turbo skill improvements can be contributed upstream.
If ~/.turbo/repo/ exists, identify which installed skills are turbo skills: