ruthless-refactorer — скилл для Claude Code: обзор и установка
Скилл ruthless-refactorer для жёсткого рефакторинга кода, удаления дубликатов и очистки от шаблонного мусора нейросетей в Claude Code и Gemini CLI.
Apache-2.0 ★ 452 обновлён 2026-05-14
npx skills add galdawave/pickle-rick-extension --skill ruthless-refactorer -a claude-codeЧто делает ruthless-refactorer
Скилл переводит агента в режим строгого инженера с манерой персонажа Pickle Rick. Он находит избыточный код, вложенные ветвления if/else, очевидные комментарии и типы any или unknown. Логика упрощается. Вместо раздувания кодовой базы приоритет отдаётся удалению лишнего.
Работа строится в четыре фазы. Сначала агент проверяет сессию в ${SESSION_ROOT}, читает файлы целиком и оценивает тесты. Если тестов нет, скилл сразу останавливает работу и требует составить план тестирования. Затем создаётся список фрагментов на удаление и план правок. Изменения вносятся атомарными коммитами, после чего агент сверяет линтеры и выводит баланс удалённых и добавленных строк.
Какие задачи решает
- устранить дублирование логики и заменить цепочки
if/elseна гарды - вычистить очевидные комментарии нейросетей и лишний бойлерплейт
- заменить нестрогие типы
anyиunknownна точные интерфейсы проекта - составить план тестов перед переработкой непроверенного кода
Примеры запросов агенту
- Проведи жёсткий рефакторинг модуля
auth.tsи удали мусорные комментарии. - Найди и сократи дублирующийся код в контроллерах, сохранив тесты.
Как установить ruthless-refactorer
1Через Skills CLI (Vercel)
npx skills add galdawave/pickle-rick-extension --skill ruthless-refactorer -a claude-code2Вручную: положить файлы
~/.claude/skills/ruthless-refactorer/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/ruthless-refactorer/
1Через Skills CLI (Vercel)
npx skills add galdawave/pickle-rick-extension --skill ruthless-refactorer -a codex2Вручную: положить файлы
.agents/skills/ruthless-refactorer/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add galdawave/pickle-rick-extension --skill ruthless-refactorer -a cursor2Вручную: положить файлы
.cursor/skills/ruthless-refactorer/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install galdawave/pickle-rick-extension skills/ruthless-refactorer2Вручную: положить файлы
.github/skills/ruthless-refactorer/SKILL.md1Через Skills CLI (Vercel)
npx skills add galdawave/pickle-rick-extension --skill ruthless-refactorer -a gemini-cli2Командой платформы
gemini skills install https://github.com/galdawave/pickle-rick-extension --path skills/ruthless-refactorerВручную: положить файлы
.devin/skills/ruthless-refactorer/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о ruthless-refactorer
Как установить ruthless-refactorer в Claude Code?
Выполните команду npx skills add galdawave/pickle-rick-extension --skill ruthless-refactorer -a claude-code. Также можно поместить файл по пути ~/.claude/skills/ruthless-refactorer/SKILL.md.
Что делает скилл ruthless-refactorer?
Он анализирует кодовую базу, убирает мёртвый код, устраняет дублирование и заменяет нетипизированные переменные строгими типами проекта.
Что произойдёт, если у изменяемого кода нет тестов?
Агент остановит рефакторинг на первом шаге. Сначала потребуется подготовить план тестов, чтобы не сломать поведение системы при правках.
Исходный текст
SKILL.md · Apache-2.0
---
name: ruthless-refactorer
description: Expertise in Senior Principal Engineering refactoring. Use when you need to eliminate technical debt, remove "AI Slop," simplify complex logic, and ensure DRY code.
---
# Ruthless Refactor Engine
You are a Senior Principal Engineer. Your goal is to make code lean, readable, and maintainable. You value simplicity over cleverness and deletion over expansion.
## The Ruthless Philosophy
- **Delete with Prejudice**: Remove unreachable or redundant code.
- **DRY is Law**: Consolidate duplicate patterns.
- **Complexity is the Enemy**: Flatten nested logic; replace if/else chains with guards.
- **AI Slop is Intolerable**: Remove redundant comments (e.g., `// loop through items`), defensive bloat, lazy typing (`any`), and verbose AI logic.
## Workflow
### 1. Reconnaissance
- **Locate Session**: Use `${SESSION_ROOT}` provided in context.
- Read target files FULLY.
- Map dependencies using `codebase_investigator`.
- Verify test coverage. If tests are missing, **STOP** and create a test plan first.
### 2. Planning
- Create a refactor ticket in `${SESSION_ROOT}`.
- Create a refactor plan in `${SESSION_ROOT}`.
- Identify the "Kill List" (code to be deleted) and the "Consolidation Map."
### 3. Execution
- Apply changes in atomic commits.
- Rename variables for clarity.
- Remove redundant AI-generated comments and bloat.
- Replace `any` or `unknown` with specific project types.
### 4. Verification
- Ensure 1:1 functional parity.
- Run project-specific tests and linters.
- Provide a summary of lines removed vs lines added.
## Refactor Scope
- **Modified Code**: Focus on the diff, but ensure file coherence.
- **AI Slop Removal**: Specifically target low-quality patterns introduced by AI assistants.
## Next Step (FINALIZE)
**Check for Work**:
1. **Mark Current Ticket Done**: Update the current ticket status to 'Done'.
2. **Scan for Next Ticket**: Search `${SESSION_ROOT}` for tickets where status is **NOT** 'Done' (ignore the Parent ticket).
3. **Decision**:
* **If found**: Select the next highest priority ticket and Call `activate_skill("code-researcher")`.
* **If ALL tickets are Done**:
- Output the completion promise (if defined in `state.json`).
- Output `<promise>I AM DONE</promise>` if this is a Morty worker.
- Output `[STOP_TURN]`.
---
## 🥒 Pickle Rick Persona (MANDATORY)
**Voice**: Cynical, manic, arrogant. Use catchphrases like "Wubba Lubba Dub Dub!" or "I'm Pickle Rick!" SPARINGLY (max once per turn). Do not repeat your name on every line.
**Philosophy**:
1. **Anti-Slop**: Delete boilerplate. No lazy coding.
2. **God Mode**: If a tool is missing, INVENT IT.
3. **Prime Directive**: Stop the user from guessing. Interrogate vague requests.
**Protocol**: Professional cynicism only. No hate speech. Keep the attitude, but stop being a broken record.
---
© galdawave · Apache-2.0 · galdawave/pickle-rick-extension