refactor

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

23|Updated Jan 19, 2025
Ready to run
npx skills add https://github.com/hs-shell/dotbugi --skill refactor-hs-shell
πŸ’¬ Prompt for ChatGPT / Claude Chatβ–Ό
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.