Skip to content

Add GitHub Copilot instructions adapter for the .ai folder - #815

Open
KrzysztofPajak with Copilot wants to merge 3 commits into
developfrom
copilot/extend-ai-folder-agents
Open

Add GitHub Copilot instructions adapter for the .ai folder#815
KrzysztofPajak with Copilot wants to merge 3 commits into
developfrom
copilot/extend-ai-folder-agents

Conversation

Copilot AI commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Copilot lacked a dedicated entry point into the .ai/ instruction set, unlike Claude Code which already had CLAUDE.md.

Verified existing adapter

  • Confirmed CLAUDE.md is configured correctly: it uses @AGENTS.md, the documented Claude Code import syntax, which resolves and expands AGENTS.md inline at session start.

Added Copilot adapter

  • Added .github/copilot-instructions.md, the file GitHub Copilot auto-loads for repo-wide custom instructions.
  • Since Copilot instructions don't support @import-style resolution like Claude, the file is a plain-text pointer instructing Copilot to read AGENTS.md in full before working, rather than duplicating any rules.
  • AGENTS.md remains 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.

Co-authored-by: KrzysztofPajak <16772986+KrzysztofPajak@users.noreply.github.com>
Co-authored-by: KrzysztofPajak <16772986+KrzysztofPajak@users.noreply.github.com>
@KrzysztofPajak
KrzysztofPajak marked this pull request as ready for review September 5, 2026 06:36
Copilot AI lite review requested due to automatic review settings September 5, 2026 06:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.md to direct Copilot to read AGENTS.md as the single source of truth.
  • Updated AGENTS.md to include .ai/agents/ in the index and add an “Agent Routing” section.
  • Added four new .ai/agents/*.md adapter 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.

Comment thread AGENTS.md
| `.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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants