# validate-microsoft-foundry-hosted-agent

Adopt this skill: https://proskills.md/skills/other/microsoft-foundry-dev-tools-microsoft-foundry-skills-validate-microsoft-foundry

Page: https://proskills.md/skills/other/microsoft-foundry-dev-tools-microsoft-foundry-skills-validate-microsoft-foundry
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: microsoft-foundry/skills/validate-microsoft-foundry-hosted-agent/SKILL.md
size: 1422
upstream: https://github.com/microsoft/foundry-dev-tools/blob/main/microsoft-foundry/skills/validate-microsoft-foundry-hosted-agent/SKILL.md

````text
---
name: validate-microsoft-foundry-hosted-agent
description: Validate one Microsoft Foundry hosted agent against Microsoft Foundry best practices and open its validation report. Use when the user explicitly asks to validate a Foundry hosted agent or invokes this skill.
compatibility: Requires GitHub Copilot with the microsoft-foundry skill and hosted-agent-validation-report canvas.
---

# Validate a Microsoft Foundry hosted agent

Treat the slash-command input as free-form validation input:

1. Use its `agentPath`, or the current working directory when none is supplied. Preserve `rulesFile` and other input.
2. Load the `microsoft-foundry` skill and follow `foundry-agent/validate/validate.md`. Pass `agentPath` as the only target context; the canonical workflow selects and validates one hosted agent.
3. If the workflow returns `no-hosted-agent`, ask once for a direct path and retry. Stop if the user provides no path or the retry finds no agent.
4. When the workflow returns a JSON/Markdown report pair, open exactly one `hosted-agent-validation-report` canvas with the returned JSON path:

   ```json
   {
     "report": "<absolute or workspace-relative JSON report path>"
   }
   ```

5. Derive a stable instance ID from the report path. Use only alphanumeric characters, `.`, `_`, or `-`; start with an alphanumeric character; and limit it to 128 characters.
6. Do not open a canvas without a report pair.
````

## File: README.md
upstream: https://github.com/microsoft/foundry-dev-tools/blob/main/README.md

```text
# Microsoft Foundry DevTools

https://github.com/user-attachments/assets/66a5dd71-5bc6-4c6b-a4db-5676e364c74f

[![Get started with Foundry](https://img.shields.io/badge/Foundry-Get_started-0078D4?style=flat-square)](https://learn.microsoft.com/en-us/azure/foundry/how-to/develop/install-cli-sdk?tabs=windows%2Cpython%2Cazd-ai)
[![Install Foundry Toolkit for VS Code](https://img.shields.io/badge/VS_Code-Install_Toolkit-0098FF?style=flat-square)](https://marketplace.visualstudio.com/items?itemName=ms-windows-ai-studio.windows-ai-studio)
[![Join the Foundry community on Discord](https://img.shields.io/badge/Discord-Join_the_community-5865F2?style=flat-square&logo=discord&logoColor=white)](https://aka.ms/azureaifoundry/discord)

**Your idea. Your workflow. Build with Foundry.**

Build AI applications and agents with [Microsoft Foundry](https://azure.microsoft.com/products/ai-foundry/), from your first local experiment to a deployed agent. Choose tools for your terminal, coding agent, VS Code, or a guided visual workflow.

This repository is your starting point for Foundry developer tools, documentation, and community feedback. It also hosts the source code for **Foundry Canvas**.

<a id="choose-your-tools"></a>

## 🧰 Choose your tools

Start with the workflow that fits how you work. These tools work together, so you can move between your terminal, coding agent, and visual tools as your project grows.

| Tool | What you can do | Explore | Release notes |
| --- | --- | --- | --- |
| ⌨️ **Azure Developer CLI (`azd`)** | Use `azd` and its Foundry extensions (`azd ai`) to scaffold, deploy, evaluate, and automate AI applications and agents from the terminal. | [Repository and quick start](https://github.com/Azure/azure-dev) | [Release notes](https://github.com/Azure/azure-dev/blob/main/cli/azd/CHANGELOG.md) |
| 🧠 **Foundry Skills** | Give your coding agent reusable guidance for Foundry development. The Microsoft Foundry Skill helps it build, deploy, and manage agents and models with `azd`. | [Skill guide](https://learn.microsoft.com/en-us/azure/foundry/how-to/develop/use-microsoft-foundry-skill) | [Release notes](https://github.com/microsoft/GitHub-Copilot-for-Azure/releases) |
| 💻 **Foundry Toolkit for VS Code** | Discover models, build and test agents, evaluate results, and manage Foundry resources without leaving VS Code. Formerly AI Toolkit. | [Toolkit documentation](https://code.visualstudio.com/docs/intelligentapps/overview?azure-portal=true) | [Release notes](https://microsoft.github.io/foundry-dev-tools/) |
| 🎨 **Foundry Canvas** | Design, configure, test, and deploy hosted agents from a guided side panel in GitHub Copilot App, with Copilot making the code changes. | [Canvas overview](https://learn.microsoft.com/en-us/azure/foundry/agents/concepts/foundry-canvas) | [Release notes](./microsoft-foundry/changelog.md) |

<a id="get-started"></a>

## 🚀 Get started

Follow [Prepare your development environment](https://learn.microsoft.com/en-us/azure/foundry/how-to/develop/install-cli-sdk?tabs=windows%2Cpython%2Cazd-ai) for prerequisites and setup on Windows, macOS, or Linux. **Foundry DevPack** is the recommended way to install the developer tools together. The guide also covers installing each tool separately.

DevPack adds the Toolkit and Canvas extensions only when their host apps are present. It does not install VS Code or GitHub Copilot App. See the [DevPack installer releases](https://github.com/microsoft/foundry-dev-tools/releases?q=devpack-installer&expanded=true) for version history.

| Your starting point | Next step |
| --- | --- |
| **Terminal** | [Install `azd` and the Foundry extensions](https://learn.microsoft.com/en-us/azure/foundry/how-to/develop/install-cli-sdk?tabs=windows%2Cpython%2Cazd-ai#install-developer-tools-separately). |
| **Coding agent** | [Install the Microsoft Foundry Skill](https://learn.microsoft.com/en-us/azure/foundry/how-to/develop/use-microsoft-foundry-skill) for your coding-agent host. |
| **VS Code** | [Install Foundry Toolkit](https://marketplace.visualstudio.com/items?itemName=ms-windows-ai-studio.windows-ai-studio), then follow the [Toolkit setup guide](https://code.visualstudio.com/docs/intelligentapps/overview#_install-and-setup). |
| **GitHub Copilot App** | Open the **Customize** tab, select **Plugin**, search for `microsoft-foundry`, and install it from the [awesome-copilot marketplace](https://awesome-copilot.github.com/plugin/microsoft-foundry/). Follow the [Canvas guide](https://learn.microsoft.com/en-us/azure/foundry/agents/concepts/foundry-canvas) to build your first hosted agent. |

<a id="source-code-and-contributions"></a>

## 🛠️ Source code and contributions

The tools have different source-code homes. This repository does not contain the implementation of every tool listed above.

| Tool | Source code |
| --- | --- |
| **azd** | Developed in [Azure/azure-dev](https://github.com/Azure/azure-dev). See its [contributing guide](https://github.com/Azure/azure-dev/blob/main/cli/azd/CONTRIBUTING.md). |
| **Foundry Skills** | Developed in [microsoft/GitHub-Copilot-for-Azure](https://github.com/microsoft/GitHub-Copilot-for-Azure). Browse the [Microsoft Foundry Skill source](https://github.com/microsoft/GitHub-Copilot-for-Azure/tree/main/plugins/azure-skills/skills/microsoft-foundry) and [contributing guide](https://github.com/microsoft/GitHub-Copilot-for-Azure/blob/main/CONTRIBUTING.md). |
| **Foundry Toolkit for VS Code** | **Not open source.** Its implementation is not in this repository, but we welcome Toolkit issues and feature requests here. |
| **Foundry Canvas** | Source code is in [`microsoft-foundry/`](./microsoft-foundry) in this repository. See its [README](./microsoft-foundry/README.md) for installation and usage. |

We welcome contributions to the source and documentation available in these repositories. Follow the contribution guidance in the repository you want to change. For contributions here, see the [Code of Conduct](./CODE_OF_CONDUCT.md). Source code in this repository is covered by its [license](./LICENSE); the closed-source Toolkit implementation is not included.

<a id="join-the-conversation"></a>

## 💬 Join the conversation

Talk with the developers building these tools. Share what you are working on, ask questions, discuss ideas, and help us improve the experience. **You do not need to contribute code to take part.** Whether you have a first experiment, a feature idea, or a bug to report, you are welcome here.

| Tool | Questions and ideas | Bugs and feature requests |
| --- | --- | --- |
| **azd** | [Discussions](https://github.com/Azure/azure-dev/discussions) | [Issues](https://github.com/Azure/azure-dev/issues) |
| **Foundry Skills** | [Discussions](https://github.com/microsoft/GitHub-Copilot-for-Azure/discussions) | [Issues](https://github.com/microsoft/GitHub-Copilot-for-Azure/issues) |
| **Foundry Toolkit for VS Code** | [Start or join an issue conversation](https://github.com/microsoft/foundry-dev-tools/issues) | [Issues](https://github.com/microsoft/foundry-dev-tools/issues) |
| **Foundry Canvas** | [Start or join an issue conversation](https://github.com/microsoft/foundry-dev-tools/issues) | [Issues](https://github.com/microsoft/foundry-dev-tools/issues) |

Search existing discussions and issues first. When you report a bug, include the tool name, version, operating system, steps to reproduce, and expected behavior. Remove secrets and personal data from logs and screenshots.

For security vulnerabilities, follow our [security reporting policy](./SECURITY.md) instead of opening a public issue.

<a id="documentation-and-updates"></a>

## 📚 Documentation and updates

- [Foundry development environment](https://learn.microsoft.com/en-us/azure/foundry/how-to/develop/install-cli-sdk?tabs=windows%2Cpython%2Cazd-ai): prerequisites and installation.
- [Foundry Toolkit documentation](https://code.visualstudio.com/docs/intelligentapps/overview?azure-portal=true) and [tutorials](https://a
```
