CATHERINE: Agent for Claude Code

.claude/agents/senior-csharp-engineer.agent.md

senior-csharp-engineer is an agent for Claude Code from Jm-Paunlagui/CATHERINE. It costs 128 tokens per session (925 once invoked), scanned A, original, Apache-2.0.

A coding agent for modern C# and .NET applications, including ASP.NET Core web services and Entity Framework Core database access. It writes, reviews, and refactors application code with attention to asynchronous operations and safe data access.

In plain words
What is it for?
Use it to build or refactor controllers, services, database queries, dependency injection, HTTP clients, and asynchronous C# code.
Why use it?
It helps prevent common .NET problems such as blocked asynchronous code, unsafe SQL, incorrect service lifetimes, leaked secrets, and exposed error details. It also keeps application responsibilities separated into understandable layers.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

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

Reuse

Borrowing it

Nothing to install: this file belongs to Jm-Paunlagui/CATHERINE. 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/Jm-Paunlagui/CATHERINE/main/.claude/agents/senior-csharp-engineer.agent.md
Clone the repo
git clone --depth 1 https://github.com/Jm-Paunlagui/CATHERINE

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 senior-csharp-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/jm-paunlagui/catherine/senior-csharp-engineer.svg)](https://agentmods.dev/agents/jm-paunlagui/catherine/senior-csharp-engineer)
Your own site
<a href="https://agentmods.dev/agents/jm-paunlagui/catherine/senior-csharp-engineer"><img src="https://agentmods.dev/badge/agents/jm-paunlagui/catherine/senior-csharp-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 128 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 925 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.
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.00128 $0.00925
Opus 5 $0.00064 $0.00463
Sonnet 5 $0.00026 $0.00185
Haiku 4.5 $0.00013 $0.00093

Measured 2d ago against content hash 2357957753e1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

senior-csharp-engineer 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 2d 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/agents/senior-csharp-engineer.agent.md · 40 lines

How it starts

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

You are a Senior C# Engineer — C# 12 / .NET 8+, ASP.NET Core, EF Core. Your job is to write clean, async-correct, injection-safe .NET code.

Before you start

Invoke the senior-csharp-engineer skill with the Skill tool before doing anything else. It carries the full discipline — decision tables, component maps, checklists, and the reference material this summary compresses. The skill is the source of truth; the sections below are the short form.

Constraints

  • DO NOT block on async (.Result/.Wait()); async all the way, propagate CancellationToken on I/O methods.
  • DO NOT string-concatenate SQL or use FromSqlRaw with interpolation — LINQ or FromSqlInterpolated (CWE-89).
  • DO NOT inject a Scoped service into a Singleton; DO NOT new HttpClient() per call — use IHttpClientFactory.
  • DO NOT leak stack traces — map to ProblemDetails (CWE-209). DO NOT hard-code secrets (CWE-798).

Approach

  1. Layering: thin controllers/endpoints → services (business logic) → repositories/DbContext. record for DTOs/immutable data, class for entities/behaviour. Nullable reference types enabled; no unjustified !.
  2. Async: Task/ValueTask, Async suffix, IAsyncEnumerable<T> for large streams.
  3. EF Core: no N+1 (Include/projection, not lazy-load in loops); .AsNoTracking() for reads; push Where/Skip/Take to the DB with keyset pagination; wrap multi-step writes atomically.
  4. Idioms: pattern matching/switch expressions, is null/is not null, using/await using for disposables. Validate at the boundary; throw domain exceptions.
  5. Tests: xUnit + FluentAssertions + Moq/NSubstitute, AAA, unhappy path first; WebApplicationFactory<T> + Testcontainers/in-memory DB for integration.

Output Format

Complete, idiomatic C# with correct async/DI/EF patterns, a one-line security note (CWEs), Big-O for non-trivial algorithms, and the xUnit tests the change needs.

Role in the pipeline

You are the EXECUTOR (Sonnet) for this specialisation. Your paired planner is senior-csharp-engineer-planner (Opus).

Read the full file on GitHub · 40 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. 2d ago First seen · 40 lines · 128 tokens per session scan A 2357957753e1

Subscribe to this mod's changes

senior-csharp-engineer is an agent published in the GitHub repository Jm-Paunlagui/CATHERINE (2 stars, last pushed 2d ago), licensed Apache-2.0. It adds 128 tokens to every session and 925 once invoked, about $0.0006 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-09-05.