agentleFS
drvossdrvoss/everything-copilot-cli/.github/copilot-instructions.md

everything-copilot-cli

Copilot instructions47 starsChanged 4 months agoMITView on GitHub

Concise runtime instructions for GitHub Copilot. For the fuller human-facing reference guide, see COPILOT-INSTRUCTIONS.md in the repository root. This is everything-copilot-cli — a reference repository defining agents, skills, rules, orchestration patterns, and MCP configurations for GitHub Copilot CLI. Content is Markdown and JSON configuration, not application code. Use the right Copilot agent type for each task: Required frontmatter: name, description, agent_type Recommended frontmatter: model, tools, escalation Required frontmatter: name, description, metadata.category Recommended frontmatter: metadata.agent_type Optional frontmatter: keep-coding-instructions: true, disable-model-invocation: true…

The file

We split this copilot-instructions.md into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use the right Copilot agent type for each task:

    line 41
  2. Distinctive:

    Must include a "When to Use" section.

    line 63

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

GitHub Copilot Instructions

Concise runtime instructions for GitHub Copilot. For the fuller human-facing reference guide, see COPILOT-INSTRUCTIONS.md in the repository root.


Project Context

This is everything-copilot-cli — a reference repository defining agents, skills, rules, orchestration patterns, and MCP configurations for GitHub Copilot CLI. Content is Markdown and JSON configuration, not application code.

Essential Rules

  1. Use YAML frontmatter in all agent, skill, and rule files
  2. Use kebab-case for all filenames (e.g., build-error-resolver.md)
  3. Use conventional commits (feat:, fix:, docs:, chore:)
  4. Include Co-authored-by trailer in commits when Copilot assists
  5. Run validation before committing: npm run validate && npm run lint:md && npm test
  6. Don't mix concerns — one agent/skill/rule per file, one topic per PR

Directory Structure

DirectoryContents
agents/Agent definitions with persona, tools, model, behavior
skills/Source skill library. Each skill lives at skills/<category>/<skill-name>/SKILL.md
skills/copilot-exclusive/Copilot-only capabilities such as plan mode, fleet, background agents, and session memory
skills/development/, skills/workflow/, skills/security/, skills/testing/, skills/documentation/, skills/product/, skills/content/Portable domain skills grouped by category
rules/common/Universal behavioral rules
rules/languages/Language-specific coding standards
rules/frameworks/Framework-specific guidance
orchestration/Multi-agent coordination (patterns/, configs/, examples/, skills/, templates/)
contexts/Execution context definitions
mcp-configs/MCP server configurations
examples/Complete example projects (nextjs-app/, python-api/, dotnet-webapp/, monorepo/)

Agent Type Selection

Use the right Copilot agent type for each task:

Task TypeAgent TypeExamples
Understanding code/configsexplore"What agents are defined?", "How does orchestration work?"
Running builds/tests/lintstask"Validate all configs", "Run the test suite"
Complex multi-step changesgeneral-purpose"Add a new agent with skills and tests", "Refactor rule structure"
Reviewing changescode-review"Review this PR", "Check for issues in staged changes"
Parallel independent workFleet mode"Create example configs for all 4 project types"

File Conventions

Agent files (agents/*.md)

Required frontmatter: name, description, agent_type Recommended frontmatter: model, tools, escalation

Skill files (skills/<category>/<skill-name>/SKILL.md)

Required frontmatter: name, description, metadata.category Recommended frontmatter: metadata.agent_type Optional frontmatter: keep-coding-instructions: true, disable-model-invocation: true Must include a "When to Use" section.

Rule files (rules/**/*.md)

Current validator requirement: non-empty Markdown content. Repository convention: keep rules concise, actionable, and include clear ✅ Correct / ❌ Incorrect examples when relevant.

Orchestration patterns (orchestration/patterns/*.md)

Current repository convention: document the pattern, setup, examples, tradeoffs, and references in plain Markdown.

Multi-AI Delegation

  • Keep in Copilot CLI: GitHub integration, PR/Issue management, MCP workflows, orchestration
  • Delegate to Claude Code: Deep reasoning, architecture analysis, large context (200K tokens)
  • Delegate to Codex: Fast code generation, boilerplate, transformations

Validation

npm run validate   # Check configs against schemas
npm run lint:md    # Lint all Markdown
npm test           # Run test suite

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.