AGENTS.md through a .github/copilot-instructions.md directive that the init script creates for you.
Install via skill registry
Add the skill
Run the following command in your project root to install the Agent Context System from the Copilot skill registry:
Installing through
npx skills add pins you to the official registry entry, so you get updates to the system automatically. This is the only install method that provides automatic updates.Run the init script
After the skill installs, run the init script to wire up your project:The script creates
.agents.local.md from the template, ensures it is gitignored, and adds a directive to .github/copilot-instructions.md telling Copilot to read AGENTS.md at session start.Edit AGENTS.md
Open
AGENTS.md and fill in your project specifics: name, stack, build commands, and the patterns, boundaries, and gotchas that are true of your codebase. The placeholders in the template are starting points — replace them with real knowledge from your project.This is the highest-leverage edit you will make. The more accurate your AGENTS.md, the more useful every Copilot session becomes.Install manually (no package manager)
If you prefer not to usenpx skills, you can copy the Copilot skill file directly into your repository.
Copy the skill file
Copy If you have not cloned the repository yet, clone it first to a temporary location:
github-copilot/SKILL.md from the Agent Context System repository to your project:Add the copilot-instructions.md directive
Create or update
.github/copilot-instructions.md with a directive pointing Copilot to AGENTS.md:How Copilot reads AGENTS.md
After init, your.github/copilot-instructions.md contains a directive that tells Copilot to read AGENTS.md before starting any task. Copilot loads copilot-instructions.md at the start of every Chat session, so your project knowledge is always in context — no manual retrieval required.
Session logging
Copilot Chat does not expose session-end hooks, so the Agent Context System cannot log sessions automatically. To save what happened in a session to.agents.local.md, tell Copilot at the end of your conversation:
.agents.local.md.