/nexa-claude-audit:architecture-auditfrom nexa-claude-audit
Generates a dated architecture audit report with C4 diagrams, dependency analysis, ADR summaries, and NFR traceability. Works on any tech stack. Invoke via /architecture-audit.
Ships in nexa-claude-audit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
/architecture-audit.Read and follow ${CLAUDE_PLUGIN_ROOT}/shared/AUDIT_CONTRACT.md: establish the report context,
detect the stack, and select the report path. Skill name: architecture-audit.
Title: Architecture Audit.
Search for documents about system design, architecture diagrams, and architecture decisions:
docs/, doc/, architecture/, design/, adr/, docs/adr/, docs/decisions/,
decisions/, rfcs/;architecture, design, system, overview, adr, decision, rfc,
c4, and the README files (top level and module level);*.puml, *.plantuml, *.mmd, *.drawio, *.dsl (Structurizr),
*.excalidraw, images in doc folders, and Mermaid blocks inside Markdown;docs/entity_model.md, docs/use_cases.puml, docs/wireframes/, docs/designs/.Summarize each document in one sentence taken from the document. For each ADR, record the title
and the status (Accepted, Superseded, …) when the ADR states it.
Read before you draw: the entry points (main, cmd/, app/, src/index.*, route
definitions), the module boundaries, the data layer (ORM models, migrations, SQL DDL), the
external clients (HTTP clients, SDKs, queues, env vars such as *_API_URL), and the deployment
files (Dockerfile*, docker-compose*.yml, k8s/, *.tf).
List the dependencies that the implementation uses. Read the manifest files from the contract
(package.json, go.mod, pyproject.toml, requirements.txt, pom.xml, build.gradle*,
Cargo.toml, *.csproj, Gemfile, composer.json) and the lock files next to them. Then
confirm each dependency in the code: search the import statements (import, require, use,
using, from … import) outside the excluded folders.
For each dependency, record:
runtime, dev, or test, as the manifest states it;framework, database, http client, auth, messaging,
i18n, logging, testing, build, or other;not imported when no file imports it.Also list the dependencies that the code imports but no manifest declares (a transitive import or
a missing declaration). Report the dependencies of a Dockerfile or a docker-compose*.yml
(base images, service images) in the same table with the scope infrastructure.
Group the table by manifest when the repository has more than one (a monorepo, a frontend and a backend). Do not run an install or a package manager command.
Draw every diagram in Mermaid. Base every element on the code or the docs. Do not draw an
element that has no source. Under each diagram, add a Sources: line with the files that
support it.
C4Context): the system, its users, and the external systems it calls.C4Container): the deployable units (apps, services, databases, queues) and
the protocols between them.C4Component): only for containers where the code has clear module
boundaries. Else write Not drawn and the reason.sequenceDiagram): the three to five most important workflows. State
how you chose them (for example "main routes", "use case documents"). Follow the real call
chain (route → handler → service → repository → database or external system) and use the real
identifiers as participant names.erDiagram): one diagram per cluster of related entities.
Source them from the schema (ORM models, migrations, SQL). Prefer the schema over an entity
model document; when the two differ, say so. Find the clusters in the Nexa cluster docs
(docs/engineering/cluster-*-analysis.md), the bounded contexts, or the top-level domain
modules. Show the keys (PK, FK, UK) and the cardinality. Mark the entities that two
clusters share. Keep each diagram small enough to read.Do not draw extra diagrams for the 4+1 model. Map each view to the diagram that covers it.
Mark a view Not covered when no diagram in the report supports it.
Sources: requirement documents, ADRs, and configuration that expresses a quality attribute
(timeouts, rate limits, caching, retries, auth, logging, monitoring, i18n, accessibility).
For each NFR, find the evidence in the code. Status is implemented, partial, or not found.
Also list the quality attributes that the code implements but no document requires.
Use this template after the contract header, ## Summary, and ## Gaps. Gaps include, for
example, views that are Not covered, NFRs with status not found, documents that disagree with
the code, ADRs with no status, dependencies that are not imported, and imports that no
manifest declares.
## Existing documentation
### System design and architecture overviews
| Document | Summary |
|----------|---------|
### Architecture diagrams
| Diagram | Format | Summary |
|---------|--------|---------|
### Architecture Decision Records
| ADR | Title | Status |
|-----|-------|--------|
## Dependencies
(One table per manifest file.)
### `<manifest path>`
| Dependency | Version | Scope | Role | Evidence in code |
|------------|---------|-------|------|------------------|
### Imported but not declared
| Import | Imported in | Note |
|--------|-------------|------|
## Discovered diagrams
### C4 context
### C4 container
### C4 component
### Sequence diagrams
(How the workflows were chosen: …)
### Entity relationship diagrams
## 4+1 view coverage
| 4+1 view | Covered by |
|----------|------------|
| Logical | C4 component, ERDs |
| Process | Sequence diagrams |
| Development | C4 component, folder structure |
| Physical | C4 container (and `/infra-audit`) |
| Scenarios | Sequence diagrams |
## Non-functional requirements
| NFR | Source | Evidence in code | Status |
|-----|--------|------------------|--------|
### Quality attributes with no requirement
| Quality attribute | Evidence in code |
|-------------------|------------------|
Confirm the contract checklist, then:
Sources: line, and each listed file exists.Not covered.implemented, partial, or not found.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub nexadevapp/nexa-claude-skills-marketplace --plugin nexa-claude-audit8 skills in this plugin
/cicd-auditWrites a dated CI/CD audit report for the current repository: the CI/CD system and local gates, a table of every pipeline with its triggers, jobs, test categories, and deploy target, a Mermaid flowchart of the main pipeline, the quality gates, and the gaps. Works on any repository and any CI system (GitHub Actions, GitLab CI, Jenkins, CircleCI, Azure Pipelines, Bitbucket, and others). Writes only docs/audit/cicd-audit/cicd-audit-YYYY-MM-DD-<hash>.md. This skill must only be invoked explicitly via /cicd-audit — never inferred from user messages.
/code-metrics-auditWrites a dated code metrics audit report for the current repository: cyclomatic complexity, duplicated code percentage, coupling between objects (CBO), and depth of inheritance tree (DIT), each with a pass / warn / fail status against a fixed threshold. Static analysis only; runs no tests and no builds. Works on any repository and any tech stack. Writes only docs/audit/code-metrics-audit/code-metrics-audit-YYYY-MM-DD-<hash>.md. This skill must only be invoked explicitly via /code-metrics-audit — never inferred from user messages.
/infra-auditWrites a dated infrastructure audit report for the current repository: where and how the infrastructure is defined (Terraform, Pulumi, CDK, Helm, Kubernetes, Dockerfiles, Compose, serverless configs), the environments and how one is selected, the secret references (names only), and the local development infrastructure. Works on any repository and any tech stack. Writes only docs/audit/infra-audit/infra-audit-YYYY-MM-DD-<hash>.md. This skill must only be invoked explicitly via /infra-audit — never inferred from user messages.