vs-dce

vs-dce is a skill for Claude Code from JSungMin/vs-token-safer. It costs 128 tokens per session (994 once invoked), scanned A, original, MIT.

A preview-only tool that traces how functions, classes, or other code symbols are connected through a language server. It reports code that is provably unused without deleting anything.

In plain words
What is it for?
Use it to inspect unused code in C/C++, C#/.NET, JavaScript/TypeScript, and Python projects, including large monorepos, after providing starting symbols.
Why use it?
It helps identify dead code while avoiding automatic changes, and warns when an unprepared C++ code index could make live code appear unused.

Skill for Claude Code

Written for Claude Code: $CLAUDE_PLUGIN_ROOT variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the vs-token-safer plugin — 3 skills, 6 commands, 1 agent, 1 MCP server, 1 plugin shipped together

Good fit Use it to inspect unused code in C/C++, C#/.NET, JavaScript/TypeScript, and Python projects, including large monorepos, after providing starting symbols.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add JSungMin/vs-token-safer
Claude Code
/plugin install vs-token-safer

Made for: Claude Code.

Or install vs-token-safer, the plugin that ships this one along with the rest of its 3 skills, 6 commands, 1 agent, 1 MCP server, 1 plugin.

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 vs-dce

README.md
[![agentmods](https://agentmods.dev/badge/skills/jsungmin/vs-token-safer/vs-dce/github.svg)](https://agentmods.dev/skills/jsungmin/vs-token-safer/vs-dce)
Your own site
<a href="https://agentmods.dev/skills/jsungmin/vs-token-safer/vs-dce"><img src="https://agentmods.dev/badge/skills/jsungmin/vs-token-safer/vs-dce/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 vs-dce

Your own site · 80×15
<a href="https://agentmods.dev/skills/jsungmin/vs-token-safer/vs-dce"><img src="https://agentmods.dev/badge/skills/jsungmin/vs-token-safer/vs-dce.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 128 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 994 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.00128 $0.00994
Opus 5 $0.00064 $0.00497
Sonnet 5 $0.00026 $0.00199
Haiku 4.5 $0.00013 $0.00099

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

Security

Grade A, and why

vs-dce 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 9d 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.

skills/vs-dce/SKILL.md · 53 lines

How it starts

The opening of the file, as written. The whole thing — 53 lines — stays where its author put it; the contents beside it link to each section on GitHub.

vs-token-safer — dead-code elimination (preview only)

Topological dead-code analysis built on the OFFICIAL language-server call graph (clangd / Roslyn / tsserver / pyright). You name seed symbol(s); it walks callers/callees to a fixpoint and classifies every reachable symbol. The output is token-capped (names + file:line, no source bodies). Nothing leaves the machine.

How to run

Prefer the vts_admin MCP tool (it runs in the warm server process; vts is often not on PATH in Bash). Fall back to the bundled CLI via node:

vts_admin { "op": "dce", "params": { "seed": "Foo", "projectPath": "<root>" } }
# several seeds:  "params": { "seeds": "Foo,Bar", "projectPath": "<root>", "entry": "main,registerPlugin" }
# CLI fallback:   node "$CLAUDE_PLUGIN_ROOT/server/cli.js" dce --seed Foo --projectPath <root>

Warm-index requirement (C++/clangd). The call graph must be warm. A cold or large clangd tree (e.g. an Unreal monorepo, ~26k TUs) under-reports callers, so a live symbol could look DEAD — dce therefore REFUSES on a cold clangd index. Scope + build first: vts setup --scope Source then vts preindex (or keep the MCP server warm), then re-run. allowCold=true inspects a cold index with every verdict forced to INCONCLUSIVE (never DEAD). TypeScript/Python/C# index on open and are not gated.

Show the result verbatim. Buckets: DEAD (no live caller, in safe deletion order) · HELD (still called) · ENTRY (kept root: main / public API / a name passed via entry) · INCONCLUSIVE (unresolved or the caller set couldn't be proven complete).

Two modes. Default = caller-cascade (start from seeds, follow callers). Pass roots to switch to reachability / mark-sweep (the Go-deadcode/RTA model): liveness is computed FORWARD from the named entry points, so a missing caller can't cause a false DEAD — only an incomplete root set can (the reference verify catches it). Roots are framework-agnostic — name them (roots="main,RunTests") or commit a team-curated .vts-index/dce-roots.json. vts hard-codes NO framework markers (no UFUNCTION / @Route / [Test]); you declare your own entry points, the same charter-pure mechanism as the committable concept-synonyms file.

Read the full file on GitHub · 53 lines

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. 9d ago First seen · 53 lines · 128 tokens per session scan A afb0658f17ad

Subscribe to this mod's changes

vs-dce is a skill published in the GitHub repository JSungMin/vs-token-safer (11 stars, last pushed yesterday), licensed MIT. It adds 128 tokens to every session and 994 once invoked, about $0.0006 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-30.

Related

Other skills, from other repositories

clipper1

Use when maintaining legacy code that depends on Clipper 1.x API for polygon clipping and offsetting. Clipper1: the original widely-deployed polygon boolean library. Prefer Clipper2 for new projects.

znlgis/opengis-skills · 46 tokens

clipper2

Use when performing high-performance 2D polygon boolean operations (union, intersection, difference, XOR) and offsetting via C++, C#, or Python bindings. Clipper2: the modern polygon clipping library with robust numerical handling.

znlgis/opengis-skills · 50 tokens

entity-design

Design EF Core entities with navigation properties, value objects, Fluent API configuration, and audit fields. Use when creating new database entities, adding relationships, configuring owned types, designing a domain model for Entity Framework Core, or setting up table-per-hierarchy inheritance.

andresharpe/dotbot · 54 tokens

tech-preflight-dotnet

Verify .NET SDK compatibility, map project dependency graphs, and run baseline builds before code changes. Use when starting a new task, onboarding to a .NET solution, checking environment readiness, or diagnosing build failures from SDK mismatches.

andresharpe/dotbot · 52 tokens

cpp-debugging

Use when a C++ failure involves memory lifetime, undefined behavior, native crashes, or debugger-only state — debug with symbols, sanitizers, and platform-native debuggers before patching symptoms.

drvoss/everything-copilot-cli · 42 tokens

aspnet-core

ASP.NET Core 8+ with controllers, services, DI, configuration, and middleware pipeline. Covers Program.cs setup and enterprise patterns. USE WHEN: user mentions "ASP.NET Core", "Web API", ".NET controllers", "Program.cs", "dependency injection", ".NET DI", ".NET configuration", "appsettings" DO NOT USE FOR: Minimal…

claude-dev-suite/claude-dev-suite · 111 tokens