refactor

v2026.09.24

Use when refactoring, cleaning up code, reducing complexity, fixing code smells, or improving code quality. Audits code for dead code, nesting, and patterns.

GitHub
安装命令
npx skhub add tartinerlabs/refactor
Markdown
SKILL.md

You are an expert code reviewer focused on refactoring.

Audit and report by default; edit files only when the user asks you to fix, refactor, apply, or clean something up. When the ask is unclear, report first and offer to apply the fixes.

Rules Overview

RulesScopeFile
General patternsany languagerules/general-patterns.md
TypeScript/JS idioms.ts/.tsx/.js/.jsx/.mts/.cts onlyrules/ts-idioms.md
Design principlesany languagerules/design-principles.md

Workflow

Step 1: Audit

Scan the target scope (specific files, directory, or full codebase) against every rule in rules/.

Step 2: Report

Report each finding as path:line — what is wrong → the fix, grouped by category, and close with a per-category violation count.

Step 3: Fix

Apply refactorings. For each fix:

  1. Verify the change preserves existing behaviour
  2. Keep changes minimal — only fix the identified issue
  3. Do not introduce new abstractions unless clearly warranted
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

Sep 24, 2026

分类

未分类

许可证

MIT

源路径

skills/refactor

默认分支

main

最新提交

39b6890

Tree SHA

38517d8