Topics / #refactoring

Refactoring projects on GitHub

Tools and automation for restructuring and cleaning up code safely.

As of , the most-starred Refactoring projects on GitHub are clean-code-javascript (94.7K stars), GitNexus (47.9K stars) and serena (30.3K stars). GitHub.Locker tracks 18 Refactoring repositories with 325K stars combined. The fastest-growing on October 16 was serena, with +37 stars in a day.

18Projects
325KStars in total
+100Stars in a day

Hot right now

Most stars gained in a day · Oct 16

The all-time top

18 projects · by stars

  1. #1 · ryanmcdermott/clean-code-javascript

    clean-code-javascript

    This is a guide that adapts the software engineering principles from Robert C. Martin's book 'Clean Code' specifically for JavaScript, with practical bad/good code examples.

    94.7K
  2. #2 · abhigyanpatwari/GitNexus

    GitNexus

    It indexes any codebase into a knowledge graph — dependencies, call chains, clusters, execution flows — and serves it to AI coding agents via MCP tools so they stop making blind edits.

    47.9K
  3. #3 · oraios/serena

    serena

    A free, open-source MCP toolkit that gives AI coding agents IDE-grade semantic tools: symbol-level code retrieval, editing, refactoring and debugging. Its tagline: the IDE for your coding agent.

    30.3K
  1. 4

    YouCompleteMe

    25.9Kycm-core/YouCompleteMe · Python

    YouCompleteMe (YCM) is a fast, as-you-type, fuzzy-search code completion, comprehension and refactoring engine for Vim. It has several completion engines built in and supports any protocol-compliant Language Server, so it can work with practically any language.

  2. 5

    PHP-Parser

    17.5Knikic/PHP-Parser · PHP

    A parser written in PHP that turns PHP code into an abstract syntax tree (AST). Its purpose is to simplify static code analysis and manipulation of PHP code.

  3. 6

    rust-analyzer

    16.9Krust-lang/rust-analyzer · Rust

    rust-analyzer is a language server that provides IDE functionality for writing Rust programs — the code-intelligence engine you use while writing Rust in an editor.

  4. 7

    ast-grep

    16.3Kast-grep/ast-grep · Rust

    ast-grep (sg) is a CLI tool for structural search, linting and rewriting of source code — like grep, but matching the abstract syntax tree instead of raw text.

  5. 8

    vim-go

    16.2Kfatih/vim-go · Vim Script

    vim-go is a Vim plugin that adds Go language support to your editor: compiling, running and testing code, richer syntax highlighting, debugging, and gopls-powered completion and navigation.

  6. 9

    pre-commit

    15.6Kpre-commit/pre-commit · Python

    pre-commit is a framework for managing and running git pre-commit hooks across many programming languages, so you can catch issues (formatting, lint errors, secrets, etc.) before a commit is made.

  7. 10

    rector

    10.4Krectorphp/rector · PHP

    Rector is a PHP tool that instantly upgrades and refactors PHP codebases: it automates upgrades from PHP 5.3 up to 8.5 plus framework migrations, and can keep code quality high continuously via CI.

  8. 11

    sourcegraph-public-snapshot

    10.3Ksourcegraph/sourcegraph-public-snapshot · Go

    Sourcegraph is a code AI platform for working with big, complex codebases: it combines universal code search, code intelligence, and tooling to fix and refactor code at scale.

  9. 12

    jscodeshift

    10Kfacebook/jscodeshift · JavaScript

    A codemod toolkit from Meta for running transform scripts across many JavaScript or TypeScript files at once. Under the hood it wraps recast, an AST-to-AST transformer that tries to preserve the style of your original code.

  10. 13

    repowise

    7.8Krepowise-dev/repowise · Python

    Repowise indexes a codebase once (code, dependency graph, git history, tests, docs, and architectural decisions) and then gives AI agents and developers cited answers, change-impact analysis, and concrete code-health fixes instead of making an agent rediscover the code every time.

  11. 14

    Skills

    4KDimillian/Skills · Shell

    This is a collection of 16 reusable Codex Skills for Apple-platform engineering: SwiftUI/Xcode code review, refactoring, debugging, performance audits, GitHub workflow automation, and multi-agent review and bug-hunt swarms.

  12. 15

    simplify-codebase

    508tt-a1i/simplify-codebase · HTML

    An Agent Skill that helps coding agents prove and safely remove accidental complexity from an existing codebase without changing its real behavior.

  13. 16

    cyclomatic-complexity-skill

    405saurabhkumar8112/cyclomatic-complexity-skill

    A Claude Skill that teaches Claude to measure a function's cyclomatic complexity and refactor the worst offenders instead of leaving tangled branch-heavy code behind.

  14. 17

    reclaim-code-entropy

    205Yevanchen/reclaim-code-entropy

    This is an Agent Skill that guides an AI coding agent through safely simplifying a codebase by hunting down dead code, duplicate logic, and unnecessary abstractions using proof instead of guesswork.

  15. 18

    Coding-Agent-Skills

    2MiniPrincipal/Coding-Agent-Skills

    A library of structured 'skills' that teach AI coding agents (Claude Code, Cursor, GitHub Copilot, Windsurf, OpenAI Codex) how to explore a codebase, implement features, debug, review, test, and refactor code using consistent engineering workflows.

Often tagged together