Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/fmflurry-dotnet-cop
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, backend, devops
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/dotnet-cop
What's inside
- Skill name
dotnet-cop- Description
- Pre-merge code review for .NET 10 pull requests. Ground truth: Minimal API + IModule (reflection-based isolation) + hexagonal per module (Domain/Application/Infrastructure). Persistence is chosen per bounded context — EF Core CRUD and event-sourced Marten stores are both first-class, with no global default. Optional additive: DDD / CQRS per module. Diffs current branch against a target branch, applies .NET-specific checklists (Minimal API endpoints, modular isolation, ports & adapters, schema-per-module + RLS, C# strictness, xUnit v3 only), runs dotnet build + dotnet format --verify-no-changes, and emits a tiered report (verbose for juniors, terse for seniors). Auto-loads project AGENTS.md rules. Use when user runs /cop-review, says "pre-merge review", or invokes dotnet-cop.
- License
- MIT
- Instructions
- 117 lines in SKILL.md · view on GitHub
Files (12)
- SKILL.md
- cross-module-communication.md
- ef-core.md
- enforcement-tooling.md
- enforcement.md
- minimal-api.md
- modular-isolation.md
- optional-cqrs.md
- optional-event-sourcing.md
- output-format.md
- ports-adapters.md
- result.md
SKILL.md (first lines)
# dotnet-cop
Pre-merge review. Compares HEAD vs `origin/<target>`. Minimal-API-first, SoT-aware. Project-aware (reads `AGENTS.md`). Tooling-aware (runs dotnet build + dotnet format --verify-no-changes).
## When to Activate
- Selected by `code-reviewer` for .NET guidance during `/cop-review`
- User runs `/cop-review <target>` on a .NET repo
- dotnet-cop specialist is explicitly invoked
## Inputs
| Arg | Required | Default | Meaning |
|---|---|---|---|
| `<target>` | yes | — | Target branch (e.g. `main`, `develop`, `release/x`) |
| `--level` | no | auto | `junior` (verbose teaching) or `senior` (terse). Auto = senior. |
| `--scope` | no | all | Comma list: `minimal-api,isolation,ports-adapters,ef-core,csharp,result,ddd` + optional `cqrs,event-sourcing`. `ddd` auto-enables when the diff touches domain files; pass `ddd` to force it on. |
| `--no-tools` | no | false | Skip dotnet build + format check (static review only) |
## Hard Rules
1. **Read-only.** Never patch code. Output report only.
2. **Diff window:** `git merge-base HEAD origin/<target>`..`HEAD`. Never review changes already on target.
3. **Confidence ≥ 80%.** Skip uncertain findings. Use `❓` instead of a speculative `🔴 Important [bug]:`. ❓ never blocks.
4. **Project rules win.** `AGENTS.md` overrides this skill. Re-read on every run; do not cache between sessions.
5. **dotnet-clean-architecture ground truth:** load [[dotnet-clean-architecture]] SKILL.md before flagging architecture code. Do not invent APIs or patterns.
6. **No fluff.** No "great work", no restating what the diff already shows.
## Pipeline
```
1. Parse args -> target, level, scope
2. git fetch <remote> <target> (silent; --quiet)
3. base = git merge-base HEAD <remote>/<target>
4. changed = git diff --name-status base..HEAD
5. Load <repo>/AGENTS.md (if exists) -> project rules
6. For each changed file:
- Skim full file (not just hunk) for context
- Apply relevant sub-checklists by path/role:
*Module.cs / *Extensions.cs -> modular-isolation.md
Infrastructure/Events/*.cs / *DbContext.cs -> cross-module-communication.md
*Endpoint.cs (Minimal API) -> minimal-api.md
**/Ports/Incoming/*.cs -> ports-adapters.md
**/Ports/Outgoing/*.cs -> ports-adapters.md
Infrastructure/Adapter/*.cs -> ports-adapters.md
*DbContext.cs / Migrations/** -> ef-core.md
*.cs (any) -> csharp-strict.md
- Apply skill `comment-judge` (REVIEW mode) to every added/changed comment
- If ddd is in scope OR the diff touches domain files (paths under **/*.Domain/** or **/Domain/**): load [[dotnet-ddd]] (review-checklist.md); defer deep CQRS/ES to optional-cqrs.md / optional-event-sourcing.md. ddd is auto-enabled for domain diffs; --scope=ddd forces it on when no domain file is detected.
- If --scope includes cqrs && module signals use: optional-cqrs.md
- If --scope includes event-sourcing && module signals use: optional-event-sourcing.md
7. If !--no-tools:
- dotnet build --nologo -clp:ErrorsOnly (the solution if one exists, else the relevant project(s) — fail fast)
- dotnet format --verify-no-changes (capture exit code)
8. Aggregate findings -> render via output-format.md
```
## Tags
| Badge | Tag | Category | Blocks |
|---|---|---|---|
| 🔴 | Important | [bug] broken behavior, runtime crash, data loss | yes |
| 🔴 | Important | [sec] security risk (unvalidated input, leaked secret, tenant-data leak) | yes |
| 🔴 | Important | [arch] mandatory architecture rule (SoT) | yes |
| 🔴 | Important | [comment] confirmed false/stale or forbidden comment; [format] failed format check | yes |
| 🟡 | Nit | [risk] works today, fragile tomorrow (N+1, missing filter, scope violation) | no, unless the finding cites an AGENTS.md hard rule |
| 🟡 | Nit | [nit] style, naming, micro-optim | no |
| ⚪ | Pre-existing | any category already on the base | no |
| ❓ | question | [q] genuine question | never |
## Sub-pages (read on demand)
- [[dotnet-cop-minimal-api]] — endpoint mapping, route groups, ProblemDetails, FluentValidation at boundary, no business logic in handlers.
- [[dotnet-cop-modular-isolation]] — module boundaries, no direct cross-module type references (hard blocker), communication via ports/events, reflection-based module discovery, per-module language autonomy.
- [[dotnet-cop-cross-module-communication]] — Cross-module communication (modular monolith): Wolverine-only inter-module reads, per-module projection DbContexts, forbidden cross-domain read ports in SharedKernel, `Model/` convention. Illustrated with the Sales module.
- [[dotnet-cop-ports-adapters]] — hexagonal: Domain/Application define ports, Infrastructure implements adapters; dependency direction; no EF entities leaking into Domain/Application.
- [[dotnet-cop-ef-core]] — DbContext per context/projection (hard blocker on shared DbContext), schema-per-module isolation, FORCE RLS mandatory on all context-schema tables, query splitting, N+1 prevention.
- [[dotnet-cop-result]] — business errors returned as `Result`/`Result<T>`, never thrown; `Error` defined in Domain; no HTTP coupling in Domain/Application.
- [[dotnet-ddd]] (ddd scope — auto-enabled when the diff touches domain files) — DDD tactical patterns (entities, value objects, aggregates, repositories) and strategic design for domain-layer code. Deep CQRS/ES enforcement defers to [[dotnet-cop-optional-cqrs]] and [[dotnet-cop-optional-event-sourcing]].
- [[dotnet-cop-optional-cqrs]] (opt-in) — commands/queries, handlers, CQRS pattern. Only when module signals use.
- [[dotnet-cop-optional-event-sourcing]] (opt-in) — event-sourced aggregates, immutable events, append-only event store. Only when module signals use.
- [[dotnet-cop-output-format]] — junior vs senior render templates.
- [[dotnet-cop-enforcement]] — BLOCK vs WARN tag checklist (load always). SoT rules listed first; opt-in rules clearly marked.
## AGENTS.md Loading
Always:
```bash
test -f AGENTS.md && cat AGENTS.md
test -f .agent/AGENTS.md && cat .agent/AGENTS.md
```
Parse rule blocks. Where this skill and AGENTS.md disagree, AGENTS.md wins. Cite the AGENTS.md line in the finding: `(AGENTS.md §<section>)`.
## Output Contract
Single markdown document, sections in fixed order:
1. **Summary** — target, base SHA, head SHA, files changed, finding counts by tag.
2. **Important** (🔴) — blocks. Sorted by file path.
3. **Nit** (🟡) — does not block alone.
4. **Pre-existing** (⚪) and **questions** (❓) — collapsible. Pre-existing does not block. Questions never block.
5. **Tooling** — dotnet build summary, dotnet format summary.
6. **Verdict** — `APPROVE` or `BLOCK`. Any Important finding, or any finding that cites an AGENTS.md hard rule, is BLOCK. Otherwise APPROVE.
See [[dotnet-cop-output-format]] for full templates.
## Boundaries
- Does not write code fixes. Suggestions only.
- Does not run integration or unit tests by default. If `tdd-guide` is installed, dispatch to that agent. Otherwise the main agent loads the `tdd` skill and does that work inline.
- Does not approve PRs in GitHub/Azure. Author posts the report manually.
- Does not auto-fix formatting. Reports format violations only.
- If no diff (HEAD == base), exit early with "no changes to review".From fmflurry/settings-opencode, MIT.
More from fmflurry/settings-opencode
- 0.779score
interfectio-commentarum
poteto
Spawn Haruspex Commentorum, fix accepted findings, and offer encodings for claimed constraints.
SkillAFreshness: A★ 171Claude Code +9 - 0.655score
chimera
poteto
Spawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it.
SkillAFreshness: A★ 171Claude Code +9 - 0.649score
humanizer
poteto
Cut AI tells from any writing.
SkillAFreshness: A★ 171Claude Code +9 - 0.643score
e2e
fmflurry
Resolve this project's browser end-to-end stack before /e2e or e2e-runner writes tests.
SkillAFreshness: A★ 171Claude Code +9 - 0.643score
show-your-work
fmflurry
Keep a reviewable decision trail for long-running or unattended work: a TSV log with one row per decision (what, why, evidence, result).
SkillAFreshness: A★ 171Claude Code +9 - 0.643score
why
fmflurry
Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds.
SkillAFreshness: A★ 171Claude Code +9 - 0.641score
verify-this
fmflurry
Verify a claim with fresh local evidence: restate it falsifiably, capture baseline and treatment, compare artifacts, and return VERIFIED, NOT VERIFIED, or…
SkillAFreshness: A★ 171Claude Code +9 - 0.640score
create-verification-skill
fmflurry
Use when creating or refreshing a project's verify-this override.
SkillAFreshness: A★ 171Claude Code +9 - 0.639score
angular-ddd
fmflurry
Domain-Driven Design for Angular/TypeScript: functional patterns with `type` aliases, `readonly` fields, pure rule functions, immutable value types, branded…
SkillAFreshness: A★ 171Claude Code +9 - 0.639score
codebase-exploration
fmflurry
Use when searching a repository, looking up symbols, callers, callees, or imports, and when deciding whether CodeMemory is on.
SkillAFreshness: A★ 171Claude Code +9 - 0.639score
performance
fmflurry
Use when a task is large enough to press the context window, when choosing plan mode or extended thinking, or when a build fails and needs incremental…
SkillAFreshness: A★ 171Claude Code +9 - 0.639score
worktree-destruction-safety
fmflurry
Use when creating, removing, pruning, moving, or deleting a git worktree, including orca worktree and agent-harness worktree-rm.
SkillAFreshness: A★ 171Claude Code +9
Signals
- Stars
- 171
- Forks
- 9
- Open issues
- 0
- Last commit (this folder)
- Oct 18, 2026 (10 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/fmflurry/settings-opencode
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from fmflurry
- 0.643score
why
fmflurry
Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds.
SkillAFreshness: A★ 171Claude Code +9 - 0.643score
show-your-work
fmflurry
Keep a reviewable decision trail for long-running or unattended work: a TSV log with one row per decision (what, why, evidence, result).
SkillAFreshness: A★ 171Claude Code +9 - 0.643score
e2e
fmflurry
Resolve this project's browser end-to-end stack before /e2e or e2e-runner writes tests.
SkillAFreshness: A★ 171Claude Code +9 - 0.641score
verify-this
fmflurry
Verify a claim with fresh local evidence: restate it falsifiably, capture baseline and treatment, compare artifacts, and return VERIFIED, NOT VERIFIED, or…
SkillAFreshness: A★ 171Claude Code +9 - 0.640score
create-verification-skill
fmflurry
Use when creating or refreshing a project's verify-this override.
SkillAFreshness: A★ 171Claude Code +9 - 0.639score
codebase-exploration
fmflurry
Use when searching a repository, looking up symbols, callers, callees, or imports, and when deciding whether CodeMemory is on.
SkillAFreshness: A★ 171Claude Code +9
Cite this page
dotnet-cop skill. Agent Mart. https://agentmart.dev/skills/fmflurry-dotnet-cop (last updated 2026-10-24)