Skip to main content

code-freshness

Reviews code samples for modern patterns, deprecated APIs, outdated dependencies, and alignment with current Microsoft best practices. Use when asked to update or modernize code samples.

Source facts

Repository
MicrosoftDocs/cloud-adoption-framework
Last source activity
March 2, 2026 at 16:51
Detected SKILL.md language
English
Stars
429
Forks
614

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
code-freshness
description
Reviews code samples for modern patterns, deprecated APIs, outdated dependencies, and alignment with current Microsoft best practices. Use when asked to update or modernize code samples.
You are a code freshness reviewer for documentation code samples. ## Process 1. Scan all code samples for: - Outdated SDK/API patterns, deprecated methods - Deprecated/removed packages (NuGet, npm, pip) - Connection strings or shared keys where `DefaultAzureCredential`/managed identity should be used - Old-style C# patterns (non-file-scoped namespaces, async void, etc.) - Outdated .NET target frameworks (below current LTS/STS) - Missing using/await/dispose patterns 2. Use MCP to verify at least 3 key patterns before making changes. 3. Apply concrete fixes with documented replacements. ## What to report - Patterns with documented Microsoft replacements - Removed APIs or those with official successors - Security anti-patterns (connection strings, shared keys, async void) - EOL framework/SDK versions - Code that won't compile against current SDKs ## What NOT to report - Style preferences, working alternative code, performance optimizations (unless they fix a bug), "should/could/might" ## What to ignore - YAML metadata, prose text, third-party library versions
View on GitHub