ai-agent-basics
БесплатноБез исполняемых скриптовНе проверенMaster AI agent fundamentals - architectures, ReAct patterns, cognitive loops, and autonomous system design
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
AI Agent Basics
Build production-grade AI agents with modern architectures and patterns.
When to Use This Skill
Invoke this skill when:
- Designing new AI agent systems
- Implementing ReAct or Plan-and-Execute patterns
- Building autonomous task-solving agents
- Integrating cognitive loops into applications
Parameter Schema
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
task |
string | Yes | What agent capability to build | - |
architecture |
enum | No | single, multi, hybrid |
single |
framework |
enum | No | langchain, langgraph, custom |
langgraph |
complexity |
enum | No | basic, intermediate, advanced |
intermediate |
Quick Start
# Basic ReAct Agent
from langgraph.prebuilt import create_react_agent
from langchain_anthropic import ChatAnthropic
llm = ChatAnthropic(model="claude-sonnet-4-20250514")
agent = create_react_agent(llm, tools=[search, calculator])
result = await agent.ainvoke({"messages": [("user", "What is 25 * 4?")]})
Core Patterns
1. ReAct Agent
# Thought → Action → Observation loop
graph = StateGraph(AgentState)
graph.add_node("think", reason_node)
graph.add_node("act", action_node)
graph.add_node("observe", observation_node)
2. Plan-and-Execute
# Create plan → Execute steps → Verify
planner = create_planner(llm)
executor = create_executor(llm, tools)
3. Reflexion
# Execute → Reflect → Improve
agent_with_reflection = add_reflection_layer(base_agent)
Troubleshooting
| Issue | Solution |
|---|---|
| Agent loops forever | Add max_iterations limit |
| Wrong tool selected | Improve tool descriptions |
| Context too large | Implement summarization |
| Slow responses | Use streaming |
Best Practices
- Start with simple single-agent before multi-agent
- Always add circuit breakers (max iterations)
- Use verbose mode for debugging
- Implement human-in-the-loop for critical decisions
Related Skills
llm-integration- LLM API configurationtool-calling- Function calling implementationagent-memory- Memory systems
References
Установить ai-agent-basics в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ai-agent-basics?
Master AI agent fundamentals - architectures, ReAct patterns, cognitive loops, and autonomous system design
Как установить скилл ai-agent-basics?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ai-agent-basics запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic