ai-agent-design

ai-agent-design is a skill for Claude Code, Codex from jamestorrevillas/dev-skills. It costs 94 tokens per session (1,886 once invoked), scanned B, original, MIT.

A design guide for building AI agents and multi-agent systems—software that uses language models, tools, memory, and decision rules to complete tasks.

In plain words
What is it for?
Use it to plan agents, retrieval-augmented generation (RAG) pipelines, vector-database integrations, MCP servers, and communication or orchestration between agents.
Why use it?
It helps define an agent’s purpose, limits, inputs, outputs, and failure handling before implementation, reducing unclear behavior and unsafe actions.

Skill for Claude CodeCodex

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

Good fit Use it to plan agents, retrieval-augmented generation (RAG) pipelines, vector-database integrations, MCP servers, and communication or orchestration between agents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jamestorrevillas/dev-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 jamestorrevillas/dev-skills --skill ai-agent-design
Clone the repo
git clone --depth 1 https://github.com/jamestorrevillas/dev-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/jamestorrevillas/dev-skills/ai-agent-design/github.svg)](https://agentmods.dev/skills/jamestorrevillas/dev-skills/ai-agent-design)
Your own site
<a href="https://agentmods.dev/skills/jamestorrevillas/dev-skills/ai-agent-design"><img src="https://agentmods.dev/badge/skills/jamestorrevillas/dev-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/jamestorrevillas/dev-skills/ai-agent-design"><img src="https://agentmods.dev/badge/skills/jamestorrevillas/dev-skills/ai-agent-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,886 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00094 $0.01886
Opus 5 $0.00047 $0.00943
Sonnet 5 $0.00019 $0.00377
Haiku 4.5 $0.00009 $0.00189

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

Security

Grade B, and why

ai-agent-design scanned grade B with 1 finding 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 10d 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.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

- **Never** allow agents to execute arbitrary code without sandboxing
.github/skills/ai-agent-design/SKILL.md · 227 lines

How it starts

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

AI Agent Design

Core Philosophy

Agents are not magic — they are systems with inputs, outputs, memory, tools, and decision logic. Design them with the same rigor as any production software. Every agent should have a clear purpose, defined boundaries, and explicit failure modes.

Agent Design Principles

1. Clarify Intent Before Acting

An agent must ask clarifying questions when the user's intent is ambiguous — before executing any irreversible action. Use this pattern:

  • Is the goal clear? If not, ask one focused question.
  • Are the constraints known? (scope, output format, data sources)
  • What does success look like?

2. Specification Before Code

Before writing agent logic, generate a spec or task list file:

  1. Define the agent's role and responsibilities
  2. List all tools it needs access to
  3. Define input/output contracts
  4. Identify failure modes and fallback behavior
  5. Then write the code

3. Single Responsibility

Each agent should do one thing well. Prefer a team of specialized agents over one general-purpose agent.


Orchestration Patterns

Pattern When to Use Description
Sequential Linear pipelines Agents chain in fixed order (draft → review → publish)
Supervisor Complex multi-module tasks Lead agent routes to specialized workers
ReAct Autonomous problem solving Combines reasoning (Thought) + acting (Tool Use)
Group Chat Collaborative tasks Multi-agent communication with human oversight
DAG Stateful workflows Directed acyclic graph for cyclical, stateful orchestration

Framework Selection Guide

Framework Best For Status
LangGraph Complex stateful agents, cyclical workflows, multi-agent orchestration, production-grade ✅ Active — GA May 2025
LangChain Simple RAG pipelines, linear workflows, quick prototypes ✅ Active — use for RAG, not for agents
CrewAI Role-based multi-agent teams ("Manager", "Researcher", "Writer") ✅ Active
Microsoft Agent Framework Enterprise agents in Azure ecosystem — replaces AutoGen + Semantic Kernel ✅ Active — Public Preview Oct 2025, GA targeted Q1 2026
AutoGen Legacy — still works but no new features ⚠️ Maintenance mode since Oct 2025
Custom (MCP) Lightweight, portable, interoperable agent tools via open standard ✅ Active

Read the full file on GitHub · 227 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. 10d ago First seen · 227 lines · 0 tokens per session scan B 72c82aec1ba1

Subscribe to this mod's changes

ai-agent-design is a skill published in the GitHub repository jamestorrevillas/dev-skills (3 stars, last pushed 5mo ago), licensed MIT. It adds 94 tokens to every session and 1,886 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

rag-architecture

Build retrieval-augmented generation systems that ground LLMs in your data.

fabioc-aloha/Alex_Skill_Mall · 20 tokens

memory-systems

This skill should be used for persistent semantic memory in agent systems: cross-session knowledge retention, entity tracking, temporal validity, graph or vector retrieval, memory consolidation, and memory benchmark selection. Route file-backed scratchpads to filesystem-context, handoff summaries to…

fabioc-aloha/Alex_Skill_Mall · 68 tokens

embedding-strategies

Select and optimize embedding models for semantic search and RAG applications. Use when choosing embedding models, implementing chunking strategies, or optimizing embedding quality for specific domains.

foryourhealth111-pixel/Vibe-Skills · 37 tokens

similarity-search-patterns

Implement efficient similarity search with vector databases. Use when building semantic search, implementing nearest neighbor queries, or optimizing retrieval performance.

foryourhealth111-pixel/Vibe-Skills · 30 tokens

senior-ml-engineer

World-class ML engineering skill for productionizing ML models, MLOps, and building scalable ML systems. Expertise in PyTorch, TensorFlow, model deployment, feature stores, model monitoring, and ML infrastructure. Includes LLM integration, fine-tuning, RAG systems, and agentic AI. Use when deploying ML models…

foryourhealth111-pixel/Vibe-Skills · 91 tokens

graph-retrieval

Exposes graph-based retrieval as a tool capability via querygraph. Reads normalized graph store files, builds a query-relevant subgraph, and returns LLM-friendly semantic triples with replayable evidence metadata.

study8677/repobrain · 46 tokens