본문으로 건너뛰기
cccskills
무료GitHub에 공개

refactor

Scan the project for refactoring opportunities, then fix them. No behavior/visual changes.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md1.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Refactor

Identify and fix code quality issues across the project without changing behavior, visuals, or public API.

Constraints

  • NEVER change behavior, visuals, or public API
  • NEVER add new dependencies
  • NEVER add features or functionality
  • Run pnpm check after all changes to verify no type errors were introduced

Phase 1: Scan (read-only, use Agents for token efficiency)

Launch an Explore agent to scan src/ for issues in these categories:

  1. Dead code: unused imports, unreachable branches, commented-out code, unused exports
  2. Oversized components: .svelte files > 300 lines that mix unrelated concerns and could be split (skip files with a // NOTE: Large file by design comment — these have been reviewed and deemed unsplittable)
  3. Redundant state: $state that duplicates or could be $derived from other state
  4. Copy-paste: near-duplicate code blocks across files that should share a helper
  5. Bug risks: unguarded async, missing cleanup, event listener leaks, race conditions
  6. Inefficiency: unnecessary re-computation, work in hot paths, unbounded allocations

Skip lines marked with // REFACTOR-OK: <reason> — these have been reviewed and intentionally kept as-is.

Output a numbered list of findings with file paths and line numbers, sorted by severity (high → low). Do NOT fix anything yet.

Phase 2: User approval

Present the findings list to the user. Ask which items to fix (e.g. "all", specific numbers, or "skip"). Wait for the user to respond before proceeding.

Phase 3: Fix approved items

Fix only approved items, one at a time. After all fixes, run pnpm check to verify.

Briefly summarize what was changed.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

adr

무료

Create a new Architecture Decision Record (ADR) for a proposed feature or design change.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

im9/inboil22026년 10월 17일 업데이트

adr-done

무료

Mark an ADR as Implemented (or Superseded) and archive it, following INDEX.md conventions.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

im9/inboil22026년 10월 17일 업데이트

Scan the codebase for security vulnerabilities. Check OWASP top 10, input validation, auth, crypto, and known BACKLOG security items.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

im9/inboil22026년 10월 17일 업데이트

Check docs/ai/ spec files and ADRs for inconsistencies with the actual codebase. Report only, no modifications.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

im9/inboil22026년 10월 17일 업데이트

sync-docs

무료

Check docs/ai/ spec files and ADRs for inconsistencies with the codebase, then fix all discrepancies.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

im9/inboil22026년 10월 17일 업데이트

im9의 스킬 모두 보기

이 스킬의 문제 신고