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

knip-deadcode

Knip dead code detection best practices for JavaScript and TypeScript projects. Use when configuring Knip, analyzing unused code, setting up CI integration, or cleaning up codebases. Triggers on knip.json, dead code, unused exports, unused dependencies, bundle optimization.

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

설치 방법 보기

포함된 파일(54)

  • SKILL.md7.8 KB
  • assets/templates/_template.md859 B
  • references/_sections.md1.8 KB
  • references/ci-add-to-pipeline.md1.0 KB
  • references/ci-separate-production-check.md1.2 KB
  • references/ci-use-cache.md942 B
  • references/ci-use-max-issues.md1.1 KB
  • references/ci-use-reporters.md1.1 KB
  • references/ci-watch-mode-local.md1.1 KB
  • references/config-avoid-broad-ignore.md1.3 KB
  • references/config-configure-path-aliases.md1.1 KB
  • references/config-enable-plugins-explicitly.md947 B
  • references/config-run-without-config.md1.1 KB
  • references/config-separate-entry-project.md948 B
  • references/config-use-json-schema.md917 B
  • references/config-use-negation-patterns.md910 B
  • references/config-use-production-mode.md1.0 KB
  • references/deps-add-unlisted-deps.md1.1 KB
  • references/deps-avoid-transitive-reliance.md1.1 KB
  • references/deps-configure-plugin-deps.md1.1 KB
  • references/deps-fix-files-first.md1.1 KB
  • references/deps-ignore-conditional-deps.md1.1 KB
  • references/deps-remove-obsolete-types.md1.1 KB
  • references/entry-add-dynamic-imports.md1.1 KB
  • references/entry-exclude-test-files.md1.0 KB
  • references/entry-include-all-entry-points.md1.0 KB
  • references/entry-include-bin-scripts.md1.0 KB
  • references/entry-use-compilers.md1.2 KB
  • references/entry-use-plugin-entries.md1013 B
  • references/entry-verify-with-debug.md1.1 KB
  • references/exports-check-class-members.md1.1 KB
  • references/exports-enable-entry-exports.md1.2 KB
  • references/exports-handle-reexports.md1.1 KB
  • references/exports-ignore-same-file.md1.1 KB
  • references/exports-tag-public-api.md1022 B
  • references/exports-trace-usage.md1.1 KB
  • references/exports-use-include-libs.md1.2 KB
  • references/fix-allow-remove-files.md1.1 KB
  • references/fix-format-after-fix.md1012 B
  • references/fix-review-before-commit.md1.1 KB
  • references/fix-update-deps-after.md1.1 KB
  • references/fix-use-fix-type.md1.1 KB
  • references/perf-filter-issue-types.md1.0 KB
  • references/perf-limit-output.md1.1 KB
  • references/perf-profile-performance.md1.1 KB
  • references/perf-use-bun-runtime.md971 B
  • references/perf-use-cache-flag.md1013 B
  • references/perf-use-workspace-filter.md1.3 KB
  • references/workspace-configure-root-workspace.md1.0 KB
  • references/workspace-ignore-specific.md1.0 KB
  • references/workspace-isolate-for-strict.md1.0 KB
  • references/workspace-list-cross-deps.md1.1 KB
  • references/workspace-per-workspace-plugins.md1.2 KB
  • references/workspace-use-workspace-globs.md1.1 KB

SKILL.md(원문)

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

Community Knip Dead Code Detection Best Practices

Comprehensive guide for detecting and removing dead code in JavaScript and TypeScript projects using Knip. Contains 43 rules across 8 categories, prioritized by impact to guide configuration, CI integration, and cleanup workflows.

When to Apply

Reference these guidelines when:

  • Configuring Knip for a new project or monorepo
  • Investigating false positives or false negatives
  • Setting up CI pipelines to prevent dead code regressions
  • Using auto-fix to clean up unused code
  • Optimizing Knip performance for large codebases

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Configuration FoundationsCRITICALconfig-
2Entry Point StrategyCRITICALentry-
3Workspace & MonorepoHIGHworkspace-
4Dependency AnalysisHIGHdeps-
5Export DetectionMEDIUM-HIGHexports-
6CI IntegrationMEDIUMci-
7Auto-Fix WorkflowMEDIUMfix-
8Performance OptimizationLOW-MEDIUMperf-

Quick Reference

1. Configuration Foundations (CRITICAL)

2. Entry Point Strategy (CRITICAL)

3. Workspace & Monorepo (HIGH)

4. Dependency Analysis (HIGH)

5. Export Detection (MEDIUM-HIGH)

6. CI Integration (MEDIUM)

7. Auto-Fix Workflow (MEDIUM)

8. Performance Optimization (LOW-MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

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

wordbricks/onequery172026년 7월 30일 업데이트

A scoring scale for evaluating how well a CLI is designed for AI agents, based on the "Rewrite Your CLI for AI Agents" principles.

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

wordbricks/onequery172026년 7월 30일 업데이트

Score a repository's agentic legibility from repo-visible evidence only. Use when Codex needs to audit how easy a codebase is for coding agents to discover, bootstrap, validate, and navigate, especially for harness-engineering reviews, developer-experience audits, repo cleanup, or before/after comparisons after improving docs, tooling, or architectural constraints.

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

wordbricks/onequery172026년 7월 30일 업데이트

astro

무료

Expert in Astro framework with static generation and partial hydration patterns

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

wordbricks/onequery172026년 7월 30일 업데이트

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep watching open PRs so fresh review feedback is surfaced promptly. Use when the user asks Codex to monitor a PR, watch CI, handle review comments, or keep an eye on failures and feedback on an open PR.

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

wordbricks/onequery172026년 7월 30일 업데이트

Adopt better-result in an existing TypeScript codebase. Use when replacing try/catch, Promise rejection handling, null sentinels, or thrown domain exceptions with typed Result workflows.

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

wordbricks/onequery172026년 7월 30일 업데이트

wordbricks의 스킬 모두 보기

이 스킬의 문제 신고