Microsoft Foundry 技能
支持 Grok Bot
- 安装量
- 79.8万
- GitHub Star
- 1684
- 通过安全扫描
- 1/3
- 发布方
- 官方认证
- 开源协议
- MIT
- 仓库更新
- 2026年11月30日
TL;DR
microsoft-foundry 是一款 Agent 技能,用于在 Azure AI Foundry 上运行 SFT、DPO 与 RFT 微调工作流,并内置数据校验、训练、部署与评估脚本。
适合安装
需要在 Azure AI Foundry 上训练定制模型,并依赖脚本化 SFT、DPO、RFT 校验与评估管线的开发者。
可以跳过
不涉及训练的常规模型部署、Agent 创建或纯提示词优化场景请跳过。
npx skills add https://github.com/microsoft/azure-skills --skill microsoft-foundry通过 Skillselion MCP 直接试用——无需安装,磁盘零写入。
1. 添加远程连接器:
claude mcp add --transport http skillselion https://mcp.skillselion.com/mcp2. 向你的 Agent 发送指令:
Use Skillselion load_skill to load skill:microsoft/azure-skills#microsoft-foundry (Microsoft Foundry) and follow it.通过 Skillselion MCP 直接试用——无需安装,磁盘零写入。
1. 将此 URL 添加为自定义连接器(Claude.ai、ChatGPT 或 Cursor):
https://mcp.skillselion.com/mcp2. 向你的 Agent 发送指令:
Use Skillselion load_skill to load skill:microsoft/azure-skills#microsoft-foundry (Microsoft Foundry) and follow it.microsoft-foundry 核心要点
- 支持 SFT、DPO 与 RFT 微调,贯通数据准备、训练、部署与评估全链路
- 内置 Python 脚本覆盖 submit、monitor、calibrate_grader、check_training、deploy、evaluate 与 cleanup
- `scripts/validate` 校验器在提交作业前全面验证 SFT、DPO 与 RFT 数据格式
- 5 条训练铁律:先测基线、数据校验、RFT 评分器校准、检查点评估与成本同步核算
- 详录平台常见坑点:openai SDK 版本、globalStandard 开源模型、RFT S2+ 扩容与部署竞态条件
microsoft-foundry 核心数据
| 累计安装量 | 797,832 (79.8万) | skills.sh 注册表 |
|---|---|---|
| GitHub Star | ★ 1684 | GitHub |
| 安全审计 | 通过 1 / 3 项扫描器检测 | skills.sh 审计 |
| 仓库最后更新 | 2026年11月30日 | GitHub |
| 开源协议 | MIT | SKILL.md / GitHub |
| 代码仓库 | microsoft/azure-skills ↗ | |
数据截至 2026年12月1日(Skillselion 目录同步)
- 明确 5 条训练规则,包括基础模型上 25–50% 的 RFT 评分器失败率校准目标
- 内置 11 个 Python 自动化脚本,覆盖从 `submit_training` 到资源清理全过程
- 提供 5 套工作流指南:快速上手、完整管线、数据集构建、迭代训练与低效诊断
microsoft-foundry 在 Claude Code 中能做什么?
技能本身免费;需付费的 Azure AI Foundry 订阅及 Azure MCP。
- 核心能力
- SFT / DPO / RFT 训练类型选型 · 数据集校验与格式转换 · 训练作业提交与监控脚本 · RFT 评分器校准与防奖励黑客指导 · 基于 ARM REST 的模型部署 · LLM 裁判评估与训练曲线分析 · 合成蒸馏数据生成 · 文件与部署资源清理
- 支持集成
- azure · openai
- 适用场景
- API 开发 · 数据分析 · 任务编排
- 运行方式
- 本地或远程
- 定价模式
- 自备 API 密钥
Microsoft Foundry 技能 会输出什么成果?
已提交并持续监控的微调作业、经评估验证的检查点,以及达标后上线的微调模型端点。
- 通过格式校验的训练数据集
- 已提交并受监控的微调训练作业
- 完成评估并成功部署的微调模型
Deep dive: how does microsoft-foundry actually work?
microsoft-foundry is Microsoft's official agent skill for running their Foundry AI platform from a coding agent: provisioning, deploying agents, evaluating them, fine-tuning models, managing quota and RBAC. It has 797,832 installs as of December 1, 2026. It is less a skill than a platform operating manual: 231 files, twenty-four sub-skills, its own version number, and an installer script it runs the moment it loads.
研读方法提交 968f7bf
We read the skill at commit 968f7bf of microsoft/azure-skills on November 14, 2026, counting the skills/microsoft-foundry/ tree; the repo ships a byte-identical second copy under .github/plugins/azure-skills/skills/, which is not counted twice. One honest note: the skill ships 231 files and our file panel carries a subset of them, so the walkthrough below quotes the repository directly.
microsoft-foundry, step by step
1. A cloud platform's operating manual, shipped as a skill
Twenty-four sub-skills behind one router.
The root file says what it covers in one sentence:
This skill helps developers work with Microsoft Foundry resources, covering model discovery and deployment, complete dev lifecycle of AI agent, evaluation workflows, and troubleshooting.
Source: SKILL.md, overview
Behind that sentence sits a table of twenty-four sub-skills, each its own document: deploy, CI/CD, invoke, routines, WebSocket agents, observability, insights, tracing, troubleshooting, validation, four flavors of create (quick start, advanced, managed harness and voice), an agent optimizer, eval datasets, project and resource provisioning, private networking, model deployment, quota, RBAC, fine-tuning, and shared azd guidance. The root SKILL.md is a 310-line router over all of it, the same index-plus-references shape we saw in vercel-react-best-practices, scaled up to an entire cloud product.
2. It runs an installer the moment it loads
By mandate, and tags Microsoft's telemetry while it is at it.
The first pre-execution requirement is unambiguous:
MANDATORY: As the first step after this skill loads, run the dependency check and setup script below from this skill's root and wait for it to finish before continuing. The script checks first and installs only missing dependencies [...]
Source: SKILL.md, "Dependency Check and Setup"
We read the script. It refuses to install azd itself (it exits with a pointer to Microsoft's install page), but if azd exists, it loops over two Microsoft azd extensions, Foundry and evaluations, and installs whichever is missing without asking (the script is idempotent: already-installed dependencies are left alone):
for extension_id in microsoft.foundry azure.ai.evaluations; do [...] azd extension install "$extension_id"
Source: scripts/check-and-setup-dependencies.sh, install step
The script also sets AZURE_DEV_USER_AGENT=microsoft_foundry_skill, and the skill's mandatory azd guidance requires that same variable inline on every azd command, so Microsoft's telemetry can attribute the traffic to this skill. Neither behavior is hidden, both are in a 27-line script anyone can read, and both are exactly the kind of thing you want to know before an agent runs it. It is the same class of finding as find-skills' `-y` flag: the install path is smoother than the consent path.
3. The trigger is a routing contract
Down to an explicit DO-NOT-USE list naming other skills.
The description is a keyword manifest, and it ends by naming what it refuses to handle:
DO NOT USE FOR: Azure Functions, App Service, general Azure deploy (use azure-deploy), general Azure prep (use azure-prepare).
Source: SKILL.md, frontmatter description
A negative trigger list is rarer and more useful than the positive one: it stops the skill from swallowing every Azure task in the repo and hands the general cases to sibling skills by name. Where agent-browser writes trigger words to win tasks, microsoft-foundry also writes them to decline tasks.
4. Documentation outranks what the agent already knows
Even correct MCP tool parameters.
The sharpest rule in the file anticipates an overconfident agent:
Do not call workflow-specific MCP tools for a workflow without reading its skill document. This applies even if you already know the MCP tool parameters — the skill document contains required workflow steps, pre-checks, and validation logic that must be followed.
Source: SKILL.md, "Workflow Guidance"
That "even if you already know the parameters" is written by someone who has watched a model skip the runbook because the API call looked obvious. On a platform where a wrong deploy step costs real money and real quota, the file makes the runbook non-optional.
5. Every intent has a prescribed reading order
And ambiguity routes to a question, not a guess.
The bottom half of the file is intent tables: user phrasing on the left, an ordered chain of sub-skill documents on the right, dependency check first, azd guidance second, then the workflow. And when the user's request is genuinely ambiguous, the file says to ask instead of guess:
"Create Foundry" / "Set up Foundry" (ambiguous) | Use
AskUserQuestion: (a) just an AI Services resource, (b) a project with public access, or (c) a project with network isolation?Source: SKILL.md, "Infrastructure Lifecycle"
Three different infrastructures hide behind the words "set up Foundry", and the table refuses to let the agent pick one silently. It is the same decisions-belong-to-the-user principle grill-me builds a whole interview around, applied here to a single provisioning fork.
6. It is versioned like software
Because for Microsoft it is one.
The frontmatter carries version: "1.2.35" under an MIT license, and the sub-skills are modules behind a router whose third mandate is to inspect the Azure MCP foundry toolset before calling any of its tools. Microsoft is treating agent instructions as a shipped, versioned product surface, not a README: the same conclusion the react-best-practices build pipeline reaches by compiling its rules.
Tools it drives: azd (with the Foundry and evaluations extensions it installs), the Azure MCP foundry toolset, and shell scripts shipped in the bundle.
Behavior change, before and after:
| You ask | Without microsoft-foundry | With microsoft-foundry |
|---|---|---|
| "Deploy my agent to Foundry" | Improvised azd calls, no pre-checks | Dependency script → azd guidance → the deploy sub-skill's full runbook |
| "Set up Foundry" | The agent picks an infrastructure shape for you | It asks which of the three setups you actually meant |
The fine print worth knowing:
- Loading the skill can lead to software being installed: the mandated script adds the
microsoft.foundryandazure.ai.evaluationsazd extensions unprompted when they are missing, and the azd guidance stamps telemetry with the skill's user agent. Read the 27-line script once; it is short and honest. - This is Microsoft operating Microsoft: every runbook optimizes for the Foundry happy path, and the DO-NOT-USE list hands you to other Microsoft skills, not to alternatives.
Should you install microsoft-foundry?
Install it if you run agents or models on Microsoft Foundry; it is the most operationally complete skill we have read, and the read-the-runbook-first discipline is what you want next to a cloud bill. Skip it if you are not on Foundry, and know that loading it on a machine with azd but without the Foundry or evaluations extension will install the missing one as a side effect of the first task.
npx skills add https://github.com/microsoft/azure-skills --skill microsoft-foundryPrevious: how lark-doc actually works. All dives: the series index.
快问快答
Does microsoft-foundry work without the Azure Developer CLI?
No. The mandated setup script exits immediately if azd is missing, pointing at Microsoft's install page. With azd present, it installs the microsoft.foundry and azure.ai.evaluations extensions itself when they are missing, and proceeds.
Why does one skill contain twenty-four sub-skills?
Because it covers a platform, not a task. The root SKILL.md is a router: intent tables map each request (deploy, evaluate, fine-tune, quota, RBAC, networking) to an ordered chain of sub-skill documents, so the agent loads only the runbook the task needs.
microsoft-foundry 包含哪些文件?
展开查看原始英文技能文件(共 195 个文件)
正在加载 SKILL.md…
指南
- Azure Skills for Claude Code: The Complete Guide to microsoft/azure-skills
microsoft/azure-skills is Microsoft's official repo of 27 Azure skills for Claude Code, covering deploy, AKS, diagnostics, compliance, cost, and Azure AI Foundry. Combined they have 9,775,059 installs, with microsoft-foundry alone at 797,832 installs (skills.sh registry, December 1, 2026). This guide maps every skill to the Azure job it does.
与 microsoft-foundry 相关的技能有哪些?
Microsoft Foundry 技能常见问题
Microsoft Foundry 技能 适合哪些用户?
需要在 Azure AI Foundry 上训练定制模型,并依赖脚本化 SFT、DPO、RFT 校验与评估管线的开发者。 以下情况建议跳过:不涉及训练的常规模型部署、Agent 创建或纯提示词优化场景请跳过。
什么时候应该使用 microsoft-foundry?
当涉及模型微调、SFT、DPO、RFT、训练数据准备、评分器校准、数据蒸馏、大文件上传或微调模型部署与评估时调用。
microsoft-foundry 适合谁使用?
适合在 Azure AI Foundry 上开展模型微调,需要 SFT/DPO/RFT 自动化脚本、数据校验器与部署指导的开发者。
安装 microsoft-foundry 安全吗?
在生产环境安装前,请先查看本页的 Security Audits(安全审计)面板。
添加 microsoft-foundry 徽章
向开发者展示此技能已收录于 Skillselion,可将以下代码粘贴至 README。