From arch-crew
Use when designing or assessing an LLM-agent system — 'how should I build this agent', 'do I need multiple agents or one', 'should this be a workflow or an agent', 'how do I add memory/tools/human approval', 'is my ReAct loop / multi-agent setup right', or any agent-architecture code review. Branches automatically: greenfield → a layered design interview (autonomy → reasoning loop → topology → memory → reliability → governance → integration); existing agent code → a review against the catalog's seven recurring defects. Pushes toward the least autonomy that works. Reach for this whenever agents, tools, multi-agent, RAG-agents, orchestration, or LLM control flow come up, even if no pattern is named.
How this skill is triggered — by the user, by Claude, or both
Slash command
/arch-crew:agentic-patternsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
The single most important principle in agentic design: **the best agentic system is the simplest
The single most important principle in agentic design: the best agentic system is the simplest one that meets the requirement. Start at the bottom of the autonomy spectrum — a single well-prompted call — and climb to a workflow, then a single agent, then multiple agents only when the level below demonstrably can't do the job. Every loop, hand-off, and extra call multiplies cost, latency, and failure modes; each must earn its keep. Most agentic failures in the wild are not a missing exotic pattern — they're an over-built system, or a basic missing guard (no step budget, no human gate, no tracing).
Agentic patterns compose into layers (like an architecture stack, not a single pick): a reasoning loop on Tool Use, optionally inside a topology, with memory, reliability, governance, and an integration seam.
Knowledge lives in two references you read on demand:
references/decision-tree.md — the layered design interview, bottom of the autonomy spectrum up.references/catalog.md — every pattern (when / cost / review cue) and the seven recurring
defects to check existing agent code against.Branch on greenfield or refactoring? Designing a new agentic system, or assessing one that exists (code, a running agent, a described setup)?
The request usually tells you: "how should I build…" / "I want an agent that…" = greenfield; "review my agent" / "is our multi-agent setup right?" / a repo to read = refactoring. Ask only if ambiguous.
Read references/decision-tree.md and walk it from the autonomy gate up.
references/catalog.md.Output — a "Your agentic design" the user can build from:
## Your agentic design
| Layer | Pattern | Why it's here | Watch out for |
|-------|---------|---------------|---------------|
| Autonomy | <single call / workflow / agent> | ... | ... |
| Reasoning loop | <ReAct / Plan-and-Execute / Reflection> (+ Tool Use) | ... | ... |
| ...only the layers that apply... |
**Guardrails to include from day one:** <step budget, loop cap, HITL gates, tracing — per the
active branches.>
**The least-autonomy check:** <one or two sentences confirming nothing here is more autonomous than
the task requires — or flagging a layer to drop.>
If the autonomy gate already answered "no agent" or "a workflow", don't force the table. That outcome is the recommendation — and it's the most valuable one this skill gives. Say plainly what to build instead (a single well-prompted call, optionally with retrieval; or the one workflow shape and its guardrails), why it's sufficient, and the single signal that would later justify climbing the spectrum. Two honest lines beat a padded multi-layer design for a problem that didn't need one.
The deliverable favours subtracting autonomy and adding guardrails over adding machinery. A huge fraction of real agent problems are fixed by removing agents, not adding them.
references/catalog.md: (1) agent where a workflow/call
would do, (2) multi-agent where one agent would do, (3) loops without a step budget + early-exit,
(4) unvalidated tool outputs, (5) no durable memory when runs outlive the context window, (6)
ungated irreversible actions, (7) no tracing. Most findings live here. The checklist is a lens,
not a form to fill: many real systems are a workflow or a workflow-of-single-calls (e.g.
LangGraph), so translate each defect to what the system actually is rather than scoring it as if
it were an autonomous agent — and if you find a genuine issue that none of the seven name (a dead
tool, a disabled checkpointer, an unbuilt "agent" that's really a stub), report it anyway. Also
handle the pre-build case: if the agentic layer is only designed-on-paper / stubbed, review
the intended design and flag the defects to preempt before they're written.Output:
## Agentic system review
**Current design:** Autonomy: <…> · Loop: <…> · Agents: <…> · Memory: <…> · Governance: <…>
### Findings
1. **<defect>** — <where, file ref> · Impact: <cost/latency/risk> · Fix: <pattern to add, or
autonomy to remove> · First step: <smallest safe change>
2. ...
**Simplify:** <agents/loops to collapse or remove.>
**Sound as-is:** <parts that are already right.>
A design that lives only in a chat transcript is lost. Persist it.
Greenfield → an ADR. After presenting the design, write docs/adr/NNNN-short-title.md (lowercase
words joined by hyphens, e.g. 0001-single-react-agent-with-hitl-gates.md) — a 4-digit number, one
past the highest existing ADR in docs/adr/ (else 0001). Create docs/adr/ if absent. Use this
MADR-style template:
# NNNN. <decision title, e.g. "Single ReAct agent with HITL gates for the support bot">
- Status: Accepted
- Date: <YYYY-MM-DD>
- Deciders: <the user / team, if known>
## Context
<the task and its forces — what the system must do, the autonomy genuinely required, the stakes /
latency / cost constraints that drove each layer.>
## Decision
<the composed design: the layer · pattern · why table you just presented>
## Consequences
<the cost/watch-out for each layer, the guardrails included from day one (step budgets, loop caps,
HITL, tracing), and the least-autonomy caveat: what was deliberately *not* built and the signal
that would justify climbing the spectrum.>
Refactoring → a review report. Write the review to docs/agentic-review-<YYYY-MM-DD>.md (create
docs/ if absent — Current design + Findings from the seven-defect checklist + Simplify /
Sound-as-is). If the system is already sound, say so plainly and keep the report short — a clean
bill of health is a valid, useful outcome, not a failure to find work. If a finding is a direction
the user commits to, offer to capture it as its own ADR.
Write the file and report its path. Ask first only if the repo layout is unclear or the user is clearly still just exploring rather than deciding.
The autonomy gate leads on purpose: the costliest agentic mistakes are made before any pattern is chosen, by reaching for an agent (or a swarm) when something simpler and more reliable would serve. Naming the cost beside every layer, and leading review mode with the seven-defect checklist, keeps the focus where real failures happen — over-engineering and missing guardrails — rather than on collecting exotic patterns.
Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
npx claudepluginhub adamkrysztopa/architectural-decisions --plugin arch-crew