wpf-code-auditor

wpf-code-auditor is an agent for coding agents from christian289/dotnet-with-claudecode. It costs 87 tokens per session (1,817 once invoked), scanned A, original, MIT.

A specialist that checks an entire Windows Presentation Foundation (WPF) application for missing implementations and inconsistent coding patterns. WPF is Microsoft's framework for building Windows desktop user interfaces.

In plain words
What is it for?
Auditing WPF data binding, shared resources, infrastructure classes, and other project-wide patterns; it can also create missing support classes such as BindingProxy.
Why use it?
A normal code review often focuses on recent changes, while this checks existing code across the whole application and can find problems before they appear at runtime.

Agent

Part of the wpf-dev-pack plugin — 9 agents, 2 MCP servers shipped together

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 agents/christian289/dotnet-with-claudecode/wpf-code-auditor
Clone the repo
git clone --depth 1 https://github.com/christian289/dotnet-with-claudecode

Or install wpf-dev-pack, the plugin that ships this one along with the rest of its 9 agents, 2 MCP servers.

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 wpf-code-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/christian289/dotnet-with-claudecode/wpf-code-auditor.svg)](https://agentmods.dev/agents/christian289/dotnet-with-claudecode/wpf-code-auditor)
Your own site
<a href="https://agentmods.dev/agents/christian289/dotnet-with-claudecode/wpf-code-auditor"><img src="https://agentmods.dev/badge/agents/christian289/dotnet-with-claudecode/wpf-code-auditor.svg" alt="Measured on agentmods" height="20"></a>
Per session 87 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,817 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.00087 $0.01817
Opus 5 $0.00044 $0.00908
Sonnet 5 $0.00017 $0.00363
Haiku 4.5 $0.00009 $0.00182

Measured 4d ago against content hash 59b8ed0409aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

wpf-code-auditor 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 4d 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.

wpf-dev-pack/agents/wpf-code-auditor.md · 205 lines

How it starts

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

WPF Code Auditor - Codebase Pattern Consistency Specialist

Role

Audit the entire WPF codebase for pattern violations, missing implementations, and consistency issues. Unlike the Code Reviewer (which reviews changed code in PRs), this agent proactively scans existing code to find problems before they manifest at runtime.

When violations are found, the agent can also fix them — including generating missing infrastructure classes like BindingProxy if they don't exist in the project.

Audit Categories

1. BindingProxy Audit (CLR Collection Bindings)

WPF CLR collections (e.g., Behaviors, Visuals, custom attached collections) don't inherit DataContext from their parent FrameworkElement. Direct {Binding} inside these collections fails at runtime with "Cannot find governing FrameworkElement or FrameworkContentElement for target element."

The standard community solution is a BindingProxy class — a Freezable-based DependencyObject that bridges the DataContext gap. This is NOT a Microsoft-provided class; each project must implement its own.

Phase 1: Discover the project's BindingProxy implementation

BindingProxy is a community pattern, not part of WPF framework. The agent must first find the project's implementation.

Step 1: Search for existing BindingProxy class
  → Grep for "class.*BindingProxy" or "class.*DataContextProxy" in *.cs files
  → Look for Freezable subclass with a "Data" DependencyProperty

Step 2: If found, note:
  → Full class name and namespace (e.g., SMVT.Core.UI.Utilities.BindingProxy)
  → The DependencyProperty name (usually "Data")
  → The xmlns prefix used in XAML (e.g., coreUIUtilities)
  → The StaticResource key convention (e.g., "ViewModelProxy")

Step 3: If NOT found, create one (see "BindingProxy Generation" below)

Phase 2: Scan for violations

Step 1: Find XAML files with CLR collection properties that don't inherit DataContext
  → Common patterns: *.Behaviors, *.Visuals, Interaction.Behaviors, 
    custom attached collections
  → Project-specific: search for collection DependencyProperties on custom controls

Step 2: In each file, check if BindingProxy is in the collection parent's Resources

Step 3: Verify all {Binding} inside the collection use
  {Binding Source={StaticResource <ProxyKey>}, Path=Data.<Property>}

Step 4: Report files with direct bindings (missing proxy)

Read the full file on GitHub · 205 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. 4d ago First seen · 205 lines · 87 tokens per session scan A 59b8ed0409aa

Subscribe to this mod's changes

wpf-code-auditor is an agent published in the GitHub repository christian289/dotnet-with-claudecode (41 stars, last pushed 1mo ago), licensed MIT. It adds 87 tokens to every session and 1,817 once invoked, about $0.0004 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 agents, from other repositories

documentation-updater

Technical writing specialist for creating and maintaining documentation. Use proactively after code changes to detect and fix documentation drift - new or changed APIs, parameters, configuration, dependencies, or removed features. Also use when asked to write or update READMEs, getting-started guides, API references…

sintaxasn/Fluence.Wpf · 91 tokens

theme-slot-auditor

Read-only auditor for Fluence.Wpf theming structure. Use after any theme, brush, color, accent, or ApplicationThemeManager change to verify the three-slot MergedDictionaries invariant, that slot [0] is rebuilt and replaced every Apply, DynamicResource usage, BrushFactory auto-twinning, canonical WinUI key names, and…

sintaxasn/Fluence.Wpf · 90 tokens

net472-feasibility-checker

Read-only checker that verifies new or changed code in Fluence.Wpf stays runnable on net472. Use after adding APIs, language features, or dependencies, since LangVersion=latest lets modern C# compile but a runtime API that ships only in .NET 10 fails on the separate net472 test lane. Enforces AGENTS.md section 4.3.

sintaxasn/Fluence.Wpf · 81 tokens

winui-parity-reviewer

Read-only reviewer for Fluence.Wpf control and theme changes. Use to compare WPF templates, resources, and behavior against WinUI 3 CommonStyles and official Microsoft guidance.

sintaxasn/Fluence.Wpf · 43 tokens

NUnit.Agent

Assists with NUnit development, documentation, and CI configuration.

nunit/nunit · 16 tokens

release-manager

Owns the end-to-end modelcontextprotocol/csharp-sdk release process, orchestrating the prepare-release and publish-release skills (and the bump-version and breaking-changes skills they build on) across five stages: prepare (assess SemVer, bump the version, run ApiCompat/ApiDiff, review docs, draft release notes, open…

modelcontextprotocol/csharp-sdk · 317 tokens