backend-conventions

backend-conventions is a skill for Claude Code from fpindej/netrock. It costs 27 tokens per session (3,075 once invoked), scanned A, original, MIT.

A reference for backend code conventions using .NET 10 and C# 13, including where different parts of an application belong and how they are organized.

In plain words
What is it for?
Use it as a guide for organizing domains, services, data access, APIs, authorization, and shared backend code.
Why use it?
It gives backend agents consistent project patterns to follow when adding or reviewing code. The input does not describe specific commands or workflows.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it as a guide for organizing domains, services, data access, APIs, authorization, and shared backend code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fpindej/netrock/backend-conventions
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fpindej/netrock --skill backend-conventions
Clone the repo
git clone --depth 1 https://github.com/fpindej/netrock

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for backend-conventions

README.md
[![agentmods](https://agentmods.dev/badge/skills/fpindej/netrock/backend-conventions/github.svg)](https://agentmods.dev/skills/fpindej/netrock/backend-conventions)
Your own site
<a href="https://agentmods.dev/skills/fpindej/netrock/backend-conventions"><img src="https://agentmods.dev/badge/skills/fpindej/netrock/backend-conventions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for backend-conventions

Your own site · 80×15
<a href="https://agentmods.dev/skills/fpindej/netrock/backend-conventions"><img src="https://agentmods.dev/badge/skills/fpindej/netrock/backend-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,075 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.03075
Opus 5.5 $0.00011 $0.01230
Sonnet 5.5 $0.00005 $0.00615
Haiku 4.5 $0.00003 $0.00308

Measured 1mo ago against content hash 230f223056c8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

backend-conventions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/backend-conventions/SKILL.md · 250 lines

How it starts

The opening of the file, as written. The whole thing — 250 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Backend Conventions (.NET 10 / C# 13)

Project Structure

src/backend/
├── MyProject.Shared/              # Result, Error, ErrorType, ErrorMessages (zero deps)
├── MyProject.Domain/Entities/     # Business entities (BaseEntity)
├── MyProject.Application/         # Interfaces, DTOs, service contracts
│   ├── Features/{Feature}/I{Feature}Service.cs
│   ├── Features/{Feature}/Dtos/{Operation}Input.cs, {Entity}Output.cs
│   ├── Identity/IUserService.cs, IUserContext.cs
│   └── Identity/Constants/AppRoles.cs, AppPermissions.cs
├── MyProject.Infrastructure/      # Implementations (all internal)
│   ├── Features/{Feature}/Services/, Configurations/, Extensions/
│   └── Persistence/MyProjectDbContext.cs
├── MyProject.ServiceDefaults/     # Aspire shared: OTEL, service discovery, resilience
├── MyProject.AppHost/             # Aspire orchestrator (local dev only)
└── MyProject.WebApi/              # Entry point
    ├── Features/{Feature}/{Feature}Controller.cs, {Feature}Mapper.cs
    ├── Features/{Feature}/Dtos/{Operation}/{Operation}Request.cs + Validator
    ├── Authorization/             # RequirePermission, PermissionPolicyProvider
    └── Shared/                    # ApiController, ProblemFactory, ValidationConstants

C# Conventions

Access Modifiers

Item Modifier
Domain entities, Application interfaces/DTOs public
Infrastructure services, EF configs, mappers internal
WebApi controllers, request/response DTOs public

Key Rules

  • Nullability: string.Empty for required, string? for optional. Express nullability in the type system.
  • Collections: Prefer IReadOnlyList<T> on public interfaces. Avoid exposing List<T> or T[] directly.
  • Time: TimeProvider registered as TimeProvider.System singleton.
  • NuGet: To add a package: <PackageVersion Include="Pkg" Version="X.Y.Z" /> in Directory.Packages.props, <PackageReference Include="Pkg" /> in .csproj.

Entity Definition

New entities should extend BaseEntity (provides Id, CreatedAt/By, UpdatedAt/By, IsDeleted, DeletedAt/By - all set by AuditingInterceptor automatically) and use BaseEntityRepository<T> for data access.

Read the full file on GitHub · 250 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 250 lines · 27 tokens per session scan A 230f223056c8

Subscribe to this mod's changes

backend-conventions is a skill published in the GitHub repository fpindej/netrock (234 stars, last pushed yesterday), licensed MIT. It adds 27 tokens to every session and 3,075 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

clean-architecture-dotnet

Use when domain logic leaks into API/Infrastructure, project references violate layer boundaries, or you need to decide between CQS (always), CQRS bus (complex domains), and DDD patterns (invariants and events).

SebastienDegodez/copilot-instructions · 50 tokens

python

Enforces FastAPI, Dependency Injection, and general Python coding standards using uv inside the server directory.

aps08/fullstack-clean-architecture · 22 tokens

worker-services

Build long-running .NET background services with BackgroundService, Generic Host, graceful shutdown, configuration, logging, and deployment patterns suited to workers and daemons. USE FOR: background services; scheduled workers; hosted services; worker extraction; graceful shutdown, health checks, and service hosting…

managedcode/dotnet-skills · 109 tokens

aspnet-core

Build, debug, modernize, or review ASP.NET Core applications with correct hosting, middleware, security, configuration, logging, and deployment patterns on current .NET. USE FOR: working on ASP.NET Core apps, services, or middleware; changing auth, routing, configuration, hosting, or deployment behavior; deciding…

managedcode/dotnet-skills · 122 tokens

minimal-apis

Design and implement Minimal APIs in ASP.NET Core using handler-first endpoints, route groups, filters, and lightweight composition suited to modern .NET services. USE FOR: building new HTTP APIs in ASP.NET Core; creating lightweight microservices; choosing between Minimal APIs and controllers. DO NOT USE FOR…

managedcode/dotnet-skills · 105 tokens

web-api

Build or maintain controller-based ASP.NET Core APIs when the project needs controller conventions, advanced model binding, validation extensions, OData, JsonPatch, or existing API patterns. USE FOR: working on controller-based APIs in ASP.NET Core; needing controller-specific extensibility or conventions; migrating…

managedcode/dotnet-skills · 115 tokens