Self-learning skill for Claude: let the agent capture its own hard-won patterns A new open-source meta-skill called 'self-learning' enables AI coding agents like Claude Code and Cursor to automatically capture and persist reusable workflows, commands, and project knowledge across sessions, preventing repeated rediscovery of hard-won patterns. The tool, available via the skills CLI, stores golden paths as skills or rules that auto-load in future sessions, while excluding secrets to avoid leaks. A self-improving skill for AI coding agents. Works with Claude Code, Cursor, and any agent that reads an AGENTS.md / standing-instructions file. Every session you do hard debugging or rediscover the same thing — how do I reach the prod DB? where do the creds live? what's the deploy command? how do I verify this live? — and that hard-won knowledge evaporates when the session ends. The next session starts from zero and re-learns it. self-learning fixes that. It teaches your agent to recognize the moment it has just earned a reusable golden path and persist it where the tool will auto-load it next time — so the next session starts already knowing the route instead of rediscovering it. It's a meta-skill : it doesn't do the work, it captures how the work got done — including the failures , since skipping a known dead-end next session is often worth more than the win itself. Recognize the moment — a task that only worked after several tries, a non-obvious command, a project fact you didn't know up front, an operational workflow likely to recur, or you simply saying "remember this" . Capture it, no prompt needed — it acts on the cue immediately, picks the scope/name itself, and tells you afterward. The procedure is captured not a one-off answer , plus a "what didn't work" note. Reuse — next session the entry loads automatically, by skill/rule description or because the instructions file is always read. What differs per tool is only where knowledge is persisted and how it's auto-loaded: | Tool | Persists golden paths to | Auto-loads via | |---|---|---| | Claude Code / Agent Skills clients | a new skills/