/swe-skills:swe:refactor-opportunitiesfrom swe-skills
Reviews a repository and returns a short, best-first backlog of small, low-risk refactor tickets with clear write boundaries and validation paths. Use when a user says `find refactor opportunities`, `what small cleanup tickets should we hand to agents`, `give me parallelizable refactors`, or asks for narrow maintainability wins in an existing repo. Do NOT use for a broad architecture redesign, style-only cleanup sweep, or bug hunt focused on functional regressions.
Ships in swe-skills. 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.
Use this skill to produce a concrete shortlist of small refactor tickets, not a broad cleanup strategy.
Each recommendation should already look like a ticket someone could execute without re-scoping it.
Use this skill when the user wants:
Do not use this skill for:
Confirm or infer:
Prefer refactors that:
Avoid:
Review the repository structure, relevant files, and local patterns before forming suggestions.
Look for:
Only keep suggestions that are narrow enough to be assigned as focused tasks.
If a suggestion depends on a large precursor cleanup, drop it.
Check recent contribution history when available so the recommendations can be matched to the user's likely context.
If contribution history is unavailable, say so directly and base the fit assessment on the repo surfaces already under review.
Rank the final list best-first by leverage, clarity, and likelihood of safe execution.
Every suggestion must satisfy all of the following:
Prefer suggestions that are also:
Return 5-10 suggestions total. If the repository does not contain enough good candidates under these constraints, say so instead of forcing weak ideas.
Rank the suggestions best-first.
For each suggestion, include:
low or mediumUse a numbered list. Each item should read like a ticket proposal, not a brainstorming note.
For the good fit for the user field:
User says: Give me five low-risk refactor tickets in this repo that we can parallelize across agents.
Actions:
Result: The user gets a backlog of immediately assignable refactor tasks.
User says: I touched the API adapters last week. Find the best small refactors near the areas I already know.
Actions:
Result: The recommendations are both low-risk and relevant to the user's current context.
Do not pad the list. Return fewer suggestions and explain that the remaining ideas looked more like architecture work than small refactors.
State that directly. Keep the good fit for the user field grounded in the
surfaces already under discussion instead of inventing ownership.
Say so plainly. If the strongest findings are behavior regressions rather than maintainability wins, note that this repo may be a better fit for a bug-hunt skill than a refactor pass.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (ckorhonen/swe-skills) — no native marketplace selected
npx claudepluginhub p/ckorhonen-swe-skills17 skills in this plugin
/swe:babysit-prBabysits an open pull request end-to-end by polling every minute, triaging new comments and reviews, handling CI failures, iterating on reviewer scores, and stopping only when the PR is ready to merge. Use when a user says `babysit this PR`, `watch this PR until it's merge-ready`, `handle review feedback on my PR`, or `keep iterating on this PR until reviewers are happy`. Do NOT use for a one-shot PR risk review, merged PR production monitoring, or repo-wide CI debugging with no scoped PR./swe:capture-knowledgeAudits a repository's code and docs to find important conventions, workflows, and architectural decisions that are missing from agent-facing guidance, then drafts review-ready updates. Use when a user says `capture repo knowledge`, `document implicit conventions`, `turn repo patterns into agent rules`, or asks what future agents should remember about a codebase. Do NOT use for a generic repo tour, onboarding walkthrough, or architecture summary that does not need reusable guidance updates./swe:change-validation-plannerPlans the narrowest trustworthy validation path for a scoped code change or diff. Use when a user asks what to run before merging, how to validate a specific change, whether the current checks are enough, or wants a bounded command order from narrow to broad. Do NOT use for writing tests, fixing the code change itself, broad QA sweeps, or generic debugging that needs root cause analysis./swe:create-skillCreates or revises `swe:` skills for this repository using a repeatable authoring workflow: define concrete use cases, tune trigger boundaries, apply progressive disclosure, add matching eval assets, and validate the package. Use when adding a new skill, tightening an existing skill that over- or under-triggers, or distilling an external workflow into a repo-ready skill. Do NOT use for generic documentation edits or for executing the workflow the skill would describe./swe:docs-drift-auditAudits a repository for human-facing or operational documentation that drifted from code, config, interfaces, workflows, or repo structure changes. Use when a user says `check docs drift`, `docs are stale`, `update the runbook after this change`, or `what documentation is missing after this change`. Do NOT use for agent-guidance updates, generic documentation rewrites, or writing docs without evidence that they are stale./swe:incident-followup-auditAudits post-incident engineering follow-through after a sev or incident to verify whether the durable follow-up happened: regression tests, monitors, docs, runbooks, ownership updates, tickets, rollback learnings, and remaining backlog. Use when a user asks whether incident follow-up is complete, what still needs to be done after a postmortem, or how to close the engineering loop. Do NOT use for live incident response, root-cause analysis, or a generic bug hunt unrelated to an incident.