Software DevelopmentOfficial · microsoft

Continual Learning skill for Claude

Guide for implementing continual learning in AI coding agents — hooks, memory scoping, reflection patterns.

When Claude uses it

Use when setting up learning infrastructure for agents.

Continual Learning SKILL.md

The full skill file from microsoft/skills (MIT).

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 (one step):

cp -r hooks/continual-learning .github/hooks/

Auto-initializes on first session. No config needed.

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-specific conventions
  • Common mistakes for this codebase
  • Team preferences

How Learnings Get Stored

Automatic (via hooks)

The hook observes tool outcomes and detects failure patterns:

Session 1: bash tool fails 4 times → learning stored: "bash frequently fails"
Session 2: hook surfaces that learning at start → agent adjusts approach

Agent-native (via store_memory / SQL)

The agent can write learnings directly:

INSERT INTO learnings (scope, category, content, source)
VALUES ('local', 'convention', 'This project uses Result<T> not exceptions', 'user_correction');

Categories: pattern, mistake, preference, tool_insight

Manual (memory files)

For human-readable, version-controlled knowledge:

# .copilot-memory/conventions.md
- Use DefaultAzureCredential for all Azure auth
- Parameter is semantic_configuration_name=, not semantic_configuration=

Compaction

Learnings decay over time:

  • Entries older than 60 days with low hit count are pruned
  • High-value learnings (frequently referenced) persist indefinitely
  • Tool logs are pruned after 7 days

This prevents unbounded growth while preserving what matters.

Best Practices

  1. One step to install — if it takes more than cp -r, it won't get adopted
  2. Scope correctly — global for tool patterns, local for project conventions
  3. Be specific — "Use semantic_configuration_name=" beats "use the right parameter"
  4. Let it compound — small improvements per session create exponential gains over weeks

How to install Continual Learning

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit microsoft/skills/.github/skills/continual-learning#main ~/.claude/skills/continual-learning

Codex

npx degit microsoft/skills/.github/skills/continual-learning#main ~/.codex/skills/continual-learning

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+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 Continual Learning in Claude Code?

Copy the skill folder into ~/.claude/skills/continual-learning, for example with "npx degit microsoft/skills/.github/skills/continual-learning#main ~/.claude/skills/continual-learning". Claude Code loads it automatically and uses it when a task matches.

+Does Continual Learning work with ChatGPT or Codex?

Yes. Continual Learning uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/continual-learning. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Continual Learning free?

Continual Learning is published on GitHub by microsoft under the MIT license, which allows free use.

Related software development skills

  1. Code Review

    Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's…

    mattpocock/skills★ 327k
  2. Using Agent Skills

    Discovers and invokes agent skills. Use when starting a session, or when you need to decide which skill or workflow applies to the piece of…

    addyosmani/agent-skills★ 119k
  3. Build

    Fully automate a coding task with make-plan, do, and babysit.

    thedotmack/claude-mem★ 118k
  4. Copilot Sdk

    Official

    Build applications powered by GitHub Copilot using the Copilot SDK.

    microsoft/skills★ 3.2k
  5. Debugview

    Official

    Sysinternals DebugView CLI (DbgViewCli) for capturing and analyzing usermode and kernel-mode Windows debug output from the command line.

    microsoft/skills★ 3.2k
  6. Declarative Agent Developer

    Official

    Create, build, deploy, and localize declarative agents for M365 Copilot and Teams.

    microsoft/skills★ 3.2k
  7. Entra Agent Id

    Official

    Microsoft Entra Agent ID (preview) for creating OAuth2-capable AI agent identities via Microsoft Graph beta API.

    microsoft/skills★ 3.2k
  8. Fastapi Router Py

    Official

    Create FastAPI routers with CRUD operations, authentication dependencies, and proper response models.

    microsoft/skills★ 3.2k
  9. Install Atk

    Official

    Install or update the M365 Agents Toolkit (ATK) CLI and VS Code extension.

    microsoft/skills★ 3.2k

See all software development skills →

More skills from microsoft

  1. Cost Analysis

    Official

    Analyze actual Azure spend, bill changes, and AKS or AI costs.

    microsoft/skills★ 3.2k
  2. Cost Estimation

    Official

    Forecast Azure spend and price planned resources or workloads.

    microsoft/skills★ 3.2k

All skills by microsoft →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.