♻️
QualityPython

Refactor

by luongnv89

Refactor is a Quality skill for Claude Code, published by luongnv89 in claude-howto.

41K stars5K forkson luongnv89/claude-howtoAdded 2026/08/13Repository updated 2026/08/06
claude-codeguidetutorial
Install in seconds
Install Refactor
Copy Refactor into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/luongnv89/claude-howto/tree/main/vi/03-skills/refactor ~/.claude/skills/refactor

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/luongnv89/claude-howto.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
vi/03-skills/refactor/SKILL.md in luongnv89/claude-howto
Installs to
~/.claude/skills/refactor
Collection
One of 25 skills cataloged from this repository
Category
Quality1354 skills

What Refactor does

Refactor guides systematic code refactoring based on Martin Fowler's methodology, focusing on incremental, test-backed changes that preserve behavior and reduce technical debt. Use it when asked to refactor code, improve structure, eliminate code smells, or improve maintainability.

Refactor is cataloged under Quality on DirSkills. Refactor comes from a repository tagged claude-code, guide and tutorial.

Documentation

README

Code Refactoring Skill

Một cách tiếp có hệ thống để refactor code dựa trên Refactoring: Improving the Design of Existing Code (ấn bản 2) của Martin Fowler. Skill này nhấn mạnh các thay đổi tăng dần, an toàn được hỗ trợ bởi tests.

"Refactoring là quá trình thay đổi một hệ thống phần mềm theo cách mà nó không làm thay đổi hành vi bên ngoài của code nhưng cải thiện cấu trúc nội bộ của nó." — Martin Fowler

Nguyên Tắc Cốt Lõi

  1. Bảo Tồn Hành Vi: Hành vi bên ngoài phải không thay đổi
  2. Các Bước Nhỏ: Thực hiện các thay đổi nhỏ, có thể test
  3. Được Dẫn Bởi Test: Tests là lưới an toàn
  4. Liên Tục: Refactoring là liên tục, không phải sự kiện một lần
  5. Hợp Tác: Cần sự chấp thuận của người dùng tại mỗi giai đoạn

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Refactor

  • What else does luongnv89 publish alongside Refactor?

    Refactor is one of 25 skills that DirSkills catalogs from luongnv89/claude-howto, the repository it ships in. Its siblings there include API Documentation Generator, API Documentation Generator and Blog Draft. Each one is a separate skill with its own page in this directory, installs the same way Refactor does, and is maintained by luongnv89 in that same repository. The rest of the collection is listed on the luongnv89/claude-howto page.

  • How does Refactor compare to other Quality skills?

    Refactor ranks #69 by stars among the 1354 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Refactor against them. Open each page to compare what they document and how they install.

More from luongnv89/claude-howto

Refactor is one of 25 skills cataloged on DirSkills from luongnv89/claude-howto.

See all 25 skills
📝
3w ago

API Documentation Generator

API Documentation Generator creates accurate API documentation from source code, including OpenAPI specifications, endpoint references, SDK examples, and integration guides. Use it when creating or updating API docs, generating OpenAPI specs, or documenting endpoints.
Writing
41K5K
📄
3w ago

API Documentation Generator

API Documentation Generator creates comprehensive, accurate API documentation from source code. Use it to generate OpenAPI specifications, endpoint docs, SDK usage examples, and integration guides.
Writing
41K5K
📝
3w ago

Blog Draft

Blog Draft guides you through drafting blog posts from ideas and research, including resource collection, outlining, iterative writing, and version control. Use it when you want to turn a topic or reference material into a structured article draft with citations.
Writing
41K5K
📝
3w ago

Blog Draft

Blog Draft guides research, brainstorming, outlining, and iterative drafting of blog posts. Use it to turn ideas and resources into structured, cited article drafts with version tracking.
Writing
41K5K
✍️
3w ago

Blog Draft

Blog Draft guides users from idea to a versioned blog post draft through research, outlining, iterative writing, and citation management. Use it when you want to write a blog post or prepare an article from sources.
Writing
41K5K
📝
3w ago

Blog Draft

Blog Draft turns ideas and source resources into researched, cited blog post drafts using a step-by-step workflow with user approvals and git versioning. Use it when someone wants to write or update a blog post.
Writing
41K5K