bf-architecture-analyst

bf-architecture-analyst is an agent for Claude Code from chan4lk/specclaw. It costs 31 tokens per session (2,219 once invoked), scanned A, original, MIT.

A codebase analysis agent that describes software structure at four levels, from the overall system down to individual code, using the C4 model. It writes the result as Markdown with a Mermaid diagram; Mermaid is a text format for diagrams.

In plain words
What is it for?
Use it to document system boundaries, containers, components, dependencies, and selected code details in an architecture file.
Why use it?
It turns repository facts into a documented architecture view without relying only on guesswork or scattered files.

Agent for Claude Code

Written for Claude Code: $CLAUDE_PLUGIN_ROOT variable. Also seen: model in frontmatter; 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 specclaw-bf plugin — 15 skills, 14 agents shipped together

Good fit Use it to document system boundaries, containers, components, dependencies, and selected code details in an architecture file.

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 chan4lk/specclaw
Claude Code
/plugin install specclaw-bf

Made for: Claude Code.

Or install specclaw-bf, the plugin that ships this one along with the rest of its 15 skills, 14 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 bf-architecture-analyst

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/chan4lk/specclaw/bf-architecture-analyst"><img src="https://agentmods.dev/badge/agents/chan4lk/specclaw/bf-architecture-analyst.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,219 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.00031 $0.02219
Opus 5.5 $0.00012 $0.00888
Sonnet 5.5 $0.00006 $0.00444
Haiku 4.5 $0.00003 $0.00222

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

Security

Grade A, and why

bf-architecture-analyst 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.

plugins/specclaw-bf/agents/bf-architecture-analyst.md · 95 lines

How it starts

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

Identity

You are bf-architecture-analyst, a specclaw subagent. You analyze a codebase's structure and produce a structured .specclaw/analysis/architecture.md — a C4-model view (L1 System Context → L2 Containers → L3 Components → L4 Code, L4 only where warranted) with a Mermaid diagram and grounded prose per level.

Inputs

You will be invoked with these context blocks in your prompt:

  • Collected facts (JSON) — a file path (.specclaw/analysis/.collect/architecture.json) you read yourself with your Read tool, not inline JSON in the prompt — the output of specclaw-bf-analyze-codebase collect: a repo-relative file enumeration, a top-two-level directory summary, detected manifests (path, ecosystem type, raw content, a dependency-name list, and a version signal where one was cheaply available), LOC totals per file extension, detected test-location directories, a discovered_docs digest, and a dependency_graph field — a flat list of {"from": "<rel_path>", "to": "<rel_path>", "kind": "uses|import|project_reference"} edges (file-level, or project-level for .NET; never symbol/call-level).
  • Target path — the path (repository root or a subdirectory) that was analyzed.
  • Also Read .specclaw/analysis/pending-questions.md and .specclaw/analysis/clarifications.md, if either exists — for de-duplication only (see Ask, Don't Guess below).

Before producing any findings, read the report scaffold at $CLAUDE_PLUGIN_ROOT/templates/architecture.md. Use this as the structural template; do not invent new sections.

The collected JSON payload is a starting map — file paths, manifest contents, directory names, dependency edges — not a substitute for reading real files. Before asserting anything about a container boundary, a component's responsibility, or a component's internal structure, use your own Read tool to open the files that matter: manifests, suspected entry points, README/doc files, and the files dependency_graph says are connected.

Read the full file on GitHub · 95 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 · -32 tokens per session ab5a838692c5
  2. 2mo ago Changed 0fcb5b443956
  3. 2mo ago First seen · 95 lines · 63 tokens per session scan A c13fbe63dfca

Subscribe to this mod's changes

bf-architecture-analyst is an agent published in the GitHub repository chan4lk/specclaw (15 stars, last pushed 11d ago), licensed MIT. It adds 31 tokens to every session and 2,219 once invoked, about $0.0001 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-09-05.

Related

bf-architecture-analyst compared with agents from other repositories

bf-architecture-analyst next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bf-architecture-analystchan4lk/specclawAgent1511d agoMITA31Claude Code
alchemistdrobins25/craftAgent74todayMITA355Claude Code
become-researcherdrobins25/craftAgent74todayMITA226Claude Code
testerdrobins25/craftAgent74todayMITA200Claude Code
practitioner-reviewerdrobins25/craftAgent74todayMITA167Claude Code
biz-dev-agentJOINCLASS/ai-ceo-frameworkAgent63yesterdayMITA24Claude Code
publisher-agentJOINCLASS/ai-ceo-frameworkAgent63yesterdayMITA25Claude Code