/attune-ai:refactor-plan <path to analyze>from attune-ai
Analyzes code for technical debt, duplication, complexity, and coupling, producing a prioritized refactoring roadmap with estimated effort and risk assessment.
Ships in attune-ai. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
IMPORTANT: Start your response with a context preamble.
Call help_lookup(topic="refactor-plan", mode="preamble") and
display the returned preamble text as a blockquote. Then
tell the user they can say "tell me more" for a step-by-step
guide, or answer the scoping questions below to proceed.
If the MCP call fails, fall back to:
Refactor Plan — Analyzes code structure and produces a prioritized refactoring roadmap.
Before running, ask:
refactor_plan (all areas)simplify_code (reduce complexity only)Based on scope:
refactor_plan(path="<target>")simplify_code(path="<target>")Or via CLI:
attune workflow run refactor-plan --path <target>
| Tool | What It Does |
|---|---|
refactor_plan | Tech debt analysis and refactoring roadmap |
simplify_code | Reduce complexity in specific files |
Full refactoring analysis for a path.
refactor_plan(path="<target>")
Targeted complexity reduction for a single file or module. Flattens nested conditionals, inlines trivial helpers, removes dead code.
simplify_code(path="<target file>")
Prefer the rich panel. If the tool response includes panel_html,
pass it to mcp__visualize__show_widget — the universal report panel
(title, score, findings/category sections; from
attune.workflows.report_panel). It shows an explicit "did not
complete" state on failure, never a false "clean". Fall back to the
markdown below when the widget surface is unavailable.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
refactoring, tech-debt, code-quality, simplify, code-analysis
28 skills in this plugin
/attune-hubDeveloper workflow hub — routes to the right skill based on what you need. Triggers on: attune, what can attune do, what can you do, capabilities, where do I start, get started./author-featureAuthor a single-source feature page — a code-verified master that projects to .help kinds + docs pages, no API credits. Triggers on: author a feature page, single-source doc, new feature master, draft docs without an api./bug-predictPredict likely bug locations from code patterns and complexity. Triggers on: predict bugs, find bugs, risky code, code risk, what might break, likely bugs, bug hotspots.npx claudepluginhub smart-ai-memory/attune-ai --plugin attune-aiOther plugins' skills for the same job