agentic-shell-python: Skill for Claude Code

.github/skills/ms-agent-framework/SKILL.md

ms-agent-framework is a skill for Claude Code, Codex from EmeaAppGbb/agentic-shell-python. It costs 37 tokens per session (1,176 once invoked), scanned A, original, MIT.

Instructions for adding Microsoft Agent Framework to a Python FastAPI application, a Python web backend. It sets up AI agents that use Azure OpenAI, Microsoft's hosted OpenAI service.

In plain words
What is it for?
Use it when building conversational AI, agents that use tools, or an AG-UI backend with Python, FastAPI, and Azure OpenAI.
Why use it?
It explains the dependencies, environment settings, and application changes needed to add agent capabilities to a backend.

Skill for Claude CodeCodex

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

This is EmeaAppGbb/agentic-shell-python's own configuration. It tells Claude Code and Codex how to work on agentic-shell-python 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 agentic-shell-python configures →

Reuse

Borrowing it

Nothing to install: this file belongs to EmeaAppGbb/agentic-shell-python. 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/EmeaAppGbb/agentic-shell-python/main/.github/skills/ms-agent-framework/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/EmeaAppGbb/agentic-shell-python

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 ms-agent-framework

README.md
[![agentmods](https://agentmods.dev/badge/skills/emeaappgbb/agentic-shell-python/ms-agent-framework/github.svg)](https://agentmods.dev/skills/emeaappgbb/agentic-shell-python/ms-agent-framework)
Your own site
<a href="https://agentmods.dev/skills/emeaappgbb/agentic-shell-python/ms-agent-framework"><img src="https://agentmods.dev/badge/skills/emeaappgbb/agentic-shell-python/ms-agent-framework/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 ms-agent-framework

Your own site · 80×15
<a href="https://agentmods.dev/skills/emeaappgbb/agentic-shell-python/ms-agent-framework"><img src="https://agentmods.dev/badge/skills/emeaappgbb/agentic-shell-python/ms-agent-framework.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,176 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.
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.00037 $0.01176
Opus 5.5 $0.00015 $0.00470
Sonnet 5.5 $0.00007 $0.00235
Haiku 4.5 $0.00004 $0.00118

Measured 2mo ago against content hash abe91cf6d51c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ms-agent-framework 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 2mo 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/ms-agent-framework/SKILL.md · 201 lines

How it starts

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

Microsoft Agent Framework Integration

This skill helps you integrate the Microsoft Agent Framework into a Python FastAPI application for building AI agents powered by Azure OpenAI.

When to Use

  • Adding AI agent capabilities to a Python backend
  • Building conversational AI with Azure OpenAI
  • Creating agents that can use tools and follow instructions
  • Setting up the backend for AG-UI protocol support

Prerequisites

  • Python 3.11 or higher
  • An Azure OpenAI resource with a deployed model
  • Azure CLI authenticated (az login)

Step-by-Step Instructions

1. Install Dependencies

Add these dependencies to your pyproject.toml:

[project]
dependencies = [
    "agent-framework-ag-ui>=1.0.0b251120",
    "fastapi>=0.115.0",
    "uvicorn>=0.32.0",
]

Then install with:

cd src/agentic-api
uv pip install -e .

2. Configure Environment Variables

Create a .env file or set these environment variables:

AZURE_OPENAI_ENDPOINT=https://<your-resource>.openai.azure.com/
AZURE_OPENAI_DEPLOYMENT_NAME=<your-deployment-name>

3. Update main.py

Replace or update your main.py with the agent framework setup:

import contextlib
import logging
import os

import fastapi
import telemetry

from agent_framework import ChatAgent
from agent_framework.azure import AzureOpenAIChatClient
from agent_framework_ag_ui import add_agent_framework_fastapi_endpoint
from azure.identity import AzureCliCredential

# Read required configuration
endpoint = os.environ.get("AZURE_OPENAI_ENDPOINT")
deployment_name = os.environ.get("AZURE_OPENAI_DEPLOYMENT_NAME")

if not endpoint:
    raise ValueError("AZURE_OPENAI_ENDPOINT environment variable is required")
if not deployment_name:
    raise ValueError("AZURE_OPENAI_DEPLOYMENT_NAME environment variable is required")

# Create the Azure OpenAI chat client with managed identity
chat_client = AzureOpenAIChatClient(
    credential=AzureCliCredential(),
    endpoint=endpoint,
    deployment_name=deployment_name,    
)

# Create the AI agent
agent = ChatAgent(
    name="AGUIAssistant",
    instructions="You are a helpful assistant.",
    chat_client=chat_client,
)

@contextlib.asynccontextmanager
async def lifespan(app: fastapi.FastAPI):
    telemetry.configure_opentelemetry()
    yield

app = fastapi.FastAPI(lifespan=lifespan)

# Register the AG-UI endpoint at the root
add_agent_framework_fastapi_endpoint(app, agent, "/")

logger = logging.getLogger(__name__)

Read the full file on GitHub · 201 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. 2mo ago First seen · 201 lines · 37 tokens per session scan A abe91cf6d51c

Subscribe to this mod's changes

ms-agent-framework is a skill published in the GitHub repository EmeaAppGbb/agentic-shell-python (2 stars, last pushed 8mo ago), licensed MIT. It adds 37 tokens to every session and 1,176 once invoked, about $0.0001 per session on Opus 5.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-31.

Related

ms-agent-framework compared with skills from other repositories

ms-agent-framework next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ms-agent-frameworkEmeaAppGbb/agentic-shell-pythonSkill28mo agoMITA37Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill68k2d agoApache-2.0A217Claude Code, Codex
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.2kyesterdayMITA78Claude Code
fastapi-router-pymicrosoft/skillsSkill3.2kyesterdayMITA46Claude Code
dev-runtimelangwatch/langwatchSkill5.0kyesterdayApache-2.0A172Claude Code
api-designericrisco/rsc-harnessSkill5032d agoMITA105Claude Code, Codex
migrate-segw-to-raparc-mcp/arc-1Skill252yesterdayMITA106Claude Code