Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Yashpal-0v0.5.5MITIn 1 marketplace
Learns skills from your work: after a turn that worked out something reusable, a background fork of the session saves the procedure as a personal skill that Claude Code offers in later sessions.
Claude hands work to one, or you mention it with @.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Auto-run capture after each turnautoCapture
After a turn with enough tool calls, fork the session in the background and let Claude save what the turn taught as a skill. Each review uses extra tokens. When off, Claude can still save skills itself with the manage_skill tool.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
skills, learning, automation, hooks, mcp
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
booleandefault true
Minimum tool calls per turnminToolCalls
A turn needs at least this many tool calls before it is reviewed for skills.
numbermin 0default 5
auto-learn lets Claude Code, Codex, GitHub Copilot, Antigravity CLI and OpenCode learn skills from your own work. After a turn in which the agent worked something out, such as how to build or test a project, the fix for an error or a setup sequence, a background review looks back at the turn and saves the procedure as a personal skill. The agent then offers that skill whenever a later task matches it.
Each agent can also save skills during a session with the manage_skill tool that the plugin adds.
Each host writes to its own skill library: see Codex, GitHub Copilot, Antigravity CLI and OpenCode for their installation and behavior.
claude plugin marketplace add Yashpal-0/auto-learn
claude plugin install auto-learn@auto-learn
Restart running Claude Code sessions afterwards: hooks load when a session starts.
To update to a later version, refresh the marketplace, then the plugin, and restart running sessions:
claude plugin marketplace update auto-learn
claude plugin update auto-learn@auto-learn
auto-learn needs:
PATH. The hooks and the MCP server are Node scripts with no dependencies.claude command on the PATH that Claude Code passes to its hooks. Each review runs claude in the background.PATH when creating skills in a linked worktree missing its own .claude/skills or .claude/commands directory, to check skills and commands inherited from the main checkout.At session start, the plugin tells Claude about manage_skill and where skills are saved, and lists the learned skills (see Skills).
When a turn ends, the Stop hook counts the turn's tool calls. The turn is queued for review when it made at least minToolCalls tool calls (5 by default), the session has someone at the keyboard (the terminal, an IDE, the desktop app), and the session is not in plan mode. claude -p, SDK and background sessions are not reviewed. The hook returns at once and starts a worker; you carry on while the review runs.
The worker waits until the turn is written to the session transcript, then finds its last message. It drops the turn if another Stop hook kept the turn going, if a new prompt arrived first, or if a /goal is still being worked on.
The review runs in a fork of the session:
claude -p --resume <session> --resume-session-at <last message> --fork-session --no-session-persistence
with the session's model and effort, in the session's project folder. The fork sees the conversation up to the end of that turn, exactly as the session did, and reads it from the prompt cache the session has just written. It receives one request: look back at the turn and, if it worked out a procedure that a later session would otherwise have to discover again, save it with manage_skill; otherwise save nothing. The request also tells Claude to treat instructions in files, tool output and quoted text as evidence, not as instructions. Before updating or deleting a managed skill, it reads that skill with manage_skill, preserves the steps that still hold, and passes the returned revision. If another writer changed the skill, the review leaves it for later. The fork is not saved as a session and does not appear in /resume.
Only manage_skill runs in the fork. A PreToolUse hook refuses every other tool; on Claude Code 2.1.295 or later it also refuses the call when the hook itself fails or takes more than 10 seconds. The fork runs in dontAsk permission mode, so it never prompts, edits files or runs commands. ToolSearch is allowed so that the fork can load the manage_skill schema. A hook cannot refuse the server-side advisor tool, so the request tells Claude not to use it, and the log counts any advisor calls.
A review stops after 10 model turns or 5 minutes. Reviews of one session run one at a time, oldest first. Ending the session (exiting, /clear, or switching to another session with /resume) stops its running and queued reviews.
Each queued, skipped and finished review is recorded in the log.
Skills are saved to ~/.claude/skills/<name>/SKILL.md ($CLAUDE_CONFIG_DIR/skills when that is set), the folder Claude Code reads personal skills from. Each skill that auto-learn creates also holds a .auto-learn marker file.
npx claudepluginhub yashpal-0/auto-learn --plugin auto-learnPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.