wired-up

Block the Stop action when orphan source files have zero references.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Z5Jonathan-maker/ai-coding-os --skill wired-up
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wired-up
Source: https://github.com/Z5Jonathan-maker/ai-coding-os/tree/main/claude/skills/wired-up
Command: npx skills add https://github.com/Z5Jonathan-maker/ai-coding-os --skill wired-up

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents long AI coding sessions from ending while unused, orphan source files are left behind that nothing in the codebase imports or references.

Core Features & Use Cases

  • Stop-hook gating for orphan code: Blocks the Stop action when the working tree contains source files that appear to have zero references elsewhere.
  • Practical orphan detection rules: Treats tracked-or-untracked code files with specific extensions as candidates and uses grep-based import/require/from/quoted-path patterns to judge references.
  • Session hygiene for unattended work: Helps ensure code-heavy sessions remain wired into the app so the next checkpoint reflects real progress rather than dead files.

Quick Start

Arm the wired-up stop hook by telling the AI to enable wired-up when you are about to run a code-heavy, unattended implementation.

Frequently Asked Questions about wired-up

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent AI coding sessions from ending with orphan source files?

You can prevent AI coding sessions from ending with orphan files by arming a stop hook that blocks the Stop action. It scans the working tree for unreferenced source files, ensuring unattended coding sessions remain fully wired into the app.

How does grep-based reference detection work for finding unused files?

Grep-based reference detection identifies orphan code by scanning source files for import, require, from, and quoted-path patterns. It checks if a file's basename or stem appears in other files to determine if it has zero references.

What is orphan code detection and when do I need it for unattended coding?

Orphan code detection identifies source files with zero references from other code. You need it for unattended frontend and backend wiring tasks to ensure newly created files are imported, registered, rendered, or routed before the session ends.

Does orphan code detection exclude test and index entry point files?

Yes, orphan code detection excludes noisy candidates like test, spec, and index entry points. This prevents false positives when scanning tracked-or-untracked code files for zero references during unattended coding sessions.

Can I use a stop hook to block session termination based on the working tree?

Yes, you can use a stop hook to block session termination when the working tree contains source files with specific extensions that have zero references. It gates the Stop action to enforce code hygiene.

What are the limitations of using grep patterns to find dead source files?

A limitation of using grep patterns to find dead source files is that detection is deterministic and relies on matching specific import or require patterns. It may not catch dynamic imports or non-standard referencing methods outside its scanned source extensions.