What if an agent could refactor your agent?

Microsoft Developer shows how to use GitHub Copilot with a Microsoft Foundry skill to review and refactor an existing “Sparkle Cupcakes” agent, aligning it with current Foundry patterns and SDK guidance while improving production readiness.

Overview

The video demonstrates an agent-to-agent workflow: using GitHub Copilot (equipped with a microsoft-foundry skill) to perform a bounded review of an existing agent and propose a refactor grounded in the skill’s current references.

Is your agent production-ready?

Review the existing agent

Add Microsoft Foundry skills

Identify best-practice gaps

Fix issues with GitHub Copilot

Review the generated changes

Upgrade toolbox and observability

Test with Agent Inspector

Production-ready agent recap