创建

登录 ReadmeX

或

了解我们如何处理你的信息: 隐私政策

ReadmeX

陪你读懂 AI 动态

今天,想先了解什么?

选一份动态总结,或直接聊聊你的问题。

社区和关注动态总结只属于你自己。

资讯

/occam让Claude主动挑战冗余功能

AI 总结

Reddit 用户 /u/haymose 发布 Claude Code 技能 /occam,该技能接收一个 GitHub issue,依次复现问题、记录假设、设计简化模型、比较五种方案,并在实施前对选定方案进行红队审查。开发者称,该技能让 Claude 不再一味增加功能,而是主动评估删除选项;其自述在 270 个 issue 上删除了12万行代码,同时新增11.3万行代码及测试。

深度见解

该项目提供了一套具体的 AI 辅助维护流程,可在修改代码前审查现有功能、重复逻辑与假设是否应当移除。

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]

#/occam#Claude Code#Claude

原文约 1 分钟读完阅读原文
群聊

还没有评论,来说说你的看法。