Agent skill

Fix Knip Unused Exports

by Factory-AI in Factory-AI/factory-plugins

Fix knip "Unused exports" violations. An agent skill from Factory-AI/factory-plugins.

No licenceAuto-check passed

Install Fix Knip Unused Exports

skills CLI
$ npx skills add Factory-AI/factory-plugins --skill fix-knip-unused-exports -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Factory-AI/factory-plugins fix-knip-unused-exports --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Factory-AI/factory-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/typescript/skills/fix-knip-unused-exports .claude/skills/fix-knip-unused-exports && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
fix-knip-unused-exports
GitHub stars
111
Token cost
~2.5k tokens
SKILL.md length
1,165 words
Files
1
Skills in repo
13
Repo updated
First seen
Licence
None found

At a glance

Fix knip "Unused exports" violations. An agent skill from Factory-AI/factory-plugins.

  • Works in 2 steps: Identify Violations → Classify Each Violation
  • Npm run knip reports unused exports
  • SKILL.md covers When to Use, When NOT to Use, Workflow and Fix: Test-Only Exports…, plus 5 more sections
  • Calls npm and rg

What it does

Fix Knip Unused Exports is an agent skill from Factory-AI/factory-plugins. Fix knip "Unused exports" violations. Handles all violation categories: test-only exports (extract to new file), dead barrel re-exports (remove from index.ts), and internally-only-used exports (un-export). Use when npm run knip reports unused exports.

Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with npm. The repository describes itself as: Official Factory plugins marketplace.

When your agent uses it

  • Npm run knip reports unused exports

Example prompts

  • “Unused exports”
  • “/fix-knip-unused-exports”

Workflow steps

2 steps, taken from the step headings in SKILL.md.

  1. Identify Violations
  2. Classify Each Violation

What it can do on your machine

Read from SKILL.md and the folder at commit 7166a07. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm
    • rg

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Fix Knip Unused Exports loads about 2.5k tokens when it runs. Until then it costs about 69 tokens; SKILL.md has 1,165 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~69
When it runs · the whole SKILL.md, loaded when a task matches
~2.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 1,165 words (~2,473 tokens).

“Fix knip "Unused exports" violations. There are several categories of violation, each with a different fix strategy.”

— opening of SKILL.md by Factory-AI
name
fix-knip-unused-exports

Read the full SKILL.md on GitHub

Files

Just SKILL.md in plugins/typescript/skills/fix-knip-unused-exports of Factory-AI/factory-plugins.

Open the folder on GitHubat commit 7166a07

Compare with similar skills

Fix Knip Unused Exports next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Fix Knip Unused Exports compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Fix Knip Unused Exports this skillFactory-AI/factory-plugins111—~2.5kAutomated safety check: PassNone
Defuddlekepano/obsidian-skills49k11 repos~208Automated safety check: PassMIT
Vercel Deploybytedance/deer-flow84k10 repos~797Automated safety check: PassMIT
Knap Markdown Templateskepano/obsidian-skills49k2 repos~986Automated safety check: PassMIT
MCP Server BuildershareAI-lab/learn-claude-code78k4 repos~1.2kAutomated safety check: PassMIT
Nx Run Tasksnomcopter/react-mosaic4.8k8 repos~613Automated safety check: PassCustom licence

Similar skills

  • Defuddle

    kepano/obsidian-skills

    Uses the Defuddle CLI to pull clean, readable Markdown, JSON or metadata from web pages, stripping navigation, ads and clutter to save tokens.

    49k GitHub starsUsed in 11 repos~208 tokens
    Knowledge ManagementAuto-check passed
  • Vercel Deploy

    bytedance/deer-flow

    Deploys a project to Vercel with one script and no login, then returns a live preview URL and a claim link for moving the deployment into your own Vercel account.

    84k GitHub starsUsed in 10 repos~797 tokens
    DevOps & CloudAuto-check passed
  • Knap Markdown Templates

    kepano/obsidian-skills

    Renders Markdown notes from Knap templates and JSON data on the command line, including notes built from Defuddle web page output.

    49k GitHub starsUsed in 2 repos~986 tokens
    Documents & OfficeAuto-check passed
  • MCP Server Builder

    shareAI-lab/learn-claude-code

    Walks through building MCP servers in Python or TypeScript that expose tools, resources and prompts to Claude, with templates, registration and testing.

    78k GitHub starsUsed in 4 repos~1.2k tokens
    Agent WorkflowsAuto-check passed
  • Nx Run Tasks

    nomcopter/react-mosaic

    Helps with running tasks in an Nx workspace. An agent skill from nomcopter/react-mosaic.

    4.8k GitHub starsUsed in 8 repos~613 tokens
    DevelopmentAuto-check passed
  • Validates OpenHarness features by running real multi-turn agent loops with live LLM calls against an unfamiliar codebase, checking actual tool execution.

    16k GitHub starsUsed in 1 repo~2.1k tokens
    Testing & QAAuto-check: notes

More from Factory-AI/factory-plugins

All 13 skills in this repo
  • Autoresearch

    Factory-AI/factory-plugins

    Autonomous experiment loop for optimization research. An agent skill from Factory-AI/factory-plugins.

    111 GitHub stars~4.2k tokensUpdated today
    Auto-check passed
  • Ban Type Assertions

    Factory-AI/factory-plugins

    Ban as type assertions in a package via the @typescript-eslint/consistent-type-assertions lint rule, replacing them with compiler-verified type-safe alternatives.

    111 GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Browser Navigation

    Factory-AI/factory-plugins

    Automate browser interactions for web testing, form filling, screenshots, and data extraction.

    111 GitHub stars~2.7k tokensUpdated today
    Auto-check passed
  • Commit Security Scan

    Factory-AI/factory-plugins

    Analyze code changes for security vulnerabilities using LLM reasoning and threat model patterns.

    111 GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Create PR

    Factory-AI/factory-plugins

    Create a pull request with Conventional Commits formatting, a templated body, and local verification.

    111 GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Droid Control

    Factory-AI/factory-plugins

    Control terminal TUIs, browsers, and native desktop apps for testing, demos, QA, and computer-use tasks.

    111 GitHub stars~3.6k tokensUpdated today
    Auto-check: notes

Works with

Questions about Fix Knip Unused Exports

What does Fix Knip Unused Exports do?

Fix knip "Unused exports" violations. An agent skill from Factory-AI/factory-plugins. Fix Knip Unused Exports is an agent skill from Factory-AI/factory-plugins. Fix knip "Unused exports" violations.

When should I use Fix Knip Unused Exports?

Fix Knip Unused Exports fits situations like: npm run knip reports unused exports.

How do I install Fix Knip Unused Exports in Claude Code?

Run `npx skills add Factory-AI/factory-plugins --skill fix-knip-unused-exports -a claude-code`. Or copy the skill folder (plugins/typescript/skills/fix-knip-unused-exports in Factory-AI/factory-plugins) into .claude/skills/fix-knip-unused-exports in your project. Claude Code loads it when a task matches its description.

How do I install Fix Knip Unused Exports in Codex?

Run `npx skills add Factory-AI/factory-plugins --skill fix-knip-unused-exports -a codex`. Or copy the skill folder (plugins/typescript/skills/fix-knip-unused-exports in Factory-AI/factory-plugins) into .agents/skills/fix-knip-unused-exports in your project. Codex loads it when a task matches its description.

Can I use Fix Knip Unused Exports in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Factory-AI/factory-plugins --skill fix-knip-unused-exports -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/fix-knip-unused-exports, .gemini/skills/fix-knip-unused-exports, .github/skills/fix-knip-unused-exports and .opencode/skills/fix-knip-unused-exports in your project.

What does Fix Knip Unused Exports need to run?

Going by SKILL.md and its folder, Fix Knip Unused Exports needs the command-line tools its instructions call (npm and rg).

Does Fix Knip Unused Exports access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Fix Knip Unused Exports safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Fix Knip Unused Exports use?

No licence was found for Fix Knip Unused Exports or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Fix Knip Unused Exports use?

About 2.5k tokens (SKILL.md is roughly 9.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Fix Knip Unused Exports?

Skills that share tags, products or a category with Fix Knip Unused Exports: Defuddle (kepano/obsidian-skills, 49k stars), Vercel Deploy (bytedance/deer-flow, 84k stars), Knap Markdown Templates (kepano/obsidian-skills, 49k stars) and MCP Server Builder (shareAI-lab/learn-claude-code, 78k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Fix Knip Unused Exports?

Factory-AI (a GitHub organization) maintains it in Factory-AI/factory-plugins, which has 111 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on October 7, 2026.

Source: Factory-AI/factory-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.