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

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

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

A migration guide for Python apps that use Azure OpenAI, Microsoft's hosted version of OpenAI models, to move from the older Chat Completions API to the Responses API.

In plain words
What is it for?
Use it when updating Azure OpenAI Python code, especially when moving to the v1 endpoint or preparing to use newer models such as GPT-5.
Why use it?
It explains the code changes needed for the newer API, reducing uncertainty around clients, streaming, tools, structured results, authentication, and model support.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

This is microsoft/generative-ai-for-beginners's own configuration. It tells Claude Code and Codex how to work on generative-ai-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 generative-ai-for-beginners configures →

About the project

Microsoft’s Generative AI for Beginners is a 21-lesson course that teaches the concepts and coding practices needed to build generative AI applications. It is intended for people starting with generative AI, with lessons covering both explanations and code examples.

microsoft/generative-ai-for-beginners · 119,497 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to microsoft/generative-ai-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/generative-ai-for-beginners/main/.github/skills/azure-openai-to-responses/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/microsoft/generative-ai-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/generative-ai-for-beginners/azure-openai-to-responses/github.svg)](https://agentmods.dev/skills/microsoft/generative-ai-for-beginners/azure-openai-to-responses)
Your own site
<a href="https://agentmods.dev/skills/microsoft/generative-ai-for-beginners/azure-openai-to-responses"><img src="https://agentmods.dev/badge/skills/microsoft/generative-ai-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/generative-ai-for-beginners/azure-openai-to-responses"><img src="https://agentmods.dev/badge/skills/microsoft/generative-ai-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 2,035 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.02035
Opus 5 $0.00093 $0.01018
Sonnet 5 $0.00037 $0.00407
Haiku 4.5 $0.00018 $0.00203

Measured 11d ago against content hash 9332f894fa57, 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 11d ago.

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.

.github/skills/azure-openai-to-responses/SKILL.md · 162 lines

How it starts

The opening of the file, as written. The whole thing — 162 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.

Installed from Azure-Samples/azure-openai-to-responses (MIT).

Triggers

Activate this skill when the 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

Why migrate

GPT-5 and newer models require the Responses API. The new /openai/v1/ endpoint uses the standard OpenAI() client instead of AzureOpenAI(), requires no api_version parameter, and works identically across OpenAI and Azure OpenAI.

What changes

Chat Completions (before) Responses API (after)
AzureOpenAI() / AsyncAzureOpenAI() OpenAI(base_url=...) / AsyncOpenAI(base_url=...)
azure_endpoint=... base_url=f"{endpoint.rstrip('/')}/openai/v1/"
api_version="2024-..." Remove entirely — /openai/v1/ is stable
azure_ad_token_provider=... api_key=token_provider
client.chat.completions.create(messages=...) client.responses.create(input=...)
resp.choices[0].message.content resp.output_text
max_tokens max_output_tokens (min 16 on Azure)
response_format text={"format": {...}}
seed Remove (not supported)
tools nested {"type":"function","function":{...}} flat {"type":"function","name":...}
tool result {"role":"tool","tool_call_id":...} {"type":"function_call_output","call_id":...,"output":...}
content[].type: "text" content[].type: "input_text"
content[].type: "image_url" + {"url": "..."} content[].type: "input_image" + flat "image_url": "..."
streaming chunk.choices[0].delta.content event.type == "response.output_text.delta"event.delta

Read the full file on GitHub · 162 lines

Files

What ships with it

1 file 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. 11d ago First seen · 162 lines · 185 tokens per session scan A 9332f894fa57

Subscribe to this mod's changes

azure-openai-to-responses is a skill published in the GitHub repository microsoft/generative-ai-for-beginners (119,497 stars, last pushed yesterday), licensed MIT. It adds 185 tokens to every session and 2,035 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.