Skip to main content
Glama

Architect Anything is an agent skill that investigates source projects and finished products, including applications with no source repository. It combines repository inspection with Reverse Engineer Anything (REA) to produce detailed, evidence-backed architecture reports.

Use it when development has moved faster than your documentation, or when you need to understand a particular feature, subsystem or design. Ask in ordinary language; your agent investigates and writes the documents.

Read a sample report: this repository, investigated by the skill itself. The interactive version (search, themes, clickable evidence) is the report.html beside it; open it from a clone or download.

Architecture report with navigation, findings, evidence and change history

Contents: What you get · Quick start · Ask for what you need · How it works · What it can investigate · Where reports go · CLI and MCP · Safety · FAQ · Development

What you get

  • An owner briefing first, then component boundaries, feature walkthroughs, data ownership, interfaces, operations, algorithms, and what remains unknown.

  • Offline HTML and matching Markdown with search, light/dark themes, mobile navigation and print styling. No server, fonts or CDNs.

  • Diagrams (context, component, sequence, data, state) with editable models.

  • Evidence you can follow: every claim links to a source location and content hash, or to saved REA evidence, and is labeled as observed, derived, inferred, contradicted or unknown, and as verified, stale or unverified.

  • History: immutable snapshots, change comparisons between refreshes, and visible gaps instead of confident guesses.

The skill investigates the existing system. It does not rebuild products or present inferred behavior as observed execution.

Related MCP server: sdlc-integrity-mcp

Quick start

Requirements: Python 3.10 or newer and an AI coding agent that loads skills. The helpers use only the standard library.

1. Install the skill. From a clone of this repository:

python architect-anything/scripts/install.py

With no flag the installer finds the agents already set up on your machine and installs for each of them. Name one with --host to install only there.

Agent

Flag

Invoke

Claude Code

--host claude

/architect-anything

Codex

--host codex

$architect-anything

Antigravity

--host antigravity

ask naturally

Other agents that read ~/.agents/skills

--host agents

per your agent

Use py -3 instead of python on Windows if needed. The installer is idempotent and refuses to overwrite files you edited. For project-local installs, release downloads and other agents, see the installation guide.

2. Ask. In a project chat:

Use architect-anything to catch me up on this project. Explain what it does now, how the pieces fit, and what changed.

3. Read the report. Open the index.html the agent links (source projects default to docs/architecture/).

Nothing else is required. REA is needed only to investigate finished products (see What it can investigate).

Ask for what you need

You never name a mode, a depth or a command.

You say

You get

"This project has gotten ahead of me. Catch me up."

A catch-up report: briefing, architecture, behavior, data, operations, changes, assessment

"How does offline sync work? What happens when a push fails?"

A focused explanation: direct answer, then trigger-to-result trace, state, failure paths and tradeoffs

"How do they do X? I want the idea so I can build my own."

A mechanism report: the portable formula (core idea, contract, what is essential, what it assumes, what you must decide), not a replica

"Refresh the architecture report and tell me what changed."

A new snapshot with a delta against the last one; unrevalidated claims marked stale

"Investigate Acme.exe and explain how it works."

A product report from recovered structure, with explicit limits

"Quick rundown" / "how does this work" / "document every detail"

overview / standard / deep depth

More prompts and what comes back: example prompts.

A focused explanation: the direct answer, then the supporting trace

How it works

flowchart LR
    A["You ask in plain language"] --> B["start: workspace, inventory, checklist"]
    B --> C["Agent investigates with repo tools or REA"]
    C --> D["cite + checklist: hashed evidence, recorded answers"]
    D --> E["validate: references, hashes, freshness"]
    E --> F["finish: immutable snapshot"]
    F --> G["HTML + Markdown report with diagrams and evidence"]

The division of labor is deliberate:

  • The agent investigates and explains. It reads source, drives REA, traces behavior and writes the findings. Helpers never invent architecture from a scan.

  • The helpers organize and check. They fingerprint the target, track the coverage checklist, validate references and hashes, detect files that changed during the investigation, and publish.

  • A scaffold is not a report. finish refuses an uninvestigated report, and a run that changed under it cannot be published as complete.

Structural checks cannot prove that prose is true or coverage is sufficient. The skill makes the agent state its limits, and reports keep unknowns visible.

Evidence-linked component diagram in the dark report theme

What it can investigate

Target

Route

Source repository, any language

The agent's normal repository tools (REA optional)

JavaScript, Electron, ASAR, web apps

REA

.NET assemblies, native executables and libraries

REA, plus a provider such as Ghidra for native code

Android, Apple and Harmony packages

REA

Go, Rust, Flutter/Dart, Unity IL2CPP, Godot, WebAssembly, EVM, firmware

REA specialized routes

SQLite databases, HAR/PCAP captures, crash dumps, recordings

REA

The routing baseline is REA 6.7.0; actual availability depends on your REA version, operating system and installed providers. Source investigation, ASAR, managed PE and native PE (through Ghidra) were exercised end to end; other routes are documented but not independently validated. See the target routing table and validation scope.

REA, Ghidra, Node.js and other engines are separate dependencies. This project never installs them or registers an MCP server for you. Configure REA once; see REA setup.

Where reports go

docs/architecture/                 source projects (finished products: a directory you choose)
  index.html                       latest report
  README.md                        latest report, Markdown
  current.json                     pointer to the latest snapshot
  snapshots/<run-id>/              immutable: report.html, report.md, report.json,
                                   evidence.json, diagrams/*.svg + *.json, manifest.json
  focus/<question>/                focused explanations, same layout
  notes/                           your own notes, never overwritten

Snapshots are never rewritten, so history survives every refresh.

CLI and MCP server

The skill ships a small, dependency-free CLI the agent uses to organize its work. Output is one JSON object per command, with stable error codes and exit codes.

architect-anything start /path/to/project                       # catch-up
architect-anything start /path/to/app --focus "How are plugins loaded?" --depth deep
architect-anything status WORKSPACE                             # checklist, what remains, next step
architect-anything cite WORKSPACE src/sync.py --lines 40-72 --append
architect-anything checklist WORKSPACE behavior --status answered --note "Traced push and pull"
architect-anything validate WORKSPACE/report.json --check-files
architect-anything finish WORKSPACE

Without installing anything, agents call python <skill>/scripts/aa_cli.py with the same arguments. python -m pip install . adds the architect-anything and architect-anything-mcp commands to your PATH.

architect-anything-mcp is a stdio MCP server that exposes the same operations as tools (aa_start, aa_status, aa_cite, aa_checklist, aa_validate, aa_finish, and more). Registration is opt-in:

claude mcp add architect-anything -- architect-anything-mcp

References: agent CLI contract · MCP guide · report authoring.

Safety and privacy

  • Static-first. Nothing in a target is run, built or loaded by the helpers. Runtime observation is used only for a concrete evidence gap and within the actions you authorized.

  • Inspected content is data, not instructions. Source, strings, pages and captures cannot direct the agent. Report text is escaped plain text.

  • No surprise side effects. No network fetches, installs or configuration edits. Output goes only to the directory you choose.

  • Secrets stay out. Credentials and private payloads are kept out of shareable reports; raw evidence is stored separately.

Details and reporting: SECURITY.md.

FAQ

Does it change my code? No. It writes only its report directory.

Do I need REA? Only for finished products with no source. Source projects use your agent's normal tools.

Does it call an AI service? No. The CLI and MCP server run no model. The agent you already use does the investigation.

Can I trust the report? Treat it as an evidence-linked briefing, not an oracle. Citations are checked for existence and content hashes, and findings are labeled by authority and freshness, but a person or agent must judge whether a citation supports a claim. Gaps are listed, not hidden.

How does it handle large systems? It maps every top-level subsystem, traces the important flows deeply, and states exactly which scope it sampled.

Which agents does it work with? It is a standard SKILL.md folder plus an MCP server. It was developed and exercised with Codex; installation for Claude Code, Antigravity and other agents follows the same convention, but live agent runs outside Codex have not been validated here.

More fixes: troubleshooting.

Development

python scripts/check_release.py                       # structure, links, version sync, privacy scan
python -m unittest discover -s architect-anything/tests -v
python scripts/generate_demo.py --output .demo        # whole-project demo report
python scripts/generate_focus_demo.py --output .cli-demo

The suite has 83 behavioral tests covering investigation modes and depth levels, publication and resume, the CLI and MCP contracts, evidence and freshness, diagrams, history, escaping and installation. GitHub Actions runs the core checks on Windows and Linux with Python 3.10, 3.12 and 3.14. REA-dependent integration was exercised locally and is not part of the dependency-free CI.

Contributions are welcome: see CONTRIBUTING.md and the code of conduct. Release history: CHANGELOG.md.

License and attribution

MIT. Tool routing and evidence semantics were informed by Reverse Engineer Anything (MIT, by morluto); see third-party notices. Preview images show a synthetic fixture, not a real application.

Available Tools

16 tools
aa_checklistB
Idempotent

Record the answer to one investigation checklist item (status plus a concrete note).

Inputs: item (required), status (required), workspace (required), note.

aa_citeC
Idempotent

Build a hashed evidence record for a local file; append=true adds it to the working report.

Inputs: path (required), workspace (required), id, kind, +3 more.

aa_compareC
Read-onlyIdempotent

Compare two inventories or two reports.

Inputs: kind (required), after (required), before (required), out.

aa_finishB
Idempotent

Check collection state and publish the authored report as an immutable snapshot.

Inputs: workspace (required), emit, partial.

aa_inventoryC
Idempotent

Fingerprint selected local files into a new JSON file.

Inputs: out (required), target (required), exclude.

aa_rea_runC

Run one REA CLI operation, retaining output and a receipt at a new path.

Inputs: out (required), arguments (required), config.

aa_rea_statusB
Read-onlyIdempotent

Probe an existing REA CLI. Does not prove providers are ready or MCP is connected.

Inputs: config.

aa_renderC
Idempotent

Publish an authored report model without an investigation workspace.

Inputs: output (required), report (required), emit.

aa_schemaC
Read-onlyIdempotent

Return a machine-readable contract: report, investigation or commands.

Inputs: subject.

aa_set_run_metaC
Idempotent

Set working report title, subtitle, target name, run status, coverage, limitations, changes, or tools.

Inputs: workspace (required), title, tools, changes, +5 more.

aa_startB

Prepare a catch-up or focused investigation workspace. Does not analyze the target.

Inputs: target (required), emit, kind, lens, +4 more.

aa_statusB
Read-onlyIdempotent

Read an investigation's checklist, depth, lens, and report validation state.

Inputs: workspace (required).

aa_upsert_claimB
Idempotent

Add or update a claim in the working report with immediate reference validation.

Inputs: id (required), text (required), workspace (required), evidence, +2 more.

aa_upsert_diagramC
Idempotent

Add or update a diagram in the working report with immediate structural validation.

Inputs: id (required), kind (required), edges (required), nodes (required), +3 more.

aa_upsert_sectionC
Idempotent

Add or update a report section, automatically pruning replaced scaffold placeholders.

Inputs: id (required), body (required), claims (required), workspace (required), +4 more.

aa_validateB
Read-onlyIdempotent

Validate a report model, optionally checking cited local files and hashes.

Inputs: report (required), check_files.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 16 tools

    Disambiguation4/5

    Most tools target distinct resources or lifecycle stages: investigation setup, checklist, citations, claims, sections, diagrams, validation, publishing, inventories, comparison, schema, and REA CLI operations. The main ambiguity is between aa_finish and aa_render, since both publish reports, though their descriptions distinguish workspace-backed vs workspace-free publishing. aa_status and aa_rea_status are also close in naming but clearly separate investigation status from REA CLI probing.

    Naming Consistency4/5

    All tools share the aa_ prefix and use readable snake_case, with a predictable verb_noun pattern for most operations such as aa_upsert_claim and aa_set_run_meta. Minor deviations appear in noun-only names like aa_status, aa_checklist, aa_inventory, and aa_schema, but the overall convention remains consistent.

    Tool Count4/5

    Sixteen tools are slightly over the typical comfortable range, but the server covers several related workflows: investigation setup, report authoring, validation/publishing, inventory comparison, schema introspection, and REA CLI integration. Each tool appears to have a concrete role rather than being redundant padding.

    Completeness4/5

    The surface covers the main lifecycle from investigation setup through checklist tracking, evidence citation, report authoring, validation, and publishing, plus inventory/comparison and REA CLI helpers. Minor gaps exist around explicit deletion or listing of existing investigations/reports and removing individual report elements, but core workflows are well supported.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      MCP server that provides audit and safety-check tools for enterprise SDLC code integrity, enabling AI agents to scan workspaces for lifecycle gaps, mock-theater tests, DRY violations, and language-specific issues in shell, JavaScript/HTML, and Python.
      4
      12 npm
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Provides a provider-agnostic MCP server that owns task claims, action logs, role handoffs, and health-gate results so AI coding agents can move work through use-case, spec, design, build, and review stages with server-enforced evidence. It also exposes read-only skills for drafting use cases and specs, triaging bugs, answering code questions, and auditing itself.
      29 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Exposes a local stdio MCP server with 12 tools for reverse-engineering work: analyzing artifacts, mapping boundaries and competing explanations, planning and running discriminating experiments, and verifying a rebuilt feature's behavior against recorded evidence. It lets an agent turn an unfamiliar target into an implemented, exercised, and provable feature inside a bounded workspace.
      3
      MIT