---
title: "refractor"
description: "Refactor the following code: @$ARGUMENTS"
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/refractor
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:37:32.770Z
license: CC-BY-4.0
attribution: "refractor — Claudary (https://claudary.paisolsolutions.com/skills/refractor)"
---

# refractor
Refactor the following code: @$ARGUMENTS

## Overview

---
description: Refactor code following best practices and design patterns
---

## Your task

Refactor the following code: @$ARGUMENTS

Guidelines:
1. **Maintain functionality**: Ensure no breaking changes
2. **Improve readability**: Make code more self-documenting
3. **Extract common patterns**: Identify and extract reusable components
4. **Performance optimization**: Improve efficiency where possible
5. **Modern conventions**: Use current best practices
6. **Type safety**: Add or improve type annotations if applicable

Explain each change and why it's beneficial.

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/refractor) · https://claudary.paisolsolutions.com
