Matt Pocock shares a prompt to audit codebase comments: classify, delete, and ratchet with lint
mattpocockuk · x · 2026-11-20
Matt Pocock shares a long prompt that has an AI agent audit every code comment by classifying it as Tautology, Excuse, Stale, or Decision Record—deleting the first three (filing issues for hacks), moving the last into ADRs. It then creates a lint rule banning comments, applies a ratchet approach, and adds a reusable /delete-comment skill. His verdict: 'comments considered harmful.'
More from coding & agent
- Grok Bot Gets Its Own Email Addresses to Sign Up and Handle Promos for You — elonmusk · 2026-11-21
- CapCut × ChatGPT plugin turns chat into a video generator and editor — SimplyAnnisa · 2026-11-21
- Dev builds daily X-digest Grok bot that auto-blocked 19 reply bots, heading to marketplace — petergyang · 2026-11-21
- DeepMind's Antigravity Robotics Plugin: 2 Prompts, ~20 Minutes to Command a Real FR3 Duo Arm — jackyliang42 · 2026-11-21
- Asking Astra 6.2 to Review Code Written by Opus 5.5 Yields Almost Nothing — rickasaurus · 2026-11-21
- Security & Web3 Firewall MCP Server Hits Official Registry: Detects Tool-Poisoning and Rug-Pull Drift — ezelech · 2026-11-21