copilot-memory
Use when you need to understand, review, or curate GitHub Copilot's repository-level memory — the persistent facts Copilot reuses across CLI, cloud agent, and code review for the same repository
Best use case
copilot-memory is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Use when you need to understand, review, or curate GitHub Copilot's repository-level memory — the persistent facts Copilot reuses across CLI, cloud agent, and code review for the same repository
Teams using copilot-memory should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/copilot-memory/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How copilot-memory Compares
| Feature / Agent | copilot-memory | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Use when you need to understand, review, or curate GitHub Copilot's repository-level memory — the persistent facts Copilot reuses across CLI, cloud agent, and code review for the same repository
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Copilot Memory Copilot Memory is GitHub Copilot's repository-level memory layer. It lets Copilot learn durable facts about a codebase over time and reuse them across Copilot CLI, Copilot cloud agent, and Copilot code review. ## Why This is Copilot-Exclusive This is not the same thing as session history: - **`cross-session-memory`** is your local CLI session history and artifacts - **Copilot Memory** is repository-scoped memory that Copilot validates and reuses across products Copilot Memory is unique because it spans multiple Copilot surfaces for the same repository and is managed through GitHub's Copilot settings and repository controls. ## When to Use - When Copilot keeps rediscovering the same repository conventions from scratch - When you want to review or delete stale memories for a repository - When a stable project pattern should be reinforced through durable, validated repository context - When you need to distinguish repository memory from local session history ## When NOT to Use | Instead of copilot-memory | Use | |---------------------------|-----| | You need to recover what happened in earlier CLI sessions | `cross-session-memory` | | You want to promote a lesson into repo docs or instructions manually | `knowledge-curator` | | You need one-session scratch state or todos | `session-management` | ## What Copilot Memory Does Copilot Memory stores repository-specific facts that Copilot infers while working in the repo. Important properties: - repository-scoped, not personal chat memory - validated against current code citations before reuse - shared across Copilot CLI, Copilot cloud agent, and Copilot code review for the repository - automatically deleted after 28 days unless refreshed by later validated use ## Workflow ### 1. Confirm memory is enabled Copilot Memory availability depends on plan and policy: - Copilot Pro / Pro+ users have it enabled by default - organizations and enterprises can enable or disable it centrally Before relying on it, verify the feature is enabled for the user or organization. ### 2. Treat memory as validated repository knowledge Copilot does not blindly trust old memories. It checks the cited code locations against the current codebase before using a memory. That means: - stable patterns are good candidates for memory reuse - stale or contradicted patterns should not be relied on - durable project rules should still live in repo docs and instructions ### 3. Review and curate memories on GitHub Repository owners can review stored memories on GitHub and delete ones that are wrong, outdated, or misleading. Use this when: - Copilot keeps repeating a bad assumption - a repository convention changed - a temporary migration pattern should not keep influencing future work ### 4. Reinforce good memory with stable source material If you want Copilot to keep learning the right things: - keep repository instructions accurate - keep ADRs and reference docs current - let Copilot work against canonical code paths, not temporary experiments Copilot Memory works best when the repository already has reliable evidence to cite. ### 5. Keep secrets and temporary states out of memory candidates Do not rely on Copilot Memory for: - secrets, tokens, or credentials - temporary migration states - experiments that are not meant to become standard practice Those belong in secure systems, ephemeral notes, or not in Copilot context at all. ## Copilot Memory vs Local Session History | Concern | Copilot Memory | Cross-session session history | |---------|----------------|-------------------------------| | Scope | Repository-wide Copilot memory | Local CLI session history | | Shared by | CLI, cloud agent, code review | Your local Copilot CLI sessions | | Storage model | GitHub-managed repository memory | Local session data and `session_store` | | Retention | 28 days unless refreshed | Local historical session record | | Best use | Stable repository patterns | Recovering past work and artifacts | ## Common Rationalizations | Rationalization | Reality | |----------------|---------| | "If Copilot learned it once, the docs no longer matter." | Durable repo docs still matter because memory is validated against the codebase and can expire. | | "Memory and session history are basically the same." | They solve different problems and live at different layers. | | "Any repeated pattern should become memory." | Temporary or incorrect patterns should be reviewed or deleted, not reinforced. | ## Red Flags - Copilot repeats a repository rule that no longer matches the current codebase - Team members assume session history and repository memory are interchangeable - Temporary migration artifacts are being treated as durable project conventions - Owners never review memories even after major refactors or policy changes ## Team Considerations - Admins control availability under **Repository Settings > Copilot > Memory** - Memory is repository-scoped, not user-scoped — all Copilot surfaces for the same repo share the same memory layer - To seed shared patterns explicitly, keep authoritative conventions in repo docs and instructions; Copilot learns from those as the canonical source ## Verification - [ ] The team can explain the difference between Copilot Memory and local session history - [ ] Stable conventions still live in instructions or repo docs, not only in memory - [ ] Incorrect or stale memories are reviewed and deleted on GitHub when needed - [ ] Sensitive or temporary information is not being treated as a memory candidate ## See Also - [`cross-session-memory`](../cross-session-memory/SKILL.md) — recover prior CLI session context - [`knowledge-curator`](../knowledge-curator/SKILL.md) — decide what belongs in durable project guidance - [`context-prime`](../context-prime/SKILL.md) — load durable repository context at session start
Related Skills
cross-session-memory
Use when you need to recover context, decisions, or artifacts across multiple Copilot CLI sessions — search prior session history and resume with the right files, notes, and state.
verification-before-completion
Use before claiming any task is done — run the exact command that proves the fix works, read the output, and only then report success.
using-git-worktrees
Use when you need multiple branches checked out at once — create isolated working directories for parallel development without cloning the repository repeatedly
triage
Use when a single issue needs structured triage — classify it, reproduce if needed, request missing information, and leave a durable brief or close-out note in the tracker.
to-issues
Use when a plan, spec, or PRD must become an actionable backlog — break it into thin dependency-aware issues that each deliver a verifiable vertical slice
sprint-workflow
Use when starting a new feature, refactor, or multi-step dev task — runs the full sprint cycle (Think → Plan → Build → Review → Test → Ship → Monitor) using Copilot CLI's plan/autopilot modes.
sprint-retro
Use at the end of a sprint to run a data-driven retrospective — analyzes session history and git metrics to surface what shipped, what slowed you down, and concrete improvements.
security-audit
Use when a codebase needs a formal security audit beyond a quick scan — applies OWASP Top 10 and STRIDE threat modeling from a CSO perspective to surface systemic vulnerabilities.
release
Use when a sprint or feature is complete and ready to ship — tags the version, generates GitHub Release notes, runs rollout or smoke verification, and publishes to npm/PyPI/Docker registries.
prompt-optimizer
Use when a rough prompt, vague idea, or task description needs to become a finished copy-pasteable prompt for a chat-based LLM - rewrite it into one ready-to-send prompt with no blanks, no placeholders, and a clear output shape.
outside-voice
Use when you need an independent second opinion before, during, or after implementation — run challenge, consult, or review mode in a direct builder-to-builder voice
llm-wiki
Use when research or domain knowledge keeps getting rediscovered across sessions — build a supplementary markdown wiki that compounds synthesized knowledge without replacing GitHub or committed project guidance