Безопасный рефакторинг маленькими шагами без изменения поведения. Используй, когда просят отрефакторить, упростить, разделить модуль, убрать дублирование или почистить код.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Refactor: $ARGUMENTS
Правило №1: **поведение не меняется.**
1. Убедись, что тесты для затрагиваемого кода есть и зелёные. Если тестов нет — сначала напиши характеризационные тесты на текущее поведение и закоммить их.
2. Опиши план: список маленьких шагов (переименование, выделение функции, перенос и т.д.). Каждый шаг оставляет проект рабочим.
3. Выполняй шаги по одному. После каждого:
- запусти тесты и проверку типов;
- если красное — откати шаг и попробуй иначе.
4. Не смешивай рефакторинг с новыми фичами и исправлениями багов. Найденные баги — запиши в отчёт.
5. Итог: что изменилось, метрики (строк/функций до и после), найденные баги, что стоит сделать дальше.
The line at the top of this page pins the label git:20260930.76c4189, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
GET https://markdownregistry.com/api/v1/artifacts/art_5rndf5nqwra3zgyv
GET https://markdownregistry.com/api/v1/resolve?ref=justxor/claude-code-pro-course/refactor
GET https://markdownregistry.com/api/v1/blob/a6a9a51a840906853b83164b3c34561c3bb3bbf8d611aa0b8afcb43e50a1e165
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
justxor/claude-code-pro-course · plugin-example/skills/review/SKILL.md · Ревью изменений с фокусом на безопасность по стандартам команды. Используй перед мерджем или по просьбе проверить…
justxor/claude-code-pro-course · starter-kit/.claude/skills/code-review/SKILL.md · Ревью изменений в текущей ветке относительно main. Используй, когда просят проверить код, сделать ревью, найти проблемы…
justxor/claude-code-pro-course · starter-kit/.claude/skills/commit/SKILL.md · Создаёт git-коммит в формате Conventional Commits по текущим изменениям. Используй, когда просят закоммитить или…
justxor/claude-code-pro-course · starter-kit/.claude/skills/onboard/SKILL.md · Проводит онбординг нового разработчика в проект - обзор архитектуры, запуск, ключевые потоки и первая задача…
justxor/claude-code-pro-course · starter-kit/.claude/skills/pr-description/SKILL.md · Готовит заголовок и описание pull request по изменениям в ветке. Используй, когда просят описать PR, подготовить pull…
justxor/claude-code-pro-course · starter-kit/.claude/skills/release-notes/SKILL.md · Генерирует release notes / CHANGELOG между двумя тегами или от последнего тега. Используй, когда просят release notes…
justxor/claude-code-pro-course · starter-kit/.claude/skills/write-tests/SKILL.md · Пишет unit-тесты для указанного файла или функции в стиле существующих тестов проекта. Используй, когда просят добавить…
code-yeongyu/oh-my-openagent · packages/shared-skills/skills/refactor/SKILL.md · Guides a refactor, cleanup, or restructure with the right decomposition. Use when the user asks to refactor, simplify…
codeaholicguy/ai-devkit · skills/refactor/SKILL.md · AI DevKit · Systematic structural or multi-file refactors across any stack while preserving behavior and public…
boshu2/agentops · skills/refactor/SKILL.md · Restructure or clean up code with no behavior change, proved by before-and-after checks. Use when: asked to clean up…
boshu2/agentops · plugin/skills/refactor/SKILL.md · Restructure or clean up code with no behavior change, proved by before-and-after checks. Use when: asked to clean up…
testdouble/han · han-coding/skills/refactor/SKILL.md · Restructure existing code without changing its behavior, through a test-gated refactoring loop: a named target, a green…