skills
AGENTS.md3.1k starsChanged 9 months agoMITView on GitHub
A repository of skills, prompts, and MCP configurations for AI coding agents working with Azure SDKs and Microsoft AI Foundry services. Azure SDKs and Foundry APIs change constantly. Never work with stale knowledge. Before implementing anything with Azure/Foundry SDKs: If you skip this step and use outdated patterns, you will produce broken code. These principles reduce common LLM coding mistakes. Apply them to every task. Don't assume. Don't hide confusion. Surface tradeoffs. Minimum code that solves the problem. Nothing speculative.
- Installs packages
- Commits and pushes
Trending
Quiet since July.thin dataabout the whole repository
Who's talking about microsoft/skills
- @yug1224.com“AIコーディングエージェントがAzure開発を最適化するためのスキルやMCP設定集らしい 現場でAIの精度を高めて開発を効率化したいときに試したい yug1224 starred microsoft/skills…”Bluesky · Jul 4, 2026 · 2 likes
- A Hacker News story“Microsoft Skills”Hacker News · Feb 10, 2026 · 2 points
The biggest 2 of 2 mentions linking to the repository that our crawl found. Each line is their own headline.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository211 other files it gives its agents.
- .github/plugins/azure-sdk-python/skills/azure-ai-projects-py/references/agents.mdAGENTS.md
- .github/plugins/deep-wiki/commands/agents.mdAGENTS.md
- tests/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- docs/llms-full.txtllms.txt
- docs/llms.txtllms.txt
- cost-analysisSkill
- cost-estimationSkill
- cost-governanceSkill
- cost-optimizationSkill
- azure-kusto-graphSkill
- azure-kusto-irql-graphSkill
- azure-kusto-irqlSkill
- azure-local-multi-rackSkill
- azure-localSkill
- azure-ai-agents-persistent-dotnetSkill
- azure-ai-document-intelligence-dotnetSkill
- azure-ai-openai-dotnetSkill
- azure-ai-projects-dotnetSkill
- azure-ai-voicelive-dotnetSkill
- azure-eventgrid-dotnetSkill
- azure-eventhub-dotnetSkill
- azure-identity-dotnetSkill
- azure-maps-search-dotnetSkill
- azure-mgmt-apicenter-dotnetSkill
- azure-mgmt-apimanagement-dotnetSkill
- azure-mgmt-applicationinsights-dotnetSkill
- azure-mgmt-arizeaiobservabilityeval-dotnetSkill
- azure-mgmt-botservice-dotnetSkill
- azure-mgmt-fabric-dotnetSkill
- azure-mgmt-mongodbatlas-dotnetSkill
- azure-mgmt-weightsandbiases-dotnetSkill
- azure-resource-manager-cosmosdb-dotnetSkill
- azure-resource-manager-durabletask-dotnetSkill
- azure-resource-manager-mysql-dotnetSkill
- azure-resource-manager-playwright-dotnetSkill
- azure-resource-manager-postgresql-dotnetSkill
- azure-resource-manager-redis-dotnetSkill
- azure-resource-manager-sql-dotnetSkill
- azure-search-documents-dotnetSkill
- azure-security-keyvault-keys-dotnetSkill
- azure-servicebus-dotnetSkill
- m365-agents-dotnetSkill
- microsoft-azure-webjobs-extensions-authentication-events-dotnetSkill
- azure-ai-agents-persistent-javaSkill
- azure-ai-anomalydetector-javaSkill
- azure-ai-contentsafety-javaSkill
- azure-ai-formrecognizer-javaSkill
- azure-ai-projects-javaSkill
- azure-ai-vision-imageanalysis-javaSkill
- azure-ai-voicelive-javaSkill
- azure-appconfiguration-javaSkill
- azure-communication-callautomation-javaSkill
- azure-communication-callingserver-javaSkill
- azure-communication-chat-javaSkill
- azure-communication-common-javaSkill
- azure-communication-sms-javaSkill
- azure-compute-batch-javaSkill
- azure-cosmos-javaSkill
- azure-data-tables-javaSkill
- The first 60 shown.
The file
Show its rules and text
We split this Agents.md into the rules it gives an agent
28 rules. About 0 are common, 19 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈19
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Before implementing anything with Azure/Foundry SDKs:
- Distinctive: line 35
If multiple interpretations exist, present them — don't pick silently.
- Distinctive: line 36
If a simpler approach exists, say so.
- Distinctive: line 37
If something is unclear, stop.
- Distinctive: line 43
No features beyond what was asked.
- Distinctive: line 44
No abstractions for single-use code.
- Distinctive: line 46
No error handling for impossible scenarios.
- Distinctive: line 47
If you write 200 lines and it could be 50, rewrite it.
- Distinctive: line 55
When editing existing code:
- Distinctive: line 57
Don't "improve" adjacent code, comments, or formatting.
- Distinctive: line 58
Don't refactor things that aren't broken.
- Distinctive: line 60
If you notice unrelated dead code, mention it — don't delete it.
- Distinctive: line 62
When your changes create orphans:
- Very specific: line 64
Remove imports/variables/functions that YOUR changes made unused.
- Distinctive: line 65
Don't remove pre-existing dead code unless asked.
- Distinctive: line 67
The test: Every changed line should trace directly to the user's request.
- Distinctive: line 95
Follow these layered boundaries when building features:
- Very specific: line 129
Always use DefaultAzureCredential for production:
- Very specific: line 181
Only load skills relevant to the current task.
- Very specific: line 272
Prefer async/await for all Azure SDK I/O
- Very specific: line 273
Use context managers: with client: or async with client:
- Very specific: line 275
Use create_or_update_* for idempotent operations
- Distinctive: line 276
Use type hints on all function signatures
- Very specific: line 280
Always use gh CLI for GitHub operations (PRs, issues, etc.) — never the MCP github-create_pull_request tool
- Very specific: line 281
Use gh pr create for pull requests, gh issue create for issues
- Distinctive: line 285
Before completing any code change:
- Very specific: line 310
Use pytest-asyncio for async tests
- Distinctive: line 312
Test both success and error paths
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Skills
A repository of skills, prompts, and MCP configurations for AI coding agents working with Azure SDKs and Microsoft AI Foundry services.
⚠️ Fresh Information First
Azure SDKs and Foundry APIs change constantly. Never work with stale knowledge.
Before implementing anything with Azure/Foundry SDKs:
- Search official docs first — Use the Microsoft Docs MCP (
microsoft-docs) to get current API signatures, parameters, and patterns - Verify SDK versions — Check
pip show <package>for installed versions; APIs differ between versions - Don't trust cached knowledge — Your training data is outdated. The SDK you "know" may have breaking changes.
# Always do this first
1. Search Microsoft Learn for current docs
2. Check Context7 for indexed Foundry documentation (updated daily)
3. Verify against actual installed package versionIf you skip this step and use outdated patterns, you will produce broken code.
Core Principles
These principles reduce common LLM coding mistakes. Apply them to every task.
1. Think Before Coding
Don't assume. Don't hide confusion. Surface tradeoffs.
- State assumptions explicitly. If uncertain, ask.
- If multiple interpretations exist, present them — don't pick silently.
- If a simpler approach exists, say so. Push back when warranted.
- If something is unclear, stop. Name what's confusing. Ask.
2. Simplicity First
Minimum code that solves the problem. Nothing speculative.
- No features beyond what was asked.
- No abstractions for single-use code.
- No "flexibility" or "configurability" that wasn't requested.
- No error handling for impossible scenarios.
- If you write 200 lines and it could be 50, rewrite it.
The test: Would a senior engineer say this is overcomplicated? If yes, simplify.
3. Surgical Changes
Touch only what you must. Clean up only your own mess.
When editing existing code:
- Don't "improve" adjacent code, comments, or formatting.
- Don't refactor things that aren't broken.
- Match existing style, even if you'd do it differently.
- If you notice unrelated dead code, mention it — don't delete it.
When your changes create orphans:
- Remove imports/variables/functions that YOUR changes made unused.
- Don't remove pre-existing dead code unless asked.
The test: Every changed line should trace directly to the user's request.
4. Goal-Driven Execution (TDD)
Define success criteria. Loop until verified.
Transform tasks into verifiable goals:
| Instead of... | Transform to... |
| "Add validation" | "Write tests for invalid inputs, then make them pass" |
| "Fix the bug" | "Write a test that reproduces it, then make it pass" |
| "Refactor X" | "Ensure tests pass before and after" |
For multi-step tasks, state a brief plan:
1. [Step] → verify: [check]
2. [Step] → verify: [check]
3. [Step] → verify: [check]Strong success criteria let you loop independently. Weak criteria ("make it work") require constant clarification.
Clean Architecture
Follow these layered boundaries when building features:
┌─────────────────────────────────────┐
│ Presentation │ ← Routers, API endpoints
├─────────────────────────────────────┤
│ Application │ ← Use cases, orchestration
├─────────────────────────────────────┤
│ Domain │ ← Entities, business rules
├─────────────────────────────────────┤
│ Infrastructure │ ← Database, external APIs
└─────────────────────────────────────┘Rules:
- Dependencies point inward (outer layers depend on inner layers)
- Domain layer has no external dependencies
- Infrastructure implements interfaces defined in inner layers
- Each layer should be testable in isolation
SDK Quick Reference
| Package | Purpose | Install |
azure-ai-projects | Foundry project client, agents, evals, connections | pip install azure-ai-projects |
azure-ai-agents | Standalone agents client (use via projects) | pip install azure-ai-agents |
azure-search-documents | Azure AI Search SDK | pip install azure-search-documents |
azure-identity | Authentication | pip install azure-identity |
Authentication Pattern
Always use DefaultAzureCredential for production:
from azure.identity import DefaultAzureCredential
from azure.ai.projects import AIProjectClient
credential = DefaultAzureCredential()
client = AIProjectClient(
endpoint="https://<resource>.services.ai.azure.com/api/projects/<project>",
credential=credential
)Environment Variables
AZURE_AI_PROJECT_ENDPOINT=https://<resource>.services.ai.azure.com/api/projects/<project>
AZURE_AI_MODEL_DEPLOYMENT_NAME=gpt-4o-miniSkills
Skills are domain-specific knowledge packages in .github/skills/. Each has a SKILL.md with:
- YAML frontmatter (
name,description) — triggers skill loading - Markdown body — loaded only when skill activates
⚠️ Temporary duplication note: Skills in
.github/skills/are duplicated from.github/plugins/*/skills/to supportnpx skills add microsoft/skillsinstallation. The plugin directories remain the canonical source. This duplication is temporary until the skills installer supports symlinks/pointer files.
Quick Start
# Install skills using skills.sh
npx skills add microsoft/skillsSkill Catalog
Location:
.github/skills/• 133 skills • See README.md#skill-catalog
| Language | Skills | Suffix | Examples |
| Core | 6 | — | mcp-builder, skill-creator, copilot-sdk |
| Python | 41 | -py | azure-ai-projects-py, azure-cosmos-py, azure-ai-ml-py |
| .NET | 29 | -dotnet | azure-ai-projects-dotnet, azure-resource-manager-cosmosdb-dotnet, azure-security-keyvault-keys-dotnet |
| TypeScript | 25 | -ts | azure-ai-projects-ts, azure-storage-blob-ts, aspire-ts |
| Java | 26 | -java | azure-ai-projects-java, azure-cosmos-java, azure-eventhub-java |
Skill Selection
Only load skills relevant to the current task. Loading all skills causes context rot — diluted attention and conflated patterns.
Creating New Skills
Detailed guide: Load the
/skill-creatorskill for comprehensive instructions.
Prerequisites: User MUST provide SDK context:
- SDK package name (e.g.,
azure-ai-agents) - Documentation URL or GitHub repository
- Target language (py/dotnet/ts/java)
Quick workflow:
Create skill in
.github/skills/<skill-name>/SKILL.md# Naming: azure-<service>-<language> # Example: azure-ai-agents-pyCategorize with symlink in
skills/<language>/<category>/cd skills/python/foundry ln -s ../../../.github/skills/azure-ai-agents-py agents- Create tests
tests/scenarios/<skill>/acceptance-criteria.md— correct/incorrect patternstests/scenarios/<skill>/scenarios.yaml— test scenarios
Verify
cd tests && pnpm harness <skill-name> --mock --verbose- Update README.md — Add to skill catalog
Product area categories:
| Category | Skills |
foundry | AI agents, projects, inference, search |
data | Storage, Cosmos DB, Tables |
messaging | Event Hubs, Service Bus, Event Grid |
monitoring | OpenTelemetry, App Insights |
identity | Authentication, credentials |
security | Key Vault |
integration | API Management, App Configuration |
MCP Servers
Pre-configured Model Context Protocol servers in .vscode/mcp.json provide additional capabilities:
Documentation & Search
| MCP | Purpose |
microsoft-docs | Search Microsoft Learn — Official Azure/Foundry docs. Use this FIRST. |
context7 | Indexed Foundry documentation with semantic search (updated daily via GitHub workflow) |
deepwiki | Ask questions about GitHub repositories |
Development Tools
| MCP | Purpose |
github | GitHub API operations |
playwright | Browser automation and testing |
terraform | Infrastructure as code |
eslint | JavaScript/TypeScript linting |
Utilities
| MCP | Purpose |
sequentialthinking | Step-by-step reasoning for complex problems |
memory | Persistent memory across sessions |
markitdown | Convert documents to markdown |
Usage: MCPs are available when configured in your editor. Use microsoft-docs to search official documentation before implementing Azure SDK code.
Conventions
Code Style
- Prefer
async/awaitfor all Azure SDK I/O - Use context managers:
with client:orasync with client: - Close clients explicitly or use context managers
- Use
create_or_update_*for idempotent operations - Use type hints on all function signatures
Git & GitHub
- Always use
ghCLI for GitHub operations (PRs, issues, etc.) — never the MCPgithub-create_pull_requesttool - Use
gh pr createfor pull requests,gh issue createfor issues
Clean Code Checklist
Before completing any code change:
- Functions do one thing
- Names are descriptive and intention-revealing
- No magic numbers or strings (use constants)
- Error handling is explicit (no empty catch blocks)
- No commented-out code
- Tests cover the change
Testing Patterns
# Arrange
service = ProjectService()
expected = Project(id="123", name="test")
# Act
result = await service.get_project("123")
# Assert
assert result == expectedFor Azure SDK tests:
- Use
pytest-asynciofor async tests - Mock Azure clients at the service boundary
- Test both success and error paths
Workflow: Adding a Feature
- Clarify — Understand the requirement. Ask if unclear.
- Test First — Write a failing test that defines success.
- Implement — Write minimum code to pass the test.
- Refactor — Clean up while tests stay green.
- Verify — Run full test suite, check types, lint.
# Example workflow
pytest tests/test_feature.py -v # Run specific tests
mypy src/ # Type check
ruff check src/ # LintDo's and Don'ts
Do
- ✅ Use
DefaultAzureCredentialfor authentication - ✅ Use async/await for all Azure SDK operations
- ✅ Write tests before or alongside implementation
- ✅ Keep functions small and focused
- ✅ Match existing patterns in the codebase
- ✅ Use
ghCLI for all GitHub operations (PRs, issues, releases)
Don't
- ❌ Hardcode credentials or endpoints
- ❌ Suppress type errors (
as any,@ts-ignore,# type: ignore) - ❌ Leave empty exception handlers
- ❌ Refactor unrelated code while fixing bugs
- ❌ Add dependencies without justification
- ❌ Use GitHub MCP tools for write operations (enterprise token restrictions)
Success Indicators
These principles are working if you see:
- Fewer unnecessary changes in diffs
- Fewer rewrites due to overcomplication
- Clarifying questions come before implementation (not after mistakes)
- Clean, minimal PRs without drive-by refactoring
- Tests that document expected behavior
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

