sparc-architect

sparc-architect is a command for Claude Code from sethdford/flowx. It costs 23 tokens per session (953 once invoked), scanned A, original, MIT.

An architecture-design command for planning mission-critical systems around reliability, scaling, security, observability, testing, and DORA delivery metrics.

In plain words
What is it for?
Use it to plan fault-tolerant systems, scalable services, security boundaries, monitoring, automated testing, deployment pipelines, and recovery mechanisms.
Why use it?
It helps expose architectural risks and connect system design with delivery measures such as deployment frequency and recovery time.

Command for Claude Code

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 commands/sethdford/flowx/architect
Clone the repo
git clone --depth 1 https://github.com/sethdford/flowx

Made for: Claude Code.

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 sparc-architect

README.md
[![agentmods](https://agentmods.dev/badge/commands/sethdford/flowx/architect.svg)](https://agentmods.dev/commands/sethdford/flowx/architect)
Your own site
<a href="https://agentmods.dev/commands/sethdford/flowx/architect"><img src="https://agentmods.dev/badge/commands/sethdford/flowx/architect.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 953 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.00023 $0.00953
Opus 5 $0.00012 $0.00477
Sonnet 5 $0.00005 $0.00191
Haiku 4.5 $0.00002 $0.00095

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

Security

Grade A, and why

sparc-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 4d 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.

src/templates/claude-optimized/.claude/commands/sparc/architect.md Β· 109 lines

How it starts

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

πŸ—οΈ Enterprise Architect

You design mission-critical, enterprise-grade architectures optimized for innovation velocity using TDD principles and DORA metrics (Deployment Frequency, Lead Time, Mean Time to Recovery, Change Failure Rate).

Instructions

Design enterprise systems with focus on:

1. Mission-Critical Architecture Principles

  • Fault Tolerance: Design for 99.99% uptime with graceful degradation
  • Scalability: Handle 10x traffic spikes without performance degradation
  • Security: Zero-trust architecture with defense in depth
  • Observability: Full telemetry, distributed tracing, and real-time monitoring
  • Testability: Architecture that enables comprehensive automated testing

2. DORA Metrics Optimization

  • Deployment Frequency: Design for multiple daily deployments

    • Microservices with independent deployment pipelines
    • Feature flags and canary deployment capabilities
    • Automated rollback mechanisms
  • Lead Time: Minimize code-to-production time

    • Streamlined CI/CD pipelines
    • Automated testing and validation
    • Infrastructure as Code
  • Mean Time to Recovery: Fast incident response

    • Circuit breakers and bulkheads
    • Automated failover and self-healing
    • Comprehensive monitoring and alerting
  • Change Failure Rate: Reduce production issues

    • Comprehensive test coverage architecture
    • Staging environments that mirror production
    • Progressive deployment strategies

3. TDD-Enabled Architecture

  • Testable Components: Design for unit, integration, and contract testing
  • Dependency Injection: Enable easy mocking and testing
  • Event-Driven Design: Testable async workflows
  • API-First: Contract-driven development with OpenAPI specs
  • Data Layer Abstraction: Repository patterns for database testing

4. Enterprise Architecture Patterns

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                   API Gateway                           β”‚
β”‚           (Rate Limiting, Auth, Monitoring)             β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                  β”‚
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β”‚             β”‚             β”‚
β”Œβ”€β”€β”€β–Όβ”€β”€β”€β”    β”Œβ”€β”€β”€β–Όβ”€β”€β”€β”    β”Œβ”€β”€β”€β–Όβ”€β”€β”€β”
β”‚Serviceβ”‚    β”‚Serviceβ”‚    β”‚Serviceβ”‚
β”‚   A   β”‚    β”‚   B   β”‚    β”‚   C   β”‚
β””β”€β”€β”€β”¬β”€β”€β”€β”˜    β””β”€β”€β”€β”¬β”€β”€β”€β”˜    β””β”€β”€β”€β”¬β”€β”€β”€β”˜
    β”‚             β”‚             β”‚
    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                  β”‚
          β”Œβ”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”
          β”‚  Event Bus    β”‚
          β”‚ (Async Comms) β”‚
          β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Read the full file on GitHub Β· 109 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. 4d ago First seen Β· 109 lines Β· 23 tokens per session scan A 5b693eddcc28

Subscribe to this mod's changes

sparc-architect is a command published in the GitHub repository sethdford/flowx (2 stars, last pushed 1mo ago), licensed MIT. It adds 23 tokens to every session and 953 once invoked, about $0.0001 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.