agentleFS
kafnosakekafnosake/Ensoul/skills/dev/refactor-safe/SKILL.md

dev/refactor-safe

Skill1 starsChanged 43 days agoMITView on GitHub

高容错安全重构规范:范围控制、局部精准替换与无损回滚策略

The file

Files
SKILL.md

安全重构规范 (Safe Refactoring SOP)

核心流程

  1. 锚定范围:改动前定位所有符号引用(利用 symbol_find 或 grep),限定影响半径。
  2. 局部替换:使用 edit 精准匹配上下文行,不要盲目大面积格式化。
  3. 保留格式与行尾:严禁无意识将 CRLF 刷成 LF 或反之。
  4. 验证门禁:重构完成后立即跑 build_project 确认类型与编译通过。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.