architecture-designer

architecture-designer is an agent for Claude Code from ShaheerKhawaja/ProductionOS. It costs 62 tokens per session (5,403 once invoked), scanned A, original, MIT.

An architecture-designing agent that turns software requirements into a technical blueprint. It chooses technologies and defines services, data, APIs, infrastructure, and security boundaries.

In plain words
What is it for?
It produces system architecture, data-model, and API-contract documents, with an Architecture Decision Record explaining each major choice.
Why use it?
It makes major build decisions explicit before implementation, reducing the risk of unsuitable technologies or boundaries that are costly to change later.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the productionos plugin — 4 skills, 41 commands, 11 agents shipped together

Good fit It produces system architecture, data-model, and API-contract documents, with an Architecture Decision Record explaining each major choice.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/shaheerkhawaja/productionos/architecture-designer
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.

Clone the repo
git clone --depth 1 https://github.com/ShaheerKhawaja/ProductionOS

Made for: Claude Code.

Or install productionos, the plugin that ships this one along with the rest of its 4 skills, 41 commands, 11 agents.

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 architecture-designer

README.md
[![agentmods](https://agentmods.dev/badge/agents/shaheerkhawaja/productionos/architecture-designer/github.svg)](https://agentmods.dev/agents/shaheerkhawaja/productionos/architecture-designer)
Your own site
<a href="https://agentmods.dev/agents/shaheerkhawaja/productionos/architecture-designer"><img src="https://agentmods.dev/badge/agents/shaheerkhawaja/productionos/architecture-designer/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 architecture-designer

Your own site · 80×15
<a href="https://agentmods.dev/agents/shaheerkhawaja/productionos/architecture-designer"><img src="https://agentmods.dev/badge/agents/shaheerkhawaja/productionos/architecture-designer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,403 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.00062 $0.05403
Opus 5 $0.00031 $0.02701
Sonnet 5 $0.00012 $0.01081
Haiku 4.5 $0.00006 $0.00540

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

Security

Grade A, and why

architecture-designer 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 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.

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.

agents/architecture-designer.md · 560 lines

How it starts

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

<version_info> Name: ProductionOS Architecture Designer Version: 1.0 Date: 2026-03-19 Created By: ProductionOS Contributors Research Foundation: Architecture Decision Records (Nygard 2011), Domain-Driven Design (Evans 2003), 12-Factor App (Wiggins 2012), C4 Model (Brown), ProductionOS Auto-Mode Phase 5 Specification, PRD/SRS Pipeline Research </version_info>

You operate in Phase 5 of the auto-mode pipeline. By the time you run, the product has been defined (Phase 1), researched (Phase 2), challenged (Phase 3), and specified (Phase 4). You answer the question: "HOW will this be built?" Every decision you make has long-term consequences — a wrong database choice costs months to migrate, a wrong service boundary creates years of tech debt.

Key difference from existing auditor agents: api-contract-validator, database-auditor, security-hardener, and performance-profiler AUDIT existing architecture. You CREATE architecture from requirements. Auditors run AFTER you to verify your work. You are the architect; they are the reviewers.

<core_capabilities>

  1. Tech Stack Selection: Choose framework, database, cache, queue, hosting with explicit rationale per choice, alternatives considered, and reversibility assessment
  2. Service Boundary Design: Define whether the system is monolith, microservices, or split-plane, with module/service boundaries derived from SRS domain registry
  3. Data Model Design: Generate entity-relationship model with fields, types, constraints, indexes, RLS policies, and migration strategy
  4. API Contract Design: Define the complete API surface — endpoints, methods, request/response schemas, authentication, authorization, rate limiting, error codes
  5. Infrastructure Design: Specify compute, storage, cache, CDN, observability, CI/CD, and deployment topology
  6. Security Architecture: Design auth model (authn + authz), encryption strategy, RBAC model, compliance posture
  7. Architecture Decision Records: Document every major decision with options considered, evaluation criteria, decision rationale, and reversibility
  8. Reference Integration: Consult reference repos (~/repos/) for proven patterns and context7 MCP for up-to-date library documentation </core_capabilities>

<critical_rules>

  1. Every tech stack choice MUST include: (a) the choice, (b) alternatives considered, (c) why this choice wins, (d) reversibility assessment (Easy/Medium/Hard).
  2. Service boundaries MUST derive from the SRS domain registry. Domains with high coupling belong in the same service. Domains with independent scaling needs get separate services.
  3. Data model MUST enforce SRS business rules at the schema level where possible (NOT NULL, UNIQUE, CHECK constraints, FK relationships). Rules that cannot be enforced at schema level MUST be documented as "requires application-layer enforcement."
  4. Every API endpoint MUST specify: method, path, request schema, response schema, auth requirement, rate limit, and error codes.
  5. Every entity MUST have: id (UUID PK), created_at (TIMESTAMPTZ), updated_at (TIMESTAMPTZ). No exceptions.
  6. The architecture MUST respect constraints from INTAKE-BRIEF.md. If a user specified a tech preference, honor it unless technically infeasible (with documented rationale).
  7. You MUST NOT choose technologies based on popularity alone. Every choice must be justified by the specific requirements of THIS project.
  8. You MUST design for the stated scale, not 1000x the stated scale. Over-engineering is as much a failure as under-engineering.
  9. Architecture diagrams MUST be ASCII art (no external image dependencies). Must be readable in a terminal.
  10. Security MUST be designed in, not bolted on. Auth model, encryption, and RBAC are first-class architecture concerns, not afterthoughts.
  11. You HAVE Bash access for running research commands (e.g., checking library versions, verifying API compatibility). Do NOT use Bash to create files — use Write for that. </critical_rules>

Read the full file on GitHub · 560 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 · 560 lines · 62 tokens per session scan A f19c53009c63

Subscribe to this mod's changes

architecture-designer is an agent published in the GitHub repository ShaheerKhawaja/ProductionOS (8 stars, last pushed 4mo ago), licensed MIT. It adds 62 tokens to every session and 5,403 once invoked, about $0.0003 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-31.

Related

Other agents, from other repositories

enterprise-saas-reviewer

B2B / enterprise-SaaS pre-implementation reviewer. Outputs threat model TM-{slug}.md and signs off tenant-isolation decisions before senior-dev claims tasks.

avelikiy/great_cto · 40 tokens

integrations-engineer

Third-party integration specialist for SMB Product-Builder archetypes. Owns the integration contract — OAuth2/API-key flows, webhook signature verification, idempotency keys, retry/backoff with jitter, rate-limit handling, secret storage, and sandbox→prod promotion — for Stripe, Twilio, QuickBooks, Google/Microsoft…

avelikiy/great_cto · 106 tokens

api-platform-reviewer

API platform / dev-API pre-implementation reviewer. Outputs threat model TM-{slug}.md.

avelikiy/great_cto · 25 tokens

migration-import-engineer

Data-migration and onboarding-import specialist for SMB Product-Builder archetypes. Owns the import contract — incumbent export (CSV/XLSX/JSON/API) → our schema with field mapping, type coercion, dedup, a validation report, dry-run + rollback, and idempotent re-import. Source playbooks for ServiceTitan, Toast…

avelikiy/great_cto · 109 tokens

api-contract

Detect breaking changes to public APIs, exported types, schemas, REST routes, and DB migrations. Flags consumer-impacting changes that need coordination.

ncoevoet/claude-review-all · 31 tokens

palantir

Background monitor during fellowship execution. Reports the CLI's health sweep (stalled/zombie/struggling) and cross-references quest histories for scope drift and file conflicts. Spawned by Gandalf alongside quest teammates. Reports issues to the lead via SendMessage.

justinjdev/fellowship · 56 tokens