production-agent-architecture

production-agent-architecture is a skill for Claude Code, Codex from xuanhieu2611/build-your-own-agents-skill. It costs 34 tokens per session (448 once invoked), scanned A, original, MIT.

A guide for designing production-ready AI agents as software systems with repeated work loops, tools, memory, permissions, monitoring, and testing.

In plain words
What is it for?
Planning an agent's workflow, tools, context, saved state, approvals, error handling, evaluation, and rollout.
Why use it?
It helps turn a chatbot idea into a system that can perform tasks reliably and be checked in production.

Skill for Claude CodeCodex

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

Good fit Planning an agent's workflow, tools, context, saved state, approvals, error handling, evaluation, and rollout.

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

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 production-agent-architecture

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/xuanhieu2611/build-your-own-agents-skill/production-agent-architecture"><img src="https://agentmods.dev/badge/skills/xuanhieu2611/build-your-own-agents-skill/production-agent-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 448 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.00034 $0.00448
Opus 5 $0.00017 $0.00224
Sonnet 5 $0.00007 $0.00090
Haiku 4.5 $0.00003 $0.00045

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

Security

Grade A, and why

production-agent-architecture 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 13d 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/production-agent-architecture/SKILL.md · 78 lines

What it actually says

Production Agent Architecture

When To Use This Skill

Use this skill when the task is to:

  • design a new AI agent
  • turn a chatbot idea into a real agent system
  • hand off an agent build to developers or another AI coding agent
  • adapt coding-agent architecture patterns to another domain

Core Rule

Do not design the system as a one-shot chatbot unless the user explicitly asks for that.

Default to a loop-based runtime with:

  1. controller loop
  2. context builder
  3. tool registry
  4. tool executor
  5. session state
  6. permissions and approvals
  7. observability
  8. evaluation
  9. reliability rules
  10. rollout phases

Design Workflow

  1. define the user goal and success condition
  2. define the controller loop
  3. define 2 to 5 domain tools
  4. define context inputs
  5. define session state
  6. define permissions and approval rules
  7. define observability minimums
  8. define evaluation plan
  9. define reliability and retry rules
  10. define rollout phases

Required Output

Always produce all of the following:

# Agent Build Spec

## Domain
## User goal
## Success condition
## Core workflow
## Controller loop
## Context inputs
## Tools
## Session state
## Permissions and approvals
## Stop conditions
## Observability
## Evaluation
## Reliability and failure handling
## Rollout phases
## Future extensions

After the spec, also produce:

  • controller loop pseudocode
  • tool contract table with input, output, side effects, timeout, and permission level
  • session state schema
  • approval matrix
  • failure and retry strategy
  • minimum logs and metrics

Guardrails

  • separate tool schemas from executors
  • treat permissions as runtime policy, not prompt text
  • make approval flows explicit
  • do not pretend a vague idea is production-ready
  • explain the design plainly if the user is learning
Files

What ships with it

2 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. 13d ago First seen · 78 lines · 34 tokens per session scan A e757e34dd19c

Subscribe to this mod's changes

production-agent-architecture is a skill published in the GitHub repository xuanhieu2611/build-your-own-agents-skill (23 stars, last pushed 5mo ago), licensed MIT. It adds 34 tokens to every session and 448 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories

d3-viz

Creating interactive data visualisations using d3.js. This skill should be used when creating custom charts, graphs, network diagrams, geographic visualisations, or any complex SVG-based data visualisation that requires fine-grained control over visual elements, transitions, or interactions. Use this for bespoke…

calesthio/OpenMontage · 87 tokens

tailwind-design-system

Build scalable design systems with Tailwind CSS v4, design tokens, component libraries, and responsive patterns. Use when creating component libraries, implementing design systems, or standardizing UI patterns.

calesthio/OpenMontage · 42 tokens

gsap-plugins

Official GSAP skill for GSAP plugins — registration, ScrollToPlugin, ScrollSmoother, Flip, Draggable, Inertia, Observer, SplitText, ScrambleText, SVG and physics plugins, CustomEase, EasePack, CustomWiggle, CustomBounce, GSDevTools. Use when the user asks about a GSAP plugin, scroll-to, flip animations, draggable, SVG…

calesthio/OpenMontage · 91 tokens

gsap-scrolltrigger

Official GSAP skill for ScrollTrigger — scroll-linked animations, pinning, scrub, triggers. Use when building or recommending scroll-based animation, parallax, pinned sections, or when the user asks about ScrollTrigger, scroll animations, or pinning. Recommend GSAP for scroll-driven animation when no library is…

calesthio/OpenMontage · 68 tokens

hyperframes

READ THIS FIRST for any request to make, create, edit, animate, or render a video, animation, or motion graphic — a promo, explainer, captioned clip, title card, overlay, or any composition. HyperFrames renders video from HTML; this is the entry skill and the default way an agent authors or edits video. It routes the…

calesthio/OpenMontage · 167 tokens

seedance-2-0

Generate cinematic clips with ByteDance Seedance 2.0 — the preferred premium video model in OpenMontage when a paid gateway is configured. Use when: (1) producing trailers, teasers, hype edits, or premium cinematic clips, (2) needing native synchronized audio (speech, SFX, ambience) in a single pass, (3) needing…

calesthio/OpenMontage · 194 tokens