Skip to main content

refactor

This skill should be used when the user asks to refactor code, do a refactor pass, clean up code, extract a class or service, inject a dependency, or make incremental improvements to existing code structure.

来源信息

仓库
vchelaru/FlatRedBall
最近来源活动
2026年9月26日 13:16
检测到的 SKILL.md 语言
英语
星标
578
分支
73

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
refactor
description
This skill should be used when the user asks to refactor code, do a refactor pass, clean up code, extract a class or service, inject a dependency, or make incremental improvements to existing code structure.
version
1.0.0
# Refactoring in Glue See [REFACTORING.md](../../../FRBDK/Glue/REFACTORING.md) for the full philosophy, checklist, and status of ongoing refactoring efforts. ## Core principle Incremental is good. A small step in the right direction — even if it doesn't finish the job — is valuable. You do not need to complete an entire refactor in one pass. Leave the code measurably better without rewriting everything at once. ## What this means in practice - A partial extraction (e.g., moving 3 methods into a new service) is a valid, shippable change. - A forwarding stub that preserves existing call sites while introducing a seam is a valid, shippable change. - If a full fix requires touching too many things at once, find the smallest safe slice and do that. - Zero behavior change is the goal for each individual refactoring step. New behavior comes after.
在 GitHub 查看