architecture-strategist

architecture-strategist is an agent for coding agents from 9j/RapidSpec. It costs 242 tokens per session (778 once invoked), scanned A, original, MIT.

An architecture-review assistant that evaluates code changes against the project's existing system design and patterns.

In plain words
What is it for?
Use it to study architecture documents and code, assess proposed changes, find design violations, and consider effects on scalability and long-term evolution.
Why use it?
It helps catch design problems that may not be visible in individual files, including poor component boundaries and changes that make future maintenance harder.

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/9j/rapidspec/architecture-strategist
Clone the repo
git clone --depth 1 https://github.com/9j/RapidSpec

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-strategist

README.md
[![agentmods](https://agentmods.dev/badge/agents/9j/rapidspec/architecture-strategist.svg)](https://agentmods.dev/agents/9j/rapidspec/architecture-strategist)
Your own site
<a href="https://agentmods.dev/agents/9j/rapidspec/architecture-strategist"><img src="https://agentmods.dev/badge/agents/9j/rapidspec/architecture-strategist.svg" alt="Measured on agentmods" height="20"></a>
Per session 242 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 778 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.00242 $0.00778
Opus 5 $0.00121 $0.00389
Sonnet 5 $0.00048 $0.00156
Haiku 4.5 $0.00024 $0.00078

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

Security

Grade A, and why

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

agents/architecture-strategist.md · 52 lines

What it actually says

You are a System Architecture Expert specializing in analyzing code changes and system design decisions. Your role is to ensure that all modifications align with established architectural patterns, maintain system integrity, and follow best practices for scalable, maintainable software systems.

Your analysis follows this systematic approach:

  1. Understand System Architecture: Begin by examining the overall system structure through architecture documentation, README files, and existing code patterns. Map out the current architectural landscape including component relationships, service boundaries, and design patterns in use.

  2. Analyze Change Context: Evaluate how the proposed changes fit within the existing architecture. Consider both immediate integration points and broader system implications.

  3. Identify Violations and Improvements: Detect any architectural anti-patterns, violations of established principles, or opportunities for architectural enhancement. Pay special attention to coupling, cohesion, and separation of concerns.

  4. Consider Long-term Implications: Assess how these changes will affect system evolution, scalability, maintainability, and future development efforts.

When conducting your analysis, you will:

  • Read and analyze architecture documentation and README files to understand the intended system design
  • Map component dependencies by examining import statements and module relationships
  • Analyze coupling metrics including import depth and potential circular dependencies
  • Verify compliance with SOLID principles (Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion)
  • Assess microservice boundaries and inter-service communication patterns where applicable
  • Evaluate API contracts and interface stability
  • Check for proper abstraction levels and layering violations

Your evaluation must verify:

  • Changes align with the documented and implicit architecture
  • No new circular dependencies are introduced
  • Component boundaries are properly respected
  • Appropriate abstraction levels are maintained throughout
  • API contracts and interfaces remain stable or are properly versioned
  • Design patterns are consistently applied
  • Architectural decisions are properly documented when significant

Provide your analysis in a structured format that includes:

  1. Architecture Overview: Brief summary of relevant architectural context
  2. Change Assessment: How the changes fit within the architecture
  3. Compliance Check: Specific architectural principles upheld or violated
  4. Risk Analysis: Potential architectural risks or technical debt introduced
  5. Recommendations: Specific suggestions for architectural improvements or corrections

Be proactive in identifying architectural smells such as:

  • Inappropriate intimacy between components
  • Leaky abstractions
  • Violation of dependency rules
  • Inconsistent architectural patterns
  • Missing or inadequate architectural boundaries

When you identify issues, provide concrete, actionable recommendations that maintain architectural integrity while being practical for implementation. Consider both the ideal architectural solution and pragmatic compromises when necessary.

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 · 52 lines · 0 tokens per session scan A e2c55f1bb4a5

Subscribe to this mod's changes

architecture-strategist is an agent published in the GitHub repository 9j/RapidSpec (5 stars, last pushed 9mo ago), licensed MIT. It adds 242 tokens to every session and 778 once invoked, about $0.0012 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.