<< All versions

Skill v1.0.1

currentAutomated scan100/100
codando-io/officina/architecture-audit

+1 new

──Details
PublishedNovember 22, 2026 at 03:34 AM
Content Hashsha256:5ec8deda0454fd85...
Git SHA1a4436c0437e
Bump Typepatch
Compare with v1.0.0
──Files
Files (1 file, 4.9 KB)
SKILL.md4.9 KBactive
SKILL.md · 77 lines · 4.9 KB

name: architecture-audit description: Audit the architecture of a repository for problems no single PR review catches - architectural duplication, conflicting abstractions, circular dependencies, broken boundaries, dead code, overloaded components, duplicate APIs, old and new patterns coexisting, growing technical debt, backend/frontend inconsistency, stale feature flags, and stale project memory. Also runs modernization audits with the stack profile. Produces a prioritized backlog. Use periodically or when asked about codebase health, tech debt, or modernization. Not for reviewing one diff. disable-model-invocation: true metadata: version: "1.0.1"


Architecture audit

Code review looks at one diff. Drift happens across many. This audit looks at the whole and returns a short, prioritized backlog with evidence, not a lecture.

Before you start

  • If .engineering/overrides/architecture-audit.md exists, read it and apply it.
  • Read AGENTS.md (intended architecture), the ADR directory (decisions), and

.engineering/memory/INDEX.md.

  • Pick the focus: general (default) or modernization. For modernization,

read each active profile's references/modernization.md and references/currency.md.

  • Stay read-only. The output is a backlog; each item is executed later through

the normal lifecycle.

Procedure

  1. Reconstruct the actual architecture. Projects/modules, their

dependencies, layers, entry points. Compare it with what AGENTS.md and the ADRs say. Differences are findings.

  1. Look for each smell below. For each hit, collect concrete evidence: paths,

counts, examples. Use search and the stack's tools (project references, import graphs) rather than impressions.

SmellEvidence to collect
Architectural duplicationTwo or more implementations of the same concern (HTTP clients, validation, mapping, error handling, auth checks, date handling)
Conflicting abstractionsParallel ways to do one thing (repository + direct DbContext, two mediator styles, two state management approaches)
Circular dependenciesProject/module reference cycles, services injecting each other
Broken boundariesUI calling data layer, domain referencing infrastructure, controllers with business rules, shared "Common" projects that everything depends on
Dead codeUnreferenced types, endpoints without callers, unused components, config never read
Overloaded componentsVery large classes/files, services with many dependencies, components doing fetch + state + presentation
Duplicate APIsEndpoints returning the same resource in different shapes; frontend services wrapping the same endpoint twice
Old and new patterns coexistingCount of each; is migration progressing or stalled?
Backend/frontend inconsistencyDTOs vs TypeScript models, enum values, date/decimal formats, error contract, pagination shape, validation rules duplicated with different limits
Stale feature flagsFlags fixed at one value for months, flags with no remaining branches
Stale knowledgeAGENTS.md commands that fail, memory entries whose evidence no longer exists, ADRs contradicted by code
Growing debtAreas with high churn and complexity (git log frequency on large files), warnings trend, suppressed analyzers
Delivery readiness gapsMissing items of the minimum delivery setup: unit tests; integration tests for concurrency, partial failure, and conflict; CI that builds and tests every change on the platforms that ship; review before merge; a feature-flag mechanism; a staging gate; fast rollback; production observability; and, in regulated domains, two safeguards per failure mode. Each missing item is a finding; missing rollback or CI ranks first
  1. Modernization focus adds: obsolete/deprecated API usage (compiler and

analyzer warnings), platform and framework versions against support windows, legacy idioms listed in the profile, and the cost of each migration.

  1. Prioritize. For each finding estimate impact (bugs, velocity, security,

cost) and effort (S/M/L). Recommend at most five items to do next. Prefer items that unblock others and items that stop the problem from growing over one-off cleanups: an analyzer rule, or an architecture test that fails the build when a boundary is crossed again (the profile names the tool).

Output

markdown
## Architecture audit: <repo>, <focus>, <date>
**Actual architecture**: short description or diagram; differences from documented
**Findings**
| # | Smell | Evidence | Impact | Effort | Suggested action |
|---|---|---|---|---|---|
**Recommended next 5**: ordered, each with change type (refactor/migration) and reversibility
**Stop the bleeding**: analyzer rules and architecture tests that would prevent regression
**Knowledge fixes**: AGENTS.md, memory entries, or ADRs to update or retire

When a finding reflects a decision that should be recorded or revisited, suggest an ADR. Do not open issues or PRs unless the user asks.

← v1.0.0All versions