llmops-demo-ts: Command for Claude Code

.cursor/commands/remove-unused-dependencies.md

remove-unused-dependencies is a command for Claude Code, Cursor from yu-iskw/llmops-demo-ts. It costs 0 tokens per session (364 once invoked), scanned A, original, Apache-2.0.

A workspace maintenance command that finds dependencies no package uses and removes them from package files. A workspace is a project containing multiple related packages managed together.

In plain words
What is it for?
Use it to inspect every package with pnpm and depcheck, remove unused runtime dependencies, refresh the lockfile, and run the full build.
Why use it?
Unused dependencies add clutter and can increase maintenance and security work. The command also updates the lockfile and checks whether the project still builds.

Command for Claude CodeCursor

Written for Cursor and Claude Code: installed under .cursor/, but also a Claude Code command (commands/*.md).

This is yu-iskw/llmops-demo-ts's own configuration. It tells Claude Code and Cursor how to work on llmops-demo-ts itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything llmops-demo-ts configures →

Reuse

Borrowing it

Nothing to install: this file belongs to yu-iskw/llmops-demo-ts. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/yu-iskw/llmops-demo-ts/main/.cursor/commands/remove-unused-dependencies.md
Clone the repo
git clone --depth 1 https://github.com/yu-iskw/llmops-demo-ts

Made for: Claude Code, Cursor.

Wrote 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.

agentmods badge for remove-unused-dependencies

README.md
[![agentmods](https://agentmods.dev/badge/commands/yu-iskw/llmops-demo-ts/remove-unused-dependencies/github.svg)](https://agentmods.dev/commands/yu-iskw/llmops-demo-ts/remove-unused-dependencies)
Your own site
<a href="https://agentmods.dev/commands/yu-iskw/llmops-demo-ts/remove-unused-dependencies"><img src="https://agentmods.dev/badge/commands/yu-iskw/llmops-demo-ts/remove-unused-dependencies/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.

agentmods 80×15 button for remove-unused-dependencies

Your own site · 80×15
<a href="https://agentmods.dev/commands/yu-iskw/llmops-demo-ts/remove-unused-dependencies"><img src="https://agentmods.dev/badge/commands/yu-iskw/llmops-demo-ts/remove-unused-dependencies.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 364 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00364
Opus 5 $0.00000 $0.00182
Sonnet 5 $0.00000 $0.00073
Haiku 4.5 $0.00000 $0.00036

Measured 6d ago against content hash ef85fcdd61b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

remove-unused-dependencies 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 6d 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.

.cursor/commands/remove-unused-dependencies.md · 58 lines

What it actually says

Remove Unused Dependencies

This command analyzes and removes unused dependencies from all packages in the workspace using pnpm and depcheck.

Steps

  1. Analyze Dependencies: Run depcheck on all workspace packages to identify unused dependencies
  2. Remove Unused Dependencies: Automatically remove identified unused dependencies from package.json files
  3. Update Lockfile: Run pnpm install to update the lockfile
  4. Verify Build: Run the full build to ensure no breaking changes

Prerequisites

  • pnpm must be installed
  • depcheck must be available (installed via pnpm dlx)

Usage

Run this command from the project root directory. Execute these steps:

  1. Analyze dependencies recursively across all workspace packages:

    pnpm recursive exec -- pnpm dlx depcheck
    

    Note: This command will show unused dependencies for each package. Review the output and manually remove unused dependencies from each package.json file.

  2. Update lockfile after removing dependencies:

    pnpm install
    
  3. Verify build:

    pnpm build
    

What Gets Removed

The command identifies and removes:

  • Unused runtime dependencies across all workspace packages
  • Unused development dependencies across all workspace packages
  • Unused type definitions across all workspace packages

Recursive Operations

The pnpm recursive exec command runs depcheck analysis across all packages in the workspace, allowing you to identify unused dependencies in each package simultaneously.

Safety

  • Only removes dependencies that are confirmed unused by static analysis
  • Preserves workspace references and internal imports
  • Verifies build integrity after changes
Changes

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.

  1. 6d ago First seen · 58 lines · 0 tokens per session scan A ef85fcdd61b5

Subscribe to this mod's changes

remove-unused-dependencies is a command published in the GitHub repository yu-iskw/llmops-demo-ts (6 stars, last pushed 9d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 364 tokens. 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-09-04.