Skip to main content
skill Claude Code GitHub Copilot

continual-learning — skill for Claude Code and GitHub Copilot: agent

A skill that teaches AI agents to remember mistakes, tool patterns, and project conventions between sessions. Without it, each run starts fresh; with it, agents compound their knowledge and work more accurately.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add microsoft/skills --skill continual-learning -a claude-code
Open on GitHub

What continual-learning does

continual-learning maintains two memory layers: global (which tools fail, general coding habits) and local (this project's conventions, team mistakes). The agent learns through three channels — automatic hooks track tool failures, the agent writes insights directly via SQL, or you add knowledge manually as markdown. Memory self-prunes: entries older than 60 days with low usage are removed, but high-value learnings persist. Setup is one step: copy the hooks folder to .github/hooks/ and it initializes on first run. Specificity matters — instead of "use the right parameter," write "parameter is semantic_configuration_name=, not semantic_configuration=."

What it helps with

  • Track which tools frequently fail in your project
  • Preserve project conventions and code patterns across agent sessions
  • Collect and organize insights from agent failures automatically
  • Prevent repeated mistakes without explicit rules

Example prompts for the agent

  • Install continual-learning, run the agent once — it starts collecting data on what breaks
  • Add to your project memory: "Use DefaultAzureCredential for all Azure auth" — the agent remembers it next session
  • After a few runs, ask the agent: what patterns have you learned? It surfaces insights from learnings.db

How to install continual-learning

1Skills CLI (Vercel)

npx skills add microsoft/skills --skill continual-learning -a claude-code

2Manually: put the files in place

~/.claude/skills/continual-learning/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/continual-learning/

From the same set18

The whole set →
Planner microsoft Planner explores requirements and the codebase, then drafts an implementation plan without changing files. Use it when you want to map the work before coding starts. Claude Code GitHub Copilot 406installs frontend-design-review microsoft This skill reviews and creates frontend interfaces with checks for design quality, accessibility, and design-system use. Use it for UI reviews, PRs, and responsive layouts. Claude Code GitHub Copilot 237installs deploy microsoft Executes validated IaC templates against Azure and verifies resource health. Runs automatically at Phase 4 of the azure-app-onboard orchestrator. Claude Code GitHub Copilot 126installs microsoft-docs microsoft microsoft-docs answers questions about Microsoft technologies using official documentation. Use it for tutorials, settings, quotas, limits, and concept explanations. Claude Code GitHub Copilot 118installs cloud-solution-architect microsoft Equips your AI agent with Azure Architecture Center guidance. It helps select architecture styles and validate system designs against Well-Architected Framework pillars. Claude Code GitHub Copilot 117installs mcp-builder microsoft Guide for building Model Context Protocol servers in TypeScript, Python, or C# to connect LLMs with custom APIs. Claude Code GitHub Copilot 108installs skill-creator microsoft A guide for creating and updating AI coding skills, with a focus on Azure SDKs and Microsoft Foundry. Use it when a skill needs a clear structure. Claude Code GitHub Copilot 106installs copilot-sdk microsoft Builds programmatic applications using the GitHub Copilot SDK in Node.js, Python, Go, and .NET. Helps configure sessions, tools, and streaming. Claude Code GitHub Copilot 76installs

Similar

dotnet-mcp-builder official github Build MCP servers and basic clients in C#/.NET with ModelContextProtocol 2.x. Use the skill when an agent needs to add MCP support to a .NET project. GitHub Copilot 152installs figma-design-to-code official Figma Guides an agent through implementing a Figma node in a project’s existing stack. Use it before calling get_design_context. CX Codex GP ChatGPT 30installs google-docs official OpenAI This skill creates, edits, adapts, and checks Google Docs while preserving templates, structure, and styling. Use it for documents with tabs, tables, and controlled fields. CX Codex GP ChatGPT 22installs figma-use-motion official Figma Adds use_figma context for Figma node animation, covering keyframes, easing, animation styles, and timeline duration. CX Codex GP ChatGPT 5installs figma-use-figjam official Figma This skill gives Codex FigJam-specific context for Figma’s MCP tools. Use it when an agent must inspect or edit a FigJam board. CX Codex GP ChatGPT 5installs build-report official Data Analytics Maintainers Builds analytical reports with findings, tables, and visuals for executives, product teams, or technical audiences. CX Codex GP ChatGPT 4installs setup-matt-pocock-skills Matt Pocock This skill configures a repository for Matt Pocock's engineering skills by setting its issue tracker, triage labels, and domain docs layout. Run it before using the other skills. Claude Code 1,052,851installs to-tickets Matt Pocock Turns a plan, spec, or conversation into small end-to-end tickets with explicit blockers. Use it to agree on the work breakdown before tickets go to a tracker. Claude Code 711,230installs

Questions about continual-learning

How do I install continual-learning in Claude Code?

Run npx skills add microsoft/skills --skill continual-learning -a claude-code twice, then verify the file appears at ~/.claude/skills/continual-learning/SKILL.md.

What does continual-learning do?

It teaches agents to remember tool failures, project conventions, and common mistakes. Memory lives in two databases: global (follows you across projects) and local (tied to the repo).

What's the difference between global and local memory?

Global memory (~/.copilot/learnings.db) holds general patterns — unstable tools, your typical coding style. Local memory (.copilot-memory/learnings.db) stores this repo's specifics: code conventions, your team's mistakes, parameter names.

Source text

SKILL.md · MIT
---
name: continual-learning
description: Guide for implementing continual learning in AI coding agents — hooks, memory scoping, reflection patterns. Use when setting up learning infrastructure for agents.
---

# 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):
```bash
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:
```sql
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:
```markdown
# .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

© microsoft · MIT · microsoft/skills

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor