SKILL

make-refactor-target-compliant

在重命名符号/属性(Python 或 TypeScript)之前使用,使影响范围可验证——为可能引用它的代码补上类型(可能持有该类的无类型参数/变量、具有同名属性的类、未标记为覆盖的覆盖方法),以便重命名后的类型检查关卡可靠。

机器翻译
查看英文原文

Use BEFORE renaming a symbol/attribute (Python or TypeScript) to make its blast radius verifiable — type the code that might reference it (untyped params/vars that could hold the class, classes with matching attribute names, overrides not marked as such) so the post-rename type-check gate is sound.

适用对象:软件开发与测试。自动收录 · 待核查。

在 Codex 中使用

该组合的专门教程待补充,尚未核实适配。

准备条件

  • 本条仅收录原作者的技能元数据;请阅读完整说明,确认依赖、许可与使用条件。

选择已有说明的 AI 工具,或在页面加载后保存待办及提出教程请求。

查看原作者说明 ↗