From squid
Extracts reusable rules from developer corrections during a coding session and persists them as lessons in AGENTS.md files for use in future sessions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/squid:self-improveThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
After a coding session where the developer reviewed and corrected your work, this skill extracts reusable rules from those corrections and persists them so future sessions benefit — even if context is lost.
After a coding session where the developer reviewed and corrected your work, this skill extracts reusable rules from those corrections and persists them so future sessions benefit — even if context is lost.
Run this before wrapping up the session so improvements are saved while the full conversation is still in context.
Review the entire conversation history and identify every instance where the developer:
Collect each correction as a raw observation with:
For each correction (or group of related corrections), distill a concrete, actionable rule. Good rules are:
Specific and actionable — they tell future-you exactly what to do:
mongomock"make format-fix before committing, not after"httpx over requests for all HTTP calls"Not vague platitudes — these are useless:
Grouped when related — if the developer corrected the same underlying issue multiple times (e.g., kept adding type hints you forgot), that's one rule, not five.
Skipping one-offs — if a correction was purely about a specific bug or a unique situation that won't recur, don't create a rule for it. The fix is already in the code.
For confirmed/validated approaches, frame the rule positively: "Continue using X pattern when Y" with a note that this was validated by the developer.
Show the developer all extracted rules in a numbered list. For each rule, include:
AGENTS.md (project root) — project-wide conventions, architecture decisions, coding standardsAGENTS.md (local, in a subdirectory) — module-specific conventionsfeedback memory — personal preferences about collaboration styleproject memory — project context, goals, constraints, deadlinesAsk the developer to:
Do NOT persist anything without explicit approval.
Before presenting rules, scan for conflicts:
~/.claude/projects/*/memory/MEMORY.md and any referenced memory files that seem relatedIf a new rule contradicts an existing one:
AGENTS.md:line N"If a new rule duplicates an existing one:
AGENTS.md:line N"For each approved rule, persist it to the agreed location:
**Why:** and **How to apply:****Why:** and **How to apply:**End with a brief summary:
npx claudepluginhub iusztinpaul/squid --plugin squidLogs errors, user corrections, missing features, API failures, knowledge gaps, and best practices to .learnings/ markdown files. Promotes key insights to CLAUDE.md and AGENTS.md for AI agent self-improvement.
Captures lessons from code reviews and error corrections as persistent rules. Activates on /evolve or when user says 'we should remember this'.
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.