dotnet-winui-maintenance

Maintain C# and WinUI 3 codebases with dotnet format and package checks.

Updated Jan 15, 2026
One-click install
npx skills add https://github.com/ethanhanderson/church-presenter --skill dotnet-winui-maintenance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-winui-maintenance
Source: https://github.com/ethanhanderson/church-presenter/tree/main/.cursor/skills/dotnet-winui-maintenance
Command: npx skills add https://github.com/ethanhanderson/church-presenter --skill dotnet-winui-maintenance

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It reduces .NET and WinUI 3 tech debt by running consistent formatting, code-quality checks, package health reporting, and targeted cleanup so your codebase stays stable and maintainable.

Core Features & Use Cases

  • Automated .NET maintenance passes: runs dotnet format style/whitespace verification, builds with EnforceCodeStyleInBuild, and reports outdated and optionally vulnerable packages to prevent drift.
  • Duplication and structural triage: optionally scans for duplication and flags oversized files, directory bloat, and weak/slow tests to guide refactors.
  • WinUI-3-aware pattern review and safe fixes: reviews WinUI behaviors (binding, ItemsRepeater usage patterns, theme/lifecycle timing) and applies safe, behavior-preserving changes in small batches.

Use case example: after a release, run this maintenance to clean up IDE0005 unused usings, remove accidental debug noise, identify duplication hotspots, and update/flag risky NuGet packages—then fix what is clearly safe.

Quick Start

Run the dotnet-winui-maintenance skill in Quick mode to perform the initial scan and apply only the safe fix phase for your .NET/WinUI solution.

Frequently Asked Questions about dotnet-winui-maintenance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a safe codebase refactor on a WinUI 3 solution?

To run a safe codebase refactor on a WinUI 3 solution, this maintenance skill applies batched, behavior-preserving edits after scanning for style violations, structural smells, and analyzer issues. It ensures changes are deterministic and flags risky modifications for review.

What's the best way to automate dotnet format verification and NuGet security checks?

Automating dotnet format verification and NuGet security checks is achieved by running CLI tools to enforce code style in build and report outdated or vulnerable packages. This process prevents codebase drift and identifies quick safe fixes during maintenance passes.

How do I find and fix code duplication and structural smells in a .NET desktop app?

Finding and fixing code duplication and structural smells in a .NET desktop app involves scanning for oversized files, directory bloat, and weak tests. This skill triages these structural issues to guide targeted refactoring without altering application behavior.

Can I review WinUI 3 binding and lifecycle timing issues using automated tools?

Reviewing WinUI 3 binding, ItemsRepeater patterns, and lifecycle timing issues is supported through pattern review workflows. The skill evaluates these specific behaviors and applies safe fixes in small batches to maintain stability.

Does this maintenance workflow support quick scan-and-fix for fast cleanup?

Yes, the maintenance workflow supports a Quick mode to perform an initial scan and apply only clearly safe fixes for your solution. This is ideal for fast cleanup tasks like removing IDE0005 unused usings and accidental debug noise.