layerkit-deletion-first

layerkit-deletion-first is a skill for Claude Code, Codex from hariharapanigrahy/layerkit. It costs 53 tokens per session (559 once invoked), scanned A, original, MIT.

A set of working rules for Layerkit projects that puts deleting or rewriting existing code before adding new code.

In plain words
What is it for?
Use it before implementation, integration updates, or large rewrites to identify what can be removed and define a small proof that the new direction works.
Why use it?
It helps prevent unnecessary files, abstractions, and code growth by requiring existing work to be checked first.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it before implementation, integration updates, or large rewrites to identify what can be removed and define a small proof that the new direction works.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hariharapanigrahy/layerkit/layerkit-deletion-first
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.

Any agent
npx skills add hariharapanigrahy/layerkit --skill layerkit-deletion-first
Clone the repo
git clone --depth 1 https://github.com/hariharapanigrahy/layerkit

Made for: Claude Code, Codex.

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 layerkit-deletion-first

README.md
[![agentmods](https://agentmods.dev/badge/skills/hariharapanigrahy/layerkit/layerkit-deletion-first.svg)](https://agentmods.dev/skills/hariharapanigrahy/layerkit/layerkit-deletion-first)
Your own site
<a href="https://agentmods.dev/skills/hariharapanigrahy/layerkit/layerkit-deletion-first"><img src="https://agentmods.dev/badge/skills/hariharapanigrahy/layerkit/layerkit-deletion-first.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 559 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.00053 $0.00559
Opus 5 $0.00026 $0.00280
Sonnet 5 $0.00011 $0.00112
Haiku 4.5 $0.00005 $0.00056

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

Security

Grade A, and why

layerkit-deletion-first 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 7d 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/layerkit-deletion-first/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.

layerkit-deletion-first

Use this skill before implementation work, especially before layerkit-source-edit-client edits production datalayer code.

Before adding code, identify existing code, docs, tests, fixtures, and package surfaces that can be removed or rewritten.

Before a large deletion/rewrite or strategic redirect, prove the new direction with one small passing gate: an eval, end-to-end QA check, contract-heal case, or before/after acceptance test.

Protocol

  1. Identify existing code, docs, tests, fixtures, scripts, exports, commands, and shims that can be removed or rewritten.
  2. Prefer modifying or deleting existing code over adding files.
  3. Do not add a new abstraction until the existing abstraction has been inspected and cannot reasonably change.
  4. For every new file, function, export, command, fixture, or skill, state what it replaces.
  5. If it replaces nothing, justify why the expansion is necessary.
  6. Target net-negative or near-neutral LOC unless functionality truly expands.
  7. Before a strategic redirect or large deletion/rewrite, define what must pass, the proof artifact, and the fallback if validation fails; record the proof step before continuing.
  8. Keep tests proportional to the implementation size; release hardening must cover client-package edit paths, mapping semantics, deletion-first behavior, and CI/eval gates touched by the change.

Deletion Pass

Check these surfaces before adding:

  • stale demos, design notes, launch scripts, sample-only assets
  • legacy wrappers and compatibility aliases not required by public API
  • tests for removed behavior
  • duplicated command paths or old workflow names
  • unused exports, fixtures, scripts, generated output, and package contents
  • docs that describe non-current product paths

For heal/integration work, preserve only the spine:

API spec/doc -> contract drift -> map/proposal update -> privacy/checker -> production datalayer integration -> client package verification

Move required examples into evals/fixtures; delete demo/docs packaging around them.

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

Subscribe to this mod's changes

layerkit-deletion-first is a skill published in the GitHub repository hariharapanigrahy/layerkit (8 stars, last pushed 1mo ago), licensed MIT. It adds 53 tokens to every session and 559 once invoked, about $0.0003 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

bcc-plan-spar

BCC align+lock+review PLAN.md for one slice (no product code). Slash: /bcc-plan-spar · chat: bcc:plan-spar · "lock PLAN" · spar the plan. Args: rounds=N (auto-review cap), review=self|subagent|cli|auto|off. Grill until clear enough (no default Q&A quota). Hand off to bcc-clean-cut after human APPROVE.

bo-cao/breaking-coding-chaos · 91 tokens

bcc-throughline

BCC global progress cockpit (plans.md/progress.md/findings.md). Slash: /bcc-throughline · chat: bcc:throughline · "where are we" · reprioritize · resume after /clear. Not for coding or full PLAN grill.

bo-cao/breaking-coding-chaos · 56 tokens

bcc-breaking-coding-chaos

BCC main skill: dual-loop coding workflow (throughline → plan-spar → clean-cut) or quick status+next. Slash: /bcc-breaking-coding-chaos · chat: bcc:breaking-coding-chaos · "run BCC" · "BCC status" · "what next BCC". Needs a real idea (1:1 implement). Args: goal text, or status. May pass plan-spar review budget as…

bo-cao/breaking-coding-chaos · 101 tokens

bcc-clean-cut

BCC minimal implement from locked PLAN.md (ponytail ladder + verify). Slash: /bcc-clean-cut · chat: bcc:clean-cut · "implement PLAN" after human APPROVE. Not for plan grill (use bcc-plan-spar).

bo-cao/breaking-coding-chaos · 55 tokens

chinese-git-workflow

A Git workflow guide tailored to Chinese-hosted platforms such as Gitee, Coding.net, and GitLab, including their code-review and build systems.

Leodorareluctant259/superpowers-zh · 33 tokens

chinese-commit-conventions

A Chinese-language convention for writing Git commit messages, based on Conventional Commits, a standard format that tools can use to classify changes and build changelogs.

Leodorareluctant259/superpowers-zh · 28 tokens