What differentiates on Custom Agents, Agent Skills and Custom Instructions in Copilot CLI #183962
-
Select Topic AreaGeneral Copilot Feature AreaGeneral BodyHi, I’m experimenting with GitHub Copilot CLI and am a bit confused about when to use Custom Agents, Agent Skills, and Custom Instructions, especially for real-world workflows in a codebase. From the docs, my current understanding is roughly: Custom agents: specialized versions of Copilot coding agent that you configure as “profiles” for particular workflows, conventions, tools, etc., and then explicitly select (for example via /agent in Copilot CLI or choosing the agent in the UI). They feel like opinionated, persistent teammates that can own an end‑to‑end workflow for a repo or organization. Agent Skills: folders under .github/skills (or .claude/skills) that package instructions + scripts + examples for specific, reusable capabilities (e.g., “webapp-testing”, “github-actions-failure-debugging”). Copilot decides when to load a skill based on its description and my prompt, and the same skill can be reused across Copilot CLI, Copilot coding agent, and VS Code. Repository custom instructions (.github/copilot-instructions.md): always‑on background guidance that sets project‑wide norms (architecture notes, coding standards, how to build/test/deploy, etc.), which Copilot should generally follow for any task in that repo. What is not clear to me is how GitHub envisions these three working together in practice, especially with Copilot CLI: For something like “diagnose and fix failing GitHub Actions workflows in this monorepo,” should that primarily be: a custom agent configured for CI/debugging, or mostly handled via repository custom instructions with only light use of skills/agents? Are there recommended rules of thumb such as:
In Copilot CLI specifically, are there examples or best practices of how people structure: one or two general‑purpose custom agents that then rely heavily on skills, versus many narrow custom agents, versus mostly skills + repo instructions and minimal use of custom agents? Concrete scenarios or patterns used by the Copilot team or other users would be really helpful Thanks in advance for any clarification or design guidance on how to choose between these options and combine them effectively. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
|
Hii @ans-4175, Here’s a clear way to break this down and explain how these three concepts—Custom Agents, Agent Skills, and Repository Custom Instructions—interact in practice, especially in Copilot CLI: 1. Repository Custom Instructions ( |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
Are agent skills supported by Copilot's review agent? |
Beta Was this translation helpful? Give feedback.
Hii @ans-4175,
Here’s a clear way to break this down and explain how these three concepts—Custom Agents, Agent Skills, and Repository Custom Instructions—interact in practice, especially in Copilot CLI:
1. Repository Custom Instructions (
.github/copilot-instructions.md)Purpose: Always-on, repo-specific guidance.
Use case: Enforce stable, repo-wide norms: coding style, architecture notes, build/test/deploy commands, libraries to prefer/avoid.
Behavior: These instructions are automatically applied whenever Copilot interacts with the repo. They’re passive but persistent.
Rule of thumb:
E…