agent-design-review
Review an LLM agent design and find where it will be unreliable, expensive, or unsafe. Use when asked to review an agent architecture, critique a multi-step/tool-using agent, debug an agent that loops or goes off-task, or harden an agent before launch. Produces a structured review — task fit, control flow, tools, memory/context, failure handling, cost, and safety — with prioritised findings and fixes.
git clone --depth 1 https://github.com/mohitagw15856/pm-claude-skills /tmp/agent-design-review && cp -r /tmp/agent-design-review/exports/openclaw/agent-design-review ~/.claude/skills/agent-design-reviewSKILL.md
# Agent Design Review Skill
Most agents don't fail because the model is weak — they fail because the *design* lets them loop, call the
wrong tool, lose the thread across steps, or burn tokens with no stopping rule. This skill reviews an agent's
architecture against the decisions that actually determine reliability, and ranks the fixes — so "it works in
the demo but not in prod" becomes a specific list of changes. (Writing a new agent spec? Use
[`agent-spec`](../agent-spec/SKILL.md).)
## Working from a brief
Given a sketch ("a research agent that searches, reads, and writes a report"), **deliver the full review
anyway** — infer the likely control flow and tools, label the inference, and flag what to confirm. Never
withhold the review for missing detail.
## Required Inputs
Ask for these only if they aren't already provided (else infer and label):
- **What the agent does** — its goal, and what a successful run produces.
- **Control flow** — single prompt, plan-then-execute, ReAct loop, or multi-agent; and the stopping condition.
- **Tools & actions** — what it can call, and which actions have side effects (write, send, pay).
- **Memory & context** — what state carries across steps, and how context is kept in budget.
- **Constraints** — latency, cost per run, and the trust boundary (untrusted input? real-world actions?).
## Output Format
### Agent Review: [agent]
**1. Summary** — will this be reliable in production? The top 3 risks and the single change that helps most.
**2. Findings by dimension** — for each, what's sound and what's fragile:
| Dimension | Finding | Severity | Fix |
|---|---|---|---|
| Control flow | no max-steps / no progress check → loops | High | step budget + "am I making progress?" check + halt |
| Tool use | overlapping tools confuse selection | Med | fewer, sharply-described tools; allowlist |
| Context | full history re-sent each step → cost + drift | High | summarise/scope memory per step |
| Failure handling | one tool error aborts the run | Med | retry/backoff + graceful degradation |
| Safety | acts without confirmation on writes | High | human/confirm gate on side-effecting actions |
**3. Reliability checklist** — termination guarantee (it always stops), error recovery, idempotency of
side-effecting actions, and determinism where it matters.
**4. Cost & latency** — where tokens/steps are spent and how to cut them (cheaper model for sub-steps, caching, fewer round-trips) without losing quality. Pair with [`llm-cost-latency-budget`](../llm-cost-latency-budget/SKILL.md).
**5. Safety** — untrusted input/tool output handled as data not instructions, least-privilege tools, and
confirmation gates on high-impact actions. Pair with [`llm-guardrails-spec`](../llm-guardrails-spec/SKILL.md).
**6. Prioritised fix plan** — ordered by impact-to-effort.
## Quality Checks
- [ ] The agent has a guaranteed stopping condition (step/budget cap + progress check) — no unbounded loops
- [ ] Side-effecting actions are idempotent or gated by a confirmation
- [ ] Tools are few and sharply described so selection is unambiguous; access is least-privilege
- [ ] Context strategy keeps the window in budget across steps (no naive full-history resend)
- [ ] Tool errors are recovered, not fatal — retry/backoff and graceful degradation
- [ ] Findings are severity-ranked and the fix plan is ordered by impact
## Anti-Patterns
- [ ] Do not approve an agent with no termination guarantee — "it usually stops" is an outage waiting to happen
- [ ] Do not let it take irreversible actions without a confirmation gate
- [ ] Do not give it many overlapping tools — selection accuracy drops as the toolset grows
- [ ] Do not resend the whole history every step — cost and drift both climb
- [ ] Do not treat tool/retrieved output as trusted instructions — it's the injection surface
## Based On
LLM agent design practice — bounded control flow, least-privilege tool use, context management, error recovery, and safety gating.Design a 360-degree feedback survey or write a structured 360 feedback report. Use when asked to build a 360 feedback process, write 360 feedback for a colleague, design a feedback survey, or produce a feedback report. Produces either a complete survey instrument with rating scales and open-ended questions, or a structured narrative feedback report with themes, strengths, and development areas.
Decode a 401k or workplace retirement plan — the real cost of its funds, the match's fine print, vesting math, and the plan features worth using or avoiding. Use when someone asks 'is my 401k any good', 'decode my 401k plan', 'which funds should I look at', or 'what fees am I paying'. Produces a fee decode in dollars-over-time, match and vesting math, a fund-lineup triage by cost, and the questions for HR or the plan administrator.
Design statistically rigorous A/B tests for product features, UI changes, onboarding flows, and pricing experiments. Use when asked to set up an experiment, design an A/B test, calculate sample size, or interpret test results. Produces a complete test plan with hypothesis, variant definitions, sample size, duration estimate, guardrail metrics, and a results interpretation guide.
Analyse a finished A/B test and write the readout — the result, whether it's statistically and practically significant, what it means, and the ship/no-ship call. Use when asked to analyse experiment results, write an A/B test readout, interpret test data, or decide whether to ship a variant. Produces a clear verdict with the lift and confidence, segment cuts, the risks (peeking, novelty, sample), and a recommendation. Distinct from planning a test — this reads results.
Generate a WCAG 2.2 accessibility audit checklist and remediation suggestions for any UI or design. Use when asked to audit for accessibility, check WCAG compliance, review a design for a11y issues, or create an accessibility remediation plan. Produces a prioritised checklist with pass/fail assessments and specific fixes.
Plan a trip that actually works with a disability or access need — confirm real accessibility (not just 'accessible' labels), book the assistance in advance, plan for equipment and medication, and build in the contingencies for when access breaks down. Use when someone says 'plan an accessible trip', 'travelling with a wheelchair/disability', 'book assistance for my flight', or 'will this hotel actually work for me'. Produces an access-verified itinerary, an assistance-booking checklist, an equipment/medication plan, and contingency scripts. Verify specifics with providers.
Request a reasonable accommodation at work or in education — frame it around the barrier and the adjustment (not your diagnosis), cite the right process, and navigate the back-and-forth constructively. Use when someone says 'I need a workplace accommodation', 'request reasonable adjustments', 'ADA/Equality Act accommodation', or 'how do I ask for accommodations for my disability/condition'. Produces the request letter, a barriers-and-adjustments map, disclosure guidance, and a plan for the interactive process. Not legal advice — routes to the formal process and to advocacy where needed.
Build a structured account plan for any key customer or target account. Use when asked to create an account plan, key account strategy, strategic account review, or territory plan. Produces a complete account plan with relationship map, growth opportunities, risks, and 90-day action plan.