dotnet

A set of guidelines for developing .NET applications, including their services, data storage, command-line interfaces, web interfaces, and MCP tools. MCP tools are interfaces that let an AI agent call application functions.

In plain words
What is it for?
Use it when changing .NET services, managers, dependency injection, database persistence, data-transfer objects, mappings, logging, tests, CLI workflows, or MCP tool interfaces.
Why use it?
It helps keep shared code organized, dependencies flowing in the right direction, data access consistent, and long-running operations cancellable and testable.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/aterdev/perigon.cli/dotnet
Any agent
npx skills add AterDev/Perigon.CLI --skill dotnet
Clone the repo
git clone --depth 1 https://github.com/AterDev/Perigon.CLI

Made for: Claude Code, Codex.

Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 333 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00061 $0.00333
Opus 5 $0.00030 $0.00167
Sonnet 5 $0.00012 $0.00067
Haiku 4.5 $0.00006 $0.00033

Measured yesterday against content hash 36db1ab86079, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

dotnet 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 yesterday.

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.

.agents/skills/dotnet/SKILL.md · 30 lines

What it actually says

.NET Application Development

Workflow

  1. Identify whether the change belongs in an app surface, service, manager, MCP tool, DTO/model, CodeGenerator, or Share.
  2. Read the calling surface from CLI or Blazor before changing shared behavior.
  3. Check shared entities and DefaultDbContext before changing persistence.
  4. Preserve dependency direction: app projects depend on CoreMod; CoreMod depends on CodeGenerator and Share; Share stays foundational.

Conventions

  • Put cross-step workflows and external I/O in services.
  • Put MiniDb query/update behavior in managers.
  • Keep app-facing service methods stable when both CLI and Blazor consume them.
  • Use existing DTO patterns and Mapster helpers (MapTo, Merge, Adapt) where nearby code does.
  • Pass CancellationToken through file, HTTP, and long-running async operations.
  • Make HTTP services testable with injectable clients or handlers.
  • Log exceptions with structured logging before wrapping them in localized, user-friendly errors.
  • Keep MCP tools as protocol surfaces: stable parameter names, returned shapes, and no console output.

Tests

  • Add tests under tests/StudioMod.Tests/Services, Managers, or Commands depending on the observable behavior.
  • Stub HTTP and isolate filesystem/MiniDb state.
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. yesterday First seen · 30 lines · 61 tokens per session scan A 36db1ab86079

Subscribe to this mod's changes

dotnet is a skill published in the GitHub repository AterDev/Perigon.CLI (53 stars, last pushed 3d ago), licensed Apache-2.0. It adds 61 tokens to every session and 333 once invoked, about $0.0003 per session on Opus 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

aspire

Build, upgrade, and operate Aspire 13.5.x C# or TypeScript application hosts with the current CLI, AppHost, ServiceDefaults, integrations, dashboard, testing, MCP, and deployment patterns for distributed apps. USE FOR: Aspire.AppHost.Sdk, Aspire.Hosting., DistributedApplication.CreateBuilder, apphost.mts…

managedcode/dotnet-skills · 145 tokens

microsoft-agent-framework

Build .NET AI agents, harnesses, and multi-agent workflows with Microsoft Agent Framework using the right agent type, sessions, tools, workflows, hosting protocols, and enterprise guardrails. USE FOR: building or reviewing .NET code that uses Microsoft.Agents., Microsoft.Extensions.AI, AIAgent, HarnessAgent…

managedcode/dotnet-skills · 138 tokens

wpf

Build and modernize WPF applications on .NET with correct XAML, data binding, commands, threading, styling, and Windows desktop migration decisions. USE FOR: working on WPF UI, MVVM, binding, commands, or desktop modernization; migrating WPF from .NET Framework to .NET; integrating newer Windows capabilities into a…

managedcode/dotnet-skills · 122 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

azure-functions

Build, review, or migrate Azure Functions in .NET with correct execution model, isolated worker setup, bindings, DI, and Durable Functions patterns. USE FOR: working on Azure Functions in .NET; migrating from the in-process model to the isolated worker model; adding Durable Functions, bindings, or host configuration.…

managedcode/dotnet-skills · 113 tokens

maui

Build, review, or migrate .NET MAUI applications across Android, iOS, macOS, and Windows with correct cross-platform UI, platform integration, and native packaging assumptions. USE FOR: working on cross-platform mobile or desktop UI in .NET MAUI; integrating device capabilities, navigation, or platform-specific code…

managedcode/dotnet-skills · 121 tokens