check-if-data-is-safe-to-delete

check-if-data-is-safe-to-delete is a skill for Claude Code, Codex from everywan-dev/claude-code-engineering. It costs 45 tokens per session (1,448 once invoked), scanned A, original, Apache-2.0.

A guide for deciding whether a table, file, or service can be removed safely. It uses real access measurements and reversible steps instead of assuming that an unused-looking item is unneeded.

In plain words
What is it for?
Use it when reviewing old data, files, or services before decommissioning or deleting them.
Why use it?
Searching code or checking timestamps can miss runtime, scheduled, external, or human users. Measuring usage and renaming first makes deletion safer.

Skill for Claude CodeCodex

Part of the claude-code-engineering plugin — 53 skills, 1 command, 8 agents, 1 hook shipped together

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.

agentmods
npx agentmods add skills/everywan-dev/claude-code-engineering/check-if-data-is-safe-to-delete
Any agent
npx skills add everywan-dev/claude-code-engineering --skill check-if-data-is-safe-to-delete
Clone the repo
git clone --depth 1 https://github.com/everywan-dev/claude-code-engineering

Made for: Claude Code, Codex.

Or install claude-code-engineering, the plugin that ships this one along with the rest of its 53 skills, 1 command, 8 agents, 1 hook.

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 check-if-data-is-safe-to-delete

README.md
[![agentmods](https://agentmods.dev/badge/skills/everywan-dev/claude-code-engineering/check-if-data-is-safe-to-delete.svg)](https://agentmods.dev/skills/everywan-dev/claude-code-engineering/check-if-data-is-safe-to-delete)
Your own site
<a href="https://agentmods.dev/skills/everywan-dev/claude-code-engineering/check-if-data-is-safe-to-delete"><img src="https://agentmods.dev/badge/skills/everywan-dev/claude-code-engineering/check-if-data-is-safe-to-delete.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,448 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00045 $0.01448
Opus 5 $0.00023 $0.00724
Sonnet 5 $0.00009 $0.00290
Haiku 4.5 $0.00005 $0.00145

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

Security

Grade A, and why

check-if-data-is-safe-to-delete 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 5d 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/check-if-data-is-safe-to-delete/SKILL.md · 140 lines

How it starts

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

Check if data is safe to delete

Something looks unused. A table nobody mentions, a file with an old timestamp, a service nobody remembers deploying. The question is whether it can go.

The answer is almost never obtainable by looking. It has to be measured, and the usual way of measuring it is wrong.

The rule

Absence of evidence is not evidence of absence. Every method below tells you "this thing is used". None of them tells you "this thing is unused" — they only fail to find a user, which is a different statement.

So the procedure is not "prove it is dead". It is: measure real access, then make deletion reversible, then wait, then delete.

What does not work

Method Why it fails
🔴 Searching the codebase for the name Access can be built at runtime, come from another repository, from a scheduled job, from a stored procedure, from a report tool, from a person with a client open
Last modified time A read-heavy object is never modified. Old mtime is the normal state of something critical
"Nobody on the team knows what it is" This describes the team's memory, not the system
Nothing broke in the test environment The test environment is missing whichever caller is the dangerous one
A traffic graph that is flat Check the window. Flat over 24 hours says nothing about a monthly job

What does work

What the engine reports about actual access. Almost every system that stores things keeps its own access counters, and those counters see callers you cannot find any other way:

  • A database engine → its per-table access statistics: scans, index lookups, rows fetched, last-accessed timestamp.
  • A filesystem → access times, if atime is not disabled. Verify that it is not before trusting a reading.
  • A service → its own request log or metrics, and the connection table on the host.

Take the reading over a window long enough to include the slowest cycle you know about: nightly, weekly, monthly, and — for anything financial or regulatory — annual.

Read the full file on GitHub · 140 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. 5d ago First seen · 140 lines · 45 tokens per session scan A 2be4557defa4

Subscribe to this mod's changes

check-if-data-is-safe-to-delete is a skill published in the GitHub repository everywan-dev/claude-code-engineering (2 stars, last pushed 4d ago), licensed Apache-2.0. It adds 45 tokens to every session and 1,448 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

claude-project-manifest

Creates annotated bibliography-style manifests for Claude projects, tracking files, conversation threads, and relationships with unique IDs and annotations. Use when documenting project contents, creating file inventories, tracking conversation history, or building navigable knowledge maps.

organvm-iv-taxis/a-i--skills · 50 tokens

proofpress

Preserve or inspect decision history for Markdown and static HTML knowledge artifacts with Proofpress. Use when creating or accepting a meaningful revision to an ADR, design doc, PRD, README, strategy note, portable .md artifact, or static .html/.htm artifact in a configured repository, or when receiving a file…

chenmingtang830/proofpress · 82 tokens

book-to-skill

Use when convert technical books and documents (PDF, EPUB, DOCX, HTML, Markdown, RTF, MOBI) into structured agent skills with frameworks, mental models, chapter references, and decision rules. Includes full extraction pipeline. Use when the user wants to turn a book or document collection into a reusable agent skill…

oyi77/1ai-skills · 74 tokens

proofpress-governed-context

Use Proofpress governed context when a task must rely on or hand off durable agent-produced knowledge, including evidence-backed decisions, experiment results, integration contracts, or incident learnings. Retrieve eligible context before relying on it; submit bounded proposals and receipts when a durable outcome is…

chenmingtang830/proofpress · 78 tokens

llm-wiki

Maintain a personal team knowledge base using the LLM Wiki pattern — incremental ingest, query, and lint operations on a layered wiki architecture.

TheSmuks/ai-project-template · 31 tokens

Principle Synthesizer

Synthesize invariant principles from 3+ sources — find the core that survives across all expressions.

live-neon/skills · 25 tokens