Developer builds /occam to make Claude challenge unnecessary features
AI summary
Reddit user /u/haymose announced /occam, a Claude Code skill that takes a GitHub issue through a fixed workflow for reproducing a problem, counting assumptions, designing a simpler model, comparing five possible approaches, and red-teaming the selected option before implementation. The developer says the skill made Claude consider deleting features instead of automatically adding them, and reported using it across 270 issues to remove 120,000 lines while adding 113,000 lines, including new tests.
In-depth insight
The project offers a concrete AI-assisted maintenance workflow for reviewing whether existing features, duplicate logic, and assumptions should be removed before code changes are made.
| tl;dr: It's a skill that helps you safely delete features and reduce assumptions. Gist link here: https://gist.github.com/amos501/919cc1941fb668dc1781bd4cc9a34fc4 I've been building a personal finance app with Claude Code, mostly by having an idea and asking for it. That works really well. It's also how I ended up with a codebase where the same calculation or could be built four different ways in different parts of the app. What the skill does /occam takes one GitHub issue and walks Claude through a fixed set of steps. The parts that matter: See the example here https://preview.redd.it/1b6ec0n00fzh1.png?width=1616&format=png&auto=webp&s=71e9f4d566a90a556eada6f143ec44d3ec2b72da Impact I ran this on 270 issues and removed 120k lines and added 113k, new tests included, so the codebase got smaller while gaining tests. Most of the 270 issues came from a separate audit skill that walks user stories through one section of the app looking for duplicate logic, hidden assumptions, and one-off hacks, and files each finding as an issue. /occam then picks up from there. Why I think it works Caveats Try it Point it at the part of your codebase you trust least. Or ask Claude to find places where the same thing is computed twice, have it file each one as an issue, and run /occam on them one at a time. submitted by /u/haymose [link] [comments] |