·typed-holes-refactor
</>

typed-holes-refactor

rand/cc-polymath

使用“按类型孔设计”方法重构代码库 - 通过正式的孔解决方案、约束传播和持续验证进行迭代、测试驱动的重构。在重构现有代码、优化架构或通过系统漏洞驱动开发巩固技术债务时使用。

21安装·0热度·@rand

安装

$npx skills add https://github.com/rand/cc-polymath --skill typed-holes-refactor

SKILL.md

Systematically refactor codebases using the Design by Typed Holes meta-framework: treat architectural unknowns as typed holes, resolve them iteratively with test-driven validation, and propagate constraints through dependency graphs.

Run tests on main branch - they should all pass. These are your safety net.

| Nano | 1-2 hours | Simple, mechanical changes | Rename files, update imports | | Small | 4-8 hours | Single module refactor | Extract class, consolidate functions | | Medium | 1-3 days | Cross-module changes | Define interfaces, reorganize packages | | Large | 4-7 days | Architecture changes | Layer extraction, pattern implementation |

使用“按类型孔设计”方法重构代码库 - 通过正式的孔解决方案、约束传播和持续验证进行迭代、测试驱动的重构。在重构现有代码、优化架构或通过系统漏洞驱动开发巩固技术债务时使用。 来源:rand/cc-polymath。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/rand/cc-polymath --skill typed-holes-refactor
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 typed-holes-refactor?

使用“按类型孔设计”方法重构代码库 - 通过正式的孔解决方案、约束传播和持续验证进行迭代、测试驱动的重构。在重构现有代码、优化架构或通过系统漏洞驱动开发巩固技术债务时使用。 来源:rand/cc-polymath。

如何安装 typed-holes-refactor?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/rand/cc-polymath --skill typed-holes-refactor 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/rand/cc-polymath