Skip to content
Agentmart
Submit a tool

build-loop:architecture-dead

Find code/components with zero remaining callers — dead, unreachable, or orphaned files to delete.

Skill by tyroneross

IndexedApache-2.0★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/tyroneross-build-loop-architecture-dead

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Find code/components with zero remaining callers — dead, unreachable, or orphaned files to delete. Use when the user asks to "find dead code", "clean up unused files", or "scan for orphaned components". Not for code that's still called but breaks a layer boundary or forms a cycle (use `architecture-rules`).

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/build-loop-architecture-dead

What's inside

Skill name
build-loop:architecture-dead
Description
Find code/components with zero remaining callers — dead, unreachable, or orphaned files to delete. Use when the user asks to "find dead code", "clean up unused files", or "scan for orphaned components". Not for code that's still called but breaks a layer boundary or forms a cycle (use `architecture-rules`).
License
Apache-2.0
Instructions
49 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • name: only lowercase letters, digits and single hyphens allowed
  • name: "build-loop:architecture-dead" does not match folder "dead"

Files (1)

  • SKILL.md

SKILL.md (first lines)

<!-- SPDX-FileCopyrightText: 2025-2026 Tyrone Ross, Jr <46267523+tyroneross@users.noreply.github.com> | SPDX-License-Identifier: Apache-2.0 -->

# Dead-Code / Orphan Scan

Detect orphaned components — those NavGator tracks but with zero incoming AND zero outgoing connections. Use the `mcp__plugin_navgator__dead` MCP tool (or `navgator dead` CLI).

> **Divergence note**: NavGator has no discrete SKILL.md for dead-code analysis. The canonical wrapper is `commands/dead.md`. This skill encodes the same workflow.

## When to Activate

- Phase 4 Review-F Report: orphan scan after build completes — diff against the Phase 1 Assess baseline to surface NEW orphans introduced this build
- User asks "find dead code", "any orphaned components", "what's unused"

## Pre-flight

1. If `.navgator/architecture/index.json` does not exist → no-op with `NavGator: no architecture snapshot found — skipping dead-code scan`.

## Workflow

1. Run `mcp__plugin_navgator__dead` (or `navgator dead`)
2. Group findings by type: unused packages, unused DB models, unused queues, unused infra, unused services
3. For significant findings (unused infra like Heroku/Render configs, unused queues), investigate whether they should be removed
4. Suggest cleanup actions for clearly dead components

## What Counts as Dead

- Components detected by NavGator with zero incoming AND zero outgoing connections
- Only meaningful types are checked (packages, queues, services, infra, database models)
- Internal code files are NOT flagged (too many to be useful)

## Diff Against Baseline

If `.build-loop/state.json.architecture.dead.baseline` exists from Phase 1 Assess:
- Compute `new_orphans = current - baseline`
- Surface only the new ones in Review-F (existing orphans are pre-existing tech debt, not this build's regression)

## Output

Write to `.build-loop/state.json.architecture.dead` with `{total_orphans, new_orphans[], by_type{}}`.

## Sibling Skills

- `build-loop:architecture-scan` — refresh data first
- `build-loop:architecture-rules` — broader violation check (orphan is one warning category there)
- `build-loop:architecture-review` — full integrity review

*Source: NavGator `commands/dead.md`. The canonical implementation is the CLI / MCP tool. Drift-checked by `build-loop:sync-skills`.*

From tyroneross/build-loop, Apache-2.0.

More from tyroneross/build-loop

Signals

Stars
1
Forks
0
Open issues
3
Last commit (this folder)
Aug 19, 2026 (2 months ago)
Last release
Sep 28, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from tyroneross

Cite this page

build-loop:architecture-dead skill. Agent Mart. https://agentmart.dev/skills/tyroneross-build-loop-architecture-dead (last updated 2026-10-24)