CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

dead-code-cleanup

Use `repowise dead-code` to find and classify unused code, and treat lower-confidence results as candidates to investigate rather than deletion recommendations. Before deleting anything, confirm with the user, explain the finding, and check dependents with `repowise risk`; delete in the prescribed order.

Quality

81%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

SKILL.md
Quality
Evals
Security

Quality

Content

86%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The content is an exemplary lean, command-driven skill: concrete CLI flags, MCP integration details, and a safety-gated deletion workflow with user confirmation and dependents checks. Only minor polish is available — trimming the marketing-ish intro clause and stating the recovery path when a risk check surfaces dependents.

DimensionReasoningScore

Conciseness

The body is lean and command-first with no explanation of concepts Claude already knows; the only trimmable material is the intro clause "no LLM needed, works even with a template-rendered wiki", which adds no actionable guidance. This matches 'efficient; minor instances of over-explanation' rather than the flawless every-token-earns-its-place level.

4 / 5

Actionability

Guidance is fully executable and copy-paste ready: `repowise dead-code` with concrete flags (`--safe-only`, `--kind unreachable_file`, `--min-confidence 0.7`, `--format json`), the `get_dead_code` MCP tool with config changes, and `repowise risk --target path/to/file`. Specific examples cover the common cases, matching the top anchor.

5 / 5

Workflow Clarity

A clear sequenced workflow for a destructive operation with explicit validation checkpoints: gate on `safe_to_delete: true`, confirm with the user, run `repowise risk` to double-check dependents, and flag recent git activity as false-positive risk, plus a safe deletion order. It stops short of 5 because there is no explicit error-recovery loop (e.g., what to do when the risk check finds dependents).

4 / 5

Progressive Disclosure

The skill is under 50 lines, single-purpose, needs no external references, and is organized into clear, well-labeled sections (flags, presentation, pre-deletion checks, deletion order). Per the simple-skill guidance, this earns the top score.

5 / 5

Total

18

/

20

Passed

Description

66%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

The description states concrete, distinguishable capabilities in third person, but entirely lacks an explicit 'when to use' trigger clause and omits the most natural keyword for this domain ("dead code"). Adding a 'Use when...' sentence with dead-code synonyms would lift both completeness and trigger-term quality.

Suggestions

Add an explicit trigger clause, e.g. "Use when the user mentions dead code, unused code, unused exports, or wants to clean up / delete unreachable code."

Include the natural synonyms "dead code" and "unused code" in the description — these are the phrases users most likely say for this skill.

Broaden capability coverage slightly (e.g., mention unused/zombie packages in monorepos) to make specificity comprehensive.

DimensionReasoningScore

Specificity

"Find unused files and exports, and what is safe to delete" lists several concrete actions (detect unused files, unused exports, safe-to-delete determination), matching the 'several specific actions; minor gaps' anchor. It falls short of 5 because coverage is not comprehensive — no mention of unused packages or dead symbols — and exceeds 3 because more than 1-2 actions are named.

4 / 5

Completeness

The 'what' is clear (find unused files/exports and what is safe to delete), but there is no 'Use when...' clause or equivalent explicit trigger guidance — 'when' is only weakly implied by "in a cleanup", which caps completeness at 3 per the judging guidelines.

3 / 5

Trigger Term Quality

Natural phrases like "unused files", "unused exports", "safe to delete", and "in a cleanup" are present, giving good keyword coverage. It misses the most common synonym "dead code" (and "unused code"), so it does not reach the comprehensive-with-synonyms level of 5.

4 / 5

Distinctiveness Conflict Risk

The unused-code-detection and safe-deletion niche is mostly distinct with targeted triggers, though it could minorly overlap with linting, refactoring, or general code-cleanup skills. Not 5 because the missing "dead code" terminology leaves the niche less sharply claimed than it could be.

4 / 5

Total

15

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

repowise-dev/repowise

Path

plugins/codex/skills/dead-code-cleanup/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.