refactor

Apply project-specific rules to fix convention violations in changed files.

23|Updated Jan 19, 2025
One-click install
npx skills add https://github.com/hs-shell/dotbugi --skill refactor-hs-shell
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refactor
Source: https://github.com/hs-shell/dotbugi/tree/main/.claude/skills/refactor
Command: npx skills add https://github.com/hs-shell/dotbugi --skill refactor-hs-shell

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

리팩토링 및 컨벤션 적용이 필요한 PR 전 코드 정리 작업을 자동으로 준비합니다.

Core Features & Use Cases

  • 변경된 파일을 수집하고, 적용할 규칙을 결정합니다.
  • 규칙 위반을 탐지하고, 변경 범위에 한해 리팩토링을 수행합니다.
  • PR 전 코드 품질과 일관성을 확보합니다.

Quick Start

Run this skill on your repository to automatically fix rule violations in changed files.

Frequently Asked Questions about refactor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate refactoring to enforce coding conventions on changed files before a PR?

Automating refactoring applies project-specific rules to changed files. It collects diffs, detects convention violations, performs targeted fixes, and reports outcomes to ensure pre-merge code quality.

What is the best way to fix lint violations only within a git diff?

Fixing lint violations within a git diff involves analyzing the diff against applicable rules. This skill detects convention violations in the changed lines and performs targeted refactoring to resolve them.

How does detecting convention violations in changed source trees work?

Detecting convention violations works by collecting changed files and determining applicable project rules. It then analyzes the git diff to identify and perform targeted fixes exclusively on the modified code.

Can I use this refactoring skill with TypeScript projects to enforce code quality standards?

Yes, it works with TypeScript projects to enforce code quality standards. It applies project-specific coding conventions to changed files, ensuring your TypeScript diffs meet the required lint and style rules.

Does this refactoring skill modify files outside of the detected git diff range?

No, it performs targeted fixes strictly within the changed range. It analyzes the git diff to detect convention violations and limits its refactoring actions to the modified files to ensure safe pre-merge cleanup.