roninforge/roninforge-aspnet/aspnet-validate
Claude Code and agent skill by roninforge/roninforge-aspnet
- community
Checking that the SKILL.md file is still in the repository.
Scan an ASP.NET Core / .NET codebase for legacy patterns and anti-patterns: Startup.cs, sync-over-async, new HttpClient(), Newtonsoft.Json, IActionResult overuse, tracking queries, hand-rolled JWT, hardcoded secrets, CORS misconfiguration, Swashbuckle leftovers, missing CancellationToken.
Install
npx vskill@latest install roninforge/roninforge-aspnet/aspnet-validateSKILL.md
The same SKILL.md was published earlier as roninforge/roninforge-aspnet/aspnet-validate.
Validate ASP.NET Core Codebase
When to Use
When auditing AI-generated ASP.NET Core, reviewing a migration to .NET 9, or preparing for production. Output is a list of locations and suggested fixes.
Instructions
Run each grep. Each hit is a candidate; review case by case.
Legacy hosting
Sync over async
Each match needs visual inspection - .Result on a Task is bad, but .Result on a Func return type is fine.
Wrong JSON stack
HttpClient misuse
Every match should be replaced with an IHttpClientFactory injection.
Tracking-by-default reads
Returning IEnumerable from repositories
Hardcoded secrets / connection strings
CORS landmine
CORS policies often span multiple fluent-chain lines, so a single piped grep misses them. Run both and cross-reference the files manually:
If any file appears in both lists, the policy almost certainly combines them. Open and verify - the runtime throws InvalidOperationException when the policy executes.
Static mutable state in controllers
The --pcre2 flag is not portable; if your grep does not support lookaheads, run this two-step:
Hand-rolled JWT
Missing CancellationToken on async endpoints
String-interpolated log messages
Swashbuckle in a .NET 9 project
IActionResult returning everywhere
Many of these are valid (controllers with multiple result types). Flag for review, not auto-fix.
N+1: Include without AsSplitQuery on collections
Hits with multiple chained .Include of collection navigations should pair with .AsSplitQuery(); reference navigations (o.Customer) do not need it.
ConfigureAwait(false) usage
In application code (web project), every hit is noise to remove. In library code (NuGet packages), every await should have it.
Missing await using on IAsyncDisposable
Each hit on the second grep should be await using var ....
Task.Run wrapping async methods
Task.Run is for CPU-bound work; wrapping async IO adds a thread-pool hop for nothing.
Captive dependencies - singleton with scoped
Then for each singleton, verify the constructor parameters are not scoped (DbContext, IHttpContextAccessor, etc).
Output Format
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/aspnet-validate/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/roninforge/roninforge-aspnet/aspnet-validate)