mcpbeat Sign in

Hard Cut Agent Skill

Enforce a hard-cut cleanup policy: keep one canonical implementation and delete compatibility, migration, fallback, adapter, coercion, and dual-shape code. Use for pre-release or internal-draft refactors where the goal is one final shape, especially when changing schemas, contracts, persisted state, routing, configuration, feature flags, enum/value sets, or architecture.

1k tokens
context cost
the whole folder, loaded on every use
3
files
instructions only
0
copies elsewhere
how many repositories repackaged it
131
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/instructa/agent-skills --skill hard-cut

What comes with it

1 195 bytes besides the instruction
README.md
agents/openai.yaml

The instruction itself

8 sections, as written by the author

Hard-Cut Policy

Apply a hard-cut policy by default for refactors or behavior changes that alter schemas, contracts, persisted state, routing, configuration, feature flags, enum/value sets, or architecture where old-state preservation might otherwise be retained.

Keep one canonical codepath. Remove old-shape handling. Do not preserve draft or legacy behavior unless there is concrete evidence of a real external compatibility boundary.

Default assumption

Treat previous shapes as internal draft shapes unless there is concrete evidence they are already:

  • persisted external or user data
  • on-disk or database state that must still load
  • a wire format used across process or service boundaries
  • a documented or publicly supported contract
  • actively depended on outside the refactor boundary

Mere existence of old code is not proof of a compatibility obligation.

Core policy

When an old shape appears, remove that path and convert the codebase to the canonical shape. Do not add code to support it. Do not add code specifically to reject it just because it once existed.

Hard rules

Apply these rules in order:

  • Do not add fallback behavior.
  • Do not add compatibility branches.
  • Do not add shims, adapters, coercions, aliases, or dual-shape support.
  • Do not add fail-fast guards whose purpose is to detect or reject old shapes.
  • Do not add tests whose purpose is to assert rejection of old or legacy shapes.
  • Prefer deleting old-shape handling over preserving or policing it.
  • Update producers, consumers, fixtures, and tests to use only the canonical shape.
  • Remove dead code, dead conditionals, obsolete comments, and translation helpers related to old shapes.
  • Keep validation only for the current canonical contract. Validation may reject malformed current-shape input, but must not branch on legacy discriminators, old field names, aliases, old enum members, or draft formats.

10. When choosing between backward compatibility and simplification, choose simplification.

Execution workflow

  • Identify the canonical target shape.
  • Trace every producer and consumer of that shape.
  • Update all live codepaths to emit and consume only the canonical shape.
  • Update fixtures, test data, builders, and snapshots to the canonical shape.
  • Delete legacy handling, branching, comments, and helpers.
  • Keep only current-shape validation that is still required for correctness.
  • If a real external compatibility boundary exists, isolate it and call out the exact file, function, boundary, and reason it cannot be removed yet.

Review checklist

  • Reject changes that preserve old-shape behavior behind conditionals.
  • Reject translation layers between old and new shapes.
  • Reject validation branches added only to reject legacy inputs.
  • Reject tests added only to memorialize abandoned draft formats.
  • Remove dead helpers and comments that describe removed draft formats.
  • Keep one owner for the canonical contract.

Deliverables

Deliver only:

  • a minimal implementation that supports the canonical shape
  • updated tests for the canonical shape only
  • removal of obsolete legacy-shape tests
  • no new rejection tests for old shapes
  • no runtime logic dedicated to recognizing legacy formats

Exception rule

Make an exception only when removing the old shape would break already persisted external or user data, on-disk or database state, cross-boundary wire formats, or a real public contract.

If such a boundary exists:

  • do not invent new compatibility layers elsewhere
  • name the exact file and function
  • describe the concrete persisted or public dependency
  • limit any compatibility discussion to that boundary only

Other skills for the same job

different authors, same section of the catalogue
Karpathy Guidelines
by hyyhf
×3

Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria.

629 tokens
Plan Writing
by ComeOnOliver
×2

Structured task planning with clear breakdowns, dependencies, and verification criteria. Use when implementing features, refactoring, or any multi-step work.

4k tokens
Modern Javascript Patterns
by ComeOnOliver
×2

Master ES6+ features including async/await, destructuring, spread operators, arrow functions, promises, modules, iterators, generators, and functional programming patterns for writing clean, efficient JavaScript code. Use when refactoring legacy code, implementing modern patterns, or optimizing JavaScript applications.

9k tokens
Modern Javascript Patterns
by ComeOnOliver
×2

Master ES6+ features including async/await, destructuring, spread operators, arrow functions, promises, modules, iterators, generators, and functional programming patterns for writing clean, efficient JavaScript code. Use when refactoring legacy code, implementing modern patterns, or optimizing JavaScript applications.

8k tokens
Contributor Pr Description
by flutter
vendor ×1

Guidelines and format for writing pull request descriptions in this repository. Use this skill whenever the user asks you to draft a pull request description, submit a PR, or update a PR description.

697 tokens
Angular Best Practices
by lingxling
×1

Angular performance optimization and best practices guide. Use when writing, reviewing, or refactoring Angular code for optimal performance, bundle size, and rendering efficiency.

4k tokens
Gh Fix CI
by christophacham
×1

Use when a user asks to debug or fix failing GitHub PR checks that run in GitHub Actions. Uses `gh` to inspect checks and logs, summarize failure context, draft a fix plan, and implement only after explicit approval. Treats external providers (for example Buildkite) as out of scope and reports only the details URL. Do NOT use for addressing PR review comments (use gh-address-comments) or general CI outside GitHub Actions.

7k tokens scripts
Angular Best Practices
by ComeOnOliver
×1

Angular performance optimization and best practices guide. Use when writing, reviewing, or refactoring Angular code for optimal performance, bundle size, and rendering efficiency.

6k tokens

How to use it

Copy the folder

Take instructa/hard-cut from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.