/jonhill90-skills:safe-deletionfrom jonhill90-skills
Gates destructive file and live-work operations by verifying the target's actual contents or state match its described purpose before removing or killing it. Prevents irreversible deletion of mismatched files, processes, or containers.
Ships in jonhill90-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Deletion is irreversible. Run this gate before any destructive operation — on a file or on live work — including when the user explicitly says to delete or kill it.
ls -la,
git ls-files, ps, lsof, or equivalent). Never delete or kill
blind.old-logs, tmp, backup, or scratch that
contains source code, schema definitions, documents, or the only
copy of anything does NOT match its description. A process or
session described as idle or finished that is still holding
in-progress state does NOT match its description either.Applies to shell removals (rm, find -delete, git clean), file
tools, and bulk overwrites. For version-controlled paths, prefer
recoverable operations (git rm, a commit before cleanup) and say so.
It also applies to killing live work: a running process, session, or
container is a deletion target too, and deserves the same "look at the
target before you destroy it" treatment — it can hold in-progress state
that was never written down anywhere, so killing it blind is as
irreversible as rm on the wrong directory.
A structural change — a schema migration, a session-manager change, any change that requires tearing down the live container work runs in — will sometimes destroy in-flight work if applied by force to something already running. Don't force it. Land the change so it takes effect for new work, and let currently-running work finish and drain into the new shape on its own schedule. Never kill a unit of live, in-progress work just to make a migration land everywhere at once — the migration can wait for attrition; the work usually can't be redone for free.
Portable incident: three attempts at a structural change destroyed live work by force-killing the containers holding it; a fourth attempt cost nothing by landing the change passively and letting running units drain on their own schedule.
Live work is not the same as leaked work. Reaping something already
dead — a process whose parent exited, a session past its own timeout, a
container from a test fixture that outlived the test — is ordinary
cleanup, not a violation of this rule. The test is whether the target
holds live, unrecoverable work, not whether killing it is convenient.
Apply step 1 of the gate to decide: check what state the target actually
holds and whether anything upstream of it is still alive, before
deciding it's safe to reap. A leaked process may still resist a plain
signal (e.g. needing SIGKILL after SIGTERM is ignored) — that's a
detail of how you clean it up, not a reason to skip verifying first.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jonhill90/skills --plugin jonhill90-skills44 skills in this plugin
/adopt-or-buildDecide, per component, whether to adopt an existing name, dependency, library, or tool or build it in-house, weighing blast radius over convenience. Use at the point a name or dependency is about to be chosen or recommended — before it is proposed, not after. Not for finding a technology's capability ceiling (research-the-limit), not the mechanism for genuinely different reviewer lenses (ask-a-council, which this skill may call), and not a substitute for attacking the chosen answer (devils-advocate, which this skill invokes as its final step)./ask-a-councilConvene several harnesses or models against one question, each doing a distinct job it can fail at — different evidence, a different objective, or a withheld conclusion — before an artifact becomes load-bearing and being wrong is expensive. Diversity comes from what each reviewer is given, never from a character it plays. Use when the failure modes genuinely differ in kind — a single reviewer's prompt would only catch what its own lens looks for. Not for a question a cheap deterministic check settles (run the check first); not for one reviewer's prompt (sanity-check owns that); not for dispatch mechanics or isolation boundaries (dispatching-subagents owns those); not for trusting a verdict already returned (verify-the-instrument owns that)./central-hub-mcpOrient on Central Hub through its read-only hub-mcp server — call hub_orient first, then only the targeted tool the answer still needs — and connect an AI harness to hub-mcp. Use when a session needs live Central Hub state (c1 cluster apps, the agent notebook, the bi-temporal fact graph, open PRs and CI), when hub-mcp tools appear in the tool list, or when configuring Claude Code, Codex CLI, Claude Desktop, Copilot, Antigravity, Pi, OpenClaw, Hermes, Paperclip, Rex, or another MCP client to reach hub-mcp./close-the-loopConfirm you have everything needed to finish a change before starting it — what to implement, how it will be tested, and which rules govern it. Use before non-trivial work, when reviewing a plan for completeness, or when preparing a PR that needs planning evidence./create-skillDesign, create, and validate portable Agent Skills with effective triggers, concise instructions, and reusable scripts, references, or assets. Use when adding a new skill, substantially restructuring an existing skill, or validating a skill's structure, frontmatter, links, and bundled scripts./decide-by-variantBuild several genuinely different real artifacts in the real medium with fake data, and let the human pick by looking, instead of asking a taste decision in prose. Use whenever a decision has no objectively right answer — a glyph, a layout, a default, a name, a wording, a sort order — and describing the options in words would cost the human more thought than looking at them would. Run determine-intent first — if the answer is already a known parameter, build nothing. Not for getting different positions from agents on one question (ask-a-council); not for attacking an answer once chosen (devils-advocate runs after a variant is picked, not instead of building one).