Make AGENTS.md canonical for shared agent instructions; Claude and Gemini
import it. Copilot reads it natively; merge its legacy instructions as content,
never import them.
Source of truth. Code, configuration, and project docs are the source of
truth for project facts. Keep AGENTS.md to durable agent guidance and
important gotchas those sources don't capture; link instead of repeating facts.
WHY/WHAT/HOW are prompts, not required sections.
Inspect root AGENTS.md, CLAUDE.md, GEMINI.md, and
.github/copilot-instructions.md; a file containing only @AGENTS.md or
boilerplate is a stub. Repair both stubs; keep shared guidance in AGENTS.md.
Keep Claude/Gemini-specific notes in matching stubs; Copilot-only notes in its
file, never imported.
Approval gate. Never write before user confirmation. Preserve user wording;
don't drop content without agreement. When unsure, keep both versions in
AGENTS.md and flag overlap. Wrap Markdown at 80 columns.
Choose a mode
- Reconcile (default, one shot):
AGENTS.mdis missing, weaker than another file, or either stub does not import it. Read RECONCILE.md and PROJECT-STEWARDSHIP.md to capture WHY and check conflicts; follow the decision table. - Update (repeatable):
AGENTS.mdhas content and both stubs import it. Read UPDATE.md and run its full audit and lesson harvest. For a full Update, also read PROJECT-STEWARDSHIP.md. --learn: run only the lesson step against existingAGENTS.md, still requiring one confirmation. Read the--learnsteps. IfAGENTS.mdis missing, say so and choose a mode normally.
Before writing, read the verification checklist. After any write, complete the verification checklist.
Run and finish
Follow the selected guide. Report the selected mode, which instruction files were inspected, and the findings from each applicable check. Cite evidence for freshness findings. State which file is canonical and what moved or was created. If no changes are needed, explain why the existing setup passed the applicable checks; don't report only that instructions already exist or that no files changed.


