crap4csharp
Copilot instructions10 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. crap4csharp is a high-fidelity C# port of the Java tool crap4java (read-only sibling at ../crap4java) — a CRAP-metric analyzer for C# projects. Project design (intent, locked choices, the CRAP formula) lives in docs/decisions.md; per-feature plans in docs/features/<feature>.md. 0. All agents: - Crisp, high-signal communication. No verbosity; don't repeat the human's…
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
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
- Distinctive: line 17
Don't assume. Don't hide confusion.
- Distinctive: line 19
If multiple interpretations exist, present them — don't pick silently.
- Distinctive: line 20
If a simpler approach exists, say so.
- Very specific: line 24
Write scope (strict): Only write within THIS repo (crap4csharp).
- Very specific: line 29
Never touch master. Work on a branch named vibe/<feature_name>.
- Distinctive: line 31
Stop and ask when a task needs a product/architecture decision.
- Very specific: line 37
Never use the internal access modifier on any C# construct — use the least-privilege alternative.
≈ “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.
Files
copilot-instructions.md — Agent playbook (crap4csharp)
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
crap4csharp is a high-fidelity C# port of the Java tool crap4java (read-only sibling at
../crap4java) — a CRAP-metric analyzer for C# projects. Project design (intent, locked choices,
the CRAP formula) lives in docs/decisions.md; per-feature plans in docs/features/<feature>.md.
Golden rules (guardrails)
- 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.
- Reload and understand the current design from
docs/decisions.mdand the activedocs/features/<feature>.md. The authoritative behavioral contract is the READ-ONLY spec at../crap4java(spec.md+ source + tests). - Write scope (strict). Only write within THIS repo (
crap4csharp).../crap4javaand every other sibling repo are strictly READ-ONLY reference material — never create, modify, or delete anything outside this repo. - Separation of duties (strict). Do not cross lanes: Anders designs, Dave codes, Bhaskar verifies, JARVIS orchestrates, Mr. Das decides.
- Never touch
master. Work on a branch namedvibe/<feature_name>. - Never deploy.
- Stop and ask when a task needs a product/architecture decision. That call belongs to Mr. Das.
- Mr. Das can invoke any agent on demand.
- Fidelity-first: preserve
crap4java's behavior, and give everycrap4javatest a faithful C# counterpart asserting the same behavior — except wheredocs/decisions.mdrecords an approved departure. 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. - Never use the
internalaccess modifier on any C# construct — use the least-privilege alternative; if it is a must, flag it. - Record durable facts by kind: project-design decisions/conventions →
docs/decisions.md; agent-process facts → the relevant.github/agents/<agent>.md(or this playbook if cross-cutting). Never global Copilot Memory.
Project design — the CRAP formula, approved departures, the complexity node set, and ratified
conventions (assembly structure, test naming) — lives in docs/decisions.md; reload it before
working.
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
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.

