Agent skill

Code Refactor Master

by yennanliu in yennanliu/CS_basics

Code refactoring expert for improving code quality, readability, maintainability, and performance.

No licenceAuto-check passedDevelopment

Install Code Refactor Master

skills CLI
$ npx skills add yennanliu/CS_basics --skill code-refactor-master -a claude-code

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

GitHub CLI
$ gh skill install yennanliu/CS_basics code-refactor-master --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/yennanliu/CS_basics.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/code-refactor-master .claude/skills/code-refactor-master && 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
code-refactor-master
GitHub stars
142
Token cost
~3.3k tokens
SKILL.md length
520 words
Files
1
Skills in repo
16
Repo updated
First seen
Licence
None found

At a glance

Code refactoring expert for improving code quality, readability, maintainability, and performance.

  • Works in 10 steps: Core Rules → Common Code Smells → Refactoring Catalog → …
  • Refactoring code
  • SKILL.md covers When to use this Skill, Refactoring Principles, Refactoring Anti-Patterns and Project Context, plus 1 more section
  • Calls git and mvn

What it does

Code Refactor Master is an agent skill from yennanliu/CS_basics. Code refactoring expert for improving code quality, readability, maintainability, and performance. Specializes in Java and Python refactoring patterns, eliminating code smells, and applying clean code principles. Use when refactoring code, improving existing implementations, or cleaning up technical debt.

Its SKILL.md is about 3.3k 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 and Code quality. It works with Java and Python. The repository describes itself as: My CS learning : algorithm, data structure, and system design | SE.

When your agent uses it

  • Refactoring code
  • Improving existing implementations
  • Cleaning up technical debt

Example prompts

  • “/code-refactor-master”

Requirements

  • Python 3
  • Pre-approved tools (allowed-tools): Read, Glob, Grep, Edit

Workflow steps

10 steps, taken from the step headings in SKILL.md.

  1. Core Rules
  2. Common Code Smells
  3. Refactoring Catalog
  4. Java-Specific Refactorings
  5. Python-Specific Refactorings
  6. Clean Code Principles
  7. Performance Refactorings
  8. Refactoring Workflow
  9. Refactoring Checklist
  10. LeetCode-Specific Refactoring

What it can do on your machine

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

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Glob
    • Grep
    • Edit

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • mvn

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

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    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

Code Refactor Master loads about 3.3k tokens when it runs. Until then it costs about 82 tokens; SKILL.md has 520 words of instructions outside code blocks.

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

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

Without a licence we can't republish the file, so here is its outline and opening line. It has 520 words (~3,317 tokens).

name
code-refactor-master
allowed-tools
Read, Glob, Grep, Edit

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .claude/skills/code-refactor-master of yennanliu/CS_basics.

Open the folder on GitHubat commit d51b258

Compare with similar skills

Code Refactor Master 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.

Code Refactor Master compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Code Refactor Master this skillyennanliu/CS_basics142—~3.3kAutomated safety check: PassNone
Code Revieweralirezarezvani/claude-skills28k1 repos~1.6kAutomated safety check: PassMIT
Dignified Python Standardsdocling-project/docling68k—~1.5kAutomated safety check: PassApache-2.0
Code Review Skillawesome-skills/code-review-skill2.1k—~2.8kAutomated safety check: NotesMIT
Cross-Language Coding Standardszereight/gitlab-mcp2k1 repos~1.4kAutomated safety check: PassMIT
Odoo Workflowunclecatvn/agent-skills143—~4.7kAutomated safety check: PassMIT

Similar skills

  • Code Reviewer

    alirezarezvani/claude-skills

    Code review automation for TypeScript, JavaScript, Python, Go, Swift, Kotlin, C, .NET, Java, C, C++, Rust, Ruby, PHP, and Dart/Flutter.

    28k GitHub starsUsed in 1 repo~1.6k tokens
    DevelopmentAuto-check passed
  • Dignified Python Standards

    docling-project/docling

    Applies opinionated production Python conventions chosen by the project's Python version: modern type syntax, pathlib, explicit checks and interface guidance.

    68k GitHub stars~1.5k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Code Review Skill

    awesome-skills/code-review-skill

    Provides comprehensive code review guidance for React 19, Vue 3, Angular 17+, Svelte 5, Rust, TypeScript, Java, Java 8, PHP, Ruby, Rails, Python, Django, FastAPI, Go, C/.NET, Kotlin, Swift, Dart…

    2.1k GitHub stars~2.8k tokensUpdated 29 days ago
    DevelopmentAuto-check: notes
  • Shared reference for naming, function size, complexity and error handling rules that reviewer agents apply across TypeScript, Python, Go, Rust, Java, C# and Swift.

    2k GitHub starsUsed in 1 repo~1.4k tokens
    DevelopmentAuto-check passed
  • Odoo Workflow

    unclecatvn/agent-skills

    Mandatory pre-code gate and definition-of-done for ANY Odoo change (add field, override method, inherit view/xpath, OWL/JS patch, wizard, cron, controller, report, security, migration, bug fix…

    143 GitHub stars~4.7k tokensUpdated 13 days ago
    DevelopmentAuto-check passed
  • Code Review Excellence

    andrew-yangy/gru-ai

    Provides comprehensive code review guidance for React 19, Vue 3, Rust, TypeScript, Java, Python, and C/C++.

    155 GitHub stars~1.7k tokensUpdated 7 mo ago
    DevelopmentAuto-check: notes

More from yennanliu/CS_basics

All 16 skills in this repo
  • Lc Coach

    yennanliu/CS_basics

    FAANG coding-interview coach. An agent skill from yennanliu/CS_basics.

    142 GitHub stars~5k tokensUpdated today
    Auto-check: notes
  • L3 Core

    yennanliu/CS_basics

    Report where the L3 core set stands and pick the next problems to drill from it.

    142 GitHub stars~2.2k tokensUpdated today
    Auto-check: notes
  • Lc Again

    yennanliu/CS_basics

    Move a problem's README status cell after a re-solve — promote AGAIN to OK when it was genuinely re-derived unaided, add a review pass when it was not, or demote OK back to AGAIN when a solid…

    142 GitHub stars~2.4k tokensUpdated today
    Auto-check: notes
  • Lc Algo Demo

    yennanliu/CS_basics

    Add or edit an algorithm visualizer under algodemo/ against the shared contract the other 36 pages already obey — colours read from the VIZ palette and never hardcoded, no re-implementation of the…

    142 GitHub stars~2.4k tokensUpdated today
    Auto-check: notes
  • Lc Cheatsheet

    yennanliu/CS_basics

    File a LeetCode problem into the cheatsheets under doc/cheatsheet/ the way the existing sections are written — find the sheet whose Scope line owns the topic, file it under the pattern it belongs to…

    142 GitHub stars~3.5k tokensUpdated today
    Auto-check: notes
  • Lc Discussion

    yennanliu/CS_basics

    Search recent LeetCode Discuss posts (leetcode.com/discuss/) by keyword — a company, a level, a round — read the ones that describe real interview questions, map each question to an LC number, check…

    142 GitHub stars~2k tokensUpdated today
    Auto-check: notes

Works with

Categories

Questions about Code Refactor Master

What does Code Refactor Master do?

Code refactoring expert for improving code quality, readability, maintainability, and performance. Code Refactor Master is an agent skill from yennanliu/CS_basics. Code refactoring expert for improving code quality, readability, maintainability, and performance.

When should I use Code Refactor Master?

Code Refactor Master fits situations like: refactoring code; improving existing implementations; cleaning up technical debt.

How do I install Code Refactor Master in Claude Code?

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

How do I install Code Refactor Master in Codex?

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

Can I use Code Refactor Master 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 yennanliu/CS_basics --skill code-refactor-master -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/code-refactor-master, .gemini/skills/code-refactor-master, .github/skills/code-refactor-master and .opencode/skills/code-refactor-master in your project.

What does Code Refactor Master need to run?

Going by SKILL.md and its folder, Code Refactor Master needs the command-line tools its instructions call (git and mvn). Our summary lists: Python 3. Its frontmatter pre-approves these tools: Read, Glob, Grep, Edit.

Does Code Refactor Master access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Code Refactor Master 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 Code Refactor Master use?

No licence was found for Code Refactor Master or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Code Refactor Master use?

About 3.3k tokens (SKILL.md is roughly 13k 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 Code Refactor Master?

Skills that share tags, products or a category with Code Refactor Master: Code Reviewer (alirezarezvani/claude-skills, 28k stars), Dignified Python Standards (docling-project/docling, 68k stars), Code Review Skill (awesome-skills/code-review-skill, 2.1k stars) and Cross-Language Coding Standards (zereight/gitlab-mcp, 2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Code Refactor Master?

yennanliu (a GitHub user) maintains it in yennanliu/CS_basics, which has 142 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on October 7, 2026.

Source: yennanliu/CS_basics on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.