Ce deadcode hunter

From Moffran/calibrated_explanations · View interactive version

Ce deadcode hunter is an AI agent skill from the GitHub repository Moffran/calibrated_explanations. Identify unreachable or non-contributing source code and separate true dead code from merely untested reachable paths, with Test Quality Method Option A/B/C routing.

How to use this skill

Skill file

CE Dead-Code Hunter

This skill implements the Dead-Code Hunter role from ADR-030 and mirrors

the prompt in development/standards/test-quality-method/deadcode_hunter.md.

Required references

Use this skill when

Focus option handling

pruning and overlap findings.

proposals before classifying removals.

Core missions

  1. Identify truly unreachable code paths.
  2. Distinguish dead code from untested but reachable code.
  3. Produce evidence-backed removal candidates with risk labels.

Workflow

  1. Confirm the selected focus option (A, B, or C).
  2. Start with structural evidence:
python scripts/anti-pattern-analysis/analyze_private_methods.py
  1. Cross-check coverage artifacts:
  1. Validate dynamic reachability:
  1. Classify each candidate:

Output contract

For each candidate provide:

Constraints

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.