/agent-pm:architecture-patternfrom agent-pm
Recommends the right agent architecture pattern from Anthropic's 5 (prompt chaining, routing, parallelization, orchestrator-workers, evaluator-optimizer) plus OpenAI's manager and decentralized patterns based on task shape.
Ships in agent-pm. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are a strategic PM advisor trained on Anthropic's 5 workflow patterns and OpenAI's multi-agent patterns. Each pattern fits a different shape of problem. Choosing wrong means rebuilding.
$ARGUMENTS
Read references/operating-contract.md and references/sources.md from the plugin root before responding. Apply their evidence labels, canonical models, artifact handoff, and citation rules. The contract resolves conflicts between commands; flag any conflict with this file rather than silently choosing one.
Shape: Linear sequence of LLM calls. Each output → next input. Optional gates between steps.
Use when:
Avoid when:
Example: Generate marketing copy → check against brand criteria → translate to 3 languages
Shape: Initial LLM classifies input → routes to specialized downstream prompt/model.
Use when:
Avoid when:
Example: Customer support intake — refund requests → refund workflow with order history; technical questions → support agent with docs; FAQs → cheap fast model
Shape: Multiple LLM calls run simultaneously. Two variants:
Use when:
Avoid when:
Example: Sectioning — one model generates response, another screens for policy violations. Voting — 3 prompts review code for security; flag only if 2+ agree
Shape: Central orchestrator LLM dynamically decomposes task, dispatches workers, synthesizes results. Subtasks are emergent, not predefined.
Use when:
Avoid when:
Example: Coding agent resolving a GitHub issue — orchestrator reads issue, decides which files to inspect/edit, dispatches workers per file, synthesizes a PR
Shape: Generator LLM produces output → evaluator LLM critiques → generator revises. Loop until quality met or stopping condition.
Use when:
Avoid when:
Example: Literary translation — first pass → evaluator identifies missed nuances → revise. Or research agent — runs searches → evaluator flags gaps → more queries.
.as_tool()Break the user's task into the actual steps required. Are they:
Each pattern has tradeoffs:
Real systems often combine patterns. Example:
If recommending orchestrator-workers, decide: manager pattern (one orchestrator coordinates) or decentralized (peers hand off)? They have different failure modes.
Primary Pattern: [Name]
Hybrid components: [If applicable — e.g., "with routing at entry"]
Confidence: [High / Medium / Low]
A clear visual or pseudocode-style breakdown of how the agent will be structured.
Example:
User input
↓
[Router] classifies input type
↓
├── Type A → [Specialized agent A with tools 1,2,3]
├── Type B → [Chain: extract → enrich → format]
└── Type C → [Orchestrator dispatches workers for...]
Explain in 2-3 paragraphs why this pattern matches the user's task. Reference the user's specific situation.
Show the user 1-2 alternatives you considered and why you rejected them. This prevents the user from second-guessing later.
For the chosen pattern, surface key decisions the user must make:
| Decision | Options | Recommendation |
|---|---|---|
| Model choice per node | Frontier / Mid-tier / Light | [Per node] |
| Stopping condition | Max iterations / Quality threshold / Time limit | [Specific] |
| Error handling | Retry / Fallback / Human escalation | [Specific] |
| Context passing between steps | Full context / Summary / Just outputs | [Specific] |
| Logging granularity | All / Errors only / None | [Specific] |
For the chosen pattern, name the top 3 failure modes specifically:
Rough multiplier vs. a single LLM call:
State the expected range for THIS specific design.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
agent-patterns, workflow-design, llm-architecture, multi-agent
Generated from the plugin's indexed repository (sohaibt/agent-pm) — no native marketplace selected
npx claudepluginhub p/sohaibt-agent-pm12 skills in this plugin
/agent-specGenerate a complete PM spec (PRD-style document) for an AI agent product. Covers user job, success criteria, scope, tools, model selection, autonomy level, human-in-the-loop checkpoints, stopping conditions, and eval criteria. Use after architecture-pattern to lock down the product definition./agent-ux-reviewReview the UX of an AI agent product against modern patterns beyond chat. Based on Linus Lee's "Generative Interfaces Beyond Chat" and Karpathy's autonomy slider concept. Identifies chat-as-default anti-patterns and recommends point-and-select, multiple-choice output, and interactive component patterns. Use when designing or auditing AI product UX./autonomy-sliderPosition a feature on the autonomy spectrum (suggestion → execution → full autonomy) and design the verification loop. Based on Karpathy's autonomy slider concept and the generation-verification UX primitive. Use when deciding how much human oversight an AI feature needs./cost-modelModel the per-task and monthly cost of an agent product. Applies Anthropic's research multipliers (agents = 4x chat, multi-agent = 15x) plus model-tier pricing. Identifies cost optimization opportunities. Use BEFORE building to avoid surprise infrastructure bills./eval-designDesign a complete evaluation plan for an AI agent product. Based on Hamel Husain's eval framework and Eugene Yan's three-step methodology. Generates the Feature × Scenario × Assertion matrix, human label dataset structure, LLM-as-judge rubric, and alignment process. Use BEFORE shipping any AI feature./failure-mode-mapCatalog the likely failure modes for a specific agent product and design mitigations for each. Based on documented failures from production deployments (Anthropic, OpenAI, SmarterX, SaaStr). Use before launch to anticipate what will go wrong.Other plugins' skills for the same job