agentleFS
albertoclementealbertoclemente/agentic-design-patterns-skills/skills/agentic-pattern-selector/SKILL.md

agentic-pattern-selector

Skill4 starsChanged 5 months agoMITView on GitHub

Helps choose which agentic design pattern fits a given problem when designing, building, or refactoring an agent or LLM workflow. Use when deciding how to structure an agentic feature, when unsure which pattern applies, or when an existing agent approach is unreliable and you need to diagnose which pattern would fix it. Indexes all 21 patterns from Gulli's Agentic Design Patterns.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Must ground answers in a corpus or private docs -> agentic-knowledge-retrieval

    line 28
  2. Very specific:

    Should improve from feedback over time -> agentic-learning-adaptation

    line 40
  3. Distinctive:

    Don't add a pattern unless a single straightforward call fails.

    line 49

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Agentic Pattern Selector

Diagnostic index for choosing among the 21 agentic design patterns in Antonio Gulli, Agentic Design Patterns: A Hands-On Guide to Building Intelligent Systems. Start from the problem you're facing; each line points to the pattern skill that addresses it.

How to use this

  1. Find the symptom that best matches your situation below.
  2. Open the linked pattern skill for the full when / when-not / shape / failure-modes detail.
  3. Patterns compose — most real systems combine several (e.g., planning + tool use + reflection + evaluation).

Symptom -> pattern

Structuring the work

  • Task splits into a fixed sequence of steps -> agentic-prompt-chaining
  • Independent subtasks that can run at once -> agentic-parallelization
  • Different inputs need different handling or models -> agentic-routing
  • Multi-step goal with an unknown or branching path -> agentic-planning
  • Ranking competing tasks under constraints -> agentic-prioritization
  • Open-ended problem, unknown solution space -> agentic-exploration-discovery

Making the agent capable

  • Needs live data, computation, or side effects -> agentic-tool-use
  • Portable, reusable, discoverable tool/data integration -> agentic-mcp
  • Must ground answers in a corpus or private docs -> agentic-knowledge-retrieval
  • Complex reasoning, math, or reason+act loops -> agentic-reasoning-techniques

Quality and reliability

  • Inconsistent first-pass output, correctness checkable -> agentic-reflection
  • Failures from fallible tools/APIs need recovery -> agentic-exception-handling
  • Untrusted input, side effects, policy or safety needs -> agentic-guardrails-safety
  • Need to know whether it actually works / catch regressions -> agentic-evaluation-monitoring
  • High-stakes, irreversible, or ambiguous decisions -> agentic-human-in-the-loop

State, scale, autonomy

  • Continuity across turns/sessions, recall -> agentic-memory-management
  • Should improve from feedback over time -> agentic-learning-adaptation
  • Cost/latency control at scale -> agentic-resource-aware-optimization
  • Long-running autonomy: track progress and completion -> agentic-goal-setting-monitoring

Multiple agents

  • Distinct roles or expertise collaborating -> agentic-multi-agent
  • Interoperable messaging between agents or systems -> agentic-inter-agent-communication

Decision heuristics

  • Don't add a pattern unless a single straightforward call fails. Each pattern buys capability at the cost of latency, money, and failure surface.
  • Get it correct with the simplest structure first, then add agentic-evaluation-monitoring before optimizing anything.
  • "Works in the demo, fails in production" is almost always an evaluation + exception-handling + guardrails gap, not a model problem.
  • Reach for agentic-multi-agent last, not first: try tool use + planning + reflection inside one agent before splitting into many.
  • MCP vs. A2A: MCP connects one agent to tools/data; A2A coordinates multiple agents. Use direct tool-calling before MCP for a small fixed tool set.

The 21 patterns

Ch.PatternSkill
1Prompt Chainingagentic-prompt-chaining
2Routingagentic-routing
3Parallelizationagentic-parallelization
4Reflectionagentic-reflection
5Tool Use (Function Calling)agentic-tool-use
6Planningagentic-planning
7Multi-Agent Collaborationagentic-multi-agent
8Memory Managementagentic-memory-management
9Learning and Adaptationagentic-learning-adaptation
10Model Context Protocol (MCP)agentic-mcp
11Goal Setting and Monitoringagentic-goal-setting-monitoring
12Exception Handling and Recoveryagentic-exception-handling
13Human-in-the-Loop (HITL)agentic-human-in-the-loop
14Knowledge Retrieval (RAG)agentic-knowledge-retrieval
15Inter-Agent Communication (A2A)agentic-inter-agent-communication
16Resource-Aware Optimizationagentic-resource-aware-optimization
17Reasoning Techniquesagentic-reasoning-techniques
18Guardrails / Safety Patternsagentic-guardrails-safety
19Evaluation and Monitoringagentic-evaluation-monitoring
20Prioritizationagentic-prioritization
21Exploration and Discoveryagentic-exploration-discovery

Conceptual source: Antonio Gulli, Agentic Design Patterns: A Hands-On Guide to Building Intelligent Systems (2025), 21 patterns across 4 parts. The book's code examples use LangChain/LangGraph, CrewAI, and Google ADK; these skills are framework-agnostic. They are an original distillation built for selection and auto-triggering — not a reproduction of the book's prose, code, or figures. Free to read: https://docs.google.com/document/d/1rsaK53T3Lg5KoGwvf8ukOUvbELRtH-V0LnOIFDxBryE/

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.