aibuilder.sh
SkillsAgentsCommandsPlugins
Learn
Home/Tasks/Refactor Code with Claude Code
๐Ÿ”ง

Refactor Code with Claude Code

Restructure and modernize codebases while preserving behavior

Type:
Sort:

Related Tasks

๐ŸงชTest & Validate with Claude Code๐Ÿ‘๏ธReview Code with Claude Code๐Ÿ“–Document & Explain with Claude Code๐Ÿ”€Automate Git Workflows with Claude Code๐Ÿ›ก๏ธSecure & Audit with Claude CodeโšกOptimize & Profile with Claude Code๐Ÿš€Build & Deploy with Claude Code๐ŸŒDesign & Build APIs with Claude Code๐Ÿ—„๏ธManage Data & Databases with Claude Code๐Ÿ›Debug & Troubleshoot with Claude CodeAgent Orchestration with Claude CodeFrontend & UI/UX with Claude CodeContent Creation with Claude CodeCodebase Analysis with Claude CodeData Analysis with Claude CodeFinancial Modeling with Claude CodeLanguage Learning with Claude CodeAudio/Video Processing with Claude Code
aibuilder.sh

Composable building blocks for Claude Code

67 artifacts found

skillby CoderMariusz
1d ago

refactoring-patterns

Apply when improving code structure without changing behavior: reducing duplication, simplifying complexity, or improving readability.

1 repos0 installs
$npx ai-builder add skill CoderMariusz/refactoring-patterns
commandby stefansimik
1d ago

Fbn

Find best name

1 repos0 installs
$npx ai-builder add command stefansimik/fbn
commandby LEEI1337
1d ago

Refactor

Refactor code for better maintainability and performance

1 repos0 installs
$npx ai-builder add command LEEI1337/refactor
skillby sypsyp97
1d ago

codex

Executes OpenAI Codex CLI for code analysis, refactoring, and automated editing. Activates when users mention codex commands, code review requests, or automated code transformations requiring advanced reasoning models.

1 repos0 installs
$npx ai-builder add skill sypsyp97/codex
skillby mepuka
1d ago

effect-layers-services

Define services, provide layers, compose dependencies, and switch live/test. Use for DI boundaries and app composition.

3 repos0 installs
$npx ai-builder add skill mepuka/effect-layers-services
skillby u9401066
1d ago

code-refactor

|

1 repos0 installs
$npx ai-builder add skill u9401066/code-refactor
skillby DarkMonkDev
1d ago

code-quality-fix skill - Automated code quality fixes

# Purpose: Auto-fix ESLint errors, format with Prettier, organize imports

1 repos0 installs
$npx ai-builder add skill DarkMonkDev/code-quality-fix
agentby dxos
1d ago

deprecation-checker

Use this agent when you need to identify and address deprecated code usage in the current branch or pull request. Examples: <example>Context: User has just finished implementing a new feature using some older APIs and wants to ensure they're not using deprecated code before submitting their PR. user: 'I just finished implementing the user authentication flow. Can you check if I'm using any deprecated methods?' assistant: 'I'll use the deprecation-checker agent to scan your recent changes for any deprecated code usage and provide modernization suggestions.' <commentary>Since the user wants to check for deprecated code in their recent work, use the deprecation-checker agent to analyze the changes.</commentary></example> <example>Context: User is reviewing a pull request and wants to ensure no deprecated code was introduced. user: 'Can you review this PR for any deprecated API usage before I approve it?' assistant: 'Let me use the deprecation-checker agent to analyze the PR changes for deprecated code patterns.' <commentary>The user wants to check a PR for deprecated code, so use the deprecation-checker agent to perform this analysis.</commentary></example>

1 repos0 installs
$npx ai-builder add agent dxos/deprecation-checker
skillby bitwarden
1d ago

angular-modernization

Modernizes Angular code such as components and directives to follow best practices using both automatic CLI migrations and Bitwarden-specific patterns. YOU must use this skill when someone requests modernizing Angular code. DO NOT invoke for general Angular discussions unrelated to modernization.

1 repos0 installs
$npx ai-builder add skill bitwarden/angular-modernization
skillby cdlewis
1d ago

rename-global-variable-or-function

Renaming a global variable or function requires additional steps in decompilation projects or the build will fail. Use this skill when you want to rename a global variable or function.

1 repos0 installs
$npx ai-builder add skill cdlewis/rename-global
skillby vendure-ecommerce
1d ago

Migrating to Vendure Dashboard

Migrates Vendure Admin UI extensions (legacy Angular-based) to the new React Dashboard.

1 repos0 installs
$npx ai-builder add skill vendure-ecommerce/vendure-dashboard-migration
agentby 869413421
1d ago

code-refactor-expert

Use this agent when you need to clean up, optimize, and refactor existing code to improve maintainability, reduce redundancy, and follow best practices. Examples: <example>Context: User has written a large module with duplicate code and wants to optimize it. user: 'I've written this authentication module but it has a lot of repeated validation logic and unused functions. Can you help clean it up?' assistant: 'I'll use the code-refactor-expert agent to analyze and optimize your authentication module, removing redundancy and improving the structure while maintaining all functionality.'</example> <example>Context: User has completed a feature implementation and wants to refactor before committing. user: 'Just finished implementing the file upload service. The code works but feels messy with lots of repeated error handling.' assistant: 'Let me use the code-refactor-expert agent to clean up your file upload service, consolidating error handling and removing any unused code.'</example>

1 repos0 installs
$npx ai-builder add agent 869413421/code-refactor-expert
agentby softwaremill
1d ago

code-duplication-finder

Analyzes codebase for duplicated code at file, function, and block levels using JetBrains MCP tools. Identifies exact matches and structural similarities, then provides refactoring recommendations.

1 repos0 installs
$npx ai-builder add agent softwaremill/code-duplication-finder
commandby nicolaygerold
1d ago

Clean

1 repos0 installs
$npx ai-builder add command nicolaygerold/clean
skillby bearcove
1d ago

idiomatic-rust

Idiomatic Rust patterns for pikru C port. Use when writing or reviewing Rust code ported from C. Don't write C in Rust - the goal is correct behavior, not line-by-line translation.

1 repos0 installs
$npx ai-builder add skill bearcove/idiomatic-rust
skillby Tony363
1d ago

agent-refactoring-specialist

Expert refactoring specialist mastering safe code transformation techniques and design pattern application. Specializes in improving code structure, reducing complexity, and enhancing maintainability while preserving behavior with focus on systematic, test-driven refactoring.

1 repos0 installs
$npx ai-builder add skill Tony363/agent-refactoring-specialist
agentby marclove
1d ago

Zod Migration

Safely switches between TS-only types and Zod-inferred runtime validation with preflight checks.

1 repos0 installs
$npx ai-builder add agent marclove/zod
skillby sorryhyun
1d ago

import-refactor

Update all import statements, module references, string paths, and config references after moving or renaming files and modules. Handles Python, TypeScript, and JavaScript imports. Use when moving files, renaming modules, restructuring directories, or consolidating code.

1 repos0 installs
$npx ai-builder add skill sorryhyun/import-refactor
skillby njculpin
1d ago

audit-style

Audit and refactor CSS to comply with Game Loopers design system and BEM methodology

1 repos0 installs
$npx ai-builder add skill njculpin/audit-style
skillby moasadi
1d ago

di-helper

Manage tsyringe DI container registration, scan injectable classes, detect missing registrations, validate injection patterns, and generate registration code. Use when registering repositories, fixing DI errors, or setting up new context (e.g., "Register ProductRepository", "Check DI setup").

1 repos0 installs
$npx ai-builder add skill moasadi/di-helper