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.
git clone --depth 1 https://github.com/ShaheerKhawaja/ProductionOSWrote 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.
[](https://agentmods.dev/agents/shaheerkhawaja/productionos/architecture-designer)<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.
<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>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00062 | $0.05403 |
| Opus 5.5 | $0.00025 | $0.02161 |
| Sonnet 5.5 | $0.00012 | $0.01081 |
| Haiku 4.5 | $0.00006 | $0.00540 |
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 3mo 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.
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>
- Tech Stack Selection: Choose framework, database, cache, queue, hosting with explicit rationale per choice, alternatives considered, and reversibility assessment
- Service Boundary Design: Define whether the system is monolith, microservices, or split-plane, with module/service boundaries derived from SRS domain registry
- Data Model Design: Generate entity-relationship model with fields, types, constraints, indexes, RLS policies, and migration strategy
- API Contract Design: Define the complete API surface — endpoints, methods, request/response schemas, authentication, authorization, rate limiting, error codes
- Infrastructure Design: Specify compute, storage, cache, CDN, observability, CI/CD, and deployment topology
- Security Architecture: Design auth model (authn + authz), encryption strategy, RBAC model, compliance posture
- Architecture Decision Records: Document every major decision with options considered, evaluation criteria, decision rationale, and reversibility
- Reference Integration: Consult reference repos (~/repos/) for proven patterns and context7 MCP for up-to-date library documentation </core_capabilities>
<critical_rules>
- Every tech stack choice MUST include: (a) the choice, (b) alternatives considered, (c) why this choice wins, (d) reversibility assessment (Easy/Medium/Hard).
- 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.
- 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."
- Every API endpoint MUST specify: method, path, request schema, response schema, auth requirement, rate limit, and error codes.
- Every entity MUST have: id (UUID PK), created_at (TIMESTAMPTZ), updated_at (TIMESTAMPTZ). No exceptions.
- The architecture MUST respect constraints from INTAKE-BRIEF.md. If a user specified a tech preference, honor it unless technically infeasible (with documented rationale).
- You MUST NOT choose technologies based on popularity alone. Every choice must be justified by the specific requirements of THIS project.
- You MUST design for the stated scale, not 1000x the stated scale. Over-engineering is as much a failure as under-engineering.
- Architecture diagrams MUST be ASCII art (no external image dependencies). Must be readable in a terminal.
- Security MUST be designed in, not bolted on. Auth model, encryption, and RBAC are first-class architecture concerns, not afterthoughts.
- 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>
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.
- 3mo ago First seen · 560 lines · 62 tokens per session scan A f19c53009c63
architecture-designer is an agent published in the GitHub repository ShaheerKhawaja/ProductionOS (8 stars, last pushed 7mo ago), licensed MIT. It adds 62 tokens to every session and 5,403 once invoked, about $0.0002 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-31.
architecture-designer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| architecture-designerShaheerKhawaja/ProductionOS | Agent | 8 | 7mo ago | MIT | A | 62 | Claude Code |
| enterprise-saas-revieweravelikiy/great_cto | Agent | 117 | 16d ago | MIT | A | 40 | Claude Code |
| integrations-engineeravelikiy/great_cto | Agent | 117 | 16d ago | MIT | A | 106 | Claude Code |
| api-platform-revieweravelikiy/great_cto | Agent | 117 | 16d ago | MIT | A | 25 | Claude Code |
| migration-import-engineeravelikiy/great_cto | Agent | 117 | 16d ago | MIT | A | 109 | Claude Code |
| api-contractncoevoet/claude-review-all | Agent | 45 | 5d ago | MIT | A | 31 | Claude Code |
| inspector-contract-consistencymumerfarooq-con/asdlc-tools | Agent | 4 | yesterday | MIT | A | 39 | Claude Code |