Skip to main content

hard-cut

Remove a feature completely with no backward compatibility. Use when the user says "hard cut", "rip it out", "delete it", "unship", "kill this feature", or wants dead code removed instead of deprecated. Delete the surface, callers, tests, docs, comments, fallbacks, and stubs.

소스 정보

저장소
udecode/kitcn
최근 소스 활동
2026년 7월 22일 12:16
감지된 SKILL.md 언어
영어
스타
452
포크
35

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
description
Remove a feature completely with no backward compatibility. Use when the user says "hard cut", "rip it out", "delete it", "unship", "kill this feature", or wants dead code removed instead of deprecated. Delete the surface, callers, tests, docs, comments, fallbacks, and stubs.
name
hard-cut
metadata
{"skiller":{"source":".agents/rules/hard-cut.mdc"}}
# Hard Cut Use this when a feature should die, not linger. ## Rules - Delete the surface. Do not deprecate it. - Do not leave `throw new Error("Not implemented")`, placeholder notices, "feature removed" banners, or TODOs about bringing it back unless the user explicitly asks. - Do not keep compatibility aliases, deprecated shims, fallback parsing, migration bridges, or dead exports. - Delete tests for deleted behavior. Keep tests only for the behavior that still exists. - Delete comments that describe deleted code or mourn the old feature. - If removal exposes adjacent dead code, keep cutting until the graph is clean. ## Sweep 1. Find the real surface area: - exports - commands and flags - routes - UI entrypoints - feature flags - docs and examples 2. Trace references with `rg`. 3. Delete the implementation and the glue: - call sites - types - state - tests - docs - comments 4. Grep again for the removed name and obvious aliases. 5. Run the narrowest honest verification for the surviving product. ## Smells - deprecated notices - not-implemented throws - stub handlers - dead enum or union members - permanently-false feature-flag branches - unused env vars and config - tests that only prove the deleted feature used to exist ## Bias If the choice is between deleting more code and leaving zombie compatibility, delete more code.
GitHub에서 보기