refactor

GitHub

用于执行重构分析、技术债务审查及代码质量改进。通过调用Python脚本自动探索代码库,根据用户请求范围调整分析类别数量,无需手动预探索。

skills/refactor/SKILL.md solatis/claude-config

Trigger Scenarios

用户请求重构分析 用户请求技术债务审查 用户请求代码质量改进

Install

npx skills add solatis/claude-config --skill refactor -g -y
More Options

Use without installing

npx skills use solatis/claude-config@refactor

指定 Agent (Claude Code)

npx skills add solatis/claude-config --skill refactor -a claude-code -g -y

安装 repo 全部 skill

npx skills add solatis/claude-config --all -g -y

预览 repo 内 skill

npx skills add solatis/claude-config --list

SKILL.md

Frontmatter
{
    "name": "refactor",
    "description": "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."
}

Refactor

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

Invocation

Argument Required Description
--step Yes Current step (starts at 1)
--n No Number 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/.

Version History

  • 6e72bc2 Current 2026-07-11 17:18

Same Skill Collection

skills/arxiv-to-md/SKILL.md
skills/cc-history/SKILL.md
skills/codebase-analysis/SKILL.md
skills/decision-critic/SKILL.md
skills/deepthink/SKILL.md
skills/doc-sync/SKILL.md
skills/incoherence/SKILL.md
skills/planner/SKILL.md
skills/problem-analysis/SKILL.md
skills/prompt-engineer/SKILL.md

Metadata

Files
0
Version
6e72bc2
Hash
bb57e5ea
Indexed
2026-07-11 17:18

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-04 04:27
浙ICP备14020137号-1 $bản đồ khách truy cập$