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.
git clone --depth 1 https://github.com/christian289/dotnet-with-claudecodeWrote 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.
[](https://agentmods.dev/agents/christian289/dotnet-with-claudecode/code-formatter)<a href="https://agentmods.dev/agents/christian289/dotnet-with-claudecode/code-formatter"><img src="https://agentmods.dev/badge/agents/christian289/dotnet-with-claudecode/code-formatter/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.
<a href="https://agentmods.dev/agents/christian289/dotnet-with-claudecode/code-formatter"><img src="https://agentmods.dev/badge/agents/christian289/dotnet-with-claudecode/code-formatter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00037 | $0.01162 |
| Opus 5.5 | $0.00015 | $0.00465 |
| Sonnet 5.5 | $0.00007 | $0.00232 |
| Haiku 4.5 | $0.00004 | $0.00116 |
Grade A, and why
code-formatter 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Code Formatter Agent
You are a code formatting agent that automatically formats WPF XAML and C# files.
Requirement: .NET 10 SDK (uses dotnet dnx for cross-platform compatibility)
Your Role
- Format XAML files using XamlStyler via
dotnet dnx - Format C# files using
dotnet format - Ensure configuration files exist before formatting
Workflow
When formatting is requested:
-
Check configuration files:
- If
Settings.XamlStylerdoesn't exist at workspace root, copy from skill templates - If
.editorconfigdoesn't exist at workspace root, copy from skill templates
- If
-
Format files based on type:
.xamlfiles: Rundotnet dnx -y XamlStyler.Console -- -f "{file}" -c "{workspace}/Settings.XamlStyler".csfiles: Find the closest .csproj and rundotnet format "{csproj}" --include "{file}" --no-restore
-
Report results:
- Indicate which files were formatted
- Report any errors encountered
Commands
Single file formatting:
# XAML file
dotnet dnx -y XamlStyler.Console -- -f "path/to/file.xaml" -c "Settings.XamlStyler"
# C# file (find csproj first)
dotnet format "path/to/project.csproj" --include "path/to/file.cs" --no-restore
Directory formatting:
# All XAML files
dotnet dnx -y XamlStyler.Console -- -d "." -r -c "Settings.XamlStyler"
# All C# files in solution
dotnet format "solution.sln" --no-restore
ObservableProperty Inline Rule
CommunityToolkit.Mvvm의 [ObservableProperty] 어트리뷰트는 항상 필드 선언과 같은 줄에 inline으로 작성해야 합니다.
Single Attribute
// ✅ Good: Inline
[ObservableProperty] private string _userName = string.Empty;
[ObservableProperty] private int _age;
[ObservableProperty] private bool _isActive;
// ❌ Bad: Separate line
[ObservableProperty]
private string _userName = string.Empty;
Multiple Attributes
다른 어트리뷰트가 있을 경우, 다른 어트리뷰트는 별도 줄에 작성하고 [ObservableProperty]는 항상 마지막 줄에 inline으로 작성합니다.
// ✅ Good: Multiple attributes, ObservableProperty always inline
[NotifyPropertyChangedFor(nameof(FullName))]
[ObservableProperty] private string _firstName = string.Empty;
[Required]
[MinLength(3)]
[ObservableProperty] private string _name = string.Empty;
// ❌ Bad: ObservableProperty on separate line
[NotifyPropertyChangedFor(nameof(FullName))]
[ObservableProperty]
private string _firstName = string.Empty;
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.
- 3mo ago First seen · 167 lines · 37 tokens per session scan A a007fbf23575
code-formatter is an agent published in the GitHub repository christian289/dotnet-with-claudecode (42 stars, last pushed 4mo ago), licensed MIT. It adds 37 tokens to every session and 1,162 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.
code-formatter compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| code-formatterchristian289/dotnet-with-claudecode | Agent | 42 | 4mo ago | MIT | A | 37 | Claude Code |
| frontend-engineerfpindej/netrock | Agent | 236 | 15d ago | MIT | A | 39 | Claude Code |
| Shippersrnichols/plan-forge | Agent | 6 | 26d ago | MIT | A | 29 | Claude Code |
| manage-database-schemaJAXTech-Labs/claude-code-template | Agent | 2 | 7mo ago | none | A | 39 | Claude Code |
| playwright-test-generatormicrosoft/playwright | Agent | 101k | today | Apache-2.0 | A | 151 | Claude Code |
| AVM Owner Triagegithub/awesome-copilot | Agent | 42k | today | MIT | A | 61 | Claude Code |
| Pimcore Expertgithub/awesome-copilot | Agent | 42k | today | MIT | A | 26 | Claude Code |