Agent skill

Refactor

by justxor in justxor/claude-code-pro-course

Безопасный рефакторинг маленькими шагами без изменения поведения.

MITAuto-check passedDevelopment

Install Refactor

skills CLI
$ npx skills add justxor/claude-code-pro-course --skill refactor -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install justxor/claude-code-pro-course refactor --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/justxor/claude-code-pro-course.git skills-src && mkdir -p .claude/skills && cp -r skills-src/starter-kit/.claude/skills/refactor .claude/skills/refactor && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
refactor
GitHub stars
256
Token cost
~233 tokens
SKILL.md length
96 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

Безопасный рефакторинг маленькими шагами без изменения поведения.

  • Works in 5 steps: Убедись, что тесты для затрагиваемого… → Опиши план: список маленьких шагов… → Выполняй шаги по одному. После каждого → …
  • Tasks that involve Refactoring
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Refactor is an agent skill from justxor/claude-code-pro-course. Безопасный рефакторинг маленькими шагами без изменения поведения. Используй, когда просят отрефакторить, упростить, разделить модуль, убрать дублирование или почистить код.

Its SKILL.md is about 230 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Refactoring. The repository describes itself as: Claude Code PRO — полный курс и гайд на русском: CLAUDE.md, settings, skills, subagents, hooks, MCP, плагины, CI. 8 лабораторных, библиотека промптов и готовый starter-kit. Здесь…. The licence is MIT.

When your agent uses it

  • Tasks that involve Refactoring

Example prompts

  • “/refactor”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Убедись, что тесты для затрагиваемого кода есть и зелёные. Если тестов нет — сначала напиши характеризационные тесты на текущее поведение…
  2. Опиши план: список маленьких шагов (переименование, выделение функции, перенос и т.д.). Каждый шаг оставляет проект рабочим.
  3. Выполняй шаги по одному. После каждого
  4. Не смешивай рефакторинг с новыми фичами и исправлениями багов. Найденные баги — запиши в отчёт.
  5. Итог: что изменилось, метрики (строк/функций до и после), найденные баги, что стоит сделать дальше.

What it can do on your machine

Read from SKILL.md and the folder at commit 685e438. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Refactor loads about 233 tokens when it runs. Until then it costs about 45 tokens; SKILL.md has 96 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~45
When it runs · the whole SKILL.md, loaded when a task matches
~233

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from justxor/claude-code-pro-course at commit 685e438, republished under its MIT licence (© justxor). 96 words, ~233 tokens.

Download SKILL.mdSave it as .claude/skills/refactor/SKILL.md (or your agent's skills folder).
name
refactor
description
Безопасный рефакторинг маленькими шагами без изменения поведения. Используй, когда просят отрефакторить, упростить, разделить модуль, убрать дублирование или почистить код.
argument-hint
<файл или модуль> [цель]

Refactor: $ARGUMENTS

Правило №1: поведение не меняется.

  1. Убедись, что тесты для затрагиваемого кода есть и зелёные. Если тестов нет — сначала напиши характеризационные тесты на текущее поведение и закоммить их.
  2. Опиши план: список маленьких шагов (переименование, выделение функции, перенос и т.д.). Каждый шаг оставляет проект рабочим.
  3. Выполняй шаги по одному. После каждого:
    • запусти тесты и проверку типов;
    • если красное — откати шаг и попробуй иначе.
  4. Не смешивай рефакторинг с новыми фичами и исправлениями багов. Найденные баги — запиши в отчёт.
  5. Итог: что изменилось, метрики (строк/функций до и после), найденные баги, что стоит сделать дальше.

© justxor, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in starter-kit/.claude/skills/refactor of justxor/claude-code-pro-course.

Open the folder on GitHubat commit 685e438

Compare with similar skills

Refactor next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Refactor compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Refactor this skilljustxor/claude-code-pro-course256—~233Automated safety check: PassMIT
Migrate Core Code to Submodulestinyhumansai/openhuman42k—~2.6kAutomated safety check: PassGPL-3.0
Filescope MCPadmica/FileScopeMCP302—~1.7kAutomated safety check: PassProprietary
Gograph Go Repository Intelligenceozgurcd/gograph227—~4.8kAutomated safety check: NotesMIT
Auto DevflowHuangPuStar/FenixAgent552—~3kAutomated safety check: PassApache-2.0
Skill Writingmillionco/expect3.6k—~1.8kAutomated safety check: PassCustom licence

Similar skills

  • Migrate Core Code to Submodules

    tinyhumansai/openhuman

    Plans and carries out moving non-host-specific code and its tests from the OpenHuman core into vendored tiny submodule libraries, then releases the submodule and re-pins the host.

    42k GitHub stars~2.6k tokensUpdated today
    DevelopmentAuto-check passed
  • Filescope MCP

    admica/FileScopeMCP

    Codebase intelligence via FileScopeMCP — symbol lookup, dependency mapping, importance ranking, and semantic search.

    302 GitHub stars~1.7k tokensUpdated 5 mo ago
    DevelopmentAuto-check passed
  • Gives an agent working in a Go codebase a structural view through a local MCP server: call graphs, blast-radius and impact analysis, and bounded first-call exploration.

    227 GitHub stars~4.8k tokensUpdated today
    DevelopmentAuto-check: notes
  • Auto Devflow

    HuangPuStar/FenixAgent

    A skill your agent uses when starting an issue, bugfix, feature, or refactor that should be driven by multiple coordinated subagents: explore → plan → code → review, with the main agent acting as…

    552 GitHub stars~3k tokensUpdated today
    DevelopmentAuto-check passed
  • Skill Writing

    millionco/expect

    Write and improve agent skills (SKILL.md files). An agent skill from millionco/expect.

    3.6k GitHub stars~1.8k tokensUpdated 5 mo ago
    DevelopmentAuto-check passed
  • Ss Cpp Modern

    Serial-Studio/Serial-Studio

    Modern C++20 authoring guidance for Serial Studio (Qt 6.11, C++20): concepts, ranges, move/RAII, std smart pointers, constexpr, lock-free SPSC atomics.

    7.2k GitHub stars~1.6k tokensUpdated today
    DevelopmentAuto-check passed

More from justxor/claude-code-pro-course

All 9 skills in this repo
  • Code Review

    justxor/claude-code-pro-course

    Ревью изменений в текущей ветке относительно main. An agent skill from justxor/claude-code-pro-course.

    256 GitHub stars~293 tokensUpdated 6 days ago
    Auto-check passed
  • Commit

    justxor/claude-code-pro-course

    Создаёт git-коммит в формате Conventional Commits по текущим изменениям.

    256 GitHub stars~231 tokensUpdated 6 days ago
    Auto-check: notes
  • Onboard

    justxor/claude-code-pro-course

    Проводит онбординг нового разработчика в проект - обзор архитектуры, запуск, ключевые потоки и первая задача.

    256 GitHub stars~267 tokensUpdated 6 days ago
    Auto-check passed
  • Release Notes

    justxor/claude-code-pro-course

    Генерирует release notes / CHANGELOG между двумя тегами или от последнего тега.

    256 GitHub stars~244 tokensUpdated 6 days ago
    Auto-check passed
  • Write Tests

    justxor/claude-code-pro-course

    Пишет unit-тесты для указанного файла или функции в стиле существующих тестов проекта.

    256 GitHub stars~222 tokensUpdated 6 days ago
    Auto-check passed
  • PR Description

    justxor/claude-code-pro-course

    Готовит заголовок и описание pull request по изменениям в ветке.

    256 GitHub stars~201 tokensUpdated 6 days ago
    Auto-check passed

Questions about Refactor

What does Refactor do?

Безопасный рефакторинг маленькими шагами без изменения поведения. Refactor is an agent skill from justxor/claude-code-pro-course. Безопасный рефакторинг маленькими шагами без изменения поведения.

When should I use Refactor?

Refactor fits situations like: tasks that involve Refactoring.

How do I install Refactor in Claude Code?

Run `npx skills add justxor/claude-code-pro-course --skill refactor -a claude-code`. Or copy the skill folder (starter-kit/.claude/skills/refactor in justxor/claude-code-pro-course) into .claude/skills/refactor in your project. Claude Code loads it when a task matches its description.

How do I install Refactor in Codex?

Run `npx skills add justxor/claude-code-pro-course --skill refactor -a codex`. Or copy the skill folder (starter-kit/.claude/skills/refactor in justxor/claude-code-pro-course) into .agents/skills/refactor in your project. Codex loads it when a task matches its description.

Can I use Refactor in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add justxor/claude-code-pro-course --skill refactor -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/refactor, .gemini/skills/refactor, .github/skills/refactor and .opencode/skills/refactor in your project.

What does Refactor need to run?

SKILL.md names no scripts, command-line tools or credentials: Refactor is instructions for the agent only.

Does Refactor access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Refactor safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Refactor use?

Refactor is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Refactor use?

About 233 tokens (SKILL.md is roughly 932 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Refactor?

Skills that share tags, products or a category with Refactor: Migrate Core Code to Submodules (tinyhumansai/openhuman, 42k stars), Filescope MCP (admica/FileScopeMCP, 302 stars), Gograph Go Repository Intelligence (ozgurcd/gograph, 227 stars) and Auto Devflow (HuangPuStar/FenixAgent, 552 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Refactor?

justxor (a GitHub user) maintains it in justxor/claude-code-pro-course, which has 256 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 1, 2026.

Source: justxor/claude-code-pro-course on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.