
Audit architecture
Sweeps a whole repository for architectural drift using parallel read-only review passes
Audit architecture is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 20
- Last commit
- License
- AGPL-3.0
- Listing updated
Similar skills
About Audit architecture
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.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (29 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/audit-architecture to use it in all your projects:
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.
Copy the skill folder to ~/.agents/skills/audit-architecture to use it in every repository:
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.
Copy the skill folder to ~/.cursor/skills/audit-architecture to use it in every project:
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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/metabase/metabase-cli.git --path .claude/skills/audit-architectureOr copy the folder to ~/.gemini/skills/audit-architecture yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/audit-architecture:
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.
Get the folder:
git clone --depth 1 https://github.com/metabase/metabase-cli.gitThen 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.
What it does
- 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
Audit architecture 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.
More from metabase/metabase-cli

Guides an agent to write end-to-end tests that run the built CLI against real Metabase
- Open source
- 20 GitHub stars
- Developer tools

Writes unit and Playwright tests for a Metabase data app with mocked queries and actions
- Open source
- 20 GitHub stars
- Developer tools

Plans fixtures, expectations and coverage for testing a transform's logic on known rows
- Open source
- 20 GitHub stars
- Analytics and data

Guides an agent to add a Metabase API resource across client, CLI and e2e tests
- Open source
- 20 GitHub stars
- Analytics and data

Runs a strict end-of-task review that flags architectural drift before work is marked done
- Open source
- 20 GitHub stars
- Developer tools

Gives agents the foundations for operating Metabase from the mb CLI
- Open source
- 20 GitHub stars
- Analytics and data




