knip
Detect and remove dead code with knip. Use when the user asks to "run knip", "find unused files", "find unused exports", "find unused dependencies", "clean up dead code", "remove dead code", "set up knip", "configure knip", "knip.json", "knip false positive", "knip CI", or mentions a knip config, dependency bloat, bundle bloat from unused imports, or tree-shaking unused exports. Covers the configuration-first workflow, confidence-gated deletion, framework-specific gotchas (Next.js 15+, Tailwind, Storybook, Jest, Bun's test runner and bun build --compile), monorepos, CI integration, and performance tuning.
Pinned to revision 2b717166afc3, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/knip/SKILL.md
- skills/knip/agents/openai.yaml
- skills/knip/references/ci-integration.md
- skills/knip/references/config-patterns.md
- skills/knip/references/exports-advanced.md
- skills/knip/references/monorepo.md
- skills/knip/references/performance.md
- skills/knip/references/project-bun-test.md
- skills/knip/references/project-jest.md
- skills/knip/references/project-nextjs.md
- skills/knip/references/project-storybook.md
- skills/knip/references/project-tailwind.md
Every link opens the file at its source, pinned to the revision this page describes.