Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add zacharygcook/agent-skills --skill fix-knip-unused-exportsgit clone --depth 1 https://github.com/zacharygcook/agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/zacharygcook/agent-skills/fix-knip-unused-exports)<a href="https://agentmods.dev/skills/zacharygcook/agent-skills/fix-knip-unused-exports"><img src="https://agentmods.dev/badge/skills/zacharygcook/agent-skills/fix-knip-unused-exports/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/zacharygcook/agent-skills/fix-knip-unused-exports"><img src="https://agentmods.dev/badge/skills/zacharygcook/agent-skills/fix-knip-unused-exports.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00059 | $0.00435 |
| Opus 5 | $0.00030 | $0.00217 |
| Sonnet 5 | $0.00012 | $0.00087 |
| Haiku 4.5 | $0.00006 | $0.00044 |
Grade A, and why
fix-knip-unused-exports scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Fix Knip Unused Exports
Unused-export reports are small but easy to “fix” incorrectly. Search the whole repository, classify the contract, then make the smallest truthful change.
Workflow
- Run the repository's Knip command from its expected root.
- Search each symbol globally and separately outside tests.
- Inspect package entry points, export maps, generated imports, and dynamic consumers.
- Classify the finding.
- Apply the preferred fix.
- Rerun Knip plus focused typecheck, lint, and tests.
Classification
| Category | Evidence | Preferred fix |
|---|---|---|
| Internally used | Referenced only in its defining module | Remove export |
| Dead code | No real caller | Delete it and newly orphaned helpers |
| Dead barrel entry | Re-exported but not consumed | Remove the re-export |
| Test-only seam | Export exists only for tests | Test public behavior or extract a genuinely shared helper |
| Real consumer | Production/generated/dynamic consumer exists | Correct Knip entry/config/export metadata |
Do not add broad ignores, dummy imports, speculative barrel exports, or @public comments solely to silence the tool.
Contract Checks
Before removing a package export, inspect:
package.jsonexports and types;- workspace consumers and build scripts;
- framework conventions for discovered files;
- code generation and dynamic import strings;
- documentation examples that form a supported API.
When deleting a value, remove stale tests, imports, docs, and adjacent helpers only after confirming they have no independent use. Preserve intentional public APIs even when the current monorepo has no internal consumer; document that decision in Knip configuration narrowly.
Handoff
Report each classification, the change made, any intentional suppression, and validation results.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 46 lines · 59 tokens per session scan A 763c59ac5852
fix-knip-unused-exports is a skill published in the GitHub repository zacharygcook/agent-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 59 tokens to every session and 435 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
html-ppt-zhangzara-block-frame
Rescuing a messy startup deck into a board-grade system — the diagnosis, the page grammar, and the rebuilt proof pages. Built as a decision-grade design craft deck for founders, exec presenter.
build-test
Run the project's build / typecheck / lint / test commands and emit the build.passing + tests.passing signals devloop convergence reads.
patch-edit
Apply one rewrite-plan step at a time as small reviewable file edits, never rewriting whole files when a localised change suffices.
doca-flow
Build and debug DOCA Flow applications on supported NVIDIA NICs/DPUs: define match/action pipes, initialize ports and representors, choose forwarding targets, validate pipes before hardware programming, read counters, match the Flow version to the installed DOCA release, and diagnose Flow API errors. Trigger on DOCA…
dynamo-interconnect-check
Validate that a Dynamo deployment's NIXL/UCX/NCCL interconnect is ready for disaggregated serving over RDMA/NVLink. Use after recipe-runner brings a deployment up (especially disagg/multi-node) to confirm the KV transport is correct; use troubleshoot for diagnosing already-failed pods.
mcore-create-issue
Investigate a failing GitHub Actions run or job and create a GitHub issue for the failure.