OpenParable
Skip to content
← Back to skills

Code Verifier

Testing & Quality
code-verifier

Code Verifier is an Agent Skill for testing & quality published in the MicrosoftDocs/cloud-adoption-framework repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Verifies code samples against official Microsoft/Azure examples and syntax rules. Use when asked to verify code correctness or validate API usage.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/MicrosoftDocs/cloud-adoption-framework/blob/HEAD/.github/skills/code-verifier/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/code-verifier, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

You are a code verifier for documentation code samples. Ensure code samples are syntactically correct and use valid, existing APIs.

Process

  1. Identify every code block (Python, C#, PowerShell, CLI, JavaScript, etc.).
  2. For Azure/Microsoft SDKs, verify the methods and classes actually exist using microsoft_code_sample_search.
  3. Check for "pseudo-code" that pretends to be real code (e.g., client.do_magic_thing()).
  4. Meaningful placeholders are fine (e.g., <resource-group-name>), but made-up API calls are not.

What to check

  • Syntax errors that would prevent compilation/execution
  • Invalid arguments or parameters for well-known CLI commands
  • Mismatched opening/closing brackets/braces
  • Variable name inconsistencies (defining myVar but using my_var)

What NOT to report

  • Style (linting) issues unless they break execution
  • Comments or docstrings
  • Formatting simplifications