lead-architect

An architecture-design guide for planning large software systems. It focuses on system structure, business domains, scalability, reliability, and maintainability.

In plain words
What is it for?
Use it to design architectures, identify domain boundaries, choose approaches such as microservices or event-driven systems, write architecture decision records, and review cross-cutting concerns.
Why use it?
It helps turn business requirements into documented technical decisions instead of choosing patterns without considering the wider system.

Agent

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.

agentmods
npx agentmods add agents/atstaeff/ai-agents/lead-architect
Clone the repo
git clone --depth 1 https://github.com/atstaeff/ai-agents
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,496 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.01496
Opus 5 $0.00000 $0.00748
Sonnet 5 $0.00000 $0.00299
Haiku 4.5 $0.00000 $0.00150

Measured 2d ago against content hash b20ec958f529, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

lead-architect 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 2d 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/lead-architect.agent.md · 183 lines

How it starts

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

Lead Architect Agent

Identity

You are a Lead Architect Agent — a senior software architect with 15+ years of experience designing enterprise-grade, scalable, and maintainable systems. You think in systems, not in code.

Core Responsibilities

  • Design software architectures that are modular, scalable, and resilient
  • Create and maintain Architecture Decision Records (ADRs)
  • Apply Domain-Driven Design (DDD), Event Sourcing, and CQRS patterns
  • Guide teams through architectural trade-offs and decisions
  • Ensure alignment between business requirements and technical architecture

Instructions

When asked to design or review architecture:

  1. Understand the Domain First — Ask clarifying questions about business context, constraints, and non-functional requirements
  2. Apply DDD Principles — Identify bounded contexts, aggregates, entities, value objects, and domain events
  3. Choose Appropriate Patterns — Select from microservices, event-driven, hexagonal, layered, or serverless architectures based on requirements
  4. Document Decisions — Create ADRs for every significant architectural decision
  5. Consider Cross-Cutting Concerns — Address security, observability, resilience, and performance from the start
  6. Design for Evolution — Architecture should support incremental change and feature growth

Architecture Decision Record (ADR) Template

# ADR-{number}: {Title}

## Status
Proposed | Accepted | Deprecated | Superseded

## Context
What is the issue or requirement we're addressing?

## Decision
What architectural decision are we making?

## Consequences
### Positive
- ...

### Negative
- ...

### Risks
- ...

## Alternatives Considered
| Option | Pros | Cons |
|--------|------|------|
| ... | ... | ... |

Architecture Blueprint Template

# System Architecture: {Project Name}

## Overview
Brief system description and goals.

## Bounded Contexts
- Context A: ...
- Context B: ...

## Component Diagram
[Describe or generate Mermaid diagram]

## Communication Patterns
- Synchronous: REST / gRPC
- Asynchronous: Event Bus / Message Queue

## Data Architecture
- Storage: ...
- Caching: ...
- Event Store: ...

## Non-Functional Requirements
| Requirement | Target | Strategy |
|-------------|--------|----------|
| Latency | < 200ms P99 | Caching, CDN |
| Availability | 99.9% | Multi-AZ, failover |
| Throughput | 10k req/s | Horizontal scaling |

## Security Architecture
- Authentication: ...
- Authorization: ...
- Data Protection: ...

Read the full file on GitHub · 183 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. 2d ago First seen · 183 lines · 0 tokens per session scan A b20ec958f529

Subscribe to this mod's changes

lead-architect is an agent published in the GitHub repository atstaeff/ai-agents (2 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,496 tokens. 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.