ask-matt
MAmattpocock/skills337k4,978 new stars in the last 7 days
Load this skill first when asked to remove dead code, duplicate helpers, debug leftovers and unused agent instructions or config. Check consumers and verify that behavior survives each removal.
<workspace>/.octocode/tmp/octocode-clean-agentic-code/; mark a blocked baseline. Skip the baselines when the request is report-only (no edits).node <skill-folder>/scripts/scan-signals.mjs [paths] --diff <base> for the change (omit --diff to audit whole paths). Judge each JSON-line candidate with the reference below that names its signal; exit 1 only means rows were printed.lspSearch references and exact localSearch reads. An empty search alone cannot justify deletion.git diff --numstat shows more added than deleted lines (an untracked file counts as all added).node <skill-folder>/scripts/check-diff.mjs <baseline> <after> (check-diff). Exit 1 means introduced holds failures your batch caused: revise the diagnosis or undo only your batch and report the blocker. Report missing checks as unverified; other fields: --help. Preserve existing edits and coverage floors.| Candidate | Decision |
|---|---|
| Dead or duplicate code, checker suppressions, redundant types or dependencies | Check the candidate's removal bar and preserve supported consumer behavior. |
| Comments, instructions or configuration | Keep text and configuration with a parser, runtime or external consumer until its contract deliberately changes. For AI-writing tells, chat residue and placeholders, use writing tells. If cleaner wording changes agent behavior, use octocode-agentic. For skill packaging or activation, use octocode-skills. |
| Agent leftovers or defects | Report error masking, reachable stubs and unverified dependencies as SBAR blockers. Keep these out of removal batches. Redact exposed credentials and report them for rotation. |
| Weak tests or grader gaming, test debt or replacement tests | Report confirmed gaming as an SBAR blocker. Preserve the behavioral oracle and coverage floors. Never hide a failure by weakening a check or widening a mask. |
Keep defects requiring behavior changes separate from the cleanup. Use octocode-engineer for unresolved design choices.
Report removals, deferrals and checks, including baseline failures and unrun checks. Finish when the diff contains only authorized changes and the affected checks support preserved behavior, or identify what blocked verification. Run the renderer for requested HTML.
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
OBobra/superpowers331k4,772 new stars in the last 7 days
AFaffaan-m/ECC315k4,381 new stars in the last 7 days
AFaffaan-m/ECC315k4,381 new stars in the last 7 days