Refactor Code with Claude Code
Restructure and modernize codebases while preserving behavior
Restructure and modernize codebases while preserving behavior
67 artifacts found
Apply when improving code structure without changing behavior: reducing duplication, simplifying complexity, or improving readability.
npx ai-builder add skill CoderMariusz/refactoring-patternsFind best name
npx ai-builder add command stefansimik/fbnRefactor code for better maintainability and performance
npx ai-builder add command LEEI1337/refactorExecutes 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.
npx ai-builder add skill sypsyp97/codexDefine services, provide layers, compose dependencies, and switch live/test. Use for DI boundaries and app composition.
npx ai-builder add skill mepuka/effect-layers-services|
npx ai-builder add skill u9401066/code-refactor# Purpose: Auto-fix ESLint errors, format with Prettier, organize imports
npx ai-builder add skill DarkMonkDev/code-quality-fixUse 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>
npx ai-builder add agent dxos/deprecation-checkerModernizes 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.
npx ai-builder add skill bitwarden/angular-modernizationRenaming 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.
npx ai-builder add skill cdlewis/rename-globalMigrates Vendure Admin UI extensions (legacy Angular-based) to the new React Dashboard.
npx ai-builder add skill vendure-ecommerce/vendure-dashboard-migrationUse 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>
npx ai-builder add agent 869413421/code-refactor-expertAnalyzes codebase for duplicated code at file, function, and block levels using JetBrains MCP tools. Identifies exact matches and structural similarities, then provides refactoring recommendations.
npx ai-builder add agent softwaremill/code-duplication-finderIdiomatic 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.
npx ai-builder add skill bearcove/idiomatic-rustExpert 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.
npx ai-builder add skill Tony363/agent-refactoring-specialistSafely switches between TS-only types and Zod-inferred runtime validation with preflight checks.
npx ai-builder add agent marclove/zodUpdate 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.
npx ai-builder add skill sorryhyun/import-refactorAudit and refactor CSS to comply with Game Loopers design system and BEM methodology
npx ai-builder add skill njculpin/audit-styleManage 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").
npx ai-builder add skill moasadi/di-helper