# Production Agent Architecture

> Design production-ready AI agents using a loop-based architecture with explicit tools, context, memory, permissions, observability, evaluation, and rollout planning.

- **Type:** Skill
- **Install:** `agentstack add skill-xuanhieu2611-build-your-own-agents-skill-production-agent-architecture`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [xuanhieu2611](https://agentstack.voostack.com/s/xuanhieu2611)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [xuanhieu2611](https://github.com/xuanhieu2611)
- **Source:** https://github.com/xuanhieu2611/build-your-own-agents-skill/tree/main/skills/production-agent-architecture

## Install

```sh
agentstack add skill-xuanhieu2611-build-your-own-agents-skill-production-agent-architecture
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 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:

```markdown
# 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

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [xuanhieu2611](https://github.com/xuanhieu2611)
- **Source:** [xuanhieu2611/build-your-own-agents-skill](https://github.com/xuanhieu2611/build-your-own-agents-skill)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-xuanhieu2611-build-your-own-agents-skill-production-agent-architecture
- Seller: https://agentstack.voostack.com/s/xuanhieu2611
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
