/core-skills:refactorfrom core-skills
Perform structured code refactoring with safety checks. Suggests extract-method, rename, decompose patterns; validates API contracts.
Ships in core-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.
Read when SKILL.md points to them.
Perform structured code refactoring with safety checks.
Suggests extract-method, rename, decompose patterns; validates API contracts to ensure refactoring doesn't break code.
When code is hard to read, has too many responsibilities, or violates DRY principle. Pair with code-review to identify issues and test-writer to ensure coverage.
Input:
function processOrder(order) {
// Validate
if (!order.items || order.items.length === 0) throw new Error("No items");
if (!order.customer) throw new Error("No customer");
// Calculate
let total = 0;
order.items.forEach((item) => {
total += item.price * item.quantity;
});
// Apply discount
if (order.customer.isVIP) {
total *= 0.9;
}
// Save
db.saveOrder({ ...order, total });
return total;
}
Output:
function processOrder(order) {
validateOrder(order);
const total = calculateTotal(order);
applyDiscount(order.customer, total);
db.saveOrder({ ...order, total });
return total;
}
function validateOrder(order) {
if (!order.items?.length) throw new Error("No items");
if (!order.customer) throw new Error("No customer");
}
function calculateTotal(order) {
return order.items.reduce((sum, item) => sum + item.price * item.quantity, 0);
}
function applyDiscount(customer, total) {
return customer.isVIP ? total * 0.9 : total;
}
// No breaking changes; tests may need minor updates if they spy on internal logic
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub internet-dot/ai-config-os --plugin core-skills35 skills in this plugin
/autoresearchAutonomously optimise any skill by running it repeatedly, scoring outputs against
binary evals, mutating the prompt, and keeping improvements. Based on Karpathy's
autoresearch methodology.
Use when: "optimise this skill", "improve this skill", "run autoresearch on",
"make this skill better", "self-improve skill", "benchmark skill", "eval my skill",
"run evals on". Outputs: an improved SKILL.md copy, a results log, and a changelog
of every mutation tried.
/changelogWhen to useGenerate structured changelog entries from git history, grouping commits by conventional prefix and flagging breaking changes./ci-conditional-auditAudits GitHub Actions workflow files for unpaired conditional steps.
When a step is guarded by an `if:` condition or `outputs.changed` flag,
checks that all downstream steps depending on its side effects carry the
same (or a compatible) guard. Flags any step that consumes an artifact,
binary, or directory produced by a conditional step but runs unconditionally.
Use when: (1) a CI step was made conditional (e.g. skip installs when nothing
changed) but its downstream consumers were not updated; (2) a CI job fails
intermittently — succeeds on full runs but fails when a conditional step is
skipped; (3) reviewing a PR that modifies a workflow file. Not useful for
diagnosing failures unrelated to conditional guards.
/claude-md-creatorCreate, audit, and improve CLAUDE.md files and their referenced documentation.
Use when the user wants to establish or refine CLAUDE.md constraints, write supporting
docs in /docs/ or .claude/, troubleshoot a weak CLAUDE.md, migrate constraints to a new
project, or build a multi-file constraint system. Trigger proactively when a user mentions
starting a project, restructuring documentation, or asks how to document technical
constraints for AI tooling.
/code-reviewPerform structured code review with severity levels and actionable feedback.
Use when reviewing pull requests, code changes, or implementation details.
/commit-conventionsSurfaces the Conventional Commits prefix rules used in this repo and helps draft well-formed commit messages.
Use when writing or reviewing a git commit message, or when unsure which prefix applies to a change.