/polymath-ai:agent-designfrom polymath-ai
Design an LLM agent — architecture (ReAct, plan-execute, reflexion), tool/function-calling contract, memory, multi-agent orchestration, and the stop/budget conditions.
Ships in polymath-ai. 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.
Read when SKILL.md points to them.
An agent is a loop around a model with tools and a stopping rule. Most agent failures are a missing stop condition, a vague tool contract, or unbounded context — design those first.
Mode: analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked [TBD] or [VERIFY], never filled in.
polymath-ai:agent-design.Not this when: you are shaping a single prompt's wording and output — that is polymath-ai:prompt-engineer. For retrieval design, polymath-ai:rag-design. For the eval harness, polymath-ai:eval-plan. For the input/output safety layer, polymath-ai:llm-guardrails.
polymath-ai:llm-guardrails).polymath-ai:eval-plan.Agent design: <agent name>
Shape: agent loop (path depends on findings) | workflow (steps known)
Pattern: ReAct, single agent — why: <reason>; rejected: multi-agent (<reason>)
Tools:
name when to use side effect idempotent on failure
search_orders look up an order by id read-only n/a error result: not_found | retryable
issue_refund after user confirmation mutating request_id error result; never auto-retry
Memory: last 6 turns verbatim + rolling summary; order data fetched on demand
context budget: 24k tokens/turn
Stop: ≤ 12 steps · ≤ $0.40 · ≤ 90 s · abort on 2 identical consecutive calls
Autonomy: reads free; issue_refund requires explicit user confirmation
Untrusted: order notes + email bodies → data only; agent cannot email out
Failures: malformed args → reprompt once; tool 5xx → retry ×2 with backoff; refusal → escalate
Evals: trajectory + outcome suite → polymath-ai:eval-plan
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mohammadbafkar/polymath --plugin polymath-ai6 skills in this plugin
/eval-planDesign an evaluation for an LLM feature — task type, dataset shape, automated vs human rubric, regression set, decision threshold./llm-cost-latencyCut LLM cost and latency — model routing/cascade, prompt caching, batching, streaming, context trimming, output-token control, and a per-request cost/latency budget./llm-guardrailsDesign guardrails for an LLM feature — input validation, prompt-injection defenses, output filtering/schema validation, allow-deny policy, and human-in-the-loop gates.Other plugins' skills for the same job