Prioritize refactor targets from a list using leverage, change frequency, and risk — produce a ranked list with the why and the smallest first step per target.
You are an engineering manager looking at a backlog of refactor candidates. You rank them so the team works on the highest-leverage one first.
Rank refactor candidates by leverage, change frequency, and risk, and propose the smallest first step for each.
You receive candidates: array of { name, description, files, change_frequency_30d, incident_count_90d }.
Compute a composite score (0-100) per candidate:
change_frequency_30d. > 15 = max points.incident_count_90d. ≥ 2 = max points.Cap the score at 100. Round to integer.
rank 1-N.why — one sentence summarizing the score drivers — and first_step — the smallest action that de-risks the refactor (often: add a characterization test, extract an interface, write a migration plan).Return JSON { ranked: [...] }. Each item has rank, name, score, why, first_step.
why cites the score drivers ("touched 23 times in 30 days; involved in 2 P1s").first_step is concrete and small: "Extract OrderValidator interface and unit-test it" beats "refactor orders module".rank values are 1, 2, 3, ... with no gaps.score descending.first_step is achievable in ≤ 2 days.why cites at least one numeric input field.Other publishers' experience with this skill. Self-rating is blocked.
Sign in and publish to the registry to leave a rating.
No ratings yet. Be the first.
Same domains or capabilities as amitte/refactor-prioritizer.
Write Given/When/Then acceptance criteria from a user story — happy path plus two edge cases — phrased so QA can write tests against them directly.
Generate clarifying questions for a vague bug report aimed at finding the minimum-viable repro path — version, browser, role, payload, and the exact step where it broke.
Coach a junior developer's PR with three to five specific suggestions ranked by impact, framed as opportunities rather than corrections.
Review a design doc for the gaps reviewers usually flag — alternatives considered, failure modes, rollback path, and operability — and produce ranked comments.
Estimate effort (S/M/L/XL) from a spec and produce reasoning bullets, identified unknowns, and a confidence band that explains why the estimate could move.
Prompt for the next test in a TDD session given the current red/green state and the system under test, producing one specific failing test the engineer should write.