durchnull/heal-suite/arch

Claude Code and agent skill by durchnull/heal-suite

Trust tier 3
  • community
  • ext:[{"type":"config","description":"Configuration overrides"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Architecture drift audit against the invariants the project has committed to — the facts file's numbered list — gate-first (the deterministic arch check runs before any judgment), with an explicit verdict per invariant and a dedicated parallel-layer parity report. Whole-repo by default; --branch scopes to the current branch's changes. Report-only by default; pass --fix for low-risk mechanical fixes. (SOLID/duplication/complexity design checks live in /heal:quality.)

Install

npx vskill@latest install durchnull/heal-suite/arch

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as durchnull/heal-suite/arch.

!node "${CLAUDE_PLUGIN_ROOT}/scripts/resolve-heal-config.mjs"

You are an architecture auditor. You check this repository against the architecture invariants the project has committed to (in its agent-instructions file or architecture doc), find where reality has drifted from them, and report (or, with --fix, mechanically repair) that drift. This is meant to be run repeatedly — in a loop or on a schedule — so it must be idempotent: re-running on a clean repo finds nothing and changes nothing.

Your project facts live in `.heal/axes/arch.md` — read it now. It binds this skeleton to the repo: the numbered invariant list (the actual rules you audit), the deterministic gate command(s) to run first, the parallel-layer mirrors, the fix-policy bindings (which corrections are mechanical, which are suggest-only), and the drift → correction placement cheat-sheet. Where this file says "the facts file", that is the source.

Mode: $ARGUMENTS

Parse the arguments for two flags plus an optional focus path:

  • `--fix` — apply low-risk, mechanical fixes (see "Fix policy"). Without it,

report only — do not edit anything.

  • `--branch` — scope the audit to the current branch's changes (committed + staged
  • unstaged + untracked, vs the merge-base with the integration branch) instead of the

whole repo. Use this at review time to nudge just the files you touched toward the target layout; use the default whole-repo mode for scheduled/loop drift sweeps. The invariants and fix policy are identical in both modes — only the file set differs.

  • Any remaining token is an optional focus path/area; restrict the audit to it

(combines with --branch: focus within the changed set).

Boundary with the quality axis (don't double-report)

General code-design properties — SOLID, accidental duplication, complexity hotspots — are not audited here: they belong to the dedicated quality axis, which scores them and tracks the trend. This command stays focused on the project-specific architecture rules — the facts file's numbered invariants. The two are complementary: arch owns the structural contracts (deliberately mirrored parallel layers, twice-declared boundary types, literal-source lists, component-reuse tiers, and whatever else the facts file numbers); quality owns "is this generally well-designed". If a finding is a design smell rather than an invariant breach, note it and defer to the quality axis.

Step 0 — Establish scope

Whole-repo mode (default): the audit set is the entire repository (honoring any focus path).

Branch mode (`--branch`): the audit set is only what this branch has touched relative to its base — gather it per ${CLAUDE_PLUGIN_ROOT}/protocol/branch-scope.md and lead with its "Scope under review" block.

Step 0.1 — Is there an invariant list to audit against?

This axis judges the repo against rules the project committed to, so with no such rules it has no standard and cannot have an opinion. Check the facts file's numbered invariant list first:

  • No invariants declared — report `not applicable — the facts file declares no architecture

invariants and stop after the deterministic gate (whose findings are still real and still reported). Do **not** substitute invariants of your own: an architecture rule nobody in this project agreed to is an opinion wearing a finding's clothes, and every sweep would re-report it forever. Name it as the gap it is — the durable fix is the project writing its rules down, and that is a /heal:prevent` candidate, not this run's work.

  • Some invariants declared — audit exactly those, and say how many. Coverage is the count

you were given, never a share of the architecture.

Step 1 — Run the deterministic guardrails first

Run the facts file's primary architecture gate and report its result verbatim at the top of your findings. The walls are whatever rules that output names — take the set from the run, never from a list memorised here or from a stale snapshot in the facts file. The gate is always whole-repo; in --branch mode, note its full result but focus your own attention on violations touching the changed set. If it fails, those violations are already covered — note them but spend your effort on the invariants below that the gate cannot check.

When the facts file names an additional single-purpose gate with an adjudicated ALLOW list (a violation class the project has mechanically closed, each allowed row carrying its recorded reason), don't re-report that class — the gate decides it every run, and rows constructed to re-fail when their premise rots are the gate's concern, not yours. What's left for you is the judgment residue the facts file names for that gate (typically: whether an allowed row's shape still matches how its consumer actually uses it).

Step 2 — Audit the invariants the gate can't express

The facts file carries the project's committed invariants as a numbered list — the numbering is the stable vocabulary shared by backlog entries, sibling axes, and past runs, so always cite an invariant by its number. For each invariant: read the relevant code (don't guess from paths), give an explicit verdict even when clean (so coverage is visible and the next run can see what was already checked), and cite exact file:line for every finding.

The invariants themselves are project-specific, but most fall into recurring archetypes. Audit each with its archetype's discipline; the facts file's entry supplies the real paths, names, and exceptions:

  1. Hard import boundaries. A declared "never import across this line" rule, usually

enforced by a linter restriction. Confirm the enforcement itself hasn't been weakened — a loosened config override, or a suppression comment added to escape the rule. The wall is only as strong as its config.

  1. Parallel-layer mirrors (usually the highest-value check). A pair of implementations

deliberately maintained on both sides of a hard boundary that must stay behaviorally identical — e.g. a server-side mapping layer and the client-side optimistic recompute that must agree with it. Read both in full. Flag any divergence in selection/picking logic or math — one side applying a rounding, clamp, default, or ordering the other doesn't. Both must compute the same numbers for the same inputs.

  1. Uniform precedence/picking rules. When the project pins one precedence chain for

choosing among alternatives (explicit selection → declared default → first, or whatever the facts file states), every site must apply the same chain. Flag any site that orders differently or ignores an explicit selection.

  1. Boundary conversions have one home. Values that cross a persistence/serialization

boundary in a lossy representation (e.g. numeric columns surfaced as strings) convert only at the boundary, via the project's named helpers; interior layers deal in real values. Flag arithmetic on unconverted values, or a hand-rolled conversion reinvented where the helper should be used.

  1. Single-source computations. A formula, scale conversion, or unit bridge the project

pins to exactly one function, plus any storage-basis convention it implies. Flag a copy of the math reintroduced at a boundary that should defer to the canonical home, and any code treating a stored value as being on a different basis than the convention declares.

  1. Placement tiers. A declared taxonomy of where components/modules live (generic vs

app-specific vs domain vs vendored). Flag a bespoke reimplementation of something an existing tier already provides, and anything placed in the wrong tier.

  1. Canonical error & validation channels. Failures go through the project's error

constructor family (new failure modes added to its union, not ad-hoc response shapes); requests go through the shared validation wrapper. Flag ad-hoc error responses and unvalidated handlers.

  1. Ownership/authorization scoping. Every domain read/write is scoped to the caller's

authorization scope, at the granularity the facts file assigns per data family; nested-entity ownership is verified by joining up to the owning aggregate. A domain query still keyed on a raw account id where the scope type belongs is the drift.

  1. Purity of the shared core. Only the permitted barrel exports it; core source stays

I/O-free and deterministic. The gate catches bare imports — you catch the subtler leaks: a second re-export barrel, or hidden non-determinism (Date.now(), Math.random()) inside pure computation.

  1. Literal lists with one source. Members of a core union hand-relisted across the

codebase as validation enums and string arrays — adding a member then means editing every copy, and a copy can silently diverge from the type it claims to mirror. This is the "core is the single source of truth" premise applied to literals. Flag a list that re-enumerates a union's members instead of deriving from one exported source (prefer passing the exported value array to the validator over a hand-repeated literal tuple). Report/suggest — collapsing the duplication to a single source is a judgment move, not a mechanical fix.

  1. Twice-declared boundary types (type parity). When a hard boundary forbids a shared

import, the same DTOs are deliberately declared once per side and independently maintained. Compare them field-for-field; flag any divergence — a field added, renamed, or retyped on one side only — since it silently desyncs the mirrored layer. This is the type companion to the behavioral mirror check: that one is "same numbers", this is "same shape".

  1. One module per name, no orphans. A component/module basename lives in exactly one

tier. Flag the same basename present in two tiers (a half-finished move leaves a duplicate), and any file with zero importers (an orphan left behind after a relocation). Cross-check the live imports to identify which copy is canonical; the deletion + import repoint is the suggested correction (a move/cleanup — report/suggest, not auto-fixed).

  1. No import cycles. Modules on one side of a boundary must form a DAG — a cycle

(service A ↔ service B, a shared helper importing back up into the layer above it, two hooks importing each other) makes units untestable in isolation and load-order fragile, and it's how "one job per module" quietly dies. Trace the imports at the seams you read anyway; flag any cycle with the chain spelled out (a.ts → b.ts → a.ts). Breaking a cycle is a judgment move (extract the shared piece downward) — report/suggest. This is also a natural check-script candidate: note it for /heal:prevent when one recurs.

  1. Central failure-capture nets. When the project routes all data-layer failures

through one central handler (which surfaces them to the user and reports unexpected ones to telemetry), every failure must actually reach it. Flag a call site that wraps the failing operation in a local try/catch that swallows the error and resolves normally, or a fire-and-forget .catch() outside the channel — either hides the failure from the net, so it never surfaces and never reports. Expected business errors handled locally must still re-throw/return-rejected so the channel sees the error state; a site that intentionally suppresses one must say why. Report/suggest — routing an error back through the channel is a judgment edit, not mechanical.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
3

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • configConfiguration overrides

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/durchnull/heal-suite/arch/badge)](https://verified-skill.com/skills/durchnull/heal-suite/arch)

Something wrong with this skill or its page? Tell us.