agentleFS
ralbacralbac/copilot-customization-blueprint/.github/copilot-instructions.md

copilot-customization-blueprint

Copilot instructions0 starsChanged 22 days agoMITView on GitHub

This file is loaded into every Copilot interaction that happens in the context of this repository. It is the widest, always-on layer. Everything that only applies to part of the codebase belongs in .github/instructions/ instead, and anything that only matters for one kind of task belongs in a skill or a prompt file. The tool-neutral baseline lives in AGENTS.md. This file adds the Copilot-specific conventions and the hard rules that must not drift. - docs/ — theory track, read in…

The file

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

8 rules. About 0 are common, 2 are distinctive, and 6 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.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Never invent a Copilot file location, frontmatter property, or behaviour.

    line 24
  2. Distinctive:

    Never describe a preview or experimental feature as generally available.

    line 26
  3. Very specific:

    Never edit a file under examples/shop-api/ to make a check pass.

    line 27
  4. Very specific:

    Never copy content from docs/ into labs/.

    line 29
  5. Very specific:

    Do not add a dependency to run the validator.

    line 31
  6. Very specific:

    No emoji in prose. Emoji are acceptable only inside a table cell in reference/.

    line 38
  7. Very specific:

    If you add a rule to the validator, add the failing case to scripts/test/ in the same change.

    line 51
  8. Distinctive:

    Ask. A wrong instruction file is worse than a missing one, because it silently changes every future interaction instead of failing visibly.

    line 56

≈ “Common” is an estimate: at least 1 in 5 of the 3,950 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

Repository-wide Copilot instructions

This file is loaded into every Copilot interaction that happens in the context of this repository. It is the widest, always-on layer. Everything that only applies to part of the codebase belongs in .github/instructions/ instead, and anything that only matters for one kind of task belongs in a skill or a prompt file.

The tool-neutral baseline lives in AGENTS.md. This file adds the Copilot-specific conventions and the hard rules that must not drift.

Project shape

  • docs/ — theory track, read in numeric order.
  • labs/ — practice track, one directory per lab, each with an observable check.
  • reference/ — dense lookup material; not meant to be read front to back.
  • .github/ — the reference customization set. It is live: this repository uses the customizations it documents.
  • examples/shop-api/ — a toy fixture the labs operate on. It is not a runnable application, and it is never the subject of a refactor.
  • scripts/ — tooling that validates this repository.

Hard rules

  • Never invent a Copilot file location, frontmatter property, or behaviour. If you are not certain, check reference/frontmatter-reference.md and reference/sources.md.
  • Never describe a preview or experimental feature as generally available. Label it.
  • Never edit a file under examples/shop-api/ to make a check pass. The fixture is fixed on purpose; the lab is what should change.
  • Never copy content from docs/ into labs/. Labs link to chapters. Duplicated explanation drifts and then contradicts itself.
  • Do not add a dependency to run the validator. npm run check must work on a fresh clone with node and nothing else.

Style

  • Prose: second person, present tense, active voice, short sentences. Contractions are fine. Marketing adjectives are not.
  • No emoji in prose. Emoji are acceptable only inside a table cell in reference/.
  • Headings use sentence case.
  • One H1 per Markdown file, and it matches the file's purpose, not its filename.
  • Tables over bullet lists when the reader is comparing more than three things.

Commands

npm run validate   # frontmatter and link contract for the whole repository
npm test           # validator tests
npm run check      # both, in order

If you add a rule to the validator, add the failing case to scripts/test/ in the same change. A validator rule without a failing fixture is a rule nobody has proven.

When you are unsure

Ask. A wrong instruction file is worse than a missing one, because it silently changes every future interaction instead of failing visibly.

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.