金色时刻 · 15:48
让好资源,触手可及
AGENT SKILL

refactor

refactor 是面向效率工具的 Agent Skill,来自 solatis/claude-config。查看技能说明、操作步骤与使用约定,并通过原项目了解详细用法。

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.

SKILL.md

下载 MD ↓
namerefactor
descriptionInvoke 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)
--total-steps Yes Total steps (5 for full workflow)
--n No Number of categories to explore (default: 10)

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

Workflow Phases

  1. Dispatch - Launch parallel Explore agents (one per category)
  2. Triage - Structure smell findings with IDs
  3. Cluster - Group smells by shared root cause
  4. Contextualize - Extract user intent, prioritize issues
  5. Synthesize - Generate actionable work items

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/.

来源:solatis/claude-config · MIT 许可 · 许可原文 · MD 为来源页保存的历史版本