Add GitHub Copilot instructions adapter for the .ai folder - #815
Open
KrzysztofPajak with Copilot wants to merge 3 commits into
Open
Add GitHub Copilot instructions adapter for the .ai folder#815KrzysztofPajak with Copilot wants to merge 3 commits into
KrzysztofPajak with Copilot wants to merge 3 commits into
Conversation
Co-authored-by: KrzysztofPajak <16772986+KrzysztofPajak@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
KrzysztofPajak
September 5, 2026 06:00
View session
Co-authored-by: KrzysztofPajak <16772986+KrzysztofPajak@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
AGENTS.md currently implies .ai/agents/ entries are directly “invocable” as GitHub Copilot custom agents, but repo agent discovery is .github/agents/, so the documentation should be clarified (or the agents mirrored/moved) to avoid misleading usage.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR adds a GitHub Copilot-specific repository instructions entry point and extends AGENTS.md to document and index a new .ai/agents/ folder containing thin “agent” wrappers that route to existing prompts/workflows.
Changes:
- Added
.github/copilot-instructions.mdto direct Copilot to readAGENTS.mdas the single source of truth. - Updated
AGENTS.mdto include.ai/agents/in the index and add an “Agent Routing” section. - Added four new
.ai/agents/*.mdadapter files that point to the relevant prompt/workflow and checklists.
File summaries
| File | Description |
|---|---|
| AGENTS.md | Documents .ai/agents/ and adds Agent Routing guidance. |
| .github/copilot-instructions.md | Adds Copilot auto-loaded entry point that redirects to AGENTS.md. |
| .ai/agents/test-writer.md | Adds a test-writing agent wrapper pointing to .ai/prompts/write-tests.md. |
| .ai/agents/reviewer.md | Adds a review agent wrapper pointing to .ai/prompts/review-change.md. |
| .ai/agents/plugin-creator.md | Adds a plugin scaffolding agent wrapper pointing to .ai/prompts/create-plugin.md. |
| .ai/agents/bug-fixer.md | Adds a bug-fixing agent wrapper pointing to .ai/workflows/fix-bug.md. |
Review details
Suppressed comments (1)
AGENTS.md:123
- These files are described as "invocable" GitHub custom agents while being stored in
.ai/agents/, but GitHub Copilot only auto-discovers repo agents from.github/agents/. This section should clarify that.ai/agents/is for indexing/documentation unless the agents are mirrored into.github/agents/.
Each file in `.ai/agents/` is a thin, invocable wrapper around one prompt or workflow — same
frontmatter shape as a GitHub custom agent (`name`, `description`, `tools`), kept in `.ai/` rather
than `.github/agents/` so it stays indexed alongside the rest of the single source of truth. Use
them when you want to hand off a whole recurring task instead of following a prompt manually.
- Files reviewed: 6/6 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| | `.ai/checklists/` | cross-cutting gates | verify a change before calling it done | | ||
| | `.ai/examples/` | worked walkthroughs of shipped code | see the rules applied before writing new code | | ||
| | `.ai/templates/` | copy-ready skeletons | scaffold a plugin, theme, or migration | | ||
| | `.ai/agents/` | named sub-agent definitions | invoke a specialist agent for one recurring task | |
Co-authored-by: KrzysztofPajak <16772986+KrzysztofPajak@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Copilot lacked a dedicated entry point into the
.ai/instruction set, unlike Claude Code which already hadCLAUDE.md.Verified existing adapter
CLAUDE.mdis configured correctly: it uses@AGENTS.md, the documented Claude Code import syntax, which resolves and expandsAGENTS.mdinline at session start.Added Copilot adapter
.github/copilot-instructions.md, the file GitHub Copilot auto-loads for repo-wide custom instructions.@import-style resolution like Claude, the file is a plain-text pointer instructing Copilot to readAGENTS.mdin full before working, rather than duplicating any rules.AGENTS.mdremains the single source of truth indexing.ai/(principles, constraints, prompts, workflows, skills, knowledge, glossary, standards, checklists, examples, templates); both adapters stay thin wrappers around it.