gate-wiring

gate-wiring is a skill for Claude Code from Obsidian-Owl/specwright. It costs 40 tokens per session (1,805 once invoked), scanned A, original, MIT.

A structural code check for changed files and the code connected to them. It looks for unused exported code, files that nothing uses, imports that cross forbidden architecture layers, and circular dependencies.

In plain words
What is it for?
Use it during verification to inspect changed code for dead code, orphaned files, dependency cycles, and violations of the project's defined architecture layers.
Why use it?
Code can compile and pass tests while still being disconnected or arranged incorrectly. This check finds those structural problems and reports where they occur.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it during verification to inspect changed code for dead code, orphaned files, dependency cycles, and violations of the project's defined architecture layers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/obsidian-owl/specwright/gate-wiring
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Obsidian-Owl/specwright --skill gate-wiring
Clone the repo
git clone --depth 1 https://github.com/Obsidian-Owl/specwright

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gate-wiring

README.md
[![agentmods](https://agentmods.dev/badge/skills/obsidian-owl/specwright/gate-wiring/github.svg)](https://agentmods.dev/skills/obsidian-owl/specwright/gate-wiring)
Your own site
<a href="https://agentmods.dev/skills/obsidian-owl/specwright/gate-wiring"><img src="https://agentmods.dev/badge/skills/obsidian-owl/specwright/gate-wiring/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gate-wiring

Your own site · 80×15
<a href="https://agentmods.dev/skills/obsidian-owl/specwright/gate-wiring"><img src="https://agentmods.dev/badge/skills/obsidian-owl/specwright/gate-wiring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,805 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.01805
Opus 5.5 $0.00016 $0.00722
Sonnet 5.5 $0.00008 $0.00361
Haiku 4.5 $0.00004 $0.00180

Measured 1mo ago against content hash 176771e740ad, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gate-wiring scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

core/skills/gate-wiring/SKILL.md · 170 lines

How it starts

The opening of the file, as written. The whole thing — 170 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Gate: Wiring

Goal

Ensure the codebase is properly connected — no dead code, no orphaned files, no architecture violations. Code that compiles and passes tests can still be wired incorrectly.

Inputs

  • {projectArtifactsRoot}/config.json -- architecture layers, project structure
  • {repoStateRoot}/work/{selectedWork.id}/workflow.json -- selected work unit
  • Changed files (via git diff)

Outputs

  • Evidence file at {workDir}/evidence/wiring-report.md
  • Gate status in the selected work's workflow.json
  • Findings with specific file:line references and remediation

Constraints

Scope (MEDIUM freedom):

  • Focus on changed files and their immediate dependents.
  • Use git diff --name-only against main branch.

Analysis (HIGH freedom):

  • Delegate to specwright-architect for structural analysis.
  • The architect checks:
    • Unused exports: Public functions/types exported but never imported.
    • Orphaned files: Files not imported by anything in the dependency graph.
    • Layer violations: Imports crossing architecture layer boundaries (e.g., UI importing directly from database layer). Layers from config.json architecture.layers.
    • Circular dependencies: Import cycles that may cause runtime issues.
  • Use real tooling when available (e.g., madge, knip, ts-prune).
  • Fall back to LLM analysis when tools aren't configured.

Verdict (LOW freedom):

  • Follow protocols/evidence.md#verdict-rendering.
  • WARN severity for most findings (wiring issues rarely block functionality).
  • BLOCK only for circular dependencies in changed files.
  • This gate is advisory — it helps clean up, not block shipping.

Cross-unit integration (MEDIUM freedom, multi-unit only):

When verifying the final unit of a multi-unit design, run additional cross-unit wiring checks against the full feature diff. This catches integration issues invisible to per-unit analysis: missing cross-unit imports, interface mismatches, disconnected entry points.

Read the full file on GitHub · 170 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 170 lines · 40 tokens per session scan A 176771e740ad

Subscribe to this mod's changes

gate-wiring is a skill published in the GitHub repository Obsidian-Owl/specwright (10 stars, last pushed 6mo ago), licensed MIT. It adds 40 tokens to every session and 1,805 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

release

Cut a brooks-lint release: set the version in package.json, propagate it across all four plugin manifests and every version-bearing text file (README badges, docs site metadata), write the CHANGELOG entry, validate, then commit, push, tag, and publish the GitHub release. Triggers when the maintainer asks to "release"…

hyhmrright/brooks-lint · 135 tokens

recipe-front-review

Reviews completed frontend implementation for governing-source compliance, scope economy, repository quality, and security, then applies user-approved React corrections.

shinpr/claude-code-workflows · 29 tokens

new-skill

Scaffold a new brooks-lint analysis skill so it passes npm run validate and npm run evals on the first try — generates skills/{name}/SKILL.md (with the mandatory "Do NOT trigger for:" clause and a Process section citing guide step ranges) plus skills/{name}/{name}-guide.md (sequentially numbered steps), then appends…

hyhmrright/brooks-lint · 145 tokens

brooks-audit

Architecture audit that maps module dependencies, checks layering integrity, and flags structural decay across a codebase, drawing on twelve classic engineering books. Triggers when: user asks to audit architecture, review folder/module structure, check for circular imports, understand how the codebase is organized…

hyhmrright/brooks-lint · 143 tokens

brooks-sweep

Full-sweep mode: runs a unified analysis across all quality dimensions — code decay, architecture, tech debt, and test quality — then applies fixes directly to the codebase. Safe changes are auto-applied; risky changes are confirmed before execution. Drawing on twelve classic engineering books. Triggers when: user…

hyhmrright/brooks-lint · 178 tokens

brooks-test

Test quality review drawing on twelve classic engineering books — with primary focus on xUnit Test Patterns, The Art of Unit Testing, How Google Tests Software, and Working Effectively with Legacy Code — that diagnoses structural problems in an existing test suite: brittleness, mock abuse, coverage illusions, slow…

hyhmrright/brooks-lint · 161 tokens