dotnet-pilot: Instructions file for Claude Code

CLAUDE.md

dotnet-pilot CLAUDE.md is an instructions file for Claude Code from zdanovichnick/dotnet-pilot. It costs 7,147 tokens per session, scanned B, original, MIT.

Repository instructions for DotnetPilot, a Claude Code plugin used while working in .NET projects. They describe the plugin's files, agents, commands, hooks, and Roslyn MCP server, where Roslyn provides .NET code analysis.

In plain words
What is it for?
Use them when authoring DotnetPilot agents, slash commands, skills, hooks, MCP configuration, or plugin metadata. They also guide checks for changes intended to run inside other .NET repositories.
Why use it?
They clarify how to edit and validate the plugin, including that its own repository is not a .NET application and should not be built with dotnet build.

Instructions file for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions CLAUDE.md.

This is zdanovichnick/dotnet-pilot's own configuration. It tells Claude Code how to work on dotnet-pilot 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 dotnet-pilot configures →

Runs only inside a plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else, and the catalogue could not identify which plugin ships it.

Reuse

Borrowing it

Nothing to install: this file belongs to zdanovichnick/dotnet-pilot. 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/zdanovichnick/dotnet-pilot/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/zdanovichnick/dotnet-pilot

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 dotnet-pilot CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/zdanovichnick/dotnet-pilot/claude-md"><img src="https://agentmods.dev/badge/instructions/zdanovichnick/dotnet-pilot/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7,147 This file is loaded in full into every session.
When invoked 7,147 The same file — it is already loaded in full.
Security scan B 1 finding. 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.07147 $0.07147
Opus 5.5 $0.02859 $0.02859
Sonnet 5.5 $0.01429 $0.01429
Haiku 4.5 $0.00715 $0.00715

Measured 21d ago against content hash ff12b936b3c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

dotnet-pilot CLAUDE.md scanned grade B with 1 finding 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 21d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- `hooks/_lib/version.js` — semver compare shared by the two sync hooks; `hooks/_lib/json-file.js` — BOM-preserving JSON read (`{exists, ok, value, bom}`) and atomic write for `~/.claude/settings.json`, so an unparseable
CLAUDE.md · 268 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Repository Context

This repo IS the DotnetPilot plugin source — not a .NET project. There is no dotnet build to run here; artifacts are Markdown (agents/commands/skills) and Node/shell scripts (hooks). When editing this repo, you are authoring plugin behavior that runs inside other .NET projects.

Layout

  • .claude-plugin/plugin.json — plugin manifest (name, version, mcpServers pointer)
  • .claude-plugin/marketplace.json — marketplace listing for plugin distribution
  • .mcp.json — MCP server declarations (roslyn server dnp-roslyn configured)
  • agents/dnp-*.md — 9 agents with YAML frontmatter (name, description, tools, skills, model, effort, color). tools: lists exact tool names (Bash, Read, mcp__roslyn__*); plugin subagents ignore scoped tool forms, permission-mode keys, and the user-question tool, so none of those appear
  • commands/<category>/<name>.md — 16 slash commands invoked as /dotnet-pilot:<category>:<name>. Categories: project, dotnet, quality, utility. Commands with side effects carry disable-model-invocation: true
  • hooks/hooks.json — hook registry wiring matchers to scripts via ${CLAUDE_PLUGIN_ROOT}
  • hooks/dnp-*.js — the hooks listed under Hook Behaviors below (advisory unless stated: exit 0; emit additionalContext for guidance). Read a JSON event from stdin.
  • hooks/_lib/config.js — shared module used by every hook. Resolves .planning/config.json: repo-local path first, then user-scoped at ~/.claude/projects/<flattened-cwd>/ (where D:\Projects\Foo → D--Projects-Foo). hookEnabled(cwd, key) keys default on when config is absent; hookFlag(cwd, key) keys are opt-in and default off
  • hooks/hooks.json also declares "modules": ["./mods/register.ts"]: a Claude Code mod (no Node, no DOM; everything through $). hooks/mods/ holds register.ts (one module per plugin), build-status.ts (toasts at the 3rd/5th consecutive failure, streak in $.state), routing.ts (the module's single prompt.compose hook — the engine allows one per module and never follows $ across an import, so the routing and pressure sections are both built there), pressure.ts (a 0–100 pressure score from red runs / re-edits / corrections in $.ui.status, a toast or opt-in deny on test edits that loosen a test after a red run, a prompt.compose section only while the score is ≥ 60, and the /dnp-pressure command) and build-classify.ts, and pixel-city.tsx (the opt-in pixel_city band above the terminal prompt; its session.start is matched on { surface: 'terminal' } because pressure holds the module's one unmatched session.start, and /city is registered even with the option off so it can say how to enable it) with its painter — pixel-canvas.ts (canvas, noise, sprites, sun path), city-scene.ts (backdrop, city foreground, weather, cell encoding) and scene-beach.ts / scene-dino.ts / scene-sunset.ts; types/index.d.ts is the $.state contract, *.test.ts run with claude plugin test .. Mods are additive to the Node hooks and read only userConfig (build_status, routing, pressure, pressure_test_guard_block, pixel_city, pixel_city_scene), never .planning/config.json. The pressure mod is a behavioural proxy — it scores what the session shows (failures, retries, test edits), never the model's internal state; keep its wording to "pressure", not emotions
  • hooks/_lib/routing.md — the routing text shared by dnp-dotnet-priority and the routing mod
  • hooks/_lib/build-state.js — reader/writer for the build-fail state file shared by dnp-build-verify, dnp-stop-verify and the statusline (contract under Quality Gates)
  • hooks/_lib/version.js — semver compare shared by the two sync hooks; hooks/_lib/json-file.js — BOM-preserving JSON read ({exists, ok, value, bom}) and atomic write for ~/.claude/settings.json, so an unparseable file is never overwritten
  • hooks/__tests__/run.js, hooks/__tests__/check-consistency.js — hook harness and repo consistency gate (see Validating Plugin Changes); .github/workflows/hooks.yml runs both in CI
  • workflows/dnp-review.js — the review Workflow, auto-discovered as /dotnet-pilot:dnp-review; started only by quality:review (see Review Workflow)
  • scripts/dnp-review-preflight.js — Node preflight that shards a diff and writes the manifest the review Workflow consumes
  • rules/global-claude-md.md — template block injected into ~/.claude/CLAUDE.md by dnp-sync-global-claude-md.js when the plugin version is newer than the installed block (versioned markers keep it idempotent)
  • skills/<name>/SKILL.md — 15 skill packs loaded on demand via an agent's skills: list. Every SKILL.md carries when_to_use:; authentication, caching, ddd, error-handling, and resilience keep their detail in references/*.md
  • CHANGELOG.md — Keep-a-Changelog history; the only place that names removed commands and agents

Read the full file on GitHub · 268 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. 21d ago Changed · +185 tokens per session ff12b936b3c0
  2. 26d ago Changed · +59 tokens per session eef0d5e7c443
  3. 27d ago Changed · +2 lines · +328 tokens per session 3682decb1e95
  4. 1mo ago Changed · +48 lines · +2,385 tokens per session 28cb0e2ccb73
  5. 2mo ago First seen · 218 lines · 4,190 tokens per session scan B 19541da1f62e

Subscribe to this mod's changes

dotnet-pilot CLAUDE.md is an instructions file published in the GitHub repository zdanovichnick/dotnet-pilot (5 stars, last pushed 22d ago), licensed MIT. It adds 7,147 tokens to every session, about $0.0286 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens