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

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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.5 $0.00021 $0.00224
Sonnet 5.5 $0.00011 $0.00112
Haiku 4.5 $0.00005 $0.00056

Measured 1mo ago against content hash edbb104bb4ef, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-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 1mo 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. 1mo 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 2mo ago), licensed MIT. It adds 53 tokens to every session and 559 once invoked, about $0.0002 per session on Opus 5.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

competitive-teardown

Systematic competitor analysis covering product teardowns, 12-dimension scoring rubric, feature comparison matrices, SWOT analysis, pricing model deconstruction, UX audits, and strategic action plans with stakeholder presentation templates.

borghei/Claude-Skills · 45 tokens

contract-and-proposal-writer

Generate business documents — contracts, proposals, SOWs, NDAs, MSAs — with jurisdiction-aware clauses for US, EU, UK, and DACH. Use when starting client engagements, writing proposals, drafting agreements, or needing GDPR-compliant DPAs.

borghei/Claude-Skills · 60 tokens

deal-desk

Deal desk: reviews, approves, and structures non-standard sales deals. Use when standing up a deal desk, building approval-threshold matrices, designing deal-review packets, routing deals, or auditing deals for compliance.

borghei/Claude-Skills · 46 tokens

form-cro

Form optimization for lead capture, contact, demo request, application, and checkout forms. Covers field-cost analysis, multi-step form design, validation UX, mobile optimization, and A/B testing frameworks.

borghei/Claude-Skills · 43 tokens

free-tool-strategy

Free tool marketing strategy covering idea evaluation, tool design, lead capture architecture, SEO landing pages, launch playbook, and ROI measurement for calculators, generators, checkers, graders, and interactive tools.

borghei/Claude-Skills · 45 tokens

popup-cro

Popup and modal optimization for conversion. Covers exit-intent, slide-ins, banners, timing optimization, frequency capping, audience targeting, compliance, and A/B testing frameworks for lead capture, promotions, and announcements.

borghei/Claude-Skills · 47 tokens