Azure AI Projects Python SDK
microsoft/skills
Reference for building on Microsoft Foundry with the azure-ai-projects Python SDK: project clients, versioned agents, evaluations, connections, datasets and indexes.
How to reference code from sample repos in Agent Framework docs pages using :::code directives, snippet tags, zone pivots, and highlight attributes.
$ npx skills add MicrosoftDocs/semantic-kernel-docs --skill code-snippets -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install MicrosoftDocs/semantic-kernel-docs code-snippets --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/MicrosoftDocs/semantic-kernel-docs.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/code-snippets .claude/skills/code-snippets && rm -rf skills-srcUse ~/.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/
Install the "code-snippets" agent skill from https://github.com/MicrosoftDocs/semantic-kernel-docs/tree/main/.github/skills/code-snippets into .claude/skills/code-snippets/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "code-snippets", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/MicrosoftDocs/semantic-kernel-docs/tree/main/.github/skills/code-snippetsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add MicrosoftDocs/semantic-kernel-docs --skill code-snippets -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install MicrosoftDocs/semantic-kernel-docs code-snippets --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/MicrosoftDocs/semantic-kernel-docs.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.github/skills/code-snippets .agents/skills/code-snippets && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "code-snippets" agent skill from https://github.com/MicrosoftDocs/semantic-kernel-docs/tree/main/.github/skills/code-snippets into .agents/skills/code-snippets/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "code-snippets", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add MicrosoftDocs/semantic-kernel-docs --skill code-snippets -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install MicrosoftDocs/semantic-kernel-docs code-snippets --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/MicrosoftDocs/semantic-kernel-docs.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.github/skills/code-snippets .cursor/skills/code-snippets && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "code-snippets" agent skill from https://github.com/MicrosoftDocs/semantic-kernel-docs/tree/main/.github/skills/code-snippets into .cursor/skills/code-snippets/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "code-snippets", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/MicrosoftDocs/semantic-kernel-docs.git --path .github/skills/code-snippets--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add MicrosoftDocs/semantic-kernel-docs --skill code-snippets -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install MicrosoftDocs/semantic-kernel-docs code-snippets --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/MicrosoftDocs/semantic-kernel-docs.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.github/skills/code-snippets .gemini/skills/code-snippets && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "code-snippets" agent skill from https://github.com/MicrosoftDocs/semantic-kernel-docs/tree/main/.github/skills/code-snippets into .gemini/skills/code-snippets/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "code-snippets", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install MicrosoftDocs/semantic-kernel-docs code-snippetsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add MicrosoftDocs/semantic-kernel-docs --skill code-snippets -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/MicrosoftDocs/semantic-kernel-docs.git skills-src && mkdir -p .github/skills && cp -r skills-src/.github/skills/code-snippets .github/skills/code-snippets && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "code-snippets" agent skill from https://github.com/MicrosoftDocs/semantic-kernel-docs/tree/main/.github/skills/code-snippets into .github/skills/code-snippets/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "code-snippets", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add MicrosoftDocs/semantic-kernel-docs --skill code-snippets -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install MicrosoftDocs/semantic-kernel-docs code-snippets --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/MicrosoftDocs/semantic-kernel-docs.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.github/skills/code-snippets .opencode/skills/code-snippets && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "code-snippets" agent skill from https://github.com/MicrosoftDocs/semantic-kernel-docs/tree/main/.github/skills/code-snippets into .opencode/skills/code-snippets/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "code-snippets", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
code-snippetsHow to reference code from sample repos in Agent Framework docs pages using :::code directives, snippet tags, zone pivots, and highlight attributes.
Code Snippets is an agent skill from MicrosoftDocs/semantic-kernel-docs, published by the product's own GitHub organization. How to reference code from sample repos in Agent Framework docs pages using :::code directives, snippet tags, zone pivots, and highlight attributes.
Its SKILL.md is about 1.4k 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 AI & LLM Engineering, covering Building AI agents. It works with Python. The repository describes itself as: Semantic Kernel (SK) is a lightweight SDK enabling integration of AI Large Language Models (LLMs) with conventional programming languages. The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 6997e10. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
pythonFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
github.comAlso links to:
learn.microsoft.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Code Snippets loads about 1.4k tokens when it runs. Until then it costs about 41 tokens; SKILL.md has 468 words of instructions outside code blocks.
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.
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.
The full file from MicrosoftDocs/semantic-kernel-docs at commit 6997e10, republished under its MIT licence (© MicrosoftDocs). 468 words, ~1,434 tokens.
.claude/skills/code-snippets/SKILL.md (or your agent's skills folder).This skill describes how to reference code from sample repos in Agent Framework docs pages, eliminating inline code duplication.
:::code language="python" source="~/../agent-framework-code/python/samples/01-get-started/01_hello_agent.py" id="create_agent" highlight="1-4":::| Parameter | Required | Description |
|---|---|---|
language | Yes | "python" or "csharp" |
source | Yes | Snippet file path using docset-relative syntax (for example ~/... or ~/../<dependent-repo>/...) |
id | No | Matches a snippet tag in source (# <name> / # </name> for Python, // <name> / // </name> for C#) |
range | No | Line range (e.g. "2-24,26"). Cannot coexist with id |
highlight | No | Lines to highlight, relative to the displayed snippet (not the file) |
~/agent-framework/<path-to-file>~/../<path_to_root>/<path-to-file>~/../agent-framework-code/python/samples/<section>/<file>.pyIf the code file you want to reference is in a different repository, set up that code repository as a dependent repository in .openpublishing.publish.config.json. The path_to_root you assign acts like a folder name for snippet source paths.
The dependent_repositories list is required in .openpublishing.publish.config.json for cross-repository references (CRR):
{
"dependent_repositories": [
{
"path_to_root": "<relative path to repository root>",
"url": "<referenced repository url>",
"branch": "<branch name of referenced repository>",
"branch_mapping": {
"<source repository branch>": "<referenced repository branch>",
"<source repository branch>": "<referenced repository branch>"
}
},
{
"path_to_root": "token",
"url": "https://github.com/Microsoft/token",
"branch": "main",
"branch_mapping": {
"main": "main",
"develop": "test"
}
}
]
}| Metadata | Meaning | Required |
|---|---|---|
dependent_repositories | The CRR relationship list name | Yes |
path_to_root | Relative folder path to the repository root (folder can be virtual) | Yes |
url | URL of the reference repository this repo depends on | Yes |
branch | Default branch of the reference repository for builds | Yes |
branch_mapping | Optional source-branch to reference-branch map | No |
Use the same :::code syntax for CRR snippets as in-repo snippets. Only the source path changes.
~ for docset-root-relative references... segments to move up directories when needed (for example ../../)... chains are harder to maintain.Example CRR source path:
~/../xamarin-forms-samples/WebServices/TodoREST/TodoAPI/TodoAPI/Startup.cs
[!NOTE] The dependent repository alias is rooted at repo root, but
~is rooted at the docset'sbuild_source_folder. In this repo, Agent Framework docs use"build_source_folder": "agent-framework", so dependent repositories are referenced like~/../agent-framework-code/....
[!IMPORTANT] Updating an external code snippet does not automatically trigger a content build. Trigger a build by changing doc content or starting a build manually.
# <create_agent>
client = OpenAIResponsesClient(...)
agent = client.as_agent(name="...", instructions="...")
# </create_agent>// <create_agent>
var agent = await client.CreateAIAgentAsync(...);
// </create_agent>snake_caseEvery page showing code for both languages uses zone pivots:
:::zone pivot="programming-language-csharp"
:::code language="csharp" source="~/../agent-framework-code/dotnet/samples/..." id="...":::
:::zone-end
:::zone pivot="programming-language-python"
:::code language="python" source="~/../agent-framework-code/python/samples/..." id="...":::
:::zone-endApply :::code references when:
Until then, use inline code blocks (python / csharp) as a temporary measure.
| ID | Purpose | Typical file |
|---|---|---|
create_agent | Agent instantiation | 01_hello_agent.py |
run_agent | Non-streaming run | 01_hello_agent.py |
run_agent_streaming | Streaming run | 01_hello_agent.py |
define_tool | Tool definition | 02_add_tools.py |
create_agent_with_tools | Agent + tools | 02_add_tools.py |
multi_turn | Thread-based conversation | 03_multi_turn.py |
context_provider | Memory/context setup | 04_memory.py |
create_workflow | Workflow builder | 05_first_workflow.py |
© MicrosoftDocs, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .github/skills/code-snippets of MicrosoftDocs/semantic-kernel-docs.
Open the folder on GitHubat commit 6997e10
Code Snippets 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Code Snippets this skillMicrosoftDocs/semantic-kernel-docs | 264 | — | ~1.4k | Automated safety check: Pass | MIT | |
| Azure AI Projects Python SDKmicrosoft/skills | 3.1k | 6 repos | ~2.8k | Automated safety check: Pass | MIT | |
| Senior Prompt Engineermaslennikov-ig/claude-code-orchestrator-kit | 259 | 4 repos | ~1.4k | Automated safety check: Pass | Custom licence | |
| Google Agents CLI Adk Codepifferologo/cloud-agents-cli | 129 | 1 repos | ~768 | Automated safety check: Pass | Apache-2.0 | |
| DSPy Language Model ProgrammingOrchestra-Research/AI-Research-SKILLs | 13k | 10 repos | ~3.8k | Automated safety check: Pass | MIT | |
| E2b Code Interpreteragent-sandbox/agent-sandbox | 218 | — | ~2.3k | Automated safety check: Pass | Apache-2.0 |
microsoft/skills
Reference for building on Microsoft Foundry with the azure-ai-projects Python SDK: project clients, versioned agents, evaluations, connections, datasets and indexes.
maslennikov-ig/claude-code-orchestrator-kit
Provides reference guides and Python scripts for prompt optimization, RAG evaluation, and agent orchestration when building or tuning LLM systems.
pifferologo/cloud-agents-cli
This skill should be used when the user wants to "write agent code", "build an agent with ADK", "add a tool", "create a callback", "define an agent", "use state management", or needs ADK (Agent…
Orchestra-Research/AI-Research-SKILLs
Teaches an agent to build LM pipelines, RAG systems and agents in DSPy using signatures, modules and optimizers instead of hand-tuned prompts.
agent-sandbox/agent-sandbox
Execute code in E2B sandboxes and integrate with LLMs for tool calling.
hidai25/eval-view
Run EvalView regression checks against golden baselines to detect regressions in AI agent behavior after code, prompt, or model changes.
MicrosoftDocs/semantic-kernel-docs
How breadcrumbs work on Microsoft Learn: structure, creation, configuration in docfx.json, and best practices for documentation repos.
MicrosoftDocs/semantic-kernel-docs
How to configure cross-repository references (CRR) and create API class links for Microsoft Learn docs in this repository.
MicrosoftDocs/semantic-kernel-docs
How to delete, rename, or move articles on Microsoft Learn while preserving Platform IDs, preventing broken links, and managing redirects.
MicrosoftDocs/semantic-kernel-docs
Conceptual organization of Agent Framework documentation and samples.
MicrosoftDocs/semantic-kernel-docs
How to create, structure, and configure table of contents (TOC) files for Microsoft Learn documentation using toc.yml and docfx.json.
MicrosoftDocs/semantic-kernel-docs
Required when reviewing, updating, auditing, or creating any concept documentation page.
Works with
Categories
How to reference code from sample repos in Agent Framework docs pages using :::code directives, snippet tags, zone pivots, and highlight attributes. Code Snippets is an agent skill from MicrosoftDocs/semantic-kernel-docs, published by the product's own GitHub organization. How to reference code from sample repos in Agent Framework docs pages using :::code directives, snippet tags, zone pivots, and highlight attributes.
Code Snippets fits situations like: tasks that involve Building AI agents.
Run `npx skills add MicrosoftDocs/semantic-kernel-docs --skill code-snippets -a claude-code`. Or copy the skill folder (.github/skills/code-snippets in MicrosoftDocs/semantic-kernel-docs) into .claude/skills/code-snippets in your project. Claude Code loads it when a task matches its description.
Run `npx skills add MicrosoftDocs/semantic-kernel-docs --skill code-snippets -a codex`. Or copy the skill folder (.github/skills/code-snippets in MicrosoftDocs/semantic-kernel-docs) into .agents/skills/code-snippets in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add MicrosoftDocs/semantic-kernel-docs --skill code-snippets -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/code-snippets, .gemini/skills/code-snippets, .github/skills/code-snippets and .opencode/skills/code-snippets in your project.
Going by SKILL.md and its folder, Code Snippets needs the command-line tools its instructions call (python). Our summary lists: Python 3.
SKILL.md names 2 domains. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. As links in the text: learn.microsoft.com. This is read from the text; nothing was executed.
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.
Code Snippets is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.4k tokens (SKILL.md is roughly 5.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Code Snippets: Azure AI Projects Python SDK (microsoft/skills, 3.1k stars), Senior Prompt Engineer (maslennikov-ig/claude-code-orchestrator-kit, 259 stars), Google Agents CLI Adk Code (pifferologo/cloud-agents-cli, 129 stars) and DSPy Language Model Programming (Orchestra-Research/AI-Research-SKILLs, 13k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
MicrosoftDocs (a GitHub organization, an official publisher) maintains it in MicrosoftDocs/semantic-kernel-docs, which has 264 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 2, 2026.
Source: MicrosoftDocs/semantic-kernel-docs on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.