agentic-patterns
БесплатноБез исполняемых скриптовНе проверенDesign and operate multi-agent orchestration patterns (ReAct loops, evaluator-optimizer, orchestrator-workers, tool routing) for LLM systems. Use when…
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
Agentic Patterns
Overview
Use simple, composable patterns to decide when to keep a deterministic workflow versus letting an LLM drive its own control flow with tools, retrieval, and memory. Prefer minimal patterns and add agentic loops only when they unlock necessary flexibility.
When to Use
- Use this skill when the request matches the frontmatter description and triggers; otherwise start with a deterministic workflow or a single prompt.
Decision Tree
- Determine whether the task can be mapped to a fixed sequence.
- Yes: implement a workflow chain.
- No: continue.
- Determine whether the output can be evaluated with explicit criteria.
- Yes: use an evaluator-optimizer loop.
- No: continue.
- Determine whether the task decomposes into independent subtasks.
- Yes: use orchestrator-workers.
- No: add a routing step to clarify intent before tool calls.
Workflows
1. Evaluator-Optimizer Loop
- Define an evaluator rubric with pass/fail criteria and required evidence.
- Generate an initial draft with the generator.
- Evaluate the draft with the rubric and capture structured feedback.
- Feed feedback into the generator and iterate until pass or max iterations.
2. Orchestrator-Worker Task Delegation
- Decompose the request into explicit subtasks with clear outputs.
- Assign each subtask to a specialized worker prompt or tool.
- Collect worker outputs and synthesize into a single answer.
- Run a final verification pass (self-check or evaluator) before returning.
3. Tool Poka-Yoke Audit
- List all tools with names, parameters, and docstrings.
- Normalize parameter names and enforce concrete types (ids, paths, enums).
- Add minimal examples and edge cases to each docstring.
- Re-run a small task to confirm tool selection improves.
Non-Obvious Insights
- Composability beats complexity: small patterns are more reliable and easier to debug than full frameworks.
- Tool metadata is part of the control surface; sloppy names or parameters cause misrouted tool selection.
- Agentic systems rely on augmentations (retrieval, tools, memory), so design those explicitly, not as afterthoughts.
- Poka-yoke tool design reduces execution errors without changing the model.
Evidence
- "the most successful implementations use simple, composable patterns rather than complex frameworks." - Anthropic
- "Workflows are systems where LLMs and tools are orchestrated through predefined code paths. Agents, on the other hand, are systems where LLMs dynamically direct their own processes and tool usage, maintaining control over how they accomplish tasks." - Anthropic
- "Evaluator-optimizer: one LLM call generates a response while another provides evaluation and feedback in a loop." - Anthropic
- "Poka-yoke your tools. Change the arguments so that it is harder to make mistakes." - Anthropic
- "When deciding what tool to use, your agent will use the tool's name, parameters, and docstring... So it's important to make sure the docstrings are descriptive and helpful." - LlamaIndex
Scripts
scripts/agentic-patterns_tool.py: CLI scaffolds for evaluator-optimizer, orchestrator-worker, and tool audit patterns.scripts/agentic-patterns_tool.js: Node.js CLI with the same patterns.
Dependencies
- Python 3.11+ or Node 18+.
- Optional: your LLM SDK (OpenAI/Anthropic/Gemini) for real generation/evaluation.
References
Установить agentic-patterns в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл agentic-patterns?
Design and operate multi-agent orchestration patterns (ReAct loops, evaluator-optimizer, orchestrator-workers, tool routing) for LLM systems. Use when building or debugging agent workflows, tool-use loops, or multi-step task delegation; triggers: agentic, multi-agent, orchestration, ReAct, evaluator-optimizer, tool-use, handoff.
Как установить скилл agentic-patterns?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agentic-patterns запускает скрипты?
Нет, скилл состоит только из инструкций (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