RoslynMcpServer / rules
Cursor rule8 starsChanged 45 days agoMITView on GitHub
Docs sync AGENTS/README, agent conventions, PowerShell, secrets
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 4,183 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/roslyn-mcp-build-sdk.mdcCursor rule
- .cursor/rules/roslyn-mcp-ci.mdcCursor rule
- .cursor/rules/roslyn-mcp-decompile.mdcCursor rule
- .cursor/rules/roslyn-mcp-dev-conventions.mdcCursor rule
- .cursor/rules/roslyn-mcp-docs-lifecycle.mdcCursor rule
- .cursor/rules/roslyn-mcp-github-release.mdcCursor rule
- .cursor/rules/roslyn-mcp-overview.mdcCursor rule
- .cursor/rules/roslyn-mcp-paths.mdcCursor rule
- .cursor/rules/roslyn-mcp-pitfalls.mdcCursor rule
- .cursor/rules/roslyn-mcp-structural-tests.mdcCursor rule
- .cursor/rules/roslyn-mcp-tools.mdcCursor rule
- .cursor/rules/roslyn-mcp-version-bump.mdcCursor rule
- epoch-subagent-loopSkill
- epoch-subagent-loopSkill
- prepare-github-releaseSkill
The file
We split this roslyn-mcp-docs-agents.mdc into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is 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.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
When adding/changing MCP tools, Descriptions, or agent-visible behavior, update together:
- Very specific: line 32
After MCP rebuild: get_mcp_server_info expect current version (1.3.32+.
≈ “Common” is an estimate: at least 1 in 5 of the 6,668 Cursor rule 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
--- description: Docs sync AGENTS/README, agent conventions, PowerShell, secrets alwaysApply: true --- # Docs & agent conventions ## Layers | Layer | Role | |-------|------| | MCP tool `[Description]` | Per-tool API: params, caps, anti-patterns | | `AGENTS.md.sample` | Session policy only (when / MCP vs host / bans) — copy to app repos as `AGENTS.md` | | `CHANGELOG.md` | Human changelog of agent-visible tools and behavior | | README **Reference: MCP Tools** | Tool catalog | | README Agent Initialization | Short pointer to sample — **not** a full copy of AGENTS | ## Keep in sync (when tools change) When adding/changing MCP tools, Descriptions, or agent-visible behavior, update **together**: 1. **`AGENTS.md.sample`** — only if session policy changes (init, bans, hybrid search, edit/secrets). Do **not** paste tool params/caps into AGENTS. 2. **`CHANGELOG.md`** — semver row when agent-visible behavior changes. **`README.md`** — **Reference: MCP Tools** (EN; RU Reference as needed) when the public tool surface changes. The README keeps a link to the changelog. 3. **Version** in `RoslynMcpServer.csproj` when shipping tool changes (see `roslyn-mcp-version-bump.mdc`). Copy `AGENTS.md.sample` → app repo `AGENTS.md` — **no machine-specific paths**. ## Agent workflow (summary) - Quick read-only: `load_workspace` → symbol tools / Grep. - Edit/build/test/run: full init → MCP `dotnet_*` only (no shell `dotnet build/test`). - After MCP rebuild: `get_mcp_server_info` expect current version (1.3.32+; source of truth — `RoslynMcpServer.csproj`). - Windows PowerShell 5.x: use `;` between commands, not `&&`. - Secrets: never PAT/passwords in chat/commits; env / user-secrets; report configured yes/no only. - IDE edits: host edit/write; headless: MCP `apply_patch` / AST tools. - Rename: `previewOnly=true` first. ## App repos should document Executable `.csproj` for `run_dotnet_run`, sample args, `global.json` pin, integration notes (TFS vs Azure) in README or `.cursor/rules` — not in portable AGENTS alone. ## Spec archive Epoch plans and review packages: see `roslyn-mcp-docs-lifecycle.mdc` (start-of-work junk check; remind to archive when the series is closed). ## Engineering style (this repo) Base Truth: minimal diffs; no wholesale rewrites. Async I/O; no `.Result`/`.Wait()`. Null-check references. Tests: xUnit (+ Moq when mocking). Prefer Options/`IOptions` for config if adding settings. English for text that lives in code: comments, XML docs, log/diagnostic messages, exception messages, test failure text and asserted fragments. Localized external output kept as test data stays verbatim. Canon: `docs/code-style.md`, §Language. Project docs (`docs/`, README, AGENTS, these rules) keep their current language.
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.

