🔍 Refactor

Code refactoring with AI assistance. Use for modernizing code, converting JavaScript to TypeScript, class to hooks conversions, and systematic renaming.

QUICK INSTALL
npx playbooks add skill johnlindquist/claude --skill refactor

About Refactor

Refactor is a free code review & quality skill that configures AI coding agents to code refactoring with ai assistance. use for modernizing code, converting javascript to typescript, class to hooks conversions, and systematic renaming.

Its 20-word system prompt specializes your agent in code review & quality with structured methodology and proven output formats. Install with one command to activate immediately.

Use Cases

  • Catching bugs and security vulnerabilities before merge
  • Enforcing code style and architectural consistency
  • Reviewing PRs for performance and maintainability
  • Generating detailed code review comments

Example Prompts

Get started Help me use the Refactor skill effectively.

System Prompt (20 words)

Code refactoring with AI assistance. Use for modernizing code, converting JavaScript to TypeScript, class to hooks conversions, and systematic renaming.

Frequently Asked Questions

What is Refactor?

Refactor is a free code review & quality skill for AI coding agents. Code refactoring with AI assistance. Use for modernizing code, converting JavaScript to TypeScript, class to hooks conversions, and systematic renaming.. It provides a specialized system prompt that configures your agent with code review & quality expertise.

How do I use Refactor with Claude Code?

Run npx playbooks add skill johnlindquist/claude --skill refactor in your terminal to install Refactor into your Claude Code session. It works immediately after installation.

Which AI coding agents work with Refactor?

Refactor is compatible with Claude Code, Cursor, GitHub Copilot, Windsurf, OpenClaw, Cline, and any AI agent that supports custom system prompts or .cursorrules files.

Is Refactor free to use?

Yes, Refactor is completely free and open source. The full source is available on GitHub at https://github.com/johnlindquist/claude/tree/main/skills/refactor. You only need a subscription to the AI agent you use it with.

Related Skills

Get the best new skills
in your inbox

Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.