agentleFS
MicrosoftKnown publishermicrosoft/a11y-llm-eval/.github/copilot-instructions.md

a11y-llm-eval

Copilot instructions59 starsChanged 8 months agoMITView on GitHub

You are working in the A11y LLM Evaluation Harness codebase. Before making any change that could affect behavior, outputs, or public interfaces, read: Treat it as the project’s contract for:

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before making *any* change that could affect behavior, outputs, or public interfaces, read:

    line 7
  2. Distinctive:

    Treat it as the project’s contract for:

    line 11
  3. Distinctive:

    If you find a mismatch between docs and code, assume code is the source of truth and update the doc.

    line 24
  4. Very specific:

    Update docs/features-and-acceptance.md in the same PR.

    line 27
  5. Very specific:

    Update or add tests in tests/ to lock the new behavior.

    line 28
  6. Distinctive:

    Call out breaking changes and any migration steps.

    line 29
  7. Very specific:

    Do not rename fields in results.json without updating schema and acceptance criteria.

    line 32
  8. Very specific:

    Do not change file naming conventions under runs/<id>/raw or runs/<id>/screenshots without updating docs + tests.

    line 33
  9. Distinctive:

    Prefer running the focused tests for any area you touch.

    line 36
  10. Very specific:

    If you modify CLI/evaluation/reporting, run pytest.

    line 37
  11. Very specific:

    Add test cases under tests/test_cases/ with clear prompts and assertions.

    line 40
  12. Distinctive:

    Ensure new tests cover edge cases and failure modes.

    line 41
  13. Distinctive:

    Keep the acceptance criteria concrete and testable.

    line 45
  14. Very specific:

    Add new features to docs/features-and-acceptance.md when introduced.

    line 46
  15. Distinctive:

    If a behavior is deprecated, document it explicitly with the planned removal version/date.

    line 47
  16. Distinctive:

    Do not create commits unless the user explicitly asks for a commit or asks to finalize changes in git.

    line 51
  17. Distinctive:

    Before staging or committing, inspect git status and the relevant diffs.

    line 52
  18. Distinctive:

    If unrelated local changes are present, ask before including them in a commit.

    line 54
  19. Distinctive:

    Use non-interactive git commands only.

    line 55
  20. Very specific:

    Use commit subjects in conventional format: feat: ..., fix: ..., or chore: ....

    line 56
  21. Distinctive:

    Do not amend, rebase, or push unless the user explicitly asks.

    line 57

≈ “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 for this repository

You are working in the A11y LLM Evaluation Harness codebase.

Non-negotiable: Backwards compatibility contract

Before making any change that could affect behavior, outputs, or public interfaces, read:

  • docs/features-and-acceptance.md

Treat it as the project’s contract for:

  • CLI behavior and flags
  • run directory layout
  • results.json fields and meaning
  • evaluation pass/fail logic
  • sampling + pass@k semantics
  • prompt configuration and caching
  • Node runner I/O contract

When making changes

  1. Preserve documented behavior by default.
    • If you find a mismatch between docs and code, assume code is the source of truth and update the doc.
  2. If you intentionally change user-visible behavior (CLI, artifacts, schema, pass/fail, caching, report path/format):
    • Update docs/features-and-acceptance.md in the same PR.
    • Update or add tests in tests/ to lock the new behavior.
    • Call out breaking changes and any migration steps.
  3. Avoid accidental format drift
    • Do not rename fields in results.json without updating schema and acceptance criteria.
    • Do not change file naming conventions under runs/<id>/raw or runs/<id>/screenshots without updating docs + tests.
  4. Validation expectations
    • Prefer running the focused tests for any area you touch.
    • If you modify CLI/evaluation/reporting, run pytest.
  5. Create tests for new features
    • Add test cases under tests/test_cases/ with clear prompts and assertions.
    • Ensure new tests cover edge cases and failure modes.

Documentation hygiene

  • Keep the acceptance criteria concrete and testable.
  • Add new features to docs/features-and-acceptance.md when introduced.
  • If a behavior is deprecated, document it explicitly with the planned removal version/date.

Git workflow

  • Do not create commits unless the user explicitly asks for a commit or asks to finalize changes in git.
  • Before staging or committing, inspect git status and the relevant diffs.
  • Stage only files directly related to the requested change.
  • If unrelated local changes are present, ask before including them in a commit.
  • Use non-interactive git commands only.
  • Use commit subjects in conventional format: feat: ..., fix: ..., or chore: ....
  • Do not amend, rebase, or push unless the user explicitly asks.

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.