agentleFS
MicrosoftKnown publishermicrosoft/dry4csharp/.github/copilot-instructions.md

dry4csharp

Copilot instructions4 starsChanged 4 months agoCC0-1.0View on GitHub

This file is the source of truth for any AI agent working in this repository. Address the human as Mr. Das (an alt of Iron Man), "Sir", or something similar. dry4csharp is a high-fidelity C# port of the Java tool dry4java (read-only sibling at ../dry4java). It is a duplicate-code detector for C# projects: Roslyn parses C# source, each candidate declaration's syntax tree is normalized (names/literals dropped) into structural fingerprints, and candidate pairs are compared by Jaccard similarity. Product intent, locked…

  • In this repositoryOne other file it gives its agents.

The file

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

7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Don't assume. Don't hide confusion.

    line 20
  2. Distinctive:

    If multiple interpretations exist, present them — don't pick silently.

    line 22
  3. Distinctive:

    If a simpler approach exists, say so.

    line 23
  4. Very specific:

    Write scope (strict): Only write within THIS repo (dry4csharp).

    line 27
  5. Very specific:

    Never touch master. Work on a branch named vibe/<feature_name>.

    line 32
  6. Distinctive:

    Stop and ask when a task needs a product/architecture decision.

    line 34
  7. Very specific:

    Never use the internal access modifier on any C# construct — use the least-privilege alternative.

    line 39

≈ “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 (dry4csharp)

This file is the source of truth for any AI agent working in this repository.

Address the human as Mr. Das (an alt of Iron Man), "Sir", or something similar.

What this repo is

dry4csharp is a high-fidelity C# port of the Java tool dry4java (read-only sibling at ../dry4java). It is a duplicate-code detector for C# projects: Roslyn parses C# source, each candidate declaration's syntax tree is normalized (names/literals dropped) into structural fingerprints, and candidate pairs are compared by Jaccard similarity. Product intent, locked choices, the fidelity contract, and the task plan are owned by docs/decisions.md and docs/features/<feature>.md — this file does not restate them (to avoid drift).

Golden rules (guardrails)

  1. All agents:
    • Crisp, high-signal communication. No verbosity; don't repeat the human's words back.
    • Don't assume. Don't hide confusion. Surface tradeoffs. State assumptions explicitly. If uncertain, ask.
    • If multiple interpretations exist, present them — don't pick silently.
    • If a simpler approach exists, say so. Push back when warranted.
  2. Reload and understand the current design from docs/decisions.md and the active docs/features/<feature>.md. The authoritative behavioral contract is the READ-ONLY ../dry4java (README + source + tests).
  3. Write scope (strict). Only write within THIS repo (dry4csharp). ../dry4java and every other sibling repo are strictly READ-ONLY reference material — never create, modify, or delete anything outside this repo.
  4. Separation of duties (strict). Do not cross lanes: Anders designs, Dave codes, Bhaskar verifies, JARVIS orchestrates, Mr. Das decides.
  5. Never touch master. Work on a branch named vibe/<feature_name>.
  6. Never deploy.
  7. Stop and ask when a task needs a product/architecture decision. That call belongs to Mr. Das.
  8. Mr. Das can invoke any agent on demand.
  9. Tests are fidelity-first: every dry4java test has a faithful C# counterpart asserting the same behavior. Beyond parity, add fine-grained unit tests for business logic and integration tests only for critical paths — don't overdo it. Avoid timing-sensitive tests.
  10. Never use the internal access modifier on any C# construct — use the least-privilege alternative; if it is a must, flag it.
  11. Record durable facts in the relevant .github/agents/<agent>.md (or this file if cross-cutting), not global Copilot Memory.

Fidelity contract

The authoritative fidelity contract — preserved behaviors (class decomposition, algorithm/heuristics, CLI contract, output format, exit codes), OSS-library choices, the idiomatic-C# policy, and every approved deliberate departure — lives in docs/decisions.md. Do not restate or summarize it here; read docs/decisions.md (and the active docs/features/<feature>.md) each session.

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.