Microsoft Agent Skills: A Context-Driven Journey for AI Coding Agents
This post introduces Microsoft's open-source agent-skills repository (https://github.com/microsoft/agent-skills) and its philosophy of "context-driven development": AI agents only produce high-quality code when fed precise, relevant context—not everything at once.

The Danger: Context Rot
The repository warns against context rot: when an AI's context window is filled with irrelevant or outdated information, model attention is diluted, tokens are wasted, and output quality drops sharply—leading to hallucinations or mixing patterns from different frameworks.
The author's iron rule: never load all skills at once. Pick only the 1–3 skills most relevant to the current project so the agent stays sharp and surgical.
Repository Layout
.github/skills/— the skill library; each subfolder is an independent knowledge package (SKILL.mdfiles)prompts/— reusable prompt templates (code review, new components, API endpoints, etc.)agents/— agent persona definitions (.agent.mdfiles: backend expert, frontend designer, planner).vscode/mcp.json— Model Context Protocol server configuration (GitHub, Playwright, Terraform, Microsoft Docs search, Sequential Thinking, Memory)workflows/— automation, such as weekly Foundry documentation syncs- agent-framework-azure-hosted-agents — build persistent, hosted-tool agents on Azure via the Microsoft Agent Framework SDK
- azure-ai-agents-python — low-level agent CRUD, thread management, streaming, tool registration
- azd-deployment — one-command deployment to Container Apps with Azure Developer CLI (azd) + Bicep
- azure-ai-search-python — vector search, hybrid search, agentic retrieval
- azure-ai-voicelive-skill — real-time voice interaction for customer service / virtual assistants
- cosmos-db-python-skill — FastAPI-based CRUD patterns and partitioning strategies for Cosmos DB NoSQL
- fastapi-router — routing, auth, and Pydantic response model best practices
- foundry-iq-python — knowledge-base agentic retrieval
- foundry-nextgen-frontend — Vite + React UI pattern library following Microsoft's latest design language
- foundry-sdk-python — versioned agents, evaluation metrics, production-grade features
- issue-creator — standardized GitHub issue creation, labeling, PR linking
- mcp-builder — quickly build MCP servers in Python or Node connecting tools like Playwright and Terraform
- podcast-generation — end-to-end script-to-audio multi-agent workflow
- pydantic-models — Base/Create/Update/Response layered model design
- react-flow-node — custom draggable flow nodes with TypeScript and Zustand
- zustand-store — lightweight, high-performance global state management
Skills Catalog
Each skill is a standalone SKILL.md targeting a specific domain's context gap:
Sharing Skills Across Projects
Reuse the same skill in multiple projects via symlinks instead of copying; the repo provides commands for macOS, Linux, and Windows.
Scaling to Large Codebases
For very large projects, the repo outlines three advanced strategies:
1. Graph RAG for Code — a retrieval-augmented layer supporting semantic search over functions, classes, and module relationships 2. AST-based Memory Systems — hierarchical maps of code abstract syntax trees so agents can read structure like a mind map 3. Context Graph — knowledge graphs of component dependencies and call relationships for tracing data flow
Always-Fresh Foundry Docs via Context7
The repo indexes the latest Microsoft Foundry documentation through Context7 (https://context7.com/microsoft/agent-skills) with a weekly auto-sync workflow, so agents can query up-to-date official guidance.
Quick Start (Four Steps)
1. Copy only the skills your current project needs into .github/skills/
2. Configure your agent to load them (VS Code Copilot auto-discovers; Claude requires manual referencing)
3. Copy .vscode/mcp.json to enable tool servers
4. (Optional) Add Context7 for Foundry docs
Community and License
The repository is under active development and welcomes contributions of new skills, prompt improvements, and MCP configurations. Everything is released under the MIT license.
References
1. Microsoft. agent-skills GitHub Repository. https://github.com/microsoft/agent-skills 2. Context-Driven Development: Agent Skills for Microsoft Foundry and Azure. https://devblogs.microsoft.com/all-things-azure/context-driven-development-agent-skills-for-microsoft-foundry-and-azure/ 3. Context7 Indexed Microsoft Agent Skills Documentation. https://context7.com/microsoft/agent-skills 4. Azure AI Foundry Official Documentation (via Context7 sync) 5. Model Context Protocol (MCP) Specification and Tool Integrations