# Refactor Guide

> <!-- SPDX-FileCopyrightText: 2026 Lokesh Selvam <lokeshselvam7025@gmail.com> -->

- Skill: `observal/refactor-guide` (Agent Skill)
- Install (CLI): `npx skillmds@latest add observal/refactor-guide`
- Raw SKILL.md: https://api.skillmd.com/api/skills/observal/refactor-guide/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Observal (https://skillmd.com/u/observal)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/observal/refactor-guide

---

<!-- SPDX-FileCopyrightText: 2026 Lokesh Selvam <lokeshselvam7025@gmail.com> -->
<!-- SPDX-License-Identifier: Apache-2.0 -->

---
name: refactor-guide
description: Suggests refactoring improvements for cleaner code
version: 1.0.0
owner: example
task_type: code-review
---

# Refactor Guide

When activated, analyze code and suggest refactoring improvements:
- Extract repeated logic into functions
- Reduce cyclomatic complexity
- Apply SOLID principles
- Improve naming and readability
- Suggest design patterns where appropriate

Provide before/after code examples for each suggestion.

