continual-learning
Guide for implementing continual learning in AI coding agents — hooks, memory scoping, reflection patterns. Use when setting up learning infrastructure for agents.
npx skills add majiayu000/claude-skill-registry --skill continual-learning --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Continual Learning for AI Coding Agents Your agent forgets everything between sessions. Continual learning fixes that. ## The Loop ``` Experience → Capture → Reflect → Persist → Apply ↑ │ └───────────────────────────────────────┘ ``` ## Quick Start Install the hook and initialize project memory (two commands): ```bash cp -r hooks/continual-learning .github/hooks/ mkdir -p .copilot-memory && cp hooks/continual-learning/conventions.md.template .copilot-memory/conventions.md ``` Initialize the SQLite DB: ```bash sqlite3 .copilot-memory/learnings.db " CREATE TABLE IF NOT EXISTS learnings ( id INTEGER PRIMARY KEY AUTOINCREMENT, scope TEXT NOT NULL, category TEXT NOT NULL, content TEXT NOT NULL UNIQUE, source TEXT, created_at TEXT DEFAULT (datetime('now')), hit_count INTEGER DEFAULT 1 ); " ``` All `azure-python-*` agents load `.copilot-memory/conventions.md` and the DB automatically at the start of every session. ## Two-Tier Memory **Global** (`~/.copilot/learnings.db`) — follows you across all projects: - Tool patterns (which tools fail, which work) - Cross-project conventions - General coding preferences **Local** (`.copilot-memory/learnings.db`) — stays with this repo: - Project-spe
- The Loop
- Quick Start
- Two-Tier Memory
- How Learnings Get Stored
- Automatic (via hooks)
- Agent-native (via storememory / SQL)
- Manual (memory files)
- Compaction
- Best Practices
cp -r hooks/continual-learning .github/hooks/
mkdir -p .copilot-memory && cp hooks/continual-learning/conventions.md.template .copilot-memory/conventions.md
sqlite3 .copilot-memory/learnings.db "
CREATE TABLE IF NOT EXISTS learnings (
id INTEGER PRIMARY KEY AUTOINCREMENT,
scope TEXT NOT NULL,
category TEXT NOT NULL,
content TEXT NOT NULL UNIQUE,
source TEXT,
created_at TEXT DEFAULT (datetime('now')),What does the continual-learning skill do?
Guide for implementing continual learning in AI coding agents — hooks, memory scoping, reflection patterns. Use when setting up learning infrastructure for agents.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill continual-learning --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
