Architecture intelligence
Skill Xopoko/plug-n-skills/plugins/architecture-intelligence/skills/architecture-intelligence
Ready-to-install skills and plugins for Codex, Claude Code, and AI coding agents: practical workflows for app delivery, architecture, research, design, and agent tooling.
npx -y skills add Xopoko/plug-n-skills --skill architecture-intelligenceAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 8 stars8 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use whenever code work has structural consequences: project architecture, module boundaries, dependency direction, runtime topology, asynchronous state consistency, ownership, ADRs, fitness functions, or architecture refactoring.
SKILL.md
5.9 KB, as published. Nobody here has run it
Architecture Intelligence
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 for architecture quality in code. Trigger from task context and code evidence: designing a new project or feature, choosing structure, changing boundaries, moving behavior between layers, introducing runtime/integration paths, protecting quality attributes, or reviewing code whose shape affects changeability, reliability, scalability, security, operability, or testability.
Evidence First
Before judging:
- Define system boundary, users/workloads, and the delivery constraint.
- Inspect source evidence: repo guidance, README, manifests, tests, ownership files, architecture docs, ADRs, dependency graph, runtime boundaries, and recent changes.
- Name quality attributes under pressure: modifiability, reliability, scalability, performance, security, observability, testability, cost, operability.
- Frame key scenarios: stimulus, environment, response, response measure.
- Separate observed, inferred, assumed, and unknown.
If context is thin, inspect source first or ask one decision-critical question. Do not invent scale, teams, boundaries, compliance, or domain facts.
Probe
From the plugin root:
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>
Probe output is an evidence map, not a verdict. It includes:
- structure metrics: fan-in/fan-out, instability, dependency cycles;
- runtime topology: deployment/config/observability/resilience/integration signals;
- ownership topology: CODEOWNERS/OWNERS sources, owner coverage, ownerless areas, cross-owned static dependency edges;
- git history when requested: churn and co-change signals;
- policy checks when provided: forbidden/required top-level edges and required docs.
Route
Use the smallest focused skill set:
codebase-architecture-audit: current architecture, risks, scorecards.architecture-conformance: intended vs observed rules, drift, erosion.architecture-ownership-topology: CODEOWNERS/OWNERS, ownership coverage, cross-owned coordination risk, governance paths.architecture-runtime-topology: deployment, runtime calls, observability, resilience, operability.async-state-consistency: lifecycle state, invalidation, replay/cache/one-shot authority, async publication ordering, linearization, deterministic race proof.architecture-decisions: ADR creation/review, tradeoffs, owner, revisit trigger.architecture-fitness-functions: executable guardrails, CI checks, review gates.architecture-refactoring-strategy: incremental migration, blast radius, rollback.
When the current work will create, preserve, or materially change architecture, do not stop at the router. Use this minimum chain:
codebase-architecture-auditfor observed architecture and risks.architecture-refactoring-strategyfor target boundary, slices, rollback.architecture-fitness-functionsfor executable guardrails.
Add architecture-conformance when an architecture doc, ADR, policy, or
explicit constraint exists. Add architecture-runtime-topology when CLI, app
refresh, background work, deployment, integration, or operability paths change.
Add architecture-ownership-topology when owner files, package ownership, or
cross-owned dependencies affect the change.
Add async-state-consistency when caches, retained or replayable state,
memoization, request coalescing, one-shot reads, expiry, invalidation, or
competing async publishers can expose stale or out-of-order results.
Use adjacent plugins for UI/UX, game design, Kotlin/Tauri specifics, security threat modeling, or non-architecture cleanup.
Evidence Rules
- Tie every finding to files, commands, docs, traces, dependency relations, tests, or decisions.
- Explain tradeoffs; architecture changes rarely improve every quality attribute.
- Recommendations need validation plus rollback or revisit trigger.
- Treat metrics, ownership files, and co-change as warning signals. Confirm against intent, scenarios, runtime evidence, and domain context.
- Do not infer team health, communication quality, production behavior, or branch-protection enforcement from repository files alone.
Refactor Proof Gate
Before editing, capture dirty-tree state, the target boundary, and a pre-refactor probe when the repo can be scanned. After editing, provide tests, docs/ADR updates, runtime smoke or an explicit skip reason, and a post-probe comparison when structural metrics informed the change. End with a skill-usage self-check: skills used, specialized skills skipped, and the reason each skip was safe.
For durable handoff, emit architecture_intelligence.refactor_report.v1.
Durable Contracts
Use references/contracts.md for:
architecture_intelligence.audit.v1architecture_intelligence.conformance.v1architecture_intelligence.decision.v1architecture_intelligence.fitness_plan.v1architecture_intelligence.refactor_report.v1architecture_intelligence.runtime_topology.v1architecture_intelligence.structure_metrics.v1architecture_intelligence.ownership_topology.v1
Boundaries
Do not approve high-risk architecture changes without validation. Do not prescribe microservices, event sourcing, DDD, clean/hexagonal architecture, or new tooling by default. Optimize codebase changeability and runtime qualities, not diagram polish.