agentleFS
iushviushv/agentic-ai-skills/skills/agentic-design-review/SKILL.md

agentic-design-review

Skill1 starsChanged 4 months agoMITView on GitHub

Review agent code, tool schemas, or system prompts against production rules and report violations with severity and concrete fixes. Use this whenever the user asks to review, audit, or sanity-check an agent, a tool definition, or a prompt; before merging a PR that touches agent behavior; when they ask "is this agent production ready?"; or right after scaffolding a new agent — even when they never say the word "review".

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before merging a PR that adds or modifies agent behavior.

    line 13
  2. Distinctive:

    After scaffolding a new agent to verify compliance.

    line 14
  3. Distinctive:

    When auditing an existing agent for production readiness.

    line 15

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Agentic Design Review

Review agent code, tool definitions, or system prompts against the production rules defined in AGENTS.md. Flag violations, suggest fixes, and rate overall readiness.

When to Use

  • Before merging a PR that adds or modifies agent behavior.
  • After scaffolding a new agent to verify compliance.
  • When auditing an existing agent for production readiness.

Inputs

Provide one or more of:

  • Agent loop code (Python file or snippet).
  • Tool schema definitions (Pydantic models or JSON Schema).
  • System prompt text.
  • Configuration (AgentConfig or equivalent).

Review Checklist

The review checks every item below. Each is pass/warn/fail:

Architecture Level

  • Architecture level (0-5) is identified and justified.
  • No premature escalation to higher levels.

Tool Design

  • Tool names follow verb_noun format.
  • Every tool has a rich description with WHEN/WHAT/edge cases.
  • Parameters are constrained (enums, min/max, patterns).
  • Agent has 3-7 tools, not more.
  • Tools are idempotent where applicable.
  • Tools return structured data, not free-form text.

Safety

  • Input passes through schema validation layer.
  • Injection detection is present (prompt injection, SQL injection).
  • SQL tools are read-only (SELECT only).
  • External content is wrapped with untrusted markers.
  • Code execution is sandboxed (network=none, non-root, resource limits).
  • Output guardrails include PII scrubbing and schema validation.

Reliability

  • Retry policy with exponential backoff and jitter.
  • Circuit breaker on LLM provider calls.
  • Model fallback chain configured.
  • Graceful degradation levels defined.

Budget Enforcement

  • max_iterations is set and bounded (hard cap 50).
  • max_tokens is set.
  • max_cost_usd is set.
  • timeout_seconds is set (hard cap 600).
  • Budget checks happen before every LLM call.

Observability

  • Every LLM call and tool call emits a trace event.
  • Errors include structured context (run_id, step, error_type).
  • Alert rules are configured for error rate, cost, latency.

Testing

  • Unit tests exist for every tool and guardrail.
  • Integration tests mock LLM and test the loop.
  • Eval dataset with golden trajectories exists.
  • CI/CD gates on eval results.

Output Format

## Design Review: {component_name}

**Architecture Level**: L{n} — {justification}
**Overall Score**: {PASS | WARN | FAIL}

### Findings

| # | Category | Severity | Finding | Fix |
|---|----------|----------|---------|-----|
| 1 | Safety   | FAIL     | ...     | ... |

### Summary
- Passes: {n}/{total}
- Warnings: {n}
- Failures: {n}
- Top priority fix: {description}

Anti-Pattern Detection

Flag these specific anti-patterns with severity FAIL:

Anti-PatternDetection Signal
Premature multi-agentLevel 4-5 without justification for split permissions
God AgentMore than 7 tools registered
No iteration limitsMissing max_iterations or max_tokens in config
LLM for everythingLLM call for regex-parseable or deterministic tasks
Raw API exposureTool wraps raw HTTP endpoint without focused interface
Fire-and-forgetNo tracing or logging in agent loop
Trust the outputNo output validation or grounding check
No fallbacksSingle model, no circuit breaker
Skipping evalNo eval dataset or CI gate

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.