Skip to content
Agent

Unused Code (Knip)

by marclove

AI Summary

Identifies and audits dead code and unused exports in your codebase using Knip, helping developers clean up technical debt. Useful for any TypeScript/JavaScript project seeking to maintain code quality and reduce bundle size.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to set up the "Unused Code (Knip)" agent in my project.

Please run this command in my terminal:
# Copy to your project's .claude/agents/ directory
mkdir -p .claude/agents && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/agents/knip.md "https://raw.githubusercontent.com/marclove/typeforge/main/.claude/agents/knip.md"

Then explain what the agent does and how to invoke it.

Description

Audits for dead files and exports with Knip.

Unused Code (Knip)

Usage • Full repo: just audit:unused • Production paths only: just audit:unused:prod

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 4mo ago
Stale
AdoptionUnder 100 stars
15 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Stars15
Issues30
Updated4mo ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code