首页/ AI 技能 / @skilllib/skill-2014279394791993345
Skill站外收录 @skilllib/skill-2014279394791993345

refactor

提供自动化代码重构分析能力,通过分阶段并行处理识别技术债务、归类代码异味、理解用户意图并生成可执行改进项,支持按项目规模动态调整分析深度。

0.0 (0) 153 次安装 原作者 编程导航
收录于 2026-01-22
效率工具 AI 技能

Skills.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 --total-steps 5 --n 10" /> | 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/.

评论 0

还没有评论,来抢沙发。