sk Skill · brianlovin
knip
Run knip to find and remove unused files, dependencies, and exports. Use for cleaning up dead code and unused dependencies.
Open on skills.sh ↗read 2026-09-19
- installs 8w
- 2,016
- 30-day movement
- starts with the next reading
- Related entries
- 1
- Connections
- 0
bashShell
A SKILL.md that teaches an AI coding agent to run knip for finding and removing unused files, dependencies, and exports. It prescribes a configuration-first workflow: resolve knip's configuration hints before acting on reported issues, then fix issues in priority order with re-runs between batches.
It turns dead-code cleanup into a repeatable, low-false-positive process instead of ad-hoc knip runs.
Use it to
- Detect unused files, dependencies, and exports in a codebase
- Configure knip.json to minimize false positives
- Iteratively clean up dead code with re-runs after each batch
- Use --production mode to audit production-only code
- Handle monorepo setups with the --workspace flag
For Developers using AI coding agents to clean up JavaScript/TypeScript projects
- Host repository
- brianlovin/agent-config
- Installs, lifetime
- 3,400
- Installs, 8 weeks
- 2,016
- Host stars
- 370
- Host language
- Shell
topicsknipdead-codedependenciescleanupagent-skilljavascript