From llm-application-dev
Use when choosing LLM agent or LLM workflow design patterns for a presented problem, decomposing an LLM-based system into stages, comparing candidate agent architectures, selecting execution topologies such as chain, route, parallel, orchestrate, loop, or hierarchy, or producing a final recommendation for which patterns fit each stage. Also use when the user asks for agent architecture trade-offs, pattern selection, workflow decomposition, multi-agent design, reflection or governance patterns, or a framework-neutral way to decide how an LLM system should be structured.
How this skill is triggered — by the user, by Claude, or both
Slash command
/llm-application-dev:select-agent-patternsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Select LLM application patterns by separating what each stage must do from how that stage should be wired. Treat patterns as composable structural templates, not as a fixed architecture catalog.
Select LLM application patterns by separating what each stage must do from how that stage should be wired. Treat patterns as composable structural templates, not as a fixed architecture catalog.
Use only the paper's cognitive-function and execution-topology abstractions; do not preserve its product references, case-study domains, benchmark numbers, matrix dimensions, or literal example quantities.
Pick patterns for the user's specific problem, not for the paper's examples. One LLM system can use different patterns at different stages.
Before recommending patterns, strip away:
Keep reusable decision variables:
Use $work-session-tools:task-management when the selection task needs tracked stages, parallel reviewer passes, or explicit synthesis status.
Build a compact problem frame:
Ask a brief clarification only when a missing constraint could change the pattern choice materially. Otherwise state assumptions and proceed.
Split the system by cognitive purpose, not by implementation component names. Use the catalog's cognitive-function axis as the stage taxonomy: Perception, Memory, Reasoning, Action, Reflection, Collaboration, and Governance; treat Governance as including observation, approval, containment, and rate limiting.
For each stage, record the stage input, output, dependency on prior stages, authority level, and verifier.
Read references/pattern-catalog.md. For each stage, shortlist candidate patterns whose cognitive function and topology fit the problem constraints.
Use references/pattern-catalog.md as the source of topology definitions and prefer the simplest topology that satisfies the stage constraints: Chain, Route, Parallel, Orchestrate, Loop, or Hierarchy.
Always consider governance when the system can call tools, spend money, mutate state, expose data, or create user-visible decisions.
Review each candidate pattern independently. When subagents are available, run agents/pattern-fit-reviewer.md once per candidate with only the problem frame, stage, and candidate pattern. Otherwise, write separate passes so one candidate's conclusion does not contaminate another's review.
Each review should follow the output contract in agents/pattern-fit-reviewer.md, whether run as a subagent or emulated as an independent written pass.
Compare reviewer outputs stage by stage. Select the pattern set that best satisfies the constraints with the least unnecessary coordination.
Use these synthesis rules:
Return a concise architecture report:
Do not dump the full catalog; include only patterns considered or selected.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub alex-kopylov/zweihander --plugin llm-application-dev