ai-agents-for-beginners: Skill for Claude Code

.agents/skills/azure-openai-to-responses/SKILL.md

azure-openai-to-responses is a skill for Claude Code, Codex from microsoft/ai-agents-for-beginners. It costs 185 tokens per session (5,958 once invoked), scanned A, original, MIT.

A migration guide for Python applications that use Azure OpenAI Chat Completions to move to the Responses API, Azure OpenAI's newer interface for model requests and tools.

In plain words
What is it for?
Use it to migrate AzureOpenAI or AsyncAzureOpenAI code, update authentication, add streaming or tools, support multi-turn requests, and check whether a deployment supports the Responses API.
Why use it?
It helps update the client code while checking endpoint, authentication, streaming, tool, structured-output, and model-compatibility details.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is microsoft/ai-agents-for-beginners's own configuration. It tells Claude Code and Codex how to work on ai-agents-for-beginners itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-agents-for-beginners configures →

About the project

AI Agents for Beginners is a course that teaches the fundamentals of building AI agents through a sequence of lessons. People learning generative AI and agent development use it to study topics and frameworks including AutoGen and Semantic Kernel. The catalogue entries provide skills, instructions, and an agent related to the course.

microsoft/ai-agents-for-beginners · 74,336 stars · on GitHub · aka.ms

Reuse

Borrowing it

Nothing to install: this file belongs to microsoft/ai-agents-for-beginners. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/microsoft/ai-agents-for-beginners/main/.agents/skills/azure-openai-to-responses/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/microsoft/ai-agents-for-beginners

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for azure-openai-to-responses

README.md
[![agentmods](https://agentmods.dev/badge/skills/microsoft/ai-agents-for-beginners/azure-openai-to-responses/github.svg)](https://agentmods.dev/skills/microsoft/ai-agents-for-beginners/azure-openai-to-responses)
Your own site
<a href="https://agentmods.dev/skills/microsoft/ai-agents-for-beginners/azure-openai-to-responses"><img src="https://agentmods.dev/badge/skills/microsoft/ai-agents-for-beginners/azure-openai-to-responses/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for azure-openai-to-responses

Your own site · 80×15
<a href="https://agentmods.dev/skills/microsoft/ai-agents-for-beginners/azure-openai-to-responses"><img src="https://agentmods.dev/badge/skills/microsoft/ai-agents-for-beginners/azure-openai-to-responses.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 185 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,958 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Snyk pass 6 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00185 $0.05958
Opus 5 $0.00093 $0.02979
Sonnet 5 $0.00037 $0.01192
Haiku 4.5 $0.00018 $0.00596

Measured 12d ago against content hash d5ca4662b105, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

azure-openai-to-responses scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/detect_legacy.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/azure-openai-to-responses/SKILL.md · 435 lines

How it starts

The opening of the file, as written. The whole thing — 435 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Migrate Python Apps from Azure OpenAI Chat Completions to Responses API

AUTHORITATIVE GUIDANCE — FOLLOW EXACTLY

This skill migrates Python codebases using Azure OpenAI Chat Completions to the unified Responses API. Follow these instructions precisely. Do not improvise parameter mappings or invent API shapes.


Triggers

Activate this skill when user wants to:

  • Migrate a Python app from Azure OpenAI Chat Completions to Responses API
  • Upgrade Python OpenAI SDK usage to the latest API shape against Azure OpenAI
  • Prepare Python code for GPT-5 or newer models that require Responses on Azure
  • Switch from AzureOpenAI/AsyncAzureOpenAI to standard OpenAI/AsyncOpenAI client with the v1 endpoint
  • Fix deprecation warnings related to AzureOpenAI constructors or api_version

⚠️ Model Compatibility — CHECK FIRST

Before migrating, verify your Azure OpenAI deployment supports the Responses API.

1. Smoke-test your deployment (fastest)

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AZURE_OPENAI_API_KEY"],
    base_url=f"{os.environ['AZURE_OPENAI_ENDPOINT'].rstrip('/')}/openai/v1/",
)

try:
    resp = client.responses.create(
        model=os.environ["AZURE_OPENAI_DEPLOYMENT"],
        input="ping",
        max_output_tokens=50,
        store=False,
    )
    print(f"✅ Deployment supports Responses API: {resp.output_text}")
except Exception as e:
    print(f"❌ Deployment does NOT support Responses API: {e}")

Note: max_output_tokens has a minimum of 16 on Azure OpenAI. Values below 16 return a 400 error. Use 50+ for smoke tests.

If this returns a 404, the deployment's model doesn't support Responses yet — check the reference below or redeploy with a supported model.

2. Check available models in your region (recommended)

Run the built-in model compatibility tool to see what's available with Responses API support in your specific region:

python migrate.py models --subscription YOUR_SUB_ID --location YOUR_REGION

Read the full file on GitHub · 435 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 435 lines · 185 tokens per session scan A d5ca4662b105

Subscribe to this mod's changes

azure-openai-to-responses is a skill published in the GitHub repository microsoft/ai-agents-for-beginners (74,336 stars, last pushed yesterday), licensed MIT. It adds 185 tokens to every session and 5,958 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.