技巧

新技能:识别可复用代码库以减少冗余

New skill I made: /deslop-shared-libs Find places where shared code could reduce duplication and im...

精选理由

朋友,这个新技能很实用,能帮你识别代码里的共享库,减少重复,提升可靠性,避免技术债务。

这个新技能用于查找共享代码库,减少代码重复,提升可靠性。它从最近两周的提交和PR开始工作。AI代理经常编写大量全新代码,不进行模块化或创建共享组件,这会增加技术债务,导致更多测试、更慢的编译时间。该技能旨在定期清理代码库。

原文 · Suhail

New skill I made: /deslop-shared-libs Find places where shared code could reduce duplication and im...

New skill I made: /deslop-shared-libs Find places where shared code could reduce duplication and improve reliability, starting with the past two weeks of commits and PRs. Lately, I find that AI agents love to write lots of net-new code. They often don't intertwine things, modularize systems, or make shared components. This adds a ton of tech debt into the system. It makes it write more tests. Slows compile times. Sometimes I am just idling waiting for something to finish so this is a sorta new code golf where I can routinely de-slop the code base. 💬 5 🔄 2 ❤️ 25 👀 3954 📊 10 ⚡