# Audit architecture

> Audit architecture is an open-source agent skill for developer tools. Sweeps a whole repository for architectural drift using parallel read-only review passes. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/metabase/metabase-cli/tree/main/.claude/skills/audit-architecture
- **Repository:** https://github.com/metabase/metabase-cli
- **GitHub stars:** 20
- **License:** AGPL-3.0
- **Skill name:** audit-architecture
- **Collection:** https://github.com/metabase/metabase-cli
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill runs a repository-wide architecture review rather than a diff review. It is meant for catching slow drift that builds up across many small changes, and it covers every file in the tree instead of only what changed recently.

The agent first resolves the repository root, then starts eight read-only exploration subagents in parallel. Each one audits a single axis, such as package layering and import direction, type strictness, boundary and process discipline, test pairing, schema and resource contracts, code smells, comment and file-size hygiene, and misuse of available library or project helpers. The agent then merges their results into one severity-ranked report with critical, high, medium and low findings, a list of clean axes, and recommendations.

The skill is written around a TypeScript Bun workspace with client and CLI packages and expects rules described in a CLAUDE.md file. It needs no scripts of its own; it relies on ripgrep-style searches and file reads, and it does not edit files or run the type checker or test suites.

## When your agent uses it

> Whole-repo architectural drift sweep. Spawns eight parallel read-only subagents, each focused on one axis across the entire codebase (not just the diff). Aggregates findings into a single severity-ranked report. Use periodically, before milestones, or on user /audit-architecture.

## What it can access

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

- [Instructions only, no scripts](https://github.com/metabase/metabase-cli/tree/HEAD/.claude/skills/audit-architecture)
- [License: AGPL-3.0](https://github.com/metabase/metabase-cli/tree/HEAD/.claude/skills/audit-architecture)

## Features

- **Parallel axis audits:** Eight read-only subagents each review one architectural concern across the whole codebase at once.
- **Layering checks:** Verifies package boundaries and allowed import directions between modules.
- **Type strictness scan:** Flags casts, non-null assertions and type-checker suppressions outside sanctioned places.
- **Test pairing review:** Looks for commands, resources and helpers that lack their expected test files.
- **Severity-ranked report:** Combines all axis results into one report sorted from critical to low with recommendations.

## Good for

- Run a periodic architecture drift sweep on a repository
- Check a codebase for layering violations before a release
- Find dead exports and missing tests across a TypeScript monorepo
- Review whether code bypasses existing project helpers

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/audit-architecture` to use it in all your projects:

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

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

### Codex

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

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

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

### Cursor

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

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

For one project only, put the folder in `.cursor/skills/audit-architecture` 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/metabase/metabase-cli.git --path .claude/skills/audit-architecture
```

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

### VS Code

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

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

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/metabase/metabase-cli.git
```

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

## FAQ

### When does Audit architecture trigger?

It is meant for a user invoking /audit-architecture, for scheduled weekly sweeps, before milestones or version bumps, and after large refactors.

### Does Audit architecture change any files?

No. The audit is read-only and it does not run tsc, the linter or the test suites.

### What does the output look like?

A single report with a summary, findings grouped into critical, high, medium and low severity, the axes that came back clean, and ordered recommendations.

### Does Audit architecture need any scripts or extra tools?

The skill ships no scripts. It uses search and file-reading operations inside the repository.

### How do I install Audit architecture in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/audit-architecture to use it in all your projects, or to .claude/skills/audit-architecture in one project.

### Does Audit architecture 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 Audit architecture?

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 Audit architecture?

The closest alternatives to Audit architecture are Review, Architecture review, Improve architecture, Architecture foundation and Documentation and adrs.

## Where this comes from

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

## Alternatives

- [Review](https://ai-powered.com/skills/review-metabase): Review 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 architecture](https://ai-powered.com/skills/improve-architecture): Improve 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.
- [Documentation and adrs](https://ai-powered.com/skills/documentation-and-adrs): Documentation and adrs is an open-source agent skill for developer tools.
- [Axiom audit swiftui architecture](https://ai-powered.com/skills/axiom-audit-swiftui-architecture): Axiom audit swiftui architecture is an open-source agent skill for developer tools.
- [Arch review](https://ai-powered.com/skills/arch-review-ramboz): Arch review is an open-source agent skill for developer tools.
- [Architecture audit](https://ai-powered.com/skills/architecture-audit): Architecture audit is an open-source agent skill for developer tools.

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