Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By FradServ1.5.7MITIn 1 marketplace
Simplifies and refactors code in targeted files or across a whole project while aiming to keep behavior unchanged. Applies TypeScript, Python, Go, Swift and React/Next.js best-practice rules, with 57 React performance patterns.
Trending plugins
7-day copy clicks
Claude hands work to one, or you mention it with @.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Agent and skills for code simplification and refactoring to improve code quality while preserving functionality.
Version: 1.5.7
claude plugin install refactor@frad-dotclaude
Provides specialized tools for code simplification and refactoring. Includes an expert code simplifier agent and skills for targeted and project-wide refactoring. All refactoring operations preserve functionality while improving clarity, consistency, and maintainability.
refactor/
├── .claude-plugin/
│ └── plugin.json # Plugin manifest
├── agents/
│ └── code-simplifier.md # Expert refactoring agent
├── skills/
│ ├── best-practices/ # Knowledge skill (internal)
│ │ ├── SKILL.md
│ │ └── references/ # 110 reference files
│ │ ├── typescript.md
│ │ ├── python.md (+ python/ subdir)
│ │ ├── go.md
│ │ ├── swift.md
│ │ ├── universal.md
│ │ └── react/rules/ # 57 Next.js/React patterns
│ ├── refactor/ # Instruction skill (user-invocable)
│ │ └── SKILL.md
│ └── refactor-project/ # Instruction skill (user-invocable)
│ └── SKILL.md
└── README.md
code-simplifierExpert code simplification specialist that enhances code clarity, consistency, and maintainability while preserving functionality. Automatically loads refactor:best-practices skill for language-specific standards.
Usage:
@code-simplifier Simplify the authentication logic in src/auth/login.ts
For details, see agents/code-simplifier.md.
best-practices (Internal)Provides language-specific best practices, code quality standards, and framework detection for refactoring workflows. Automatically loaded by code-simplifier agent.
Language Support: TypeScript, Python, Go, Swift, JavaScript Framework Support: React (57 performance patterns), Next.js
For details, see skills/best-practices/SKILL.md.
/refactorQuick refactoring for recently modified or specified code.
Usage:
# Refactor recently modified code
/refactor
# Refactor specific files
/refactor src/auth/login.ts src/utils/
Launches code-simplifier agent with targeted scope. For details, see skills/refactor/SKILL.md.
/refactor-projectProject-wide code refactoring across entire codebase.
Usage:
/refactor-project
Launches code-simplifier agent with project-wide scope, emphasizing cross-file duplication reduction and consistent patterns. For details, see skills/refactor-project/SKILL.md.
# Refactor recent changes
/refactor
# Refactor specific files
/refactor src/auth/login.ts
/refactor-project
@code-simplifier Simplify the authentication logic in src/auth/login.ts
Before:
function processUser(user: any) {
if (user) {
if (user.age) {
if (user.age >= 18) {
if (user.verified) {
return { status: 'active', user: user };
} else {
return { status: 'unverified', user: user };
}
} else {
return { status: 'minor', user: user };
}
}
}
return { status: 'invalid', user: null };
}
After:
interface User {
age: number;
verified: boolean;
}
function processUser(user: User | null): { status: string; user: User | null } {
// Early returns for guard clauses
if (!user?.age) {
return { status: 'invalid', user: null };
}
if (user.age < 18) {
return { status: 'minor', user };
}
const status = user.verified ? 'active' : 'unverified';
return { status, user };
}
Improvements:
Demonstrates parallelizing independent async operations to eliminate sequential waterfalls. See skills/best-practices/references/react/rules/async-parallel.md for detailed examples.
Demonstrates eliminating code duplication using Enums and type hints. See skills/best-practices/references/python.md for comprehensive patterns.
7-day copy clicks
npx claudepluginhub fradser/dotclaude --plugin refactorBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground