Add the Dead Code skill with hash-matched keep rows and one tool per language

AI Assisted
This commit is contained in:
jparkerweb committed 2026-11-09 22:09:05 -08:00
1 parent 7891c06642
commit a584c45dfd
43 files changed
+3398 -49

No files matched your search

+22
View File
@@ -426,6 +426,28 @@ export const SKILLS = Object.freeze([
"When parts of the code have no tests. Test asks where to look (the branch's changes, one folder or the whole project) and finds the files no test covers, and offers a real coverage run when the project already has a coverage tool. It shows a plan that opens with how this project writes tests, so the new tests match the old ones, then writes and runs unit and integration tests. It never changes source code: a test that finds a real bug is handed to Diagnose.",
},
}),
skill({
skill: "plan2code-dead-code",
workflow: "dead-code",
label: "Dead code",
name: "Dead Code",
pose: "dead-code",
builds: false, phased: false, metered: true, templates: false,
weight: 1, started: "Dead Code started", ran: "Dead Code run", resume: null,
subagents: "Use helpers for the caller search, one batch of candidates each, returning what each searched and found, never a label. Keep the labels, the Safe call, the removals, the checks and every question with you. Light strength, low effort.",
states: "any",
greyed: null,
card: {
group: "extra",
chip: "Utility",
title: "Clear out dead code",
icon: "dead-code",
blurb: "Finds code nothing uses, says how safe each piece is to remove, and removes only what you pick.",
help: "Finds unused code, labels each piece Safe, Check first or Warning, removes only what you pick, then runs the tests and build.",
about:
"For code nothing calls anymore. Dead Code uses the project's own dead-code tool when there is one (Knip, vulture, cargo check and others), or searches by itself when there is not, then checks every item for callers across the whole project. Each one gets a label: Safe to remove, Check first or Warning, with the reason. It removes only what you pick, runs the tests and build, and puts back anything that breaks them. It never commits and never installs anything.",
},
}),
skill({
skill: "plan2code-changelog",
workflow: "changelog",