agentsclimarketplace

Refactor

Skill mj-deving/pai-skills/skills/CodeReview/Refactor

Lightweight batch refactoring using jscpd, knip, eslint, ast-grep. USE WHEN refactor, scan for duplication, find dead code, unused exports, cleanup session, refactoring pass.From its SKILL.md

Install
npx -y skills add mj-deving/pai-skills --skill Refactor

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.4 KB, 356 tokens by cl100k_base, as published. Nobody here has run it

Refactor

Lightweight, transparent, stateless batch refactoring. Four CLI tools you own.

/refactor is stretching after exercise — quick, transparent, stateless. Desloppify is an annual physical — comprehensive, scored, persistent.

When to Use

Say ThisGets You
/refactorFull scan→triage→fix→verify cycle
"find dead code" / "unused exports"knip-focused scan
"scan for duplication"jscpd-focused scan
"cleanup session" / "refactoring pass"Full cycle

When NOT to Use

  • Health score / debt audit → use Desloppify
  • Review a diff → use /simplify
  • Security scan → use /security

Tool Inventory

ToolWhat It FindsCommand
knip 6.1.1Dead code, unused exports, unused depsnpx knip --reporter json
jscpd 4.0.8Code duplication (cloned blocks)npx jscpd --min-lines 5 --reporters json --output .refactor/
eslintLint violations, deprecation warningseslint . --format json
ast-grep 0.42.0Structural anti-patterns (AST-level)sg scan --rule <rules-dir> --json

Workflow

Route to the scan workflow:

→ Workflows/Scan.md — the scan→triage→fix→verify cycle

What ships with it: 6 files

5.6 KB alongside SKILL.md

Workflows/

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.