# Architecture audit

> Architecture audit is an open-source agent skill for developer tools. Writes a dated architecture audit report with Mermaid diagrams drawn from the code. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/nexadevapp/nexa-claude-skills-marketplace/tree/main/nexa-claude-audit/skills/architecture-audit
- **Repository:** https://github.com/nexadevapp/nexa-claude-skills-marketplace
- **GitHub stars:** 7
- **License:** Apache-2.0
- **Skill name:** architecture-audit
- **Collection:** https://github.com/nexadevapp/nexa-claude-skills-marketplace
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill has an AI coding agent produce a dated architecture audit for the current repository. It gathers the existing architecture documents, diagrams and decision records, lists the dependencies declared in manifests and confirmed by imports, and draws C4 context, container and component diagrams, sequence diagrams and entity relationship diagrams in Mermaid from the source code.

The report also maps each 4+1 architectural view to the diagram that covers it, and traces non-functional requirements such as timeouts, rate limits, caching, retries and auth to evidence in the code, marking each as implemented, partial or not found. A gaps section lists uncovered views, unsourced requirements and undeclared imports.

The skill is meant to run on any repository and tech stack, and it is only invoked explicitly with the slash command. It writes a single Markdown file under docs/audit/architecture-audit and does not run installs or package manager commands.

## When your agent uses it

> Writes a dated architecture audit report for the current repository: links to the existing architecture documents, diagrams, and ADRs; the dependencies found in the implementation; C4 context, container, and component diagrams, sequence diagrams, and entity relationship diagrams in Mermaid, drawn from the code; a 4+1 view coverage map; and a trace of the non-functional requirements. Works on any repository and any tech stack. Writes only docs/audit/architecture-audit/architecture-audit-YYYY-MM-DD-<hash>.md. This skill must only be invoked explicitly via /architecture-audit — never inferred from user messages.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/nexadevapp/nexa-claude-skills-marketplace/tree/HEAD/nexa-claude-audit/skills/architecture-audit)
- [License: Apache-2.0](https://github.com/nexadevapp/nexa-claude-skills-marketplace/tree/HEAD/nexa-claude-audit/skills/architecture-audit)

## Features

- **Existing documentation inventory:** Finds architecture docs, diagram sources and ADRs and records each ADR's status.
- **Dependency review:** Lists declared dependencies by manifest and checks them against actual imports.
- **Mermaid C4 diagrams:** Draws context, container and component diagrams from the code with source references.
- **Sequence and ER diagrams:** Traces main workflows and entity relationships from the code and schema.
- **4+1 view coverage map:** Shows which architectural views are covered by which diagrams in the report.
- **Non-functional requirements trace:** Matches quality attributes such as timeouts and auth to evidence in the code.

## Good for

- Audit the architecture of a legacy codebase before a migration
- Generate Mermaid C4 diagrams for an undocumented service
- Check which declared dependencies are actually imported
- Map the main API workflows as sequence diagrams
- Find non-functional requirements with no implementation evidence

## Install

### Claude Code

This skill ships in the `nexa-claude-audit` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add nexadevapp/nexa-claude-skills-marketplace
/plugin install nexa-claude-audit@nexa-claude-marketplace
```

Or copy only this skill to `~/.claude/skills/architecture-audit`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nexadevapp/nexa-claude-skills-marketplace.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/architecture-audit &&
cp -R "$tmp/nexa-claude-audit/skills/architecture-audit" ~/.claude/skills/architecture-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/architecture-audit` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/architecture-audit` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nexadevapp/nexa-claude-skills-marketplace.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/architecture-audit &&
cp -R "$tmp/nexa-claude-audit/skills/architecture-audit" ~/.agents/skills/architecture-audit &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/architecture-audit` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/architecture-audit` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nexadevapp/nexa-claude-skills-marketplace.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/architecture-audit &&
cp -R "$tmp/nexa-claude-audit/skills/architecture-audit" ~/.cursor/skills/architecture-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/architecture-audit` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/nexadevapp/nexa-claude-skills-marketplace.git --path nexa-claude-audit/skills/architecture-audit
```

Or copy the folder to `~/.gemini/skills/architecture-audit` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/architecture-audit`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nexadevapp/nexa-claude-skills-marketplace.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/architecture-audit &&
cp -R "$tmp/nexa-claude-audit/skills/architecture-audit" ~/.copilot/skills/architecture-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/architecture-audit` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/nexadevapp/nexa-claude-skills-marketplace.git
```

Then copy `nexa-claude-skills-marketplace/nexa-claude-audit/skills/architecture-audit` into your agent's skills folder as `architecture-audit`. Agents that support SKILL.md read one folder per skill.

## FAQ

### How is the skill triggered?

Only explicitly, by typing /architecture-audit. The skill states it must never be inferred from user messages or run from another skill.

### What does Architecture audit write?

A single report at docs/audit/architecture-audit/architecture-audit-YYYY-MM-DD-<hash>.md. The skill says it writes no other files.

### Does Architecture audit run installs or package managers?

No. The instructions say not to run an install or a package manager command.

### Which repositories does Architecture audit support?

The skill says it works on any repository and any tech stack.

### How do I install Architecture audit in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/architecture-audit to use it in all your projects, or to .claude/skills/architecture-audit in one project. Or install the nexa-claude-audit plugin, which includes it: /plugin marketplace add nexadevapp/nexa-claude-skills-marketplace, then /plugin install nexa-claude-audit@nexa-claude-marketplace.

### Does Architecture audit run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Architecture audit?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Architecture audit?

The closest alternatives to Architecture audit are Cicd audit, Documentation and adrs, Audit architecture, Trace architecture and Architecture review.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Cicd audit](https://ai-powered.com/skills/cicd-audit): Cicd audit is an open-source agent skill for developer tools.
- [Documentation and adrs](https://ai-powered.com/skills/documentation-and-adrs): Documentation and adrs is an open-source agent skill for developer tools.
- [Audit architecture](https://ai-powered.com/skills/audit-architecture): Audit architecture is an open-source agent skill for developer tools.
- [Trace architecture](https://ai-powered.com/skills/trace-architecture): Trace architecture is an open-source agent skill for developer tools.
- [Architecture review](https://ai-powered.com/skills/architecture-review): Architecture review is an open-source agent skill for developer tools.
- [Improve arch](https://ai-powered.com/skills/improve-arch): Improve arch is an open-source agent skill for developer tools.
- [Agent architecture](https://ai-powered.com/skills/agent-architecture): Agent architecture is an open-source agent skill for developer tools.
- [Architecture foundation](https://ai-powered.com/skills/architecture-foundation): Architecture foundation is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/architecture-audit
