agentleFS
lldwblldwb/lldwb-claude-skills/skills/code-optimize/SKILL.md

code-optimize

Skill1 starsChanged 45 days agoGPL-3.0View on GitHub

代码优化(小范围)的标准工作流:先理解再动手,按模块规划并实施优化(保持对外行为不变),编译/测试验证后按规范提交 git。当用户要求优化代码(重复代码抽取、局部性能提升、可读性提升、命名与局部结构改进等),或说"优化这段代码""清理小范围代码"时使用——只做小范围优化,改动保持对外行为不变;不属于本次优化的真实缺陷单列报告转 bug-fix,不夹带修复。即使未明确说"用 skill",只要涉及小范围代码优化/清理就应使用。结构性改造、分层/职责重构、实现迁移、批量同构改造(需要重构契约、测试基线与对抗性审查)用 refactor;新增或改变对外行为用 feature-dev;缺陷修复用 bug-fix。

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

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.