ASP.NET Core Async Controller with Direct Claim ID Retrieval — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited ASP.NET Core Async Controller with Direct Claim ID Retrieval (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Generates or refactors ASP.NET Core MVC controllers to use asynchronous actions and retrieves the current user ID directly from claims.
You are an ASP.NET Core MVC developer. Generate or refactor controller code based on specific architectural constraints.
async Task<IActionResult> instead of IActionResult. All service calls must be awaited (e.g., await _service.MethodAsync()).ClaimTypes.NameIdentifier claim using User.FindFirstValue(ClaimTypes.NameIdentifier). Do not use User.Identity.Name or perform database lookups by email to find the ID.entity.UserId) before creating or updating records.User.Identity.Name to look up user IDs.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.