netrock: Instructions file for Claude Code

CLAUDE.md

netrock CLAUDE.md is an instructions file for Claude Code from fpindej/netrock. It costs 2,492 tokens per session, scanned A, original, MIT.

Project guidance for NETrock, a .NET web API with a SvelteKit web interface, PostgreSQL database, and MinIO file storage. It defines coding rules for the backend, frontend, and shared changes.

In plain words
What is it for?
Use it when changing the API, frontend, data access, error handling, time handling, documentation, or package versions in NETrock.
Why use it?
It gives coding agents the project’s rules in one place, reducing inconsistent implementations and API changes that could break other clients.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is fpindej/netrock's own configuration. It tells Claude Code how to work on netrock itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything netrock configures →

Reuse

Borrowing it

Nothing to install: this file belongs to fpindej/netrock. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/fpindej/netrock/master/CLAUDE.md
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 netrock CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/fpindej/netrock/claude-md/github.svg)](https://agentmods.dev/instructions/fpindej/netrock/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/fpindej/netrock/claude-md"><img src="https://agentmods.dev/badge/instructions/fpindej/netrock/claude-md/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 netrock CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/fpindej/netrock/claude-md"><img src="https://agentmods.dev/badge/instructions/fpindej/netrock/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,492 This file is loaded in full into every session.
When invoked 2,492 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.02492 $0.02492
Opus 5.5 $0.00997 $0.00997
Sonnet 5.5 $0.00498 $0.00498
Haiku 4.5 $0.00249 $0.00249

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

Security

Grade A, and why

netrock CLAUDE.md 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 2mo 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.md · 158 lines

How it starts

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

CLAUDE.md

NETrock - .NET 10 API (Clean Architecture) + SvelteKit frontend (Svelte 5), fully dockerized.

The backend API is the core of the project. It is a public-facing API designed to serve any client - multiple frontends, mobile apps, other backends, third-party integrations. The SvelteKit frontend is a fully functional reference client, not a throwaway. Treat every API change as if unknown consumers depend on it.

Frontend (SvelteKit :5173) → /api/* proxy → Backend API (.NET :8080) → PostgreSQL / MinIO
Backend layers: WebApi → Application ← Infrastructure → Domain + Shared

Hard Rules

Backend

  • Result/Result<T> for all fallible operations - never throw for business logic
  • TimeProvider (injected) - never DateTime.UtcNow or DateTimeOffset.UtcNow
  • C# 13 extension(T) syntax for new extension methods
  • Never null! - fix the design instead
  • ProblemDetails (RFC 9457) for all error responses - never anonymous objects or raw strings
  • internal on all Infrastructure service implementations
  • /// <summary> XML docs on all public and internal API surface
  • System.Text.Json only - never Newtonsoft.Json
  • NuGet versions in Directory.Packages.props only - never in .csproj

Frontend

  • Never hand-edit v1.d.ts - run pnpm run api:generate
  • Svelte 5 Runes only - never export let
  • interface Props + $props() - never $props<{...}>()
  • Logical CSS only: ms-*/me-*/ps-*/pe-* - never ml-*/mr-*/pl-*/pr-*
  • No any - define proper interfaces
  • Feature folders in $lib/components/{feature}/ with barrel index.ts
  • Use shadcn-svelte components (pnpm dlx shadcn-svelte@latest add <name>) - never build what shadcn already provides
  • Pixel-perfect responsiveness - mobile, tablet, desktop, ultrawide, landscape and portrait
  • Touch targets minimum 44px on all interactive elements
  • Unified UX - reuse existing components and patterns so the app feels like one product, not five
  • No overflow - dialogs, modals, and pages must never show scrollbars. Fit content to viewport.

Read the full file on GitHub · 158 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. 2mo ago First seen · 158 lines · 2,492 tokens per session scan A 3e14ea568753

Subscribe to this mod's changes

netrock CLAUDE.md is an instructions file published in the GitHub repository fpindej/netrock (235 stars, last pushed 4d ago), licensed MIT. It adds 2,492 tokens to every session, about $0.0100 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

netrock CLAUDE.md compared with instructions from other repositories

netrock CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
netrock CLAUDE.mdfpindej/netrockInstructions file2354d agoMITA2,492Claude Code
plan-forge api-patterns.instructions.mdsrnichols/plan-forgeInstructions file62d agoMITA2,049GitHub Copilot
plan-forge messaging.instructions.mdsrnichols/plan-forgeInstructions file62d agoMITA1,477GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot