codebase-architecture-audit

Solid

Use before architecture-significant code work to recover the actual source-backed system shape: modules, dependencies, domain seams, runtime coupling, ownership, quality attributes, tests, docs, and risks.

AI & Automation 8 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 78/100

Stars 20%
32
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Codebase Architecture Audit Bundled commands use `$PLUGIN_ROOT` (`$env:PLUGIN_ROOT` in PowerShell; same path suffix) for the plugin root. Set it once: use the host's plugin-root variable when defined (Claude Code: `PLUGIN_ROOT="$CLAUDE_PLUGIN_ROOT"`), otherwise the absolute path of this plugin's root directory. Use to inspect the architecture that exists in code, not the architecture people intend it to have. ## Inputs Gather repository guidance, product/domain context, top-level structure, entry points, manifests, ownership files, architecture docs, ADRs, API contracts, schemas, runtime/deployment evidence, tests, observability hooks, and recent changes. Run the probe when useful: ```bash python3 "$PLUGIN_ROOT/scripts/architecture_probe.py" <repo-path> --json python3 "$PLUGIN_ROOT/scripts/architecture_probe.py" <repo-path> --json --git-history python3 "$PLUGIN_ROOT/scripts/architecture_probe.py" <repo-path> --json --policy <policy.json> ``` ## Lenses - System shape: monolith, modular monolith, service system, plugin, app/backend, library, CLI, data pipeline, mixed. - Boundaries: module purpose, public APIs, ownership, dependency direction, leakage. - Domain/data: bounded contexts, language, data ownership, transaction boundaries, anti-corruption layers. - Coupling/cohesion: cycles, hubs, framework bleed, shared mutable state, duplicated domain rules, change amplification. - Structure metrics: fan-in/out, instability, dependency cycles, co-change hotspots, intent fi...

Details

Author
Xopoko
Repository
Xopoko/plug-n-skills
Created
1 months ago
Last Updated
today
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category