ai-agent-design

ai-agent-design is a skill for Claude Code, Codex from 05-deepak-patidar/claude-skills. It costs 103 tokens per session (1,458 once invoked), scanned A, original, MIT.

Guidance for building software agents that use tools and take actions, such as calling APIs, editing files, or running workflows. It covers tool design, permissions, memory, agent loops, multiple agents, and evaluation.

In plain words
What is it for?
Use it when designing agent tools, deciding between a fixed workflow and an agent, adding permission checks, managing context or memory, or testing agent behaviour.
Why use it?
An agent can turn a wrong answer into a wrong action. These practices help limit what it can do and make its behaviour safer and easier to test.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when designing agent tools, deciding between a fixed workflow and an agent, adding permission checks, managing context or memory, or testing agent behaviour.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/05-deepak-patidar/claude-skills/ai-agent-design
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add 05-deepak-patidar/claude-skills --skill ai-agent-design
Clone the repo
git clone --depth 1 https://github.com/05-deepak-patidar/claude-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ai-agent-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/05-deepak-patidar/claude-skills/ai-agent-design/github.svg)](https://agentmods.dev/skills/05-deepak-patidar/claude-skills/ai-agent-design)
Your own site
<a href="https://agentmods.dev/skills/05-deepak-patidar/claude-skills/ai-agent-design"><img src="https://agentmods.dev/badge/skills/05-deepak-patidar/claude-skills/ai-agent-design/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ai-agent-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/05-deepak-patidar/claude-skills/ai-agent-design"><img src="https://agentmods.dev/badge/skills/05-deepak-patidar/claude-skills/ai-agent-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,458 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00103 $0.01458
Opus 5 $0.00051 $0.00729
Sonnet 5 $0.00021 $0.00292
Haiku 4.5 $0.00010 $0.00146

Measured 12d ago against content hash 67409ded6084, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

ai-agent-design scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

ai-agent-design/SKILL.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AI Agent Design

An agent is a model in a loop with tools. That loop turns a wrong answer into a wrong action — so agent engineering is 20% prompting and 80% designing the action space so that the worst plausible sequence of tool calls is survivable. Build the cage before you build the brain.

Rule 0: Minimum viable autonomy

A workflow (fixed steps, model used inside steps) beats an agent (model chooses steps) whenever the steps are knowable in advance — cheaper, faster, testable, debuggable. Reach for a real agent loop only when the path genuinely varies per input (open-ended research, debugging, multi-step tasks with branching). Most "agents" in production should be pipelines with one or two agentic steps; start there and earn each degree of freedom you grant.

Tools — the real interface (design these hardest)

The model is a user of your tools; bad tool design causes most agent failures:

  • One tool = one clear capability, named for intent (create_invoice, not run_query). Descriptions are prompts — state what it does, when to use it, when NOT to, and what it returns. Put decision guidance in the description, not hope in the model.
  • Schemas do the enforcing: enums for closed choices, required vs optional made explicit, formats specified. Every parameter a schema validates is a hallucination class deleted.
  • Errors are steering: return machine-readable, actionable failures ("date must be YYYY-MM-DD, got 'yesterday'") — the model reads errors and self-corrects; a bare 500 teaches it nothing and burns a loop iteration. Design tool errors as carefully as tool successes.
  • Right-size the granularity: too atomic (5 calls to do one obvious thing) wastes loops and invites mis-sequencing; too broad (do_everything(params)) hides the decisions you wanted the model to make. A tool should map to one user-meaningful action.
  • Tool results are context: return compact, relevant summaries with IDs for follow-up, not 40KB JSON dumps that flood the window.
  • Building on a protocol (MCP or equivalent) beats bespoke integrations: tools become reusable across models and hosts — but the design rules above still decide quality.

Read the full file on GitHub · 57 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 57 lines · 103 tokens per session scan A 67409ded6084

Subscribe to this mod's changes

ai-agent-design is a skill published in the GitHub repository 05-deepak-patidar/claude-skills (4 stars, last pushed 2mo ago), licensed MIT. It adds 103 tokens to every session and 1,458 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.