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.
npx skills add christian289/dotnet-with-claudecode --skill formatting-wpf-csharp-codegit 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/skills/christian289/dotnet-with-claudecode/formatting-wpf-csharp-code)<a href="https://agentmods.dev/skills/christian289/dotnet-with-claudecode/formatting-wpf-csharp-code"><img src="https://agentmods.dev/badge/skills/christian289/dotnet-with-claudecode/formatting-wpf-csharp-code/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/skills/christian289/dotnet-with-claudecode/formatting-wpf-csharp-code"><img src="https://agentmods.dev/badge/skills/christian289/dotnet-with-claudecode/formatting-wpf-csharp-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00041 | $0.00845 |
| Opus 5.5 | $0.00016 | $0.00338 |
| Sonnet 5.5 | $0.00008 | $0.00169 |
| Haiku 4.5 | $0.00004 | $0.00085 |
Grade A, and why
formatting-wpf-csharp-code 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.
How it starts
The opening of the file, as written. The whole thing — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.
WPF and C# Code Formatting
Applies consistent code style to XAML and C# files.
1. Required Tools
.NET 10 SDK
All commands use dotnet dnx for cross-platform compatibility (Windows, Linux, macOS).
# Verify .NET 10 is available
dotnet --version # Should be 10.0.x or higher
XamlStyler (XAML Formatting)
Run via dotnet dnx (dotnet tool runner). No manual installation required.
dotnet format (C# Formatting)
Included with .NET SDK by default.
2. Configuration Files
Settings.XamlStyler
Copy from template to workspace root if Settings.XamlStyler doesn't exist.
Template location: templates/Settings.XamlStyler
Key settings:
AttributesTolerance: 1- Allow up to 1 attribute on same lineKeepFirstAttributeOnSameLine: true- Keep first attribute on element line
.editorconfig
Copy from template to workspace root if .editorconfig doesn't exist.
Template location: templates/.editorconfig
Key settings:
- Indentation: 4 spaces
- Line ending: CRLF (Windows)
- Max line length: 120
3. Formatting Commands
XAML Formatting
# Format all XAML files in workspace
dotnet dnx -y XamlStyler.Console -- -d "{workspace}" -r -c "{workspace}/Settings.XamlStyler"
# Format single file
dotnet dnx -y XamlStyler.Console -- -f "{file.xaml}" -c "{workspace}/Settings.XamlStyler"
dotnet dnx Options:
-y: Auto-accept confirmation prompt--: Separator between dnx options and tool arguments
XamlStyler Options:
-d: Target directory-f: Target file-r: Recursive processing-c: Configuration file path
C# Formatting
# Format entire solution
dotnet format "{solution.sln}" --no-restore
# Format specific project only
dotnet format "{project.csproj}" --no-restore
# Format single file
dotnet format "{project.csproj}" --include "{file.cs}" --no-restore
Options:
--no-restore: Skip NuGet restore (faster)--include: Target specific file
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 2mo ago First seen · 133 lines · 41 tokens per session scan A fbbaf9792d53
formatting-wpf-csharp-code is a skill published in the GitHub repository christian289/dotnet-with-claudecode (42 stars, last pushed 4mo ago), licensed MIT. It adds 41 tokens to every session and 845 once invoked, about $0.0002 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-09-03.
formatting-wpf-csharp-code compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| formatting-wpf-csharp-codechristian289/dotnet-with-claudecode | Skill | 42 | 4mo ago | MIT | A | 41 | Claude Code |
| fluence-consumer-startersintaxasn/Fluence.Wpf | Skill | 15 | today | BSD-3-Clause | A | 39 | Claude Code, Codex |
| generate-code-csAzure/azure-sdk-for-net | Skill | 6.1k | today | MIT | A | 26 | Claude Code, Codex |
| author-testAzure/azure-sdk-for-net | Skill | 6.1k | today | MIT | A | 68 | Claude Code, Codex |
| opentelemetry-net-instrumentationAaronontheweb/dotnet-skills | Skill | 1.3k | yesterday | MIT | A | 56 | Claude Code |
| add-sliceSSWConsulting/SSW.VerticalSliceArchitecture | Skill | 418 | 3d ago | MIT | A | 125 | Claude Code |
| wpfmanagedcode/dotnet-skills | Skill | 527 | 17d ago | MIT | A | 122 | Claude Code, Codex |