mirror of
https://github.com/addyosmani/agent-skills.git
synced 2026-10-26 15:05:04 +00:00
docs(copilot): fix agent file naming — use *.agent.md extension
GitHub Copilot requires custom agent files to be named *.agent.md. The previous instructions copied them as *.md, which Copilot silently ignores, so agents would never be available in Copilot Chat. Changes: - Rename all three cp commands to use the .agent.md suffix - Add mkdir -p .github/agents (was missing, cp would have failed) - Add a callout block explaining the naming requirement with a link to the VS Code custom agents docs - Update section heading from "(agents.md)" to "(*.agent.md)" Fixes #179 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
19e49a094d
commit
9cd2ce16e7
1 file changed
+10
-5
+10
-5
@@ -16,15 +16,20 @@ cat /path/to/agent-skills/skills/code-review-and-quality/SKILL.md > .github/skil
|
||||
|
||||
For more details, refer [Creating agent skills for GitHub Copilot](https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/create-skills).
|
||||
|
||||
### Agent Personas (agents.md)
|
||||
### Agent Personas (*.agent.md)
|
||||
|
||||
Copilot supports specialized agent personas. Use the agent-skills agents:
|
||||
|
||||
> **Important:** GitHub Copilot requires custom agent files to be named `*.agent.md`.
|
||||
> Files named `*.md` are silently ignored by Copilot.
|
||||
> See [VS Code custom agents docs](https://code.visualstudio.com/docs/copilot/customization/custom-agents#_custom-agent-file-structure) for details.
|
||||
|
||||
```bash
|
||||
# Copy agent definitions
|
||||
cp /path/to/agent-skills/agents/code-reviewer.md .github/agents/code-reviewer.md
|
||||
cp /path/to/agent-skills/agents/test-engineer.md .github/agents/test-engineer.md
|
||||
cp /path/to/agent-skills/agents/security-auditor.md .github/agents/security-auditor.md
|
||||
# Create the agents directory and copy agent definitions
|
||||
mkdir -p .github/agents
|
||||
cp /path/to/agent-skills/agents/code-reviewer.md .github/agents/code-reviewer.agent.md
|
||||
cp /path/to/agent-skills/agents/test-engineer.md .github/agents/test-engineer.agent.md
|
||||
cp /path/to/agent-skills/agents/security-auditor.md .github/agents/security-auditor.agent.md
|
||||
```
|
||||
|
||||
Invoke agents in Copilot Chat:
|
||||
|
||||
Reference in new issue
Block a user