# Code reachability audit

> Code reachability audit is an open-source agent skill for developer tools. Checks whether a repo file is truly unused across CI, hooks, schedulers and docs. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/mtarcure/claude-vibe-squad/tree/main/.agents/skills/code-reachability-audit
- **Repository:** https://github.com/mtarcure/claude-vibe-squad
- **GitHub stars:** 227
- **License:** MIT
- **Skill name:** code-reachability-audit
- **Collection:** https://github.com/mtarcure/claude-vibe-squad
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill guides an agent through the evidence needed before a repository file or script is labeled dead or removed. It treats the claim that nothing calls a file as an absence claim and requires searching beyond the repo's own code: shell and Python invocations, CI workflows, git hooks, plugin manifests, operator documentation, and host schedulers such as launchd, cron and systemd units living outside the repository.

The workflow has the agent run a census across these surfaces, validate the search with a positive control using a file known to be live and a negative control using an invented filename, and then read each hit to separate real calls from mentions such as comments describing a replaced script or prose documenting a removal. Each file is sorted into a reachability bucket like entry point, live, dynamically reachable, legacy-live or dead.

The guidance also covers verifying a deletion by comparing output before and after the change in the original directory, removing tests that only covered the deleted code, and sweeping for stale references and case-sensitive glob patterns afterward. It is written for a repository that uses shell scripts and Python tooling and expects access to the repo files and the host's scheduler configuration.

## When your agent uses it

> Use before classifying a repository file or script as dead or proposing deletion: census static, dynamic, CI, hook, manifest, documentation, and host-scheduler callers; prove the search with positive and negative controls; classify reachability and resolve misleading mentions. Not for restructuring a live module graph.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/code-reachability-audit)
- [License: MIT](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/code-reachability-audit)

## Features

- **Multi-surface caller census:** Searches shell, Python, CI workflows, git hooks, manifests, docs and host schedulers for references to a file.
- **Search controls:** Uses a known-live positive control and an invented negative control to confirm search results are meaningful.
- **Hit classification:** Distinguishes genuine calls from comments, removal records and literal strings that only look like references.
- **Reachability buckets:** Sorts files into entry point, live, dynamically reachable, legacy-live or dead categories.
- **Pre-deletion equivalence checks:** Compares output before and after a change to prove removing code does not alter behavior.
- **Stranded reference sweep:** Finds leftover header notes, docs and case-sensitive globs that point at removed files.

## Good for

- Check whether a shell script is still run by launchd or cron before deleting it
- Audit a repo for dead Python modules without breaking CI or git hooks
- Prove that truncating a script after an early exit leaves its output unchanged
- Find documentation and config that still point at a removed file

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/code-reachability-audit` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/code-reachability-audit &&
cp -R "$tmp/.agents/skills/code-reachability-audit" ~/.claude/skills/code-reachability-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/code-reachability-audit` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/code-reachability-audit` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/code-reachability-audit &&
cp -R "$tmp/.agents/skills/code-reachability-audit" ~/.agents/skills/code-reachability-audit &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/code-reachability-audit` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/code-reachability-audit` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/code-reachability-audit &&
cp -R "$tmp/.agents/skills/code-reachability-audit" ~/.cursor/skills/code-reachability-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/code-reachability-audit` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/mtarcure/claude-vibe-squad.git --path .agents/skills/code-reachability-audit
```

Or copy the folder to `~/.gemini/skills/code-reachability-audit` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/code-reachability-audit`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/code-reachability-audit &&
cp -R "$tmp/.agents/skills/code-reachability-audit" ~/.copilot/skills/code-reachability-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/code-reachability-audit` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git
```

Then copy `claude-vibe-squad/.agents/skills/code-reachability-audit` into your agent's skills folder as `code-reachability-audit`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When should Code reachability audit be used?

Before classifying a repository file or script as dead or proposing its deletion. It is not meant for restructuring a live module graph.

### Does Code reachability audit search outside the repository?

Yes. It lists host scheduler surfaces such as ~/Library/LaunchAgents plist files, crontab entries and systemd units, which a git grep cannot reach.

### Does Code reachability audit include scripts?

No scripts are bundled with the skill; it is a single SKILL.md file with instructions.

### How do I install Code reachability audit in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/code-reachability-audit to use it in all your projects, or to .claude/skills/code-reachability-audit in one project.

### Does Code reachability audit run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Code reachability audit?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Code reachability audit?

The closest alternatives to Code reachability audit are Dead code cleanup edho ferdian, Rea ci tests audit, Repo recon, Automation audit ops and Test gap audit.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Dead code cleanup edho ferdian](https://ai-powered.com/skills/dead-code-cleanup-edho-ferdian): Dead code cleanup edho ferdian is an open-source agent skill for developer tools.
- [Rea ci tests audit](https://ai-powered.com/skills/rea-ci-tests-audit): Rea ci tests audit is an open-source agent skill for developer tools.
- [Repo recon](https://ai-powered.com/skills/repo-recon): Repo recon is an open-source agent skill for developer tools.
- [Automation audit ops](https://ai-powered.com/skills/automation-audit-ops): Automation audit ops is an open-source agent skill for developer tools.
- [Test gap audit](https://ai-powered.com/skills/test-gap-audit): Test gap audit is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-kripu77): Code review is an open-source agent skill for developer tools.
- [Codebase index](https://ai-powered.com/skills/codebase-index): Codebase index is an open-source agent skill for developer tools.
- [CLI audit](https://ai-powered.com/skills/cli-audit): CLI audit is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/code-reachability-audit
