A canonical standard for building production-grade agentic products β plus a Claude Code skill set that operationalizes it.
Distilled from the production practices of Anthropic, OpenAI, Cognition, Sierra, LangChain, and leading practitioners β 2024β2026.
** Read the Standard β** Β·
Β·
An agentic product is not "a product with AI."It is a product where part of the process is dynamically directed by an LLM within adeterministic architecturewithexplicit trust boundaries.
Most teams ship agent demos. Few ship agents that survive contact with production. The difference is almost never the model β it's the architecture, the harness, and the eval discipline around it. This repo is the field-tested standard for that work, plus a set of Claude Code skills that put it into your editor.
Why this existsThe five principlesWhat's in this repoReference implementationInstall the skillsThe Autonomy LadderThe five composition patternsThe 7-layer harnessThe 10-question checklistProduction readiness β Definition of DoneAnti-patternsReading listContributingLicense
Five principles converged independently across the production practices of the labs and the leading practitioners. They are the spine of every decision in this standard:
| # | Principle | What it means |
|---|---|---|
| 1 | Determinism by default, agency by necessity | |
| Every degree of autonomy must be earned, not granted upfront. | ||
| 2 | Architecture beats framework | |
| Patterns outlive libraries. | ||
| 3 | Harness > model | |
| 98% of reliability lives in the code around the LLM. | ||
| 4 | Context engineering is the core discipline | |
| What enters the context window determines everything. | ||
| 5 | Eval-driven development is non-negotiable | |
| No measurement β no improvement. No trace review β no understanding. |
The single most important rule:Architecture is what remains when the model improves. The model is the variable, the harness is the constant. Invest proportionally.
agentic-product-standard/
βββ STANDARD.md β product-level canon β design a multi-agent product
βββ AGENT_STANDARD.md β single-agent operational standard β build one agent
βββ templates/ β copy-paste artifact-contracts (contracts, schemas, envelope, evals)
βββ examples/ β worked example: the AgenticMind reference implementation
βββ skills/
βββ agentic-product-architect/ β skill: design & ship agentic PRODUCTS (master router)
β βββ SKILL.md β master: router + philosophy
β βββ architecture-design/ β autonomy ladder, 5 patterns, single vs multi
β βββ context-engineering/ β write/select/compress/isolate, the 40% rule
β βββ harness-engineering/ β the 7 layers around the LLM loop
β βββ tool-design-mcp/ β MCP-first, <20 tools, RAG-MCP, sandboxing
β βββ memory-architecture/ β Mem0 / Zep / Letta / LangMem / files
β βββ durable-execution/ β Temporal Workflow + Activity pattern
β βββ eval-driven-dev/ β Husain/Shankar pyramid + judge calibration
β βββ framework-selection/ β LangGraph / Claude SDK / OpenAI SDK / others
β βββ production-readiness/ β 12-point Definition of Done audit
β βββ antipatterns-review/ β code review through 12 known failure modes
βββ agent-builder/ β skill: build ONE production-grade agent
Two tracks, one standard:
Build one agentβ read, fill theAGENT_STANDARD.md
, drive it with thetemplates/
skill.agent-builder
Design a productβ read, drive it with theSTANDARD.md
skill (multi-agent, orchestration, framework choice).agentic-product-architect
The docs are the reference; the skills are the practice β they auto-load the right guidance while you design, build, and review. Both skills share the same ten sub-skills.
** AgenticMind** is the flagship reference implementation of this standard β an auditable, self-improving knowledge & memory layer for agents over MCP (Apache-2.0, Postgres + pgvector, headless Bun). It puts the standard's memory-architecture, context-engineering, tool-design/MCP, eval-calibration, durable-execution, and observability layers into running, tested code.
| Repo | Use it when | |
|---|---|---|
| π | agentic-product-standard (this repo) | |
| You're designing or building an agent / agentic product β the standard + skills tell you how. | ||
| π§ | ||
| You need a knowledge & memory layer for your agent β a working implementation you can run. |
β Layer-by-layer AgenticMind case study.
The skills work with Claude Code. Install both tracks (they share sub-skills).
Fastest β one command (via skills.sh):
npx skills add AlexDuchDev/agentic-product-standard
Or copy them in manually β user-level (available in every project):
git clone https://github.com/AlexDuchDev/agentic-product-standard.git
cp -R agentic-product-standard/skills/* ~/.claude/skills/
Project-level (scoped to one repo):
mkdir -p .claude/skills
cp -R /path/to/agentic-product-standard/skills/* .claude/skills/
Claude Code discovers skills via each SKILL.md
and its YAML frontmatter. Once installed: agent-builder
triggers when you set out to build, implement, or review one agent; agentic-product-architect
triggers for multi-agent products, an agent loop, or any major framework (LangGraph, CrewAI, OpenAI Agents SDK, Claude Agent SDK, Pydantic AI, AutoGen). Ask a focused question β "Mem0 or Zep?", "how should I structure context?", "review my agent code" β and the relevant sub-skill loads directly.
Never start with "build an agent." Start with "what is the minimum autonomy this task requires?" The cost of getting this wrong is asymmetric.
| Level | What it is | Use when |
|---|---|---|
| L0 Β· Single LLM call | ||
| One prompt β one response | Classification, extraction, summarization | |
| L1 Β· Augmented LLM |
- retrieval, + tools, + memory | Q&A over docs, simple assistants | L2 Β· Workflow | Deterministic code orchestrates LLM steps | Path is known; predictability matters | L3 Β· Orchestrator-Worker | LLM decomposes within a bounded graph | Parallelizable, breadth-first work | L4 Β· Autonomous Agent Loop | LLM chooses the next step until termination | Path cannot be enumerated; cost is acceptable |
Escalation rule:do not climb to L+1 until L deliversβ₯90% pass rateon a curated eval set.
Compose agentic products from these primitives like Lego β before reaching for a framework.
Prompt Chainingβ sequential decomposition (outline β draft β polish)** Routing**β classifier + dispatcher to a specialist** Parallelization**β fan-out of independent subtasks + aggregation** Orchestrator-Workers**β central planner + dynamic workers** Evaluator-Optimizer**β generator + critic in a loop until acceptance
Meta-principle: first try to solve the task by composing these patterns in deterministic code. A full agent loop is the last resort.
In a production agent, the harness β everything around the LLM loop β is 98% of the code.
βββββββββββββββββββββββββββββββββββββββββββββββ
β 7. Observability & Tracing β β log EVERYTHING
βββββββββββββββββββββββββββββββββββββββββββββββ€
β 6. Evaluation Layer (CI gates) β β block regressions
βββββββββββββββββββββββββββββββββββββββββββββββ€
β 5. Human-in-the-Loop (notify/ask/review) β β approval gates
βββββββββββββββββββββββββββββββββββββββββββββββ€
β 4. Guardrails (input/output validation) β β defense in depth
βββββββββββββββββββββββββββββββββββββββββββββββ€
β 3. Durable Execution (Workflow + Activity) β β /resume/retry
βββββββββββββββββββββββββββββββββββββββββββββββ€
β 2. Context & Memory Management β β write/select/compress/isolate
βββββββββββββββββββββββββββββββββββββββββββββββ€
β 1. Agent Loop (gather β act β verify) β β the "agent" proper
βββββββββββββββββββββββββββββββββββββββββββββββ
β MCP / function calling
Permission boundaries are enforced by code, never by prompt.The Replit incident of 2025 β an agent wiped a production database for 1,200+ companies despite an explicit "code freeze" in its prompt β is the canonical proof. The model will ignore prompt-level restrictions under enough pressure. Code won't.
Run this before drafting any architecture. It unblocks 80% of design debates.
β‘ What is the minimum autonomy level (L0βL4) that solves this?
β‘ Can it be solved by composing the 5 patterns without a full agent loop?
β‘ Is the task breadth-first (parallelizable) or depth-first (coherent)?
β‘ What are the 3 failure modes that would lose user trust first?
β‘ Where are the permission boundaries? What MUST the agent NOT do?
β‘ Which constraint dominates framework choice?
β‘ Where does state live? (in-context = anti-pattern for long-running)
β‘ Who validates outputs at each stage? (assertion / LLM judge / human review)
β‘ Where do traces live, with what retention?
β‘ Eval set: how many examples, who labels, how does it grow?
If you can't answer half of these, slow down and answer them together β don't write code yet.
An agentic product is not production-ready until all 12 are satisfied. Full detail in STANDARD.md.
| Context & state | Tools & permissions | Reliability | Evals & observability |
|---|---|---|---|
| Context < 40% | Destructive actions need approval | Durable /resume/retry | β₯50 evals per failure mode |
| State externalized | Permissions in code, not prompt | Schema-validated outputs | Judges calibrated (TPR/TNR) |
| Compaction tested | Sandboxed tool execution | Input/output guardrails | CI blocks regression; 100% traced |
The fastest way to recognize a doomed agent project β the skill set's antipatterns-review
flags each with a diagnostic and a fix.
- Multi-agent before a single-agent baseline
- Framework abstractions before understanding the raw API
- LLM judges without calibration against human labels
- Permissions enforced through prompts
- Memory as an afterthought
- Generic evals ("helpfulness," "correctness")
- Likert scales in an LLM judge (binary only)
100 tools per agent
- One agent for both breadth and depth
- Deploying without trace monitoring
- Hardcoded prompts without version control
- Treating single-vendor benchmarks as ground truth
The operational base β not reference docs. Read in order:
- Anthropic β Building Effective Agents(Schluntz & Zhang) - OpenAI β A Practical Guide to Building Agents - HumanLayer β 12 Factor Agents(Dex Horthy) - Anthropic β How we built our multi-agent research system - Cognition β Don't Build Multi-Agents(Walden Yan) - LangChain β Context Engineering for Agents(Lance Martin) - Hamel Husain β A Field Guide to Rapidly Improving AI Products+Your AI Product Needs Evals - Anthropic β Building agents with the Claude Agent SDK
This standard is meant to evolve β the field moves fast. Corrections, new exemplars, framework updates, and translations are all welcome. See CONTRIBUTING.md and the Code of Conduct.
The architectural canons (the autonomy ladder, the 5 patterns, single-vs-multi, the harness) are stable. Specific vendors and framework rankings will shift β those are exactly the kind of PRs we want.
MIT β use it, fork it, ship with it.
If this saved you a week of architecture debates, star the repo β so others find it.
v1.0 Β· assembled from production practices as of May 2026