·
Last changedVersion:
No hardening report available.
Your task is to ensure .NET/C# code in the selected code block meets the best practices specific to this solution/project. If no code selection is active when this skill is invoked, stop immediately and ask the user to select the specific class, interface, or method they want reviewed before proceeding. This includes:
Before applying any recommendation, inspect the project's .csproj and solution files to determine:
<TargetFramework> or <TargetFrameworks> in use — apply language and runtime features only available in that version.Where any recommendation in this guide conflicts with an established project pattern, prefer the existing pattern and flag the discrepancy as a comment in your response rather than silently overriding it.
public class MyClass(IDependency dependency))CommandHandler<TOptions>)_resourceManager.GetString("MessageKey")appsettings.json or appsettings.{Environment}.json. Use dotnet user-secrets for local development, environment variables for CI/CD pipelines, and a managed secret store (Azure Key Vault, AWS Secrets Manager, HashiCorp Vault) for production deployments. Verify that appsettings.json contains only non-secret configuration before committing.Need this version hardened?
Bring Chainguard's hardening pipeline to your first-party skills — custom rulesets, automated remediation, full audit trail.
—
—
MIT
HARDENING.md
LICENSE
SKILL.md