Official agent skill

Foundry Agent Sync

by github in github/awesome-copilot

Create and synchronize prompt-based AI agents directly within Azure AI Foundry via REST API, from a local JSON manifest.

OfficialMITAuto-check passedBackend & APIs

Install Foundry Agent Sync

skills CLI
$ npx skills add github/awesome-copilot --skill foundry-agent-sync -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install github/awesome-copilot foundry-agent-sync --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/github/awesome-copilot.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/foundry-agent-sync .claude/skills/foundry-agent-sync && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
foundry-agent-sync
GitHub stars
40k
Used in
1 other repo
Token cost
~2.1k tokens
SKILL.md length
601 words
Files
1
Skills in repo
417
Repo updated
First seen
Licence
MIT

At a glance

Create and synchronize prompt-based AI agents directly within Azure AI Foundry via REST API, from a local JSON manifest.

  • Works in 5 steps: Locate or scaffold the manifest → Locate or scaffold the sync script → Collect parameters → …
  • The user asks to create agents in Foundry
  • SKILL.md covers Overview, Prerequisites, Manifest Format and Sync Script, plus 4 more sections
  • Calls az; reaches ai.azure.com

What it does

Foundry Agent Sync is an agent skill from github/awesome-copilot, published by the product's own GitHub organization. Create and synchronize prompt-based AI agents directly within Azure AI Foundry via REST API, from a local JSON manifest. Unlike scaffolding skills that only generate local code, this skill registers agents in the Foundry service itself — making them immediately available for invocation. Use when the user asks to create agents in Foundry, sync, deploy, register, or push agents to Foundry, update agent instructions, or scaffold the manifest and sync script for a new repository. Triggers: 'create agent in foundry'…

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering Building AI agents, Project scaffolding and REST APIs. It works with Azure AI Foundry and Microsoft Azure. The repository describes itself as: Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot. The licence is MIT.

When your agent uses it

  • The user asks to create agents in Foundry
  • Push agents to Foundry
  • Update agent instructions
  • Scaffold the manifest and sync script for a new repository

Example prompts

  • “create agent in foundry”
  • “sync foundry agents”
  • “deploy agents to foundry”
  • “/foundry-agent-sync”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Locate or scaffold the manifest
  2. Locate or scaffold the sync script
  3. Collect parameters
  4. Run the sync
  5. Verify

What it can do on your machine

Read from SKILL.md and the folder at commit 727ff2e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • az

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • ai.azure.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Foundry Agent Sync loads about 2.1k tokens when it runs. Until then it costs about 172 tokens; SKILL.md has 601 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~172
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from github/awesome-copilot at commit 727ff2e, republished under its MIT licence (© github). 601 words, ~2,100 tokens.

Download SKILL.mdSave it as .claude/skills/foundry-agent-sync/SKILL.md (or your agent's skills folder).
name
foundry-agent-sync
description
Create and synchronize prompt-based AI agents directly within Azure AI Foundry via REST API, from a local JSON manifest. Unlike scaffolding skills that only generate local code, this skill registers agents in the Foundry service itself — making them immediately available for invocation. Use when the user asks to create agents in Foundry, sync, deploy, register, or push agents to Foundry, update agent instructions, or scaffold the manifest and sync script for a new repository. Triggers: 'create agent in foundry', 'sync foundry agents', 'deploy agents to foundry', 'register agents in foundry', 'push agents', 'create foundry agent manifest', 'scaffold agent sync'.

Foundry Agent Sync

Overview

Create and synchronize prompt-based AI agents directly within Azure AI Foundry via the Agent Service REST API. This skill registers agents in the Foundry service itself — making them immediately available for invocation, evaluation, and management through the Foundry portal or API. Each agent is created or updated idempotently via a named POST call, using definitions from a local JSON manifest file.

Key distinction: This skill creates agents inside AI Foundry (server-side). It does not scaffold local agent code or container images — for that, use the microsoft-foundry skill's create sub-skill.

Prerequisites

The user must have:

  1. An Azure AI Foundry project with a deployed model (e.g. gpt-5-4)
  2. Azure CLI (az) authenticated with access to the Foundry project
  3. The Azure AI User role (or higher) on the Foundry project resource

Collect these values before proceeding:

ValueHow to get it
Foundry project endpointAzure Portal → AI Foundry project → Overview → Endpoint, or az resource show
Subscription IDaz account show --query id -o tsv
Model deployment nameThe model name deployed in the Foundry project (e.g. gpt-5-4)

Manifest Format

The manifest is a JSON array where each entry defines one agent. Look for it at common paths: infra/foundry-agents.json, foundry-agents.json, or .foundry/agents.json. If none exists, scaffold one.

json
[
  {
    "useCaseId": "alert-triage",
    "description": "Short description of what this agent does.",
    "baseInstruction": "You are an assistant that... <system prompt for the agent>"
  }
]
Field Reference
FieldRequiredDescription
useCaseIdYesKebab-case identifier; used to build the agent name ({prefix}-{useCaseId})
descriptionYesHuman-readable description stored as agent metadata
baseInstructionYesSystem prompt / base instructions for the agent

Sync Script

PowerShell (interactive / CI)

Create or locate the sync script. The canonical path is infra/scripts/sync-foundry-agents.ps1 but adapt to the repo layout.

powershell
param(
  [Parameter(Mandatory)]
  [string]$SubscriptionId,

  [Parameter(Mandatory)]
  [string]$ProjectEndpoint,

  [string]$ManifestPath = (Join-Path $PSScriptRoot '..\foundry-agents.json'),
  [string]$ModelName = 'gpt-5-4',
  [string]$AgentNamePrefix = 'myproject',
  [string]$ApiVersion = '2025-11-15-preview'
)

$ErrorActionPreference = 'Stop'

# Optional: append a common instruction suffix to every agent
$commonSuffix = ''

az account set --subscription $SubscriptionId | Out-Null
$accessToken = az account get-access-token --resource https://ai.azure.com/ --query accessToken -o tsv
if (-not $accessToken) { throw 'Failed to acquire Foundry access token.' }

$definitions = Get-Content -Raw -Path $ManifestPath | ConvertFrom-Json
$headers = @{ Authorization = "Bearer $accessToken" }
$results = @()

foreach ($def in $definitions) {
  $agentName = "$AgentNamePrefix-$($def.useCaseId)"
  $instructions = if ($commonSuffix) { "$($def.baseInstruction)`n`n$commonSuffix" } else { $def.baseInstruction }
  $body = @{
    definition  = @{ kind = 'prompt'; model = $ModelName; instructions = $instructions }
    description = $def.description
    metadata    = @{ useCaseId = $def.useCaseId; managedBy = 'foundry-agent-sync' }
  } | ConvertTo-Json -Depth 8

  $uri = "$($ProjectEndpoint.TrimEnd('/'))/agents/$agentName`?api-version=$ApiVersion"
  $resp = Invoke-RestMethod -Method Post -Uri $uri -Headers $headers -ContentType 'application/json' -Body $body
  $version = $resp.version ?? $resp.latest_version ?? $resp.id ?? 'unknown'
  Write-Host "Synced $agentName ($version)"
  $results += [pscustomobject]@{ name = $agentName; version = $version }
}

$results | Format-Table -AutoSize
Bash (Bicep deployment script / CI)

For automated deployment via Microsoft.Resources/deploymentScripts, use a bash script that:

  1. Authenticates with a managed identity: az login --identity --username "$CLIENT_ID"
  2. Acquires a Foundry token: az account get-access-token --resource https://ai.azure.com/
  3. Iterates definitions from the FOUNDRY_AGENT_DEFINITIONS environment variable (JSON string)
  4. POSTs each agent to {endpoint}/agents/{name}?api-version=2025-11-15-preview

Bicep Integration (optional)

To run the sync automatically during infrastructure deployment:

  1. Load the manifest at compile time:

    bicep
    var agentDefinitions = loadJsonContent('foundry-agents.json')
  2. Create a User-Assigned Managed Identity with the Azure AI User role on the Foundry project.

  3. Create a Microsoft.Resources/deploymentScripts resource (kind AzureCLI) that:

    • Uses the managed identity
    • Loads the bash sync script via loadTextContent
    • Passes the project endpoint, definitions, and model as environment variables

Gate behind a deployFoundryAgents parameter so teams can opt in/out.

Show full SKILL.md (212 more words)Show less

Workflow

Step 1 — Locate or scaffold the manifest

Search the repo for foundry-agents.json. If it doesn't exist, ask the user what agents they need and create the manifest.

Step 2 — Locate or scaffold the sync script

Search for sync-foundry-agents.ps1 or foundry-agent-sync.sh. If missing, create the PowerShell script using the template above, adapting:

  • $AgentNamePrefix to match the project name
  • $ModelName to the user's deployed model
  • $ManifestPath to the actual manifest location
Step 3 — Collect parameters

Ask the user for:

  • Foundry project endpoint
  • Subscription ID
  • Model deployment name (default: gpt-5-4)
  • Agent name prefix (default: repo name in kebab-case)
Step 4 — Run the sync

Execute the PowerShell script with the collected parameters:

powershell
.\infra\scripts\sync-foundry-agents.ps1 `
  -SubscriptionId '<sub-id>' `
  -ProjectEndpoint '<endpoint>' `
  -ModelName '<model>' `
  -AgentNamePrefix '<prefix>'
Step 5 — Verify

Confirm synced agents by listing them:

powershell
$token = az account get-access-token --resource https://ai.azure.com/ --query accessToken -o tsv
$endpoint = '<project-endpoint>'
Invoke-RestMethod -Uri "$endpoint/agents?api-version=2025-11-15-preview" `
  -Headers @{ Authorization = "Bearer $token" }

REST API Reference

OperationMethodURL
Create/update agentPOST{projectEndpoint}/agents/{agentName}?api-version=2025-11-15-preview
List agentsGET{projectEndpoint}/agents?api-version=2025-11-15-preview
Get agentGET{projectEndpoint}/agents/{agentName}?api-version=2025-11-15-preview
Delete agentDELETE{projectEndpoint}/agents/{agentName}?api-version=2025-11-15-preview
Create/Update Payload
json
{
  "definition": {
    "kind": "prompt",
    "model": "<deployed-model-name>",
    "instructions": "<system prompt>"
  },
  "description": "<agent description>",
  "metadata": {
    "useCaseId": "<use-case-id>",
    "managedBy": "foundry-agent-sync"
  }
}

Troubleshooting

SymptomCauseFix
401 UnauthorizedToken expired or wrong audienceRe-run az account get-access-token --resource https://ai.azure.com/
403 ForbiddenMissing Azure AI User roleAssign the role on the Foundry project scope
404 Not FoundWrong project endpointVerify endpoint includes /api/projects/{projectName}
Model not foundModel not deployed in projectDeploy the model in AI Foundry portal first
Empty definitionsManifest path wrongCheck -ManifestPath points to the JSON file

© github, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/foundry-agent-sync of github/awesome-copilot.

Open the folder on GitHubat commit 727ff2e

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in github/awesome-copilot, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Foundry Agent Sync next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Foundry Agent Sync compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Foundry Agent Sync this skillgithub/awesome-copilot40k1 repos~2.1kAutomated safety check: PassMIT
Azure AI Projects Python SDKmicrosoft/skills3.1k6 repos~2.8kAutomated safety check: PassMIT
Microsoft Foundrymicrosoft/GitHub-Copilot-for-Azure2551 repos~6.7kAutomated safety check: PassMIT
Agent Framework Azure AI Pymicrosoft/skills3.1k1 repos~3.1kAutomated safety check: PassMIT
Agent Framework Azure AI Pyaiskillstore/marketplace4305 repos~2.6kAutomated safety check: PassNone
Declarative Agent Developermicrosoft/work-iq1k—~3.2kAutomated safety check: PassCustom licence

Similar skills

  • Official

    Reference for building on Microsoft Foundry with the azure-ai-projects Python SDK: project clients, versioned agents, evaluations, connections, datasets and indexes.

    3.1k GitHub starsUsed in 6 repos~2.8k tokens
    AI & LLM EngineeringAuto-check passed
  • Microsoft Foundry

    microsoft/GitHub-Copilot-for-Azure

    Official

    Build, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and resources end to end.

    255 GitHub starsUsed in 1 repo~6.7k tokens
    AI & LLM EngineeringAuto-check passed
  • Official

    Build Azure AI Foundry agents using the Microsoft Agent Framework Python SDK (agent-framework-azure-ai).

    3.1k GitHub starsUsed in 1 repo~3.1k tokens
    AI & LLM EngineeringAuto-check passed
  • Agent Framework Azure AI Py

    aiskillstore/marketplace

    Build persistent agents on Azure AI Foundry using the Microsoft Agent Framework Python SDK.

    430 GitHub starsUsed in 5 repos~2.6k tokens
    AI & LLM EngineeringAuto-check passed
  • Official

    Create, build, deploy, and localize declarative agents for M365 Copilot and Teams.

    1k GitHub stars~3.2k tokensUpdated today
    Backend & APIsAuto-check passed
  • Kql Validator

    Azure/azqr

    Official

    Validate KQL (Kusto Query Language) files used in Azure Quick Review (azqr) against their recommendation definitions.

    794 GitHub stars~703 tokensUpdated yesterday
    Backend & APIsAuto-check passed

More from github/awesome-copilot

All 417 skills in this repo
  • Acquire Codebase Knowledge

    github/awesome-copilot

    Official

    Maps an unfamiliar codebase into seven evidence-backed documents in docs/codebase/, using a scan script and templates, for onboarding or architecture write-ups.

    40k GitHub starsUsed in 1 repo~2.3k tokens
    Auto-check passed
  • Azure Architecture Autopilot

    github/awesome-copilot

    Official

    Designs Azure infrastructure from a natural-language description, or diagrams an existing resource group, then refines the design through conversation and deploys it with Bicep.

    40k GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • Draw.io Diagram Generator

    github/awesome-copilot

    Official

    Generates, edits and validates draw.io files with correct mxGraph XML, covering flowcharts, architecture, sequence, ER and UML class diagrams.

    40k GitHub starsUsed in 1 repo~4.9k tokens
    Auto-check passed
  • Credit Risk Data Cleaning

    github/awesome-copilot

    Official

    Cleans raw credit data and screens variables before loan modeling, dropping unstable, noisy or redundant features and writing an Excel report of every step.

    40k GitHub starsUsed in 1 repo~1.5k tokens
    Auto-check passed
  • Daily Focus Board

    github/awesome-copilot

    Official

    Builds a warm, browser-based daily focus board the user updates by talking to their agent, with Eisenhower priorities, a brain-dump box and kind not-today carryover.

    40k GitHub stars~3k tokensUpdated today
    Auto-check passed
  • Python Pypi Package Builder

    github/awesome-copilot

    Official

    End-to-end skill for building, testing, linting, versioning, and publishing a production-grade Python library to PyPI.

    40k GitHub starsUsed in 1 repo~4.6k tokens
    Auto-check passed

Questions about Foundry Agent Sync

What does Foundry Agent Sync do?

Create and synchronize prompt-based AI agents directly within Azure AI Foundry via REST API, from a local JSON manifest. Foundry Agent Sync is an agent skill from github/awesome-copilot, published by the product's own GitHub organization. Create and synchronize prompt-based AI agents directly within Azure AI Foundry via REST API, from a local JSON manifest.

When should I use Foundry Agent Sync?

Foundry Agent Sync fits situations like: the user asks to create agents in Foundry; push agents to Foundry; update agent instructions; scaffold the manifest and sync script for a new repository.

How do I install Foundry Agent Sync in Claude Code?

Run `npx skills add github/awesome-copilot --skill foundry-agent-sync -a claude-code`. Or copy the skill folder (skills/foundry-agent-sync in github/awesome-copilot) into .claude/skills/foundry-agent-sync in your project. Claude Code loads it when a task matches its description.

How do I install Foundry Agent Sync in Codex?

Run `npx skills add github/awesome-copilot --skill foundry-agent-sync -a codex`. Or copy the skill folder (skills/foundry-agent-sync in github/awesome-copilot) into .agents/skills/foundry-agent-sync in your project. Codex loads it when a task matches its description.

Can I use Foundry Agent Sync in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add github/awesome-copilot --skill foundry-agent-sync -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/foundry-agent-sync, .gemini/skills/foundry-agent-sync, .github/skills/foundry-agent-sync and .opencode/skills/foundry-agent-sync in your project.

What does Foundry Agent Sync need to run?

Going by SKILL.md and its folder, Foundry Agent Sync needs the command-line tools its instructions call (az).

Does Foundry Agent Sync access the network?

SKILL.md names 1 domain. In commands or code: ai.azure.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Foundry Agent Sync safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Foundry Agent Sync use?

Foundry Agent Sync is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Foundry Agent Sync use?

About 2.1k tokens (SKILL.md is roughly 8.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Foundry Agent Sync?

Skills that share tags, products or a category with Foundry Agent Sync: Azure AI Projects Python SDK (microsoft/skills, 3.1k stars), Microsoft Foundry (microsoft/GitHub-Copilot-for-Azure, 255 stars), Agent Framework Azure AI Py (microsoft/skills, 3.1k stars) and Agent Framework Azure AI Py (aiskillstore/marketplace, 430 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Foundry Agent Sync?

github (a GitHub organization, an official publisher) maintains it in github/awesome-copilot, which has 39,748 GitHub stars. The repository holds 417 skills in this directory. The repository was last updated on October 7, 2026.

Source: github/awesome-copilot on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.