view --main refactor-skill-dlya-refaktoringa-i-uluchsheniya-koda.md
refactor: Скилл для рефакторинга и улучшения кода
readonly
--- lines
---
name: refactor
description: This skill should be used when the user asks to refactor code, do a refactor pass, clean up code, extract a class or service, inject a dependency, or make incremental improvements to existing code structure.
version: 1.0.0
---
# Refactoring in Glue
See [REFACTORING.md](../../../REFACTORING.md) for the full philosophy, checklist, and status of ongoing refactoring efforts.
## Core principle
Incremental is good. A small step in the right direction — even if it doesn't finish the job — is valuable. You do not need to complete an entire refactor in one pass. Leave the code measurably better without rewriting everything at once.
## What this means in practice
- A partial extraction (e.g., moving 3 methods into a new service) is a valid, shippable change.
- A forwarding stub that preserves existing call sites while introducing a seam is a valid, shippable change.
- If a full fix requires touching too many things at once, find the smallest safe slice and do that.
- Zero behavior change is the goal for each individual refactoring step. New behavior comes after.
Инициализация мануала...
//
$ ls -R related_skills/
2026-04-08
⭐ 165
launch-execution: Скилл для координации запусков продуктов
2026-04-09
⭐ 338
vendor-update: Скилл для обновления зависимостей
2026-03-29
⭐ 3556
Agent Squad — Автоматизация и управление AI-агентами для кодирования
2026-04-09
⭐ 1931
update-changelog: Скилл для автоматического обновления логов
package.json
$ install --global
skills.sh
npx skills add https://github.com/vchelaru/FlatRedBall/tree/NetStandard/FRBDK/Glue/.claude/skills/refactor
$ download --local
man
[HINT] Скачивает всю директорию скилла с GitHub: SKILL.md и все связанные файлы