refactor

v2026.09.24

Invoke IMMEDIATELY via python script when user requests refactoring analysis, technical debt review, or code quality improvement. Do NOT explore first - the script orchestrates exploration.

GitHub
安装命令
npx skhub add solatis/refactor
Markdown
SKILL.md

Refactor

When this skill activates, IMMEDIATELY invoke the script. The script IS the workflow.

Invocation

<invoke working-dir=".claude/skills/scripts" cmd="python3 -m skills.refactor.refactor --step 1 --n 10" />
ArgumentRequiredDescription
--stepYesCurrent step (starts at 1)
--nNoNumber of categories to explore (default: 10)

Do NOT explore or analyze first. Run the script and follow its output.

Determining N (category count)

Default: N = 10

Adjust based on user request scope:

  • SMALL (single file, specific concern, "quick look"): N = 5
  • MEDIUM (directory, module, standard analysis): N = 10
  • LARGE (entire codebase, "thorough", "comprehensive"): N = 25

The script randomly selects N categories from the 38 available code quality categories defined in conventions/code-quality/.

发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

2026年9月24日

分类

未分类

许可证

MIT

源路径

skills/refactor

默认分支

main

最新提交

6e72bc2

Tree SHA

e888eb9