wiring-over-deletion

wiring-over-deletion is a cursor rule for Cursor from arango-solutions/arango-sparql-py. It costs 484 tokens per session, scanned A, original, MIT.

A coding rule that treats unused code as a possible unfinished feature rather than code to remove. It gives examples for handling unused variables, imports, parameters, and test values.

In plain words
What is it for?
Use it during code review and implementation to trace, connect, return, handle, or test supposedly unused code before considering deletion.
Why use it?
It prevents linters from prompting destructive cleanup that could hide incomplete behavior or remove needed context.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it during code review and implementation to trace, connect, return, handle, or test supposedly unused code before considering deletion.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/arango-solutions/arango-sparql-py/wiring-over-deletion
Install

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.

Clone the repo
git clone --depth 1 https://github.com/arango-solutions/arango-sparql-py

Made for: 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 wiring-over-deletion

README.md
[![agentmods](https://agentmods.dev/badge/rules/arango-solutions/arango-sparql-py/wiring-over-deletion/github.svg)](https://agentmods.dev/rules/arango-solutions/arango-sparql-py/wiring-over-deletion)
Your own site
<a href="https://agentmods.dev/rules/arango-solutions/arango-sparql-py/wiring-over-deletion"><img src="https://agentmods.dev/badge/rules/arango-solutions/arango-sparql-py/wiring-over-deletion/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 wiring-over-deletion

Your own site · 80×15
<a href="https://agentmods.dev/rules/arango-solutions/arango-sparql-py/wiring-over-deletion"><img src="https://agentmods.dev/badge/rules/arango-solutions/arango-sparql-py/wiring-over-deletion.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 484 This file is loaded in full into every session.
When invoked 484 The same file — it is already loaded in full.
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.00484 $0.00484
Opus 5 $0.00242 $0.00242
Sonnet 5 $0.00097 $0.00097
Haiku 4.5 $0.00048 $0.00048

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

Security

Grade A, and why

wiring-over-deletion 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.

.cursor/rules/wiring-over-deletion.mdc · 42 lines

What it actually says

Wiring Over Deletion

"Unused code often represents missing features, not garbage."

When you see a linter warning about an unused import, variable, or parameter, it is NOT a request to delete it. It is a request to finish the implementation.

You are FORBIDDEN from deleting "unused" code without first proving it is truly obsolete.

Decision Matrix

Go

  • VAR declared but not used → Log it, return it, or trace it. NEVER _ = score
  • ctx parameter unused → Pass ctx to every DB call, HTTP request, or sub-function
  • err variable unused → Handle it: if err != nil { return fmt.Errorf("context: %w", err) }

React/TypeScript

  • 'MyIcon' defined but never used → Render it where it belongs
  • Prop 'isEnabled' defined but never used → Wire it: conditional rendering, class toggling, or logic gate
  • useEffect has missing dependencies → Stabilize the dependency (useCallback, useMemo). NEVER eslint-disable

Imports

  • 'some-lib' imported but never used → Implement the feature that needs it. NEVER delete just to silence the linter unless the entire feature was scrapped

Tests

  • Unused write to field → Assert or log it to prove test setup executed
  • Unused parameter 't' → Shadow it in sub-tests: t.Run("sub", func(t *testing.T) { ... })

Wire-It Checklist

  1. Semantic Value — Does the name suggest meaningful data? → Wire to UI/logs
  2. Structural Integrity — Is it a system parameter (ctx, config)? → Pass it down
  3. Intent — Was it just added in the previous turn? → IT IS MANDATORY TO USE IT

"A passing linter check on a broken feature is a failure. A failing linter check on a working feature is just a todo."

Do not clean the house by throwing out the furniture.

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 · 42 lines · 484 tokens per session scan A e10112a1b01c

Subscribe to this mod's changes

wiring-over-deletion is a cursor rule published in the GitHub repository arango-solutions/arango-sparql-py (2 stars, last pushed 2d ago), licensed MIT. It adds 484 tokens to every session, about $0.0024 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.