Add foundry-agent-sync skill#1417
Merged
aaronpowell merged 1 commit intogithub:stagedfrom Apr 17, 2026
Merged
Conversation
Contributor
🔍 Skill Validator Results✅ All checks passed
Summary
Full validator output```text Found 1 skill(s) [foundry-agent-sync] 📊 foundry-agent-sync: 2,082 BPE tokens [chars/4: 2,100] (detailed ✓), 19 sections, 6 code blocks ✅ All checks passed (1 skill(s)) ``` |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new Agent Skill (foundry-agent-sync) that guides users to create/update Azure AI Foundry prompt-based agents from a local JSON manifest via the Foundry Agent Service REST API.
Changes:
- Added
skills/foundry-agent-sync/SKILL.mdwith manifest format, sync workflow, and REST API reference. - Updated
docs/README.skills.mdto include the new skill in the skills index.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| skills/foundry-agent-sync/SKILL.md | Introduces the new skill content, including example sync scripts and API reference. |
| docs/README.skills.md | Registers the new skill in the generated skills table for discovery. |
|
|
||
| $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' |
There was a problem hiding this comment.
The PowerShell snippet uses the null-coalescing operator (??) when computing $version, which only works in PowerShell 7+. If this script is intended to be copy/paste friendly for Windows PowerShell 5.1 as well, either rewrite this fallback logic in a PS 5.1-compatible way or explicitly call out a PowerShell 7+ requirement in the prerequisites for the sync script.
Suggested change
| $version = $resp.version ?? $resp.latest_version ?? $resp.id ?? 'unknown' | |
| $version = 'unknown' | |
| if ($resp.version) { | |
| $version = $resp.version | |
| } elseif ($resp.latest_version) { | |
| $version = $resp.latest_version | |
| } elseif ($resp.id) { | |
| $version = $resp.id | |
| } |
aaronpowell
approved these changes
Apr 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New Skill:
foundry-agent-syncCreate and synchronize prompt-based AI agents directly within Azure AI Foundry via the Agent Service REST API, from a local JSON manifest.
What it does
Unlike scaffolding skills that only generate local code, this skill registers agents in the Foundry service itself — making them immediately available for invocation, evaluation, and management through the Foundry portal or API.
Key features
useCaseId,description, andbaseInstructionfieldsTrigger phrases
Checklist
namefield matches folder name (foundry-agent-sync)descriptionexplains WHAT and WHEN with trigger keywordsstagednpm startrun to updatedocs/README.skills.md