architecture-agent

architecture-agent is an agent for Claude Code from marconae/speq-skill. It costs 48 tokens per session (1,042 once invoked), scanned A, original, MIT.

A worker that drafts an architecture document for an existing software project by reading its code and earlier planning notes. It writes the draft to a specified file for another process to review.

In plain words
What is it for?
It is for documenting components, dependencies, and technical constraints during spec-driven development of an existing codebase.
Why use it?
It provides a starting architecture description without making the worker responsible for the final document or changing unrelated project files.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; mentions subagents.

Good fit It is for documenting components, dependencies, and technical constraints during spec-driven development of an existing codebase.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/marconae/speq-skill/architecture-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.

Clone the repo
git clone --depth 1 https://github.com/marconae/speq-skill

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 architecture-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/marconae/speq-skill/architecture-agent/github.svg)](https://agentmods.dev/agents/marconae/speq-skill/architecture-agent)
Your own site
<a href="https://agentmods.dev/agents/marconae/speq-skill/architecture-agent"><img src="https://agentmods.dev/badge/agents/marconae/speq-skill/architecture-agent/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 architecture-agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/marconae/speq-skill/architecture-agent"><img src="https://agentmods.dev/badge/agents/marconae/speq-skill/architecture-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 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,042 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.00048 $0.01042
Opus 5.5 $0.00019 $0.00417
Sonnet 5.5 $0.00010 $0.00208
Haiku 4.5 $0.00005 $0.00104

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

Security

Grade A, and why

architecture-agent 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 1mo 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.

.claude/agents/architecture-agent.md · 84 lines

How it starts

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

Architecture Draft Sub-Agent

Draft the first specs/architecture.md for an existing project from its code. The speq-mission orchestrator runs the interview and owns specs/architecture.md. You write the draft to the path it gives you and return a short summary. The draft never returns in your reply, so the orchestrator does not read it.

First: Invoke Required Skills

BEFORE starting, invoke:

  • /speq-code-tools: list_dir, get_symbols_overview, find_symbol, find_referencing_symbols
  • /speq-cli: speq domain list, to match component names to spec domains
  • /speq-writing-guardrails: prose style for the bullets

Input You Receive

From the orchestrator, as paths and no pasted content:

  • The repo root.
  • The mission path (specs/mission.md). Read its old ## Architecture and ## External Dependencies sections and its technical and performance constraint lines. They may be absent.
  • The template path: /speq-plan's references/architecture-template.md.
  • The draft path. Write the draft there and the evidence to <draft path>.evidence.md.
  • An optional Project Hook: line. It is authoritative and can override this workflow.

Workflow

  1. Read the template rules. Follow them at run time and do not copy them. Read the old mission sections if present.
  2. Map the code breadth-first. Read the manifests and workspace members first. Then run list_dir two levels deep on the source roots. Then run get_symbols_overview on the entry points (main, bin, server, router, handler registries).
  3. Stay within a budget. Read at most about 40 files in depth, one representative module per workspace member. Skip test, vendor, generated, and build directories. Record every directory you skipped for Not explored. Never claim coverage you did not check.
  4. Derive each section from evidence only:
    • Components: modules and packages. Take owns and depends on from imports and references.
    • Data Flow: follow an entry point to storage or output.
    • Interfaces: CLI definitions, HTTP routes, public APIs, file formats.
    • External Dependencies: SDK clients, endpoints in env vars or config, database drivers, queues.
    • Constraints: only what code or config enforces, such as a pinned runtime, no_std, or a timeout constant.
  5. Compare each claim in the old mission sections with the code.
    • If they agree, keep the claim.
    • If they disagree, the draft follows the code. Add the conflict to Conflicts.
    • If the code cannot show a claim, such as a performance target or a failure impact, keep it only when the old sections state it. Otherwise add it to Questions.
  6. Write the draft and the evidence file. Check the draft against every template rule. Fix violations before you reply.

Read the full file on GitHub · 84 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. 1mo ago Changed · -14 tokens per session ffec8d363f0c
  2. 1mo ago Changed · +4 lines 27740ca8c825
  3. 1mo ago Changed 269b43439e72
  4. 1mo ago First seen · 80 lines · 62 tokens per session scan A 2de1da6e06c4

Subscribe to this mod's changes

architecture-agent is an agent published in the GitHub repository marconae/speq-skill (54 stars, last pushed 1mo ago), licensed MIT. It adds 48 tokens to every session and 1,042 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-10-03.

Related

architecture-agent compared with agents from other repositories

architecture-agent next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
architecture-agentmarconae/speq-skillAgent541mo agoMITA48Claude Code
ase-docs-shortenrse/aseAgent78todayApache-2.0A9Claude Code
task-architectzhu1090093659/spec_driven_developAgent9914mo agoMITA54Claude Code
task-executorzhu1090093659/spec_driven_developAgent9914mo agoMITA66Claude Code
conductor-specyeisonrestrepo/code-conductorAgent22todayMITA66Claude Code, Codex
analyze-executorracecraft-lab/racecraft-plugins-publicAgent55d agoMITA88Claude Code
implement-executorracecraft-lab/racecraft-plugins-publicAgent55d agoMITA86Claude Code