ai-agent-architectures

ai-agent-architectures is a skill for Claude Code, Codex from j4flmao/agent-skills. It costs 120 tokens per session (1,759 once invoked), scanned A, original, MIT.

A guide to designing AI agents that can plan tasks, use tools, observe results, and continue working. It also covers systems where several specialised agents share or review work.

In plain words
What is it for?
Use it to design agent loops, tool-calling workflows, planning systems, and multi-agent setups such as routing, sequential work, or answer comparison.
Why use it?
It helps structure agents that must do more than produce one answer, reducing unclear tool calls, poor hand-offs, and unfinished multi-step tasks.

Skill for Claude CodeCodex

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

Good fit Use it to design agent loops, tool-calling workflows, planning systems, and multi-agent setups such as routing, sequential work, or answer comparison.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/j4flmao/agent-skills/ai-agents
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 j4flmao/agent-skills --skill ai-agents
Clone the repo
git clone --depth 1 https://github.com/j4flmao/agent-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-architectures

README.md
[![agentmods](https://agentmods.dev/badge/skills/j4flmao/agent-skills/ai-agents/github.svg)](https://agentmods.dev/skills/j4flmao/agent-skills/ai-agents)
Your own site
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/ai-agents"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/ai-agents/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-architectures

Your own site · 80×15
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/ai-agents"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/ai-agents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,759 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.00120 $0.01759
Opus 5.5 $0.00048 $0.00704
Sonnet 5.5 $0.00024 $0.00352
Haiku 4.5 $0.00012 $0.00176

Measured 2d ago against content hash 729c6233b736, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ai-agent-architectures 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 2d 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.

skills/ai/ai-agents/SKILL.md · 153 lines

How it starts

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

AI Agent Architectures

Purpose

Design a single LLM agent end to end: the control loop, the tool surface, memory, planning strategy, guardrails, and how it is evaluated. This parent skill makes the top-level decisions and hands detail to its children: core-architectures (loop mechanics), tool-calling-principles (tool contracts), memory-systems (state and recall), and multi-agent-topology (when one agent is not enough).

Agent Protocol

Trigger

"build an agent", "agent architecture", "autonomous agent", "agent design review", "agent framework choice", "agent system prompt".

Input Context

  • Task domain, success criteria, and expected task length (steps, minutes).
  • Tools/APIs available and their side effects.
  • Model/provider constraints, latency and cost budget.
  • Data the agent must remember across turns or sessions.
  • Risk profile: what is the worst action the agent could take?

Output Artifact

Architecture brief: component table, loop diagram (Mermaid sequence), tool list with schemas, memory plan, guardrails, eval plan.

Response Format

Loop: {react|plan-execute|workflow}  Model: {tier}  Max steps: {n}
Tools ({count}; split past ~10-15 or on eval evidence): {name: side-effect level}
Memory: working={strategy} | long-term={store} | episodic={yes/no}
Guardrails: {input, output, action approvals}
Eval: {dataset, metric, pass threshold}
Children to consult: {skill paths}

Completion Criteria

  • Each component (loop, tools, memory, planning, guardrails, eval) has an explicit decision.
  • Small, cohesive toolset per agent; split only when evals show tool or domain confusion (repo heuristic: ~10-15 tools).
  • Destructive tools have human approval or dry-run.
  • Eval dataset exists before prompt iteration starts.

Component Map

Component Decision Default Child skill
Control loop ReAct vs plan-and-execute vs fixed workflow Fixed workflow if steps known core-architectures, ../agentic-workflows
Tools Granularity, schemas, error contract Few coarse tools with strict schemas tool-calling-principles
Working memory What stays in context System prompt + plan + recent turns memory-systems
Long-term memory Retrieval store, write policy Explicit "remember" writes, hybrid retrieval memory-systems
Planning Explicit plan object or implicit Explicit plan for > ~5 steps references/planning-strategies.md
Guardrails Input/output filters, approvals Approval on irreversible actions ../../harness-engineering/sandbox-execution
Observability Traces, cost One span per LLM/tool call ../../harness-engineering/agent-observability

Read the full file on GitHub · 153 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago Changed · +126 lines · +120 tokens per session 729c6233b736
  2. 2mo ago First seen · 27 lines · 0 tokens per session scan A 9a1184e9cccb

Subscribe to this mod's changes

ai-agent-architectures is a skill published in the GitHub repository j4flmao/agent-skills (35 stars, last pushed 2d ago), licensed MIT. It adds 120 tokens to every session and 1,759 once invoked, about $0.0005 per session on Opus 5.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-30.

Related

Other skills, from other repositories

agent-engineering-expert

Build LLM agents that use tools safely: tool design, the agent loop, memory, MCP servers, multi-agent orchestration, sandboxing and prompt-injection defence. Use when the user mentions AI agents, tool use or function calling, MCP or Model Context Protocol, autonomous workflows, multi-agent systems, LangChain or…

personamanagmentlayer/pcl · 94 tokens

agentmemory-agents

How agentmemory wires into host coding agents via the connect command. Use when installing agentmemory into a specific agent, when asked which agents are supported, or when a connect adapter writes the wrong config path.

rohitg00/agentmemory · 46 tokens

memory-retain

Save what was learned to Hindsight long-term memory. Use when a task finishes, when the user states a fact, decision or preference, and when you discover something a later run or another Bot would need.

vectorize-io/hindsight · 46 tokens

last30Days

Resolve "last30Days" to a concrete ISO date range relative to your run time — a rolling 30-day window ending today. Returns inclusive civil dates plus exact UTC instants so you have temporal context without computing dates by hand. Read-only: no writes, no network. Use before a "last 30 days" / trailing-month task…

chaitanyagiri/munder-difflin · 83 tokens

thisWeek

Resolve "thisWeek" to a concrete ISO date range relative to your run time — this week so far (Monday → today). Returns inclusive civil dates plus exact UTC instants so you have temporal context without computing dates by hand. Read-only: no writes, no network. Use before a week-to-date task (this week's activity…

chaitanyagiri/munder-difflin · 77 tokens

tooluniverse-variant-analysis

VCF and variant analysis — parsing, annotation, classification (synonymous, missense, frameshift, stopgained), VAF filtering, coding vs non-coding categorization, multi-condition variant comparison, variant-notation conversion (SPDI/HGVS/VCF/rsID interconversion, ALFA per-ancestry allele frequencies), European…

mims-harvard/ToolUniverse · 317 tokens