All skills
microsoft avatar

/microsoft-foundry

@04110d9
by microsoftmicrosoft/skills3.1k stars
351

Build, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and resources end to end. USE FOR: foundry, azd ai agent, azd provision/deploy, hosted agent scaffold/develop/run/deploy/troubleshoot, prompt agent create, create agent, update agent, add tool to agent, invoke agent, agent.yaml, agent insights, pull agent insights, evaluate agent, batch eval, continuous eval, continuous monitoring, agent CI/CD, optimize prompt, improve prompt, prompt optimizer, optimize agent instructions, Agent Optimizer scaffold, dataset curation from traces, deploy model, model fine-tuning (SFT/DPO/RFT), Foundry project, RBAC, role assignment, permissions, quota, capacity, region, deployment failure, AI Services, create Foundry resource, knowledge index, customize deployment, onboard, availability, training-data, grader, distillation, large file upload. DO NOT USE FOR: Azure Functions, App Service, general Azure deploy (use azure-deploy), general Azure prep (use azure-prepare).

Use this Skill: https://skilld.dev/gh/microsoft/skills/microsoft-foundry

This session only. Nothing lands on disk.

foundry-agentagent-optimizerreferencesoptimize-workflow.md

≈547 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Optimize Workflow

Use this after azd setup and scaffold review are complete.

1. Prepare context

  1. Resolve the hosted agent with azd Setup.
  2. If SDK wiring or .agent_configs/baseline/ is missing, run Scaffold Workflow first.
  3. If scaffolding changed files, stop and ask the user to review before optimization.
  4. Ensure eval.yaml exists using eval.yaml Guidance, generate it with azd ai agent eval generate, or ask whether to use built-in optimize defaults.
  5. Before setting --optimize-model or options.optimization_model, verify the project has an existing deployment from the allowed optimizer list: GPT-5, GPT-5.1, GPT-5.2, GPT-5.4, GPT-5.5, DeepSeek-V4-Pro, or DeepSeek-V-3.2.

When evaluation inputs are not already selected, generate them from a reviewed seed dataset or regenerate defaults:

azd ai agent eval generate --dataset <path-to-jsonl>
azd ai agent eval generate --reset-defaults

2. Run optimize

Run from the azd project/agent root:

azd ai agent optimize --optimize-model <allowed-optimizer-model-deployment-name>

If multiple services are detected, let azd prompt or ask the user which service to use. If eval.yaml exists or was generated, use it when it matches the selected agent; otherwise ask before regenerating or ignoring it.

3. Monitor

Use these when the job is long-running or the user asks:

azd ai agent optimize status <operation-id> --watch
azd ai agent optimize list
azd ai agent optimize cancel <operation-id>

Capture the operation ID, portal URL, scores, and candidate IDs from output.

4. Apply locally

Recommend the best candidate, then ask before applying:

azd ai agent optimize apply --candidate <candidate-id>

After apply, show the source diff and summarize changed files, prompts, model/temperature, tools, and skills.

5. Deploy after review

In azd environments, prefer local apply plus:

azd deploy

Do not use azd ai agent optimize deploy --candidate <candidate-id> unless the user explicitly requests it. Local apply keeps optimized changes visible for source control review.

Source: SKILL.md on GitHub

2 warnings3d4 checks · Risk SAFE
  • Gen Agent Trust Hub3d

    This skill provides a comprehensive environment for managing the end-to-end lifecycle of AI agents, models, and infrastructure on Microsoft Foundry. It includes sub-skills for deployment, evaluation, fine-tuning, and troubleshooting. The skill utilizes dynamic code execution and shell command wrappers, which are used within the context of local development and cloud orchestration. All external resources and dependencies originate from trusted organizations and well-known services.

  • Socket3d

    2 alerts: gptSecurity, gptAnomaly

  • Snyk3d

    Risk: LOW · No issues

  • Runlayer7mo

    36/36 files flagged

Signed by skilld at 04110d9. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 20 hours ago.

Activeupdated last week
metadata
{
  "author": "Microsoft",
  "version": "1.2.26"
}

README badge

README badge for microsoft/skills/microsoft-foundry