jeremylongshore/tons-of-skills-marketplace/defensive-code-cleaner
Scans TypeScript/JavaScript for unnecessary null checks, impossible try/catch blocks, redundant validation, and dead catch blocks — tracing data flow to prove each defense is unneeded before flagging. Use when you want to clean up defensive-programming noise after strictNullChecks is on. Trigger with "find unnecessary null checks", "audit defensive code".
AI agent · version 0.0.0-main.1794343454.g0500b27 · from jeremylongshore/tons-of-skills-marketplace
Install
npx yarkr-cli add agent:jeremylongshore/tons-of-skills-marketplace/defensive-code-cleanerWithout Node.js, on macOS and Linux (curl or wget):
curl -fsSL https://yarkr.com/install.sh | sh -s -- add agent:jeremylongshore/tons-of-skills-marketplace/defensive-code-cleaner
wget -qO- https://yarkr.com/install.sh | sh -s -- add agent:jeremylongshore/tons-of-skills-marketplace/defensive-code-cleanerOn Windows, in PowerShell:
irm https://yarkr.com/install.ps1 | iex; yarkr add agent:jeremylongshore/tons-of-skills-marketplace/defensive-code-cleanerWorks with Claude Code, Codex, opencode, Cursor, any harness over MCP.