Skip to content
Skillv1.0.0

dead-code

Find unused functions and dead code in the codebase

by parcadei(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from parcadei/continuous-claude-v3 (.claude/skills/dead-code/SKILL.md) via skills.sh. Install upstream with npx skills add parcadei/continuous-claude-v3 --skill dead-code. Copyright stays with the author.

Dead Code Detection

Find unused functions and dead code using TLDR static analysis.

Quick Start

# Scan entire project
tldr dead .

# Scan specific directory
tldr dead src/

# Specify entry points (functions to exclude from analysis)
tldr dead . --entry main cli test_

# Specify language
tldr dead . --lang python
tldr dead . --lang typescript

Output Format

Dead code analysis:
  Total functions: 150
  Dead functions: 12

Unused functions:
  - old_helper (src/utils.py:42)
  - deprecated_func (src/legacy.py:15)
  - _unused_method (src/api.py:230)

Cross-Platform

Works on Windows, Mac, and Linux (including WSL).

# Windows (PowerShell)
tldr dead .

# Mac/Linux
tldr dead .

Entry Points

Functions matching entry patterns are excluded from dead code analysis:

  • main, cli - Application entry points
  • test_*, *_test - Test functions
  • setup, teardown - Fixtures
  • @app.route, @api.endpoint - Framework handlers
# Custom entry points
tldr dead src/ --entry main api_handler background_job

Integration

This skill replaces the session-start-dead-code hook with on-demand analysis.

Approach Pros Cons
Hook (removed) Automatic Slowed startup by 3s
Skill (this) On-demand, fast Manual invocation

Related Commands

# Impact analysis (who calls this?)
tldr impact func_name .

# Architecture layers
tldr arch src/

# Full codebase structure
tldr structure . --lang python

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/parcadei-continuous-claude-v3-dead-code/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

parcadei-continuous-claude-v3-dead-code.ocm.jsonjson
{
  "ocm": "1",
  "id": "parcadei-continuous-claude-v3-dead-code",
  "kind": "skill",
  "name": "dead-code",
  "description": "Find unused functions and dead code in the codebase",
  "publisher": "parcadei",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "dead-code",
      "unused",
      "cleanup",
      "refactor",
      "unreachable",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Find unused functions and dead code in the codebase"
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/parcadei/continuous-claude-v3",
      "path": ".claude/skills/dead-code/SKILL.md",
      "ref": "HEAD",
      "url": "https://www.skills.sh/parcadei/continuous-claude-v3/dead-code",
      "key": "parcadei/continuous-claude-v3/.claude/skills/dead-code/SKILL.md"
    },
    "allowed_tools": [
      "Bash"
    ]
  },
  "instructions": "# Dead Code Detection\n\nFind unused functions and dead code using TLDR static analysis.\n\n## Quick Start\n\n```bash\n# Scan entire project\ntldr dead .\n\n# Scan specific directory\ntldr dead src/\n\n# Specify entry points (functions to exclude from analysis)\ntldr dead . --entry main cli test_\n\n# Specify language\ntldr dead . --lang python\ntldr dead . --lang typescript\n```\n\n## Output Format\n\n```\nDead code analysis:\n  Total functions: 150\n  Dead functions: 12\n\nUnused functions:\n  - old_helper (src/utils.py:42)\n  - deprecated_func (src/legacy.py:15)\n  - _unused_method (src/api.py:230)\n```\n\n## Cross-Platform",
  "cost": {
    "context_tokens": 380
  }
}

Fetch it by URL: GET /api/v1/registry/parcadei-continuous-claude-v3-dead-code/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.

dead-code - Skill - OpenSmartRoute