refactor

Refactor source files to enforce CLAUDE.md coding conventions.

Updated Jun 24, 2026
One-click install
npx skills add https://github.com/eriknovak/ErikNovak --skill refactor-eriknovak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refactor
Source: https://github.com/eriknovak/ErikNovak/tree/main/.dotfiles/.claude/skills/refactor
Command: npx skills add https://github.com/eriknovak/ErikNovak --skill refactor-eriknovak

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Refactor files to conform to the project's and user's coding rules and conventions, reducing manual formatting work and ensuring consistency.

Core Features & Use Cases

  • Enforce project CLAUDE.md rules and global preferences when modifying source files.
  • Normalize imports, naming, and style across single files, folders, or entire projects.
  • Apply conventions automatically to align code with team standards and tooling requirements.

Quick Start

Refactor the specified files to match the project's coding conventions.

Frequently Asked Questions about refactor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically refactor code to follow project conventions defined in CLAUDE.md?

Automated refactoring reads project CLAUDE.md, user global rules, and language-specific rule files to deterministically adjust imports, naming, formatting, and structure across files, directories, or entire projects for coding-rule compliance.

What's the best way to enforce coding conventions across an entire codebase?

Enforcing coding conventions across a codebase is done by applying deterministic refactoring rules that normalize imports, naming, and style to align source files with team standards and CLAUDE.md rules.

Can I normalize imports and formatting for multiple directories at once?

Yes, refactoring can apply to individual files, directories, or entire projects, reading the relevant rule files to normalize imports, naming, formatting, and structure in a single pass.

Does this refactoring approach work with user global rules and language-specific rule files?

Yes, the refactoring process reads project CLAUDE.md, user global rules, and language-specific rule files together to guide deterministic changes and ensure safety when modifying source files.

How do code convention rule files guide safe refactoring changes?

Rule files guide safe refactoring by providing deterministic instructions that the automation reads and applies to adjust imports, naming, formatting, and structure while ensuring the changes conform to defined standards.

When do I need automated refactoring for coding rules?

Automated refactoring is needed when manual formatting work becomes burdensome and consistency is required, allowing you to adjust source files to match project and user coding rules automatically.