microsoft-foundry-local — skill for Claude Code
Skill for Claude Code, Codex, Cursor and other IDEs with expert guidance on Microsoft Foundry Local development. Covers CLI setup, Hugging Face model compilation via Olive, embeddings, chat, audio transcription, and function calling.
CC-BY-4.0 214 installs ★ 818 updated 2026-11-09
npx skills add MicrosoftDocs/Agent-Skills --skill microsoft-foundry-local -a claude-codeWhat microsoft-foundry-local does
Runs across all listed platforms and provides reference on best practices, CLI troubleshooting, SDK choice (legacy vs current), and migration paths. Covers Foundry Local configuration: CLI operation, SDK setup, compiling HF models with Olive. Requires network access—fetches documentation via mcp_microsoftdocs:microsoft_docs_fetch or falls back to fetch_webpage.
Includes integration patterns: embeddings and chat APIs, audio transcription (live and file), OpenAI-compatible clients, LangChain, tool calling, REST endpoints. Organized by topic with a reference index linking to learn.microsoft.com documentation.
What it helps with
- compile Hugging Face models for local deployment with Olive
- integrate Foundry Local with LangChain, OpenAI SDK or REST endpoints
- build embeddings, chat, audio transcription and tool-calling features
- migrate from legacy SDK to the current version
- resolve CLI configuration and startup issues
Example prompts for the agent
- Help me compile a Hugging Face model with Olive for Foundry Local
- Show a Foundry Local transcription example with live microphone input
- Build a LangChain app that uses Foundry Local with tool calling
How to install microsoft-foundry-local
1Skills CLI (Vercel)
npx skills add MicrosoftDocs/Agent-Skills --skill microsoft-foundry-local -a claude-code2Manually: put the files in place
~/.claude/skills/microsoft-foundry-local/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/microsoft-foundry-local/
1Skills CLI (Vercel)
npx skills add MicrosoftDocs/Agent-Skills --skill microsoft-foundry-local -a codex2Manually: put the files in place
.agents/skills/microsoft-foundry-local/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add MicrosoftDocs/Agent-Skills --skill microsoft-foundry-local -a cursor2Manually: put the files in place
.cursor/skills/microsoft-foundry-local/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install MicrosoftDocs/Agent-Skills skills/microsoft-foundry-local2Manually: put the files in place
.github/skills/microsoft-foundry-local/SKILL.md1Skills CLI (Vercel)
npx skills add MicrosoftDocs/Agent-Skills --skill microsoft-foundry-local -a gemini-cli2Platform CLI
gemini skills install https://github.com/MicrosoftDocs/Agent-Skills --path skills/microsoft-foundry-localManually: put the files in place
.devin/skills/microsoft-foundry-local/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add MicrosoftDocs/Agent-Skills --skill microsoft-foundry-local -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about microsoft-foundry-local
How do I install microsoft-foundry-local in Claude Code?
Run npx skills add MicrosoftDocs/Agent-Skills --skill microsoft-foundry-local -a claude-code in your terminal, then find the skill at ~/.claude/skills/microsoft-foundry-local/SKILL.md. For other IDEs, replace the flag: -a codex for Codex, -a cursor for Cursor, -a gemini-cli for Gemini CLI, -a opencode for OpenCode.
What does microsoft-foundry-local do?
Provides expert knowledge for Azure AI Foundry Local development: CLI and SDK configuration, model compilation, framework integration, code samples for embeddings, chat, audio, and tool calling.
Should I use the legacy or current Foundry Local SDK?
The skill explains the differences between legacy and current SDKs and guides you through migrating existing applications to the latest version.
Source text
SKILL.md · CC-BY-4.0
--- name: microsoft-foundry-local description: Expert knowledge for Microsoft Foundry Local (aka Azure AI Foundry Local) development including best practices, decision making, configuration, and integrations & coding patterns. Use when compiling HF models with Olive, using CLI/SDK, embeddings/chat, audio, tool calls, or REST apps, and other Microsoft Foundry Local related development tasks. Not for Azure Local (use azure-local), Microsoft Foundry (use microsoft-foundry), Microsoft Foundry Classic (use microsoft-foundry-classic). compatibility: Requires network access. Uses mcp_microsoftdocs:microsoft_docs_fetch or fetch_webpage to retrieve documentation. metadata: generated_at: "2026-11-08" generator: "docs2skills/1.0.0" --- # Microsoft Foundry Local Skill This skill provides expert guidance for Microsoft Foundry Local. Covers best practices, decision making, configuration, and integrations & coding patterns. It combines local quick-reference content with remote documentation fetching capabilities. ## How to Use This Skill > **IMPORTANT for Agent**: Use the **Category Index** below to locate relevant sections. For categories with line ranges (e.g., `L35-L120`), use `read_file` with the specified lines. For categories with file links (e.g., `[security.md](security.md)`), use `read_file` on the linked reference file > **IMPORTANT for Agent**: If `metadata.generated_at` is more than 3 months old, suggest the user pull the latest version from the repository. If `mcp_microsoftdocs` tools are not available, suggest the user install it: [Installation Guide](https://github.com/MicrosoftDocs/mcp/blob/main/README.md) This skill requires **network access** to fetch documentation content: - **Preferred**: Use `mcp_microsoftdocs:microsoft_docs_fetch` with query string `from=learn-agent-skill`. Returns Markdown. - **Fallback**: Use `fetch_webpage` with query string `from=learn-agent-skill&accept=text/markdown`. Returns Markdown. ## Category Index | Category | Lines | Description | |----------|-------|-------------| | Best Practices | L32-L36 | Troubleshooting Foundry Local CLI issues, applying recommended workflows, and resolving common setup, auth, build, and deployment problems. | | Decision Making | L37-L42 | Guidance on choosing between legacy vs current Foundry Local SDK and step-by-step instructions for migrating existing apps to the current SDK. | | Configuration | L43-L50 | Configuring Foundry Local tools: compiling Hugging Face models with Olive, using and tuning the CLI, and setting up SDK configuration options and files. | | Integrations & Coding Patterns | L51-L61 | SDK and API patterns for using Foundry Local: embeddings, chat completions, audio transcription (live/file), OpenAI-style clients, LangChain apps, tool calling, and REST integration. | ### Best Practices | Topic | URL | |-------|-----| | Apply best practices and troubleshoot Foundry Local CLI | https://learn.microsoft.com/en-us/azure/foundry-local/reference/reference-best-practice | ### Decision Making | Topic | URL | |-------|-----| | Decide between legacy and current Foundry Local SDK | https://learn.microsoft.com/en-us/azure/foundry-local/reference/reference-sdk-legacy | | Migrate applications to the current Foundry Local SDK | https://learn.microsoft.com/en-us/azure/foundry-local/reference/reference-sdk-migration | ### Configuration | Topic | URL | |-------|-----| | Compile Hugging Face models for Foundry Local with Olive | https://learn.microsoft.com/en-us/azure/foundry-local/how-to/how-to-compile-hugging-face-models | | Operate and configure the Foundry Local CLI | https://learn.microsoft.com/en-us/azure/foundry-local/how-to/how-to-use-foundry-local-cli | | Reference commands and options for Foundry Local CLI | https://learn.microsoft.com/en-us/azure/foundry-local/reference/reference-cli | | Reference configuration for Foundry Local SDKs | https://learn.microsoft.com/en-us/azure/foundry-local/reference/reference-sdk-current | ### Integrations & Coding Patterns | Topic | URL | |-------|-----| | Generate text embeddings with Foundry Local SDK | https://learn.microsoft.com/en-us/azure/foundry-local/how-to/how-to-generate-embeddings | | Integrate Foundry Local with OpenAI-style inference SDKs | https://learn.microsoft.com/en-us/azure/foundry-local/how-to/how-to-integrate-with-inference-sdks | | Live microphone transcription with Foundry Local | https://learn.microsoft.com/en-us/azure/foundry-local/how-to/how-to-live-transcribe-audio | | Transcribe audio files using Foundry Local SDK | https://learn.microsoft.com/en-us/azure/foundry-local/how-to/how-to-transcribe-audio | | Build a LangChain translation app with Foundry Local | https://learn.microsoft.com/en-us/azure/foundry-local/how-to/how-to-use-langchain-with-foundry-local | | Use Foundry Local native chat completions API | https://learn.microsoft.com/en-us/azure/foundry-local/how-to/how-to-use-native-chat-completions | | Implement tool calling with Foundry Local models | https://learn.microsoft.com/en-us/azure/foundry-local/how-to/how-to-use-tool-calling-with-foundry-local | | Foundry Local REST API reference for local inference | https://learn.microsoft.com/en-us/azure/foundry-local/reference/reference-rest |
© MicrosoftDocs · CC-BY-4.0 · MicrosoftDocs/Agent-Skills