一键导入
plan-refactoring
Identify highest-ROI refactoring targets
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Identify highest-ROI refactoring targets
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | plan-refactoring |
| description | Identify highest-ROI refactoring targets |
| usage | /plan-refactoring [path] |
| arguments | [{"name":"paths","description":"Paths to analyze","required":false,"default":"."}] |
Find refactoring targets in: {{.paths}}
# Get a quick structural overview before deciding what to refactor
omen -f json outline --compact --top 50
# Find hotspots (high churn + complexity)
omen -f json hotspot -n 10
# Find code clones
omen -f json clones --min-tokens 50
# Find acknowledged debt
omen -f json satd | jq '.items[] | select(.category == "design")'
# Assess blast radius before refactoring a specific symbol
omen -f json impact --symbol <symbol-name> --depth 2
| Finding | Effort | ROI |
|---|---|---|
| Hotspot with clones | Medium | High |
| God component | High | High |
| Isolated clone | Low | Medium |
| Low-churn debt | Low | Low |
Analyze blast radius before changing specific files. Use before refactoring core components, making breaking API changes, or modifying shared code to identify affected files and stakeholders.
Get complexity and debt metrics before editing code
Focus code review on high-risk changes
Generate onboarding guide with key symbols, architecture overview, and subject matter experts. Use when joining a new project, onboarding teammates, or creating project documentation.
Analyze a repository and generate an intelligent omen.toml with project-specific defaults. Use when starting Omen in a new project.
Audit module coupling, cohesion, hidden dependencies, and design smells. Use when conducting architecture reviews, evaluating design decisions, or identifying structural tech debt.