Validate a Foundry Hosted Agent
Review one Microsoft Foundry hosted agent against deployment, security, reliability, observability, evaluation, and agent-design best practices without changing the agent or its Azure resources.
⚠️ Important: This sub-skill is strictly read-only. Never provision or deploy, run the application or agent, or create, update, or delete any Azure resource.
When to Use This Skill
Use this sub-skill only when the user explicitly asks to:
- Validate whether Microsoft Foundry hosted-agent code meets Microsoft Foundry best practices.
- Explicitly use this validation sub-skill.
Do not invoke this sub-skill proactively during agent creation, deployment, invocation, troubleshooting, optimization, or a general code review.
Hosted Agent Validation Workflow
Step 1: Resolve the Agent Path
- If the user provided a hosted-agent path, validate that path.
- Otherwise, validate whether the current directory is a Microsoft Foundry hosted-agent path.
- A valid path must identify a hosted agent configured with
host: azure.ai.agentinazure.yaml. - If neither path is valid, ask the user to provide the Microsoft Foundry hosted-agent path. Do not search other directories.
Step 2: Load and Validate Rules
- Select exactly one rules file:
- If the prompt provides
agent-validation-rules.yaml, use it.
- If the prompt provides