Toolverse
All skills

refactor

by github

Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
github
Category
Frontend
Views
35

About this skill

Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.

How to use

  1. Zidentyfikuj kod wymagający refaktoringu. Szukaj fragmentów, które są trudne do zrozumienia, zbyt długie, zawierają powtórzenia lub utrudniają dodawanie nowych funkcji. Umiejętność najlepiej sprawdza się, gdy masz jasny cel — na przykład zmniejszenie złożoności funkcji lub poprawę nazewnictwa zmiennych.

  2. Upewnij się, że kod jest pokryty testami. Refaktoringu nie powinno się wykonywać na kodzie produkcyjnym bez testów — najpierw dodaj testy, aby mieć pewność, że zachowanie się nie zmieni.

  3. Poproś umiejętność o refaktoringu, wskazując konkretny problem. Możesz użyć poleceń takich jak "refaktoruj tę funkcję", "wyodrębnij tę logikę", "zmień nazwy zmiennych na bardziej zrozumiałe" lub "usuń zapachy kodu".

  4. Przeanalizuj zaproponowane zmiany. Umiejętność będzie sugerować małe, bezpieczne kroki — ekstrakcję funkcji, zmianę nazw, rozbicie dużych metod. Każda zmiana powinna zachowywać oryginalne zachowanie kodu.

  5. Zastosuj zmiany stopniowo i testuj po każdym kroku. Nie łącz refaktoringu z dodawaniem nowych funkcji — rób jedno naraz. Po każdej zmianie uruchom testy, aby potwierdzić, że nic się nie złamało.

  6. Zatwierdź zmiany w kontroli wersji. Commituj po każdym bezpiecznym stanie, aby móc łatwo cofnąć się w razie problemów.

Related skills

browser-use

by browser-use

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, or extract information from web pages.

Frontend
23107

shadcn-ui

by josechifflet

shadcn/ui component patterns for Next.js 16 applications. This skill should be used when adding UI components, customizing component styles, composing primitives, or integrating forms with react-hook-form. Covers installation, customization, composition patterns, and

Frontend
157206

web-research

by langchain-ai

Use this skill for requests related to web research; it provides a structured approach to conducting comprehensive web research

Frontend
18114

landing-page-guide-v2

by bear2u

Create distinctive, high-converting landing pages that combine proven conversion elements with exceptional design quality. Build beautiful, memorable landing pages using Next.js 14+ and ShadCN UI that avoid generic AI aesthetics while following the 11 essential elements

Frontend
3486

markitdown

by K-Dense-AI

Convert various file formats (PDF, Office documents, images, audio, web content, structured data) to Markdown optimized for LLM processing. Use when converting documents to markdown, extracting text from PDFs/Office files, transcribing audio, performing OCR on images, extracting

Frontend
75173

dev-browser

by SawyerHood

Browser automation with persistent page state. Use when users ask to navigate websites, fill forms, take screenshots, extract web data, test web apps, or automate browser workflows. Trigger phrases include \

Frontend
38151