agentleFS
drvossdrvoss/everything-copilot-cli/COPILOT-INSTRUCTIONS.md

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…

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
  1. Distinctive:

    Write like a teammate handing off to another builder:

    line 20
  2. Distinctive:

    prefer short, dense explanations over marketing language

    line 24
  3. Distinctive:

    avoid AI self-reference, consultant filler, and vague encouragement

    line 25
  4. Distinctive:

    when a next step matters, name it plainly instead of hedging

    line 26
  5. Distinctive:

    Escalation Policy: When to hand off to another agent or human

    line 55
  6. Very specific:

    Create a Markdown file in agents/ with this structure:

    line 140
  7. Very specific:

    Create a SKILL.md file inside a subdirectory in the appropriate skills/<category>/ folder:

    line 184
  8. Very specific:

    Create a Markdown file in the appropriate rules/ subdirectory:

    line 213
  9. Very specific:

    Create files in orchestration/patterns/:

    line 252
  10. Very specific:

    How: Use CLAUDE.md (this repo's equivalent: COPILOT-INSTRUCTIONS.md) to provide project context.

    line 373
  11. Distinctive:

    How: Use the agent types and orchestration patterns defined in this repository.

    line 396
  12. Very specific:

    Use MCP configurations in mcp-configs/ to bridge between AI systems:

    line 400
  13. Very specific:

    All contributions must follow the rules defined in rules/:

    line 425
  14. Very specific:

    Commit format: Use conventional commits (feat:, fix:, docs:, chore:)

    line 429
  15. Very specific:

    File naming: Use kebab-case for all Markdown files (e.g., build-error-resolver.md)

    line 430
  16. Distinctive:

    Frontmatter: All agent, skill, and rule files must include YAML frontmatter

    line 431
  17. Distinctive:

    Links: Use relative links within the repository

    line 433
  18. Distinctive:

    Run the validation suite before committing:

    line 450
  19. Distinctive:

    Internal links: All cross-references resolve to existing files

    line 466
  20. Very specific:

    Place test files in tests/ using Node.js built-in test runner:

    line 472
  21. Distinctive:

    Always include the Co-authored-by trailer when Copilot assists:

    line 507

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
COPILOT-INSTRUCTIONS.md

Copilot Instructions — everything-copilot-cli

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.


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

DirectoryPurpose
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, debugging
  • skills/documentation/ — Doc generation, README updates, API docs
  • skills/security/ — Vulnerability scanning, secret detection
  • skills/testing/ — Test generation, coverage analysis, TDD workflows
  • skills/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 setups
  • orchestration/examples/ — Worked examples of multi-agent workflows
  • orchestration/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: task agent for builds/tests, doc-updater for 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-purpose agents 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 TypeBest ForRepository Agents
exploreCodebase understanding, file discovery, reading configsUsed by: planner (analysis phase), doc-updater (discovery)
taskBuilds, tests, linting, dependency installsUsed by: build-error-resolver, tdd-guide (test runs)
general-purposeComplex multi-step implementation, refactoringUsed by: architect, refactor-cleaner, security-reviewer
code-reviewReviewing changes, PR feedbackUsed 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 agents

Multi-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 any types
  • Python: Type hints, PEP 8, f-strings over .format()
  • Go: Standard library preferred, gofmt compliant
  • 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 test

What 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 configurations
  • feat/<name> — new agents, skills, or patterns
  • fix/<name> — corrections to existing configurations
  • docs/<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 field

Always include the Co-authored-by trailer when Copilot assists:

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Pull Request Guidelines

  1. One concern per PR — don't mix agent additions with rule changes
  2. Run validation — npm run validate && npm run lint:md && npm test
  3. Update AGENTS.md — if adding or modifying agents
  4. Include examples — show how the new configuration is used
  5. Cross-reference — link related agents, skills, and rules

Quick Reference

TaskCommand / Action
Validate configsnpm run validate
Lint Markdownnpm run lint:md
Run testsnpm test
Setup projectnpm run setup
Add an agentCreate agents/<name>.md with frontmatter
Add a skillCreate skills/<category>/<skill-name>/SKILL.md (agentskills.io spec)
Add a ruleCreate rules/common/<name>.md or rules/languages/<lang>.md
Add orchestrationCreate orchestration/patterns/<name>.md
Add an exampleCreate files in examples/<project-type>/
Add MCP configCreate mcp-configs/<name>.json

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.