agentleFS
MicrosoftKnown publishermicrosoft/agentic-loops/.github/copilot-instructions.md

agentic-loops

Copilot instructions5 starsChanged 56 days agoMITView on GitHub

This file is the root of the agent governance framework. Each agent also has its own governance file. These instructions and guardrails are absolute. Never bypass or override them. Do not do more than the task needs. Note: - ASD-STE100+ = strict ASD-STE100 + technical names, technical verbs and domain words. - Plain Language is as defined by https://plainlanguage.gov/ - Chicago Manual of Style is as defined by https://www.chicagomanualofstyle.org/home.html 0. General principles: - Select the English style for the reader:…

  • In this repository3 other files it gives its agents.

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, 14 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈14

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    All other English (README.md, docs/ files, code comments, commit messages, PR text, proposals, designs, Teams messages etc.): Plain …

    line 19
  2. Distinctive:

    Do not use em-dashes.

    line 23
  3. Very specific:

    Write each link as short text that names the target, for example PR #123.

    line 26
  4. Distinctive:

    Do not assume. Do not hide confusion.

    line 28
  5. Distinctive:

    If more than one interpretation is possible, show each one.

    line 30
  6. Distinctive:

    If a simpler approach exists, say so.

    line 31
  7. Distinctive:

    If something is not clear, stop.

    line 32
  8. Very specific:

    Always load docs/design.md again and understand it.

    line 33
  9. Very specific:

    Never commit to trunk. To find trunk, use git symbolic-ref --short refs/remotes/origin/HEAD.

    line 35
  10. Very specific:

    Never edit by hand the generated or acquired artifacts that docs/design.md lists.

    line 39
  11. Distinctive:

    If a task needs a product or architecture decision, stop and ask.

    line 40
  12. Very specific:

    Writing tests: Follow docs/meta-design.md#writing-tests.

    line 43
  13. Distinctive:

    Never hardcode connection strings, secrets, or license keys.

    line 44
  14. Distinctive:

    When you cite a guardrail, use its number.

    line 51
  15. Distinctive:

    Run web-backed agents one at a time.

    line 56
  16. Very specific:

    Never send web_search or web_fetch calls in a batch.

    line 57
  17. Distinctive:

    When the human tags an item, record it before you continue.

    line 61
  18. Distinctive:

    Keep the tag, the meaning and sufficient context to act on the item later.

    line 69
  19. Distinctive:

    If you cannot write the required file yet, keep a capture reminder in session tracking.

    line 73
  20. Distinctive:

    Never defer them silently.

    line 77
  21. Distinctive:

    Add rows for other commands.

    line 93

≈ “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.md: Agent playbook

This file is the root of the agent governance framework. Each agent also has its own governance file. These instructions and guardrails are absolute. Never bypass or override them. Do not do more than the task needs.

Golden rules (guardrails)

Note:

  1. General principles:
    • Select the English style for the reader:
      • Assistant to the human: the persona sets the interaction style.
      • Agent to agent (handoffs, returns and reviews): ASD-STE100+.
      • Governance (AGENTS.md, .github/, work records and their templates): ASD-STE100+.
      • All other English (README.md, docs/ files, code comments, commit messages, PR text, proposals, designs, Teams messages etc.): Plain Language + Chicago Manual of Style mechanics.
    • In all English:
      • Do not use em-dashes.
      • For Markdown, follow .github/skills/markdown.md.
      • For diagrams, follow .github/skills/diagram.md.
      • Write each link as short text that names the target, for example [PR #123](url). Do not write a bare URL.
    • Do not assume. Do not hide confusion. Show the tradeoffs.
    • State your assumptions. If you are not sure, ask.
    • If more than one interpretation is possible, show each one. Do not select one silently.
    • If a simpler approach exists, say so. Disagree when you have a good reason.
    • If something is not clear, stop. Name the problem and ask.
  2. Always load docs/design.md again and understand it.
  3. Separation of duties is strict. Do not cross the lanes in .github/agents/.
  4. Never commit to trunk. To find trunk, use git symbolic-ref --short refs/remotes/origin/HEAD. If that command fails, use the fallback in docs/design.md. Work on {{WORK_BRANCH}}, with the workflow in docs/meta-design.md. Keep its record at {{WORK_RECORD}}.
  5. Never deploy.
  6. Never edit by hand the generated or acquired artifacts that docs/design.md lists.
  7. If a task needs a product or architecture decision, stop and ask. The human architect owns that decision.
  8. The human can invoke any agent at any time.
  9. Writing tests: Follow docs/meta-design.md#writing-tests.
  10. Never hardcode connection strings, secrets, or license keys. Inject them through environment variables.
  11. Record project facts in docs/design.md. Record role facts in .github/agents/<agent>.md. Record cross-cutting governance in this file. Never use global Copilot Memory.
  12. Governance files are the source of truth. Load them again before you use them. Never rely on memory.

When you cite a guardrail, use its number. Keep the numbers stable.

Execution safety

  • Delegated agents never start other agents. They return unmet work to the assistant.
  • Run web-backed agents one at a time.
  • Never send web_search or web_fetch calls in a batch. Send one call at a time.

User task markers

When the human tags an item, record it before you continue. Quoted examples and source text are not new requests.

MarkerMeaningCapture
LIM:A known limitation and a future todoAn unchecked item in docs/backlog.md. Do not implement it unless the human schedules it.
TODO:Work for this sessionThe session task list. If an active {{WORK_RECORD}} exists, also add it there in the task format of that record.

Keep the tag, the meaning and sufficient context to act on the item later. If a matching item exists, update it. Do not make a duplicate. The assistant owns capture. Delegated agents return tagged items to the assistant. They do not cross their editing boundaries.

If you cannot write the required file yet, keep a capture reminder in session tracking. Tell the human that file capture is pending. When the approved working root or record is available, write the item to the file. A captured item does not give permission to change branches. It does not bypass design or execution approvals. Keep the status current. At handoff, report unfinished TODO: items. Never defer them silently.

Commands

CommandGateRequiredValue
buildfast + fullyes<<FILL_ME: build command>>
test:quickfastyes<<FILL_ME: unit-test command>>
test:fullfullyes<<FILL_ME: full-test command>>
format:fixfastoptionalnone
format:checkfulloptionalnone
lintfast + fulloptionalnone
dry-checkfulloptionalnone
mutation-testfulloptionalnone
crap-checkfulloptionalnone

Add rows for other commands. The gate recipes run these commands after the core steps, unless the stack needs a different order. The recipes are authoritative.

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.