agentleFS
MirantisMirantis/prism/.github/copilot-instructions.md

prism

Copilot instructions25 starsChanged 14 days agoApache-2.0View on GitHub

These rules apply to every pull request in this repository. They are non-negotiable gates — a PR that touches behavior is not complete until the matching tests below exist and pass. Any PR that changes behavior must ship with related unit tests covering the new or modified logic. If you change a function's behavior, the unit tests for that function must change with it. Pure refactors with no behavior change must still keep the existing unit tests passing. Any change…

The file

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

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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:

    Before requesting review, confirm:

    line 44

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

Copilot instructions

These rules apply to every pull request in this repository. They are non-negotiable gates — a PR that touches behavior is not complete until the matching tests below exist and pass.

Testing requirements

1. Every PR that changes behavior must add or update unit tests

Any PR that changes behavior must ship with related unit tests covering the new or modified logic. If you change a function's behavior, the unit tests for that function must change with it. Pure refactors with no behavior change must still keep the existing unit tests passing.

2. Every user-facing change must add end-to-end tests

Any change a user can observe (web UI, terminal/CLI UI, Slack, slash commands, flags, env vars, commands, or any other surface) must ship with corresponding end-to-end tests that exercise the real flow on each surface it touches.

The e2e suites live in e2e/:

  • Web: Playwright BDD — a .feature in e2e/features/ with step definitions in e2e/steps/, driving the SPA against a real agent-runtime. Run via npm run test --workspace=prism-agent-e2e.
  • CLI/TUI: Gherkin .feature files in e2e/tui/features/ bound with @amiceli/vitest-cucumber in e2e/tui/tests/, driving prism-cli under a PTY against a real runtime. Run via npm run test:e2e:tui --workspace=prism-agent-e2e.

A feature that spans both web and CLI needs e2e coverage on both. Assert on authoritative state where possible (downloaded file bytes, DB rows via the management API) rather than only on-screen text.

3. Every bug fix must add a regression test

Any PR that fixes a bug must include a regression test that fails without the fix and passes with it, so the bug cannot silently return. Place it at the level that reproduces the bug (unit for logic bugs, e2e for user-facing bugs).

Summary checklist

Before requesting review, confirm:

  • If behavior changed, related unit tests added or updated.
  • If user-facing behavior changed, e2e tests added on every surface it touches.
  • If this PR fixes a bug, a regression test added that fails without the fix.

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.