everything-copilot-cli
Copilot instructions47 starsChanged 4 months agoMITView on GitHub
The equivalent of CLAUDE.md for the GitHub Copilot CLI ecosystem. This file tells Copilot CLI how to understand, navigate, and contribute to this repository. everything-copilot-cli is the definitive guide and configuration system for GitHub Copilot CLI. It provides a structured collection of agents, skills, rules, orchestration patterns, MCP configurations, and multi-AI workflows. This is a reference repository — it defines conventions, patterns, and reusable configurations that projects can adopt. When working in this repo, Copilot CLI should treat content as…
In this repository111 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- ai-visibilitySkill
- content-strategySkill
- seoSkill
- actions-debuggingSkill
- agentic-engineeringSkill
- autopilot-patternsSkill
- background-agentSkill
- context-primeSkill
- copilot-memorySkill
- cross-session-memorySkill
- ecosystem-intakeSkill
- fleet-parallelSkill
- github-code-searchSkill
- github-codespaces-efficiencySkill
- github-issue-triageSkill
- github-pr-workflowSkill
- ide-switchingSkill
- knowledge-curatorSkill
- mcp-builderSkill
- mcp-ecosystemSkill
- multi-model-strategySkill
- plan-mode-masterySkill
- scope-guardSkill
- session-managementSkill
- stack-detectorSkill
- sub-agent-sandboxingSkill
- task-intake-routerSkill
- team-plannerSkill
- token-cost-optimizerSkill
- api-and-interface-designSkill
- code-reviewSkill
- context-engineeringSkill
- cpp-debuggingSkill
- deprecation-and-migrationSkill
- diagnoseSkill
- fix-build-errorsSkill
- fix-github-issueSkill
- implementSkill
- improve-codebase-architectureSkill
- nestjs-prismaSkill
- nextjs-prismaSkill
- performance-optimizationSkill
- pr-multi-perspective-reviewSkill
- prototypeSkill
- react-vitestSkill
- receiving-code-reviewSkill
- refactor-cleanSkill
- reviewSkill
- skill-creatorSkill
- source-driven-developmentSkill
- spec-driven-developmentSkill
- systematic-debuggingSkill
- tdd-workflowSkill
- zoom-outSkill
- add-to-changelogSkill
- api-documentationSkill
- architecture-decisionsSkill
- code-tourSkill
- The first 60 shown.
The file
Show its rules and text
We split this COPILOT-INSTRUCTIONS.md into the rules it gives an agent
21 rules. About 0 are common, 11 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Write like a teammate handing off to another builder:
- Distinctive: line 24
prefer short, dense explanations over marketing language
- Distinctive: line 25
avoid AI self-reference, consultant filler, and vague encouragement
- Distinctive: line 26
when a next step matters, name it plainly instead of hedging
- Distinctive: line 55
Escalation Policy: When to hand off to another agent or human
- Very specific: line 140
Create a Markdown file in agents/ with this structure:
- Very specific: line 184
Create a SKILL.md file inside a subdirectory in the appropriate skills/<category>/ folder:
- Very specific: line 213
Create a Markdown file in the appropriate rules/ subdirectory:
- Very specific: line 252
Create files in orchestration/patterns/:
- Very specific: line 373
How: Use CLAUDE.md (this repo's equivalent: COPILOT-INSTRUCTIONS.md) to provide project context.
- Distinctive: line 396
How: Use the agent types and orchestration patterns defined in this repository.
- Very specific: line 400
Use MCP configurations in mcp-configs/ to bridge between AI systems:
- Very specific: line 425
All contributions must follow the rules defined in rules/:
- Very specific: line 429
Commit format: Use conventional commits (feat:, fix:, docs:, chore:)
- Very specific: line 430
File naming: Use kebab-case for all Markdown files (e.g., build-error-resolver.md)
- Distinctive: line 431
Frontmatter: All agent, skill, and rule files must include YAML frontmatter
- Distinctive: line 433
Links: Use relative links within the repository
- Distinctive: line 450
Run the validation suite before committing:
- Distinctive: line 466
Internal links: All cross-references resolve to existing files
- Very specific: line 472
Place test files in tests/ using Node.js built-in test runner:
- Distinctive: line 507
Always include the Co-authored-by trailer when Copilot assists:
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Copilot Instructions — everything-copilot-cli
The equivalent of
CLAUDE.mdfor the GitHub Copilot CLI ecosystem. This file tells Copilot CLI how to understand, navigate, and contribute to this repository.
Project Overview
everything-copilot-cli is the definitive guide and configuration system for GitHub Copilot CLI. It provides a structured collection of agents, skills, rules, orchestration patterns, MCP configurations, and multi-AI workflows.
This is a reference repository — it defines conventions, patterns, and reusable configurations that projects can adopt. When working in this repo, Copilot CLI should treat content as configuration and documentation, not application code.
Response Voice
Write like a teammate handing off to another builder:
- lead with the outcome, not process narration
- stay concrete and repository-specific
- prefer short, dense explanations over marketing language
- avoid AI self-reference, consultant filler, and vague encouragement
- when a next step matters, name it plainly instead of hedging
What This Repo Contains
| Directory | Purpose |
agents/ | Agent definitions (persona, tools, model, behavior) |
skills/ | Composable skill modules organized by domain |
rules/ | Behavioral rules (common + language-specific) |
orchestration/ | Multi-agent coordination patterns |
contexts/ | Context definitions for scoped execution |
mcp-configs/ | Model Context Protocol server configurations |
guides/ | Documentation and usage guides |
examples/ | Complete example projects (Next.js, Python, .NET, monorepo) |
scripts/ | Validation, setup, and utility scripts |
tests/ | Configuration validation tests |
Key Concepts
Agents
Agents are personas with defined responsibilities, tool permissions, and behavioral guardrails. Each agent has:
- Identity: Name, role description, expertise areas
- Tools: Which tools the agent can use (e.g.,
grep,edit,powershell) - Model: Recommended AI model (e.g.,
claude-sonnet-4.6,gpt-5-mini) - Behavioral Rules: How the agent should approach tasks
- Escalation Policy: When to hand off to another agent or human
Skills
Skills are composable capabilities that agents can invoke. They are organized by domain:
skills/copilot-exclusive/— GitHub-specific integrations (PRs, Issues, Actions, fleet, background agents)skills/development/— Code generation, refactoring, debuggingskills/documentation/— Doc generation, README updates, API docsskills/security/— Vulnerability scanning, secret detectionskills/testing/— Test generation, coverage analysis, TDD workflowsskills/workflow/— End-to-end development workflows (sprint, security audit, retrospective)skills/product/— Product management (OST framework, feature prioritization, launch strategy)skills/content/— Content strategy and AI visibility (GEO, llms.txt, SEO)
Skills follow the agentskills.io spec: each skill lives in a
skill-name/SKILL.md directory, not a flat .md file. This ensures compatibility with
agy skills install, Codex CLI, and other skill-compatible tools.
See skills/README.md for the full catalog and installation instructions.
Each skill file should include a "When to Use" section describing trigger conditions.
Rules
Rules define behavioral constraints and coding standards:
rules/common/— Universal rules (commit formats, file naming, error handling)rules/languages/— Language-specific rules (TypeScript conventions, Python style, etc.)
Orchestration Patterns
Orchestration defines how multiple agents collaborate:
orchestration/patterns/— Reusable coordination patterns (pipeline, fan-out, review-chain, sub-agent-sandboxing)orchestration/configs/— Configuration for specific orchestration setupsorchestration/examples/— Worked examples of multi-agent workflowsorchestration/skills/— Orchestration-specific skill combinations
Architecture
┌─────────────────────────────────────────────────┐
│ User Request │
└─────────────────────┬───────────────────────────┘
│
▼
┌─────────────────────────────────────────────────┐
│ Orchestration Layer │
│ (patterns/ configs/ — decides agent routing) │
└──────┬──────────┬──────────┬──────────┬─────────┘
│ │ │ │
▼ ▼ ▼ ▼
┌──────────┐┌──────────┐┌──────────┐┌──────────┐
│ Agent 1 ││ Agent 2 ││ Agent 3 ││ Agent N │
│(planner) ││(architect)││(reviewer)││ (...) │
└────┬─────┘└────┬─────┘└────┬─────┘└────┬─────┘
│ │ │ │
▼ ▼ ▼ ▼
┌─────────────────────────────────────────────────┐
│ Skills Layer │
│ (composable capabilities agents can invoke) │
└─────────────────────┬───────────────────────────┘
│
▼
┌─────────────────────────────────────────────────┐
│ Rules Layer │
│ (behavioral constraints & coding standards) │
└─────────────────────┬───────────────────────────┘
│
▼
┌─────────────────────────────────────────────────┐
│ MCP / Tool Layer │
│ (GitHub API, filesystem, build tools, etc.) │
└─────────────────────────────────────────────────┘Working with This Repository
Adding a New Agent
Create a Markdown file in agents/ with this structure:
---
name: agent-name
description: One-line description of what this agent does
agent_type: general-purpose | explore | task | code-review
model: claude-sonnet-4.6 | gpt-5-mini | claude-haiku-4.5
tools:
- grep
- glob
- view
- edit
- powershell
escalation: human | planner | architect
---
# Agent Name
## Role
Detailed description of the agent's purpose and expertise.
## When to Use
- Bullet list of scenarios where this agent is the right choice.
## Behavioral Rules
1. Always do X before Y.
2. Never modify files outside scope Z.
3. Escalate to [other-agent] when [condition].
## Tool Permissions
| Tool | Permission | Notes |
|------|-----------|-------|
| edit | ✅ Allowed | Only within designated directories |
| powershell | ⚠️ Limited | Read-only commands only |
| github API | ✅ Allowed | Full access |
## Example Prompts
- "Break down this feature into implementable tasks"
- "Review this PR for security issues"Adding a New Skill
Create a SKILL.md file inside a subdirectory in the appropriate skills/<category>/ folder:
---
name: skill-name
description: What the skill does
metadata:
category: development | testing | security | documentation | copilot-exclusive | workflow | product | content
---
# Skill Name
## Purpose
What this skill accomplishes.
## When to Use
Describe the conditions under which this skill should be activated.
## Steps
1. First action to take.
2. Second action to take.
3. Validation/verification step.
## Output Format
Describe what the skill produces (files, PR comments, reports, etc.).Adding a New Rule
Create a Markdown file in the appropriate rules/ subdirectory:
rules/common/for universal rules (e.g.,commit-format.md,error-handling.md)rules/languages/for language-specific rules (e.g.,typescript.md,python.md)
---
name: rule-name
scope: common | language-specific
language: typescript | python | go | csharp # only for language-specific
severity: error | warning | info
---
# Rule Name
## Description
What this rule enforces and why.
## Examples
### ✅ Correct
```text
// good example
```
### ❌ Incorrect
```text
// bad example
```text
## Exceptions
When this rule can be relaxed and why.Adding an Orchestration Pattern
Create files in orchestration/patterns/:
---
name: pattern-name
type: pipeline | fan-out | review-chain | iterative
agents:
- agent1
- agent2
- agent3
---
# Pattern Name
## Flow
Describe the coordination flow between agents.
## When to Use
Scenarios where this orchestration pattern applies.
## Agent Responsibilities
| Step | Agent | Action | Output |
|------|-------|--------|--------|
| 1 | planner | Break down task | Task list |
| 2 | architect | Design solution | Architecture doc |
| 3 | code-reviewer | Review implementation | Feedback |
## Example
Worked example showing the pattern in action.Copilot Agent Mode Mapping
Copilot CLI operates in different modes. Here's how they map to this repository's patterns:
Interactive Mode (Default)
Standard question-and-answer with user approval at each step.
- Use for: Exploratory work, learning the codebase, small targeted changes
- Agent mapping: Single agent with human-in-the-loop
- Best agents:
explore, individual specialist agents - Example: "What does the planner agent do?" → reads
agents/planner.md, explains
Plan Mode
Structured planning with a visual plan document for user approval before execution.
- Use for: Multi-step features, refactoring, migration tasks
- Agent mapping: Planner agent creates plan → user approves → execution agents implement
- Best agents:
planner→architect→ specialist agents - Example: "Add a new security scanning skill" → plan created → approved → implemented
Autopilot Mode
Autonomous execution without step-by-step approval.
- Use for: Well-defined tasks with clear acceptance criteria
- Agent mapping: Single agent or pipeline executing without checkpoints
- Best agents:
taskagent for builds/tests,doc-updaterfor docs - Example: "Run all validation scripts and fix any issues" → executes autonomously
Fleet Mode
Parallel task distribution across multiple agents.
- Use for: Large-scale changes, batch operations, independent subtasks
- Agent mapping: Fan-out pattern — multiple agents working simultaneously
- Best agents: Multiple
general-purposeagents in parallel - Example: "Add example configs for all 4 example projects" → 4 parallel agents
Agent Type Usage
Map repository agents to Copilot CLI's built-in agent types:
| Copilot Agent Type | Best For | Repository Agents |
explore | Codebase understanding, file discovery, reading configs | Used by: planner (analysis phase), doc-updater (discovery) |
task | Builds, tests, linting, dependency installs | Used by: build-error-resolver, tdd-guide (test runs) |
general-purpose | Complex multi-step implementation, refactoring | Used by: architect, refactor-cleaner, security-reviewer |
code-review | Reviewing changes, PR feedback | Used by: code-reviewer, security-reviewer |
Agent Type Selection Guide
Is it a read-only question about the codebase?
→ explore agent
Is it running a command (build, test, lint, install)?
→ task agent
Is it reviewing existing changes?
→ code-review agent
Is it implementing something complex?
→ general-purpose agent
Can parts of the work be done independently?
→ fleet mode with multiple agentsMulti-AI Orchestration Guidelines
This repository supports workflows that span multiple AI coding assistants. Use the right tool for each job.
When to Delegate to Claude Code
Claude Code excels at tasks requiring deep reasoning and large context windows (200K tokens):
- Architecture decisions — analyzing entire codebases for structural changes
- Complex refactoring — understanding interconnected dependencies across many files
- Long document generation — comprehensive guides, detailed specifications
- Debugging subtle issues — tracing logic across deep call chains
- Code review with full context — reviewing PRs that touch many files
How: Use CLAUDE.md (this repo's equivalent: COPILOT-INSTRUCTIONS.md) to provide project context. Claude Code reads project instructions automatically.
When to Delegate to Codex
Codex (OpenAI) excels at fast, focused code generation:
- Implementing well-defined functions — clear input/output contracts
- Code transformations — converting between languages, frameworks, or patterns
- Generating boilerplate — CRUD endpoints, test scaffolding, config files
- Quick prototyping — rapid iteration on implementation ideas
How: Provide clear specifications with examples. Codex works best with precise prompts.
When to Keep in Copilot CLI
Copilot CLI is the best choice when GitHub integration matters:
- PR and Issue management — creating, reviewing, commenting on PRs/Issues
- GitHub Actions — debugging workflows, checking CI status
- Repository operations — branch management, commit history, file operations
- MCP-powered workflows — leveraging MCP servers for extended capabilities
- Multi-agent orchestration — coordinating tasks across agent types
How: Use the agent types and orchestration patterns defined in this repository.
MCP Bridges
Use MCP configurations in mcp-configs/ to bridge between AI systems:
- GitHub MCP Server — gives any AI assistant access to GitHub APIs
- Filesystem MCP Server — standardized file access across tools
- Custom MCP Servers — project-specific integrations
┌──────────────┐ ┌─────────────┐ ┌──────────────┐
│ Copilot CLI │────▶│ MCP Bridge │◀────│ Claude Code │
│ (orchestrate)│ │ (shared │ │ (deep │
│ │ │ context) │ │ reasoning) │
└──────────────┘ └─────────────┘ └──────────────┘
▲
│
┌─────────────┐
│ Codex │
│ (fast code │
│ gen) │
└─────────────┘Coding Standards
All contributions must follow the rules defined in rules/:
Common Rules (rules/common/)
- Commit format: Use conventional commits (
feat:,fix:,docs:,chore:) - File naming: Use kebab-case for all Markdown files (e.g.,
build-error-resolver.md) - Frontmatter: All agent, skill, and rule files must include YAML frontmatter
- Line length: Markdown lines should wrap at 100 characters for readability
- Links: Use relative links within the repository
Language-Specific Rules (rules/languages/)
Language rules apply when writing example code or scripts:
- JavaScript/TypeScript: ESM imports, strict mode, no
anytypes - Python: Type hints, PEP 8, f-strings over
.format() - Go: Standard library preferred,
gofmtcompliant - C#/.NET: Nullable reference types enabled, async/await patterns
Testing Standards
Validating Configurations
Run the validation suite before committing:
# Validate all configuration files against schemas
npm run validate
# Lint all Markdown files
npm run lint:md
# Run the full test suite
npm testWhat Gets Validated
- Frontmatter: Required fields present and correctly typed
- Internal links: All cross-references resolve to existing files
- Agent references: Agents referenced in orchestration patterns exist in
agents/ - Skill references: Skills referenced by agents exist in
skills/
Adding Tests
Place test files in tests/ using Node.js built-in test runner:
import { test, describe } from 'node:test';
import assert from 'node:assert/strict';
describe('agent validation', () => {
test('all agents have required frontmatter', async () => {
// Test implementation
});
});Git Workflow
Branching Strategy
main— stable, validated configurationsfeat/<name>— new agents, skills, or patternsfix/<name>— corrections to existing configurationsdocs/<name>— documentation improvements
Commit Convention
Use Conventional Commits:
feat(agents): add security-reviewer agent definition
fix(rules): correct TypeScript rule for strict null checks
docs(guides): add getting-started guide for new contributors
chore(schemas): update agent schema with model fieldAlways include the Co-authored-by trailer when Copilot assists:
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>Pull Request Guidelines
- One concern per PR — don't mix agent additions with rule changes
- Run validation —
npm run validate && npm run lint:md && npm test - Update AGENTS.md — if adding or modifying agents
- Include examples — show how the new configuration is used
- Cross-reference — link related agents, skills, and rules
Quick Reference
| Task | Command / Action |
| Validate configs | npm run validate |
| Lint Markdown | npm run lint:md |
| Run tests | npm test |
| Setup project | npm run setup |
| Add an agent | Create agents/<name>.md with frontmatter |
| Add a skill | Create skills/<category>/<skill-name>/SKILL.md (agentskills.io spec) |
| Add a rule | Create rules/common/<name>.md or rules/languages/<lang>.md |
| Add orchestration | Create orchestration/patterns/<name>.md |
| Add an example | Create files in examples/<project-type>/ |
| Add MCP config | Create mcp-configs/<name>.json |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

