Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ai-agent-development

БесплатноБез исполняемых скриптовНе проверен

Build production-ready AI agents with Microsoft Foundry and Agent Framework. Use when creating AI agents, selecting LLM models, implementing agent…

diegosouzapwот diegosouzapw★ 68 звёзд на GitHub

Об этом скилле

AI Agent Development

Purpose: Build production-ready AI agents with Microsoft Foundry and Agent Framework.
Scope: Agent architecture, model selection, orchestration, observability, evaluation.


When to Use This Skill

  • Building AI agents with Microsoft Foundry or Agent Framework
  • Selecting LLM models for agent scenarios
  • Implementing multi-agent orchestration workflows
  • Adding tracing and observability to AI agents
  • Evaluating agent quality and response accuracy

Prerequisites

  • Python 3.11+ or .NET 8+
  • agent-framework-azure-ai package
  • Microsoft Foundry workspace with deployed model

Quick Start

Installation

Python (Recommended):

pip install agent-framework-azure-ai --pre  # --pre required during preview

.NET:

dotnet add package Microsoft.Agents.AI.AzureAI --prerelease
dotnet add package Microsoft.Agents.AI.Workflows --prerelease

Model Selection

Top Production Models (Microsoft Foundry):

Model Best For Context Cost/1M
gpt-5.2 Enterprise agents, structured outputs 200K/100K TBD
gpt-5.1-codex-max Agentic coding workflows 272K/128K $3.44
claude-opus-4-5 Complex agents, coding, computer use 200K/64K $10
gpt-5.1 Multi-step reasoning 200K/100K $3.44
o3 Advanced reasoning 200K/100K $3.5

Deploy Model: Ctrl+Shift+P → AI Toolkit: Deploy Model


Agent Patterns

Single Agent

from pathlib import Path
from agent_framework.openai import OpenAIChatClient

# Load prompt from file — NEVER embed prompts as inline strings
prompt = Path("prompts/assistant.md").read_text(encoding="utf-8")

client = OpenAIChatClient(
    model="gpt-5.1",
    api_key=os.getenv("FOUNDRY_API_KEY"),
    endpoint=os.getenv("FOUNDRY_ENDPOINT")
)

agent = {
    "name": "Assistant",
    "instructions": prompt,  # Loaded from prompts/assistant.md
    "tools": []  # Add tools as needed
}

response = await client.chat(
    messages=[{"role": "user", "content": "Hello"}],
    agent=agent
)

Multi-Agent Orchestration

from pathlib import Path
from agent_framework.workflows import SequentialWorkflow

# Each agent loads its prompt from a dedicated file
researcher = {
    "name": "Researcher",
    "instructions": Path("prompts/researcher.md").read_text(encoding="utf-8")
}
writer = {
    "name": "Writer",
    "instructions": Path("prompts/writer.md").read_text(encoding="utf-8")
}

workflow = SequentialWorkflow(
    agents=[researcher, writer],
    handoff_strategy="on_completion"
)

result = await workflow.run(query="Write about AI agents")

Advanced Patterns: Search github.com/microsoft/agent-framework for:

  • Group Chat, Concurrent, Conditional, Loop
  • Human-in-the-Loop, Reflection, Fan-out/Fan-in
  • MCP, Multimodal, Custom Executors

Best Practices

Prompt & Template File Management

RULE: NEVER embed prompts or output templates as inline strings in code. Always store them as separate files.

Why: Prompts are content, not code. Separating them enables:

  • Version control diffs that show exactly what changed in a prompt
  • Non-developer editing (PMs, prompt engineers) without touching code
  • A/B testing different prompts without code changes
  • Reuse across agents, languages, and test harnesses
  • Clear separation of concerns (logic vs. content)

Directory Convention:

project/
  prompts/                    # All system/agent prompts
    assistant.md              # One file per agent role
    researcher.md
    writer.md
    reviewer.md
  templates/                  # Output templates used by agents
    report-template.md        # Structured output templates
    email-template.md
    summary-template.md
  config/
    models.yaml               # Model configuration

Loading Pattern:

from pathlib import Path

# Load prompt
prompt = Path("prompts/assistant.md").read_text(encoding="utf-8")

# Load output template and inject into prompt
template = Path("templates/report-template.md").read_text(encoding="utf-8")
prompt_with_template = f"{prompt}\n\n## Output Format\n{template}"

Rules:

  • MUST store all system prompts in prompts/ directory as .md or .txt files
  • MUST store output format templates in templates/ directory
  • MUST NOT embed prompt text longer than one sentence directly in code
  • SHOULD use Markdown format for prompts (readable, supports structure)
  • SHOULD name files after the agent role: prompts/{agent-name}.md
  • SHOULD include a brief comment header in each prompt file (purpose, version, model target)
  • MAY use template variables ({variable}) for dynamic content injected at runtime

Development

✅ DO:

  • Plan agent architecture before coding (Research → Design → Implement)
  • Use Microsoft Foundry models for production
  • Implement tracing from day one
  • Test with evaluation data
Полный SKILL.md на GitHub

Установить ai-agent-development в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

metadata.json

FAQ

Что делает скилл ai-agent-development?

Build production-ready AI agents with Microsoft Foundry and Agent Framework. Use when creating AI agents, selecting LLM models, implementing agent orchestration, adding tracing/observability, or evaluating agent quality. Covers agent architecture, model selection, multi-agent workflows, and production deployment.

Как установить скилл ai-agent-development?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ai-agent-development запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить ai-agent-development с