Token导航 LogoToken导航TokenDH.com
开发只读github未标认证来源可访问许可证需确认审计通过

hard-cut硬切

Agent Skill

hard-cut 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

294

周安装

12

GitHub Stars

86

下载量

95
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:hard-cut(硬切)
来源仓库:https://github.com/regenrek/agent-skills
仓库路径:skills/hard-cut
安装命令:
npx skills add https://github.com/regenrek/agent-skills --skill hard-cut
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/regenrek/agent-skills --skill hard-cut

简介

hard-cut 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合围绕仓库状态进行整理。

  • 适用于 Codex、Claude、Cursor 和 Gemini CLI 中需要分析代码变更或协作事项的场景。
  • 通过 GitHub 安装,使用 npx skills add 命令添加技能。
  • 使用前需确认权限范围、维护状态,以及是否触发联网、命令执行或文件读写。
  • 建议结合来源仓库和原始 README 进一步核验具体功能和限制。

SKILL.md

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:

  1. Do not add fallback behavior.
  2. Do not add compatibility branches.
  3. Do not add shims, adapters, coercions, aliases, or dual-shape support.
  4. Do not add fail-fast guards whose purpose is to detect or reject old shapes.
  5. Do not add tests whose purpose is to assert rejection of old or legacy shapes.
  6. Prefer deleting old-shape handling over preserving or policing it.
  7. Update producers, consumers, fixtures, and tests to use only the canonical shape.
  8. Remove dead code, dead conditionals, obsolete comments, and translation helpers related to old shapes.
  9. 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

  1. Identify the canonical target shape.
  2. Trace every producer and consumer of that shape.
  3. Update all live codepaths to emit and consume only the canonical shape.
  4. Update fixtures, test data, builders, and snapshots to the canonical shape.
  5. Delete legacy handling, branching, comments, and helpers.
  6. Keep only current-shape validation that is still required for correctness.
  7. 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

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.74%
按下载量换算34

Claude

29.8%
按下载量换算28

Cursor

17.58%
按下载量换算17

Gemini CLI

10.29%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills