unused-code-cleaner — for Claude Code unused-code-cleaner, resume-with-chatbot, community, for Claude Code, ide skills, bash git diff --name-only HEAD, staged 파일 포함 시, bash git diff --name-only HEAD --staged, 제외 대상, 파일 (타입 선언) - 설정 파일 (

v1.0.0

关于此技能

适用场景: Ideal for AI agents that need unused code cleaner. 本地化技能摘要: # Unused Code Cleaner AI 코드 생성 후 발생하는 불필요한 코드를 자동으로 정리한다. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

功能特性

Unused Code Cleaner
AI 코드 생성 후 발생하는 불필요한 코드를 자동으로 정리한다.
git diff --name-only HEAD
git diff --name-only HEAD --staged
git diff --name-only <base ..<target

# 核心主题

gihwan-dev gihwan-dev
[0]
[0]
更新于: 5/2/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 8/11

This page remains useful for teams, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution
Review Score
8/11
Quality Score
43
Canonical Locale
ko
Detected Body Locale
ko

适用场景: Ideal for AI agents that need unused code cleaner. 本地化技能摘要: # Unused Code Cleaner AI 코드 생성 후 발생하는 불필요한 코드를 자동으로 정리한다. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

核心价值

推荐说明: unused-code-cleaner helps agents unused code cleaner. Unused Code Cleaner AI 코드 생성 후 발생하는 불필요한 코드를 자동으로 정리한다. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

适用 Agent 类型

适用场景: Ideal for AI agents that need unused code cleaner.

赋予的主要能力 · unused-code-cleaner

适用任务: Applying Unused Code Cleaner
适用任务: Applying AI 코드 생성 후 발생하는 불필요한 코드를 자동으로 정리한다
适用任务: Applying git diff --name-only HEAD

! 使用限制与门槛

  • 限制说明: git diff --name-only HEAD
  • 限制说明: git diff --name-only HEAD --staged
  • 限制说明: git diff --name-only <base ..<target

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.
  • - The underlying skill quality score is below the review floor.

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

评审后的下一步

先决定动作,再继续看上游仓库材料

Killer-Skills 的主价值不应该停在“帮你打开仓库说明”,而是先帮你判断这项技能是否值得安装、是否应该回到可信集合复核,以及是否已经进入工作流落地阶段。

实验室 Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

常见问题与安装步骤

以下问题与步骤与页面结构化数据保持一致,便于搜索引擎理解页面内容。

? FAQ

unused-code-cleaner 是什么?

适用场景: Ideal for AI agents that need unused code cleaner. 本地化技能摘要: # Unused Code Cleaner AI 코드 생성 후 발생하는 불필요한 코드를 자동으로 정리한다. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

如何安装 unused-code-cleaner?

运行命令:npx killer-skills add gihwan-dev/resume-with-chatbot/unused-code-cleaner。支持 Cursor、Windsurf、VS Code、Claude Code 等 19+ IDE/Agent。

unused-code-cleaner 适用于哪些场景?

典型场景包括:适用任务: Applying Unused Code Cleaner、适用任务: Applying AI 코드 생성 후 발생하는 불필요한 코드를 자동으로 정리한다、适用任务: Applying git diff --name-only HEAD。

unused-code-cleaner 支持哪些 IDE 或 Agent?

该技能兼容 Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer。可使用 Killer-Skills CLI 一条命令通用安装。

unused-code-cleaner 有哪些限制?

限制说明: git diff --name-only HEAD;限制说明: git diff --name-only HEAD --staged;限制说明: git diff --name-only <base ..<target。

安装步骤

  1. 1. 打开终端

    在你的项目目录中打开终端或命令行。

  2. 2. 执行安装命令

    运行:npx killer-skills add gihwan-dev/resume-with-chatbot/unused-code-cleaner。CLI 会自动识别 IDE 或 AI Agent 并完成配置。

  3. 3. 开始使用技能

    unused-code-cleaner 已启用,可立即在当前项目中调用。

! 参考页模式

此页面仍可作为安装与查阅参考,但 Killer-Skills 不再把它视为主要可索引落地页。请优先阅读上方评审结论,再决定是否继续查看上游仓库说明。

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

unused-code-cleaner

# Unused Code Cleaner AI 코드 생성 후 발생하는 불필요한 코드를 자동으로 정리한다. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows. Unused Code Cleaner

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

Unused Code Cleaner

AI 코드 생성 후 발생하는 불필요한 코드를 자동으로 정리한다.

워크플로우

1. 변경된 파일 확인

bash
1git diff --name-only HEAD

staged 파일 포함 시:

bash
1git diff --name-only HEAD --staged

특정 커밋/브랜치 비교 시:

bash
1git diff --name-only <base>..<target>

2. TS/JS 파일 필터링

확장자 필터: .ts, .tsx, .js, .jsx

제외 대상:

  • node_modules/
  • .d.ts 파일 (타입 선언)
  • 설정 파일 (*.config.ts, *.config.js)

3. 파일별 분석 및 수정 (적응형 병렬화)

변경 파일 수에 따른 분석 전략:

2개 이하: 순차 분석 (기존 방식)

각 파일을 직접 읽고 아래 패턴을 찾아 제거합니다.

3개 이상: 병렬 분석 → 순차 수정

3-A: 병렬 분석

각 파일의 unused 코드를 Task sub-agent로 동시 탐지합니다:

Task call:
  subagent_type: "general-purpose"
  model: "haiku"
  description: "Detect unused code in [파일명]"
  run_in_background: true
  prompt: |
    Analyze the following file for unused code. DO NOT modify any files.
    Only report what you find.

    File to analyze: [파일 경로]

    Check for these patterns:
    1. Unused exports: Run `git diff HEAD -- [파일]` to find newly added exports,
       then search the project for imports of each export name.
    2. Unused functions: Functions defined but never called within the file or project.
    3. Unused types/interfaces: Type declarations not referenced anywhere.
    4. Commented code blocks: Code blocks that are commented out (preserve TODO/FIXME/NOTE comments).
    5. Orphan console.log: Debugging console.log statements.

    For unused exports, verify by searching the project:
    - Check for dynamic imports: import() patterns
    - Check barrel files (index.ts) for re-exports
    - Check if used in test files

    Output a JSON-like report:
    {
      "file": "[파일 경로]",
      "findings": [
        {"type": "unused_export", "name": "...", "line": N, "confidence": "high/medium"},
        {"type": "unused_function", "name": "...", "line": N, "confidence": "high/medium"},
        ...
      ]
    }

    Only report findings with medium or high confidence.

모든 파일의 분석 Task가 완료될 때까지 대기합니다.

3-B: 순차 수정

오케스트레이터가 모든 분석 결과를 수집한 후:

  1. 각 finding을 검토하여 false positive 제거 (특히 cross-file 의존성 확인)
  2. confidence가 "high"인 것부터 순차적으로 파일을 수정
  3. confidence가 "medium"인 것은 한번 더 확인 후 수정

수정은 반드시 오케스트레이터가 직접 수행합니다 (sub-agent의 동시 파일 수정 방지).

제거 대상 (lint/TS로 못 잡는 것들)

패턴설명
Unused exports새로 추가된 export 중 프로젝트 어디서도 import 안 되는 것
Unused functions정의 후 호출되지 않는 함수
Unused types/interfaces참조되지 않는 타입 선언
Commented code blocks주석 처리된 코드 블록 (설명 주석은 유지)
Orphan console.log디버깅용으로 추가된 console.log

Unused Export 탐지 방법

  1. git diff로 새로 추가된 export 식별:
bash
1git diff HEAD -- <file> | grep "^+" | grep -E "export (const|function|class|type|interface|enum)"
  1. 프로젝트 전체에서 해당 export가 import되는지 확인:
bash
1grep -r --include="*.ts" --include="*.tsx" --include="*.js" --include="*.jsx" "import.*<export_name>.*from" . 2grep -r --include="*.ts" --include="*.tsx" --include="*.js" --include="*.jsx" "{ <export_name>" .
  1. 어디서도 import 안 되면 삭제

주의사항

  • 동적 import (import())로 사용될 수 있으므로 해당 패턴도 검색
  • barrel file (index.ts)에서 re-export되는 경우 추적
  • 주석 중 TODO, FIXME, NOTE, 설명 주석은 유지

4. 수정 적용

파일 수정 후 변경 사항 요약 출력:

  • 제거된 import 수
  • 제거된 변수/함수 수
  • 제거된 코드 라인 수
  • (병렬 분석 시) 분석 방식 요약: 파일 수, 병렬 에이전트 수

사용 예시

사용자: 방금 작업한 코드 unused 정리해줘
사용자: git diff 보고 불필요한 코드 삭제해
사용자: dead code 클린업

相关技能

寻找 unused-code-cleaner 的替代方案 (Alternative) 或可搭配使用的同类 community Skill?探索以下相关开源技能。

查看全部

openclaw-release-maintainer

Logo of openclaw
openclaw

本地化技能摘要: 🦞 # OpenClaw Release Maintainer Use this skill for release and publish-time workflow. It covers ai, assistant, crustacean workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

333.8k
0
AI

widget-generator

Logo of f
f

本地化技能摘要: Generate customizable widget plugins for the prompts.chat feed system # Widget Generator Skill This skill guides creation of widget plugins for prompts.chat . It covers ai, artificial-intelligence, awesome-list workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf

149.6k
0
AI

flags

Logo of vercel
vercel

本地化技能摘要: The React Framework # Feature Flags Use this skill when adding or changing framework feature flags in Next.js internals. It covers blog, browser, compiler workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

138.4k
0
浏览器

pr-review

Logo of pytorch
pytorch

本地化技能摘要: Usage Modes No Argument If the user invokes /pr-review with no arguments, do not perform a review . It covers autograd, deep-learning, gpu workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

98.6k
0
开发者工具