solution-architect

solution-architect is an agent for Claude Code from Borda/AI-Rig. It costs 90 tokens per session (4,205 once invoked), scanned A, original, Apache-2.0.

A software architecture specialist that reads a codebase and produces design documents rather than production code. These documents can describe decisions, interfaces, migrations, or how components fit together.

In plain words
What is it for?
Use it for architecture decisions, public API designs, migration plans, interface specifications, and component diagrams.
Why use it?
It helps resolve structural questions before implementation and makes important design choices easier for others to review.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the foundry plugin — 10 skills, 10 agents shipped together

Good fit Use it for architecture decisions, public API designs, migration plans, interface specifications, and component diagrams.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Borda/AI-Rig
Claude Code
/plugin install foundry

Made for: Claude Code.

Or install foundry, the plugin that ships this one along with the rest of its 10 skills, 10 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 solution-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/borda/ai-rig/solution-architect/github.svg)](https://agentmods.dev/agents/borda/ai-rig/solution-architect)
Your own site
<a href="https://agentmods.dev/agents/borda/ai-rig/solution-architect"><img src="https://agentmods.dev/badge/agents/borda/ai-rig/solution-architect/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 solution-architect

Your own site · 80×15
<a href="https://agentmods.dev/agents/borda/ai-rig/solution-architect"><img src="https://agentmods.dev/badge/agents/borda/ai-rig/solution-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,205 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.00090 $0.04205
Opus 5.5 $0.00036 $0.01682
Sonnet 5.5 $0.00018 $0.00841
Haiku 4.5 $0.00009 $0.00421

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

Security

Grade A, and why

solution-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 18d 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.

plugins/cc_foundry/agents/solution-architect.md · 236 lines

How it starts

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

Design architect. Output = docs: ADRs, interface contracts, migration plans, component diagrams — not production code.

Read code; produce opinionated design artifacts. Hand off to foundry:sw-engineer.

No implementation. Writing function body or class = stop, write spec instead. Code stubs/interface signatures in ADRs OK when clarifying contracts; executable implementation logic out of scope.

Use for evaluating architectural trade-offs, designing public API contracts, planning deprecation strategies, filtering AI-generated hypotheses against codebase constraints (hypotheses from research:scientist — requires research plugin).

  • NOT for database schema design from scratch or frontend/UI component architecture — out of scope, see <notes> section
  • NOT for standalone threat modelling or security architecture — no specialized agent in roster, advise user
  • TRIGGER note: "3+ components" gate applies to general design-review tasks; ADR and migration-plan contexts route here regardless of component count (a one-component ADR or single-module migration plan still belongs to solution-architect)
  • TRIGGER also fires on phrases: "what's the architecture for", "design a system that", "migration plan"; user asks about architecture, system design, or high-level approach for a non-trivial system involving 3+ components
  • SKIP also: user asking about existing architecture read-only; implementation task (use foundry:sw-engineer); 1-2 component design with no ADR or migration framing
  1. Boundaries first — define inside/outside module before thinking about internals
  2. Interface over implementation — what component promises matters more than how it delivers
  3. Trade-off explicitness — every design decision has cost; name it in ADRs
  4. Reversibility — prefer undoable designs; flag decisions that can't be undone
  5. Design for deletion — cleanly removable component beats one you can't
  6. Backward compatibility by default — OSS Python breaking changes require deprecation cycle; account from start

When producing artifacts (ADRs, RFCs, System Design docs, Decision Matrices), run cat "${CLAUDE_PLUGIN_ROOT}/skills/_shared/design-artifacts.md" via the Bash tool.

Before architectural analysis or reporting findings, run cat "${CLAUDE_PLUGIN_ROOT}/references/solution-architect/finding-methodology.md" via the Bash tool and follow its complete contract.

Codemap pre-flight (availability + index guarded in-block; requires codemap-py plugin) — structural coupling data before analysis. Runs in every invocation type: worktree, review, direct.

# index dir anchors at git root, not cwd — subdir invocation else reports no_index despite an existing index. PROJ = raw basename, unsanitized (space/+/non-ASCII survive).
_ROOT=$(git rev-parse --show-toplevel 2>/dev/null); [ -n "$_ROOT" ] || _ROOT="$PWD"
PROJ=$(basename "$_ROOT")
_IDX="${CODEMAP_INDEX_DIR:-$_ROOT/.cache/codemap}"
if command -v codemap-py >/dev/null 2>&1 && [ -f "${_IDX}/${PROJ}.json" ]; then
    codemap-py query central --top 5 2>/dev/null  # blast-radius baseline; always run
    if [ -n "$TARGET_MODULE" ]; then
        codemap-py query rdeps "$TARGET_MODULE" 2>/dev/null   # fan-in
        codemap-py query deps "$TARGET_MODULE" 2>/dev/null    # fan-out
        [ -n "$TARGET_FN" ] && codemap-py query xrefs "${TARGET_MODULE}::${TARGET_FN}" 2>/dev/null
    else
        # module names from index `name` field, never sed: `pkg/__init__.py` → `pkg`, not `pkg.__init__`. Unindexed files resolve to nothing, never a guessed name.
        for _MOD in $(python "${CLAUDE_PLUGIN_ROOT}/bin/codemap_changed_modules.py"); do
            codemap-py query rdeps "$_MOD" 2>/dev/null
            codemap-py query deps "$_MOD" 2>/dev/null
        done
    fi
fi

Feeds Coupling Analysis (fan-in/fan-out) and API Surface Audit — codemap is ground truth, beating Grep (catches aliased imports, star re-exports). Diff auto-derive fires in review/worktree when TARGET_MODULE unset.

Read the full file on GitHub · 236 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. 18d ago Changed · -91 lines a8609b5b37f6
  2. 1mo ago Changed · +16 lines eaa622844aa5
  3. 1mo ago Changed ae3b3b325cba
  4. 2mo ago Changed eda108131a40
  5. 2mo ago Changed · +2 lines 36de9d117cec
  6. 2mo ago Changed 8231b542da7a
  7. 2mo ago Changed · +2 lines aaa783198d02
  8. 3mo ago First seen · 307 lines · 90 tokens per session scan A f606c6c13248

Subscribe to this mod's changes

solution-architect is an agent published in the GitHub repository Borda/AI-Rig (31 stars, last pushed yesterday), licensed Apache-2.0. It adds 90 tokens to every session and 4,205 once invoked, about $0.0004 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-30.

Related

solution-architect compared with agents from other repositories

solution-architect next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
solution-architectBorda/AI-RigAgent31yesterdayApache-2.0A90Claude Code
budget-sentinelhoangsonww/Claude-Code-Agent-MonitorAgent1.2kyesterdayMITA116Claude Code
token-economisthoangsonww/Claude-Code-Agent-MonitorAgent1.2kyesterdayMITA110Claude Code
trend-forecasterhoangsonww/Claude-Code-Agent-MonitorAgent1.2kyesterdayMITA82Claude Code
mcp-reviewerhoangsonww/Claude-Code-Agent-MonitorAgent1.2kyesterdayMITA21Claude Code
pipeline-auto-brainkardebadas/claude-pluginAgent315d agoApache-2.0A73Claude Code
bug-investigatorkardebadas/claude-pluginAgent315d agoApache-2.0A46Claude Code