agentleFS
StelliadStelliad/stelliad-skills/skills/find-dead-code/SKILL.md

find-dead-code

Skill4 starsChanged 2 months agoMITView on GitHub

Find orphaned files, unused exports, dead dependencies and commented-out code, and report them with a confidence level rather than deleting anything.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run it on one package first, and check the 🟡 rows before trusting the 🟢 ones

    line 25
  2. Distinctive:

    Read the Limitations section in SPEC.md.

    line 36

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

find-dead-code

A hygiene sweep that finds what nothing reaches: orphaned files, exports nobody imports, dependencies nobody uses, and large blocks of commented-out code. It reports; it never deletes.

Quick start

  1. Read SPEC.md for the categories, the procedure and the report format
  2. Follow CUSTOMIZE.md to declare your entry points and what must never be called dead
  3. Run it on one package first, and check the 🟡 rows before trusting the 🟢 ones

What it does

  1. Reads the project's own config to find entry points
  2. Traces the import graph from each one
  3. Reports what the graph never reaches, by category, with a confidence level
  4. Leaves every deletion decision to a person

Before you rely on it

Read the Limitations section in SPEC.md. Static analysis cannot see a dynamic import, and a framework that resolves files by string will make live code look dead.


See CUSTOMIZE.md to adapt this skill for your organization.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.