Skip to content
Back to skills

Ldvh Controlled Commit

ASecurity

在受 LDVH 管辖的仓库中执行受控提交:先机械预检候选提交信息与暂存区,再按中文关键变更与会话签名格式提交。用户要提交代码、写提交说明、或提交被 Git Gate 拦截时使用。

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentsgit

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add dingminhua/ld-vibe-harness --skill ldvh-controlled-commit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ldvh Controlled Commit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ldvh Controlled Commit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dingminhua-ldvh-controlled-commit/badge)](https://www.skillsdirectory.com/skills/dingminhua-ldvh-controlled-commit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ldvh-controlled-commit
description: 在受 LDVH 管辖的仓库中执行受控提交:先机械预检候选提交信息与暂存区,再按中文关键变更与会话签名格式提交。用户要提交代码、写提交说明、或提交被 Git Gate 拦截时使用。
---

# LDVH 受控提交

受管辖仓库中,触及 `ldvh-base/` 或 `specs/` 的 `git commit` 会被 Git Gate(`commit-msg` / `pre-commit`)强制拦截校验;纯代码提交与 `git merge` 按规则作为普通提交放行,以免阻碍人工手工提交。**但只要是由 AI 发起的提交(无论是否触及 `ldvh-base/`),都应统一查询 `ldvh_session_signature` 并按下方格式附上中文关键变更与 `LDVH-Provider` / `LDVH-Model` 签名,确保全量可追溯。**

## 提交信息格式

```text
<type>(<scope>): <中文描述>

关键变更:
- <与本次改动路径/事项一一对应的要点>
- <第二条>

LDVH-Provider: <当前会话的 provider>
LDVH-Model: <当前会话的模型名>
```

- `type` 取常规提交类型(feat、fix、docs、refactor、test、chore 等)。
- 标题描述必须含中文;技术标识符可保留原文。
- `关键变更:` 恰好一节,至少一条,且每条要能对应到暂存区里真实变更的路径或事项(既不虚报也不遗漏)。
- `LDVH-Provider` / `LDVH-Model` 必须与当前会话的真实路由一致,不得编造。

## 步骤

1. `git status` / `git diff --cached` 确认暂存区正是要提交的内容。
2. 调用 `ldvh_session_signature` 读取当前会话权威的 `provider` 与 `model`(切勿凭印象猜测或沿用旧会话模型名)。
3. 起草包含中文标题、`关键变更:` 以及 `LDVH-Provider` / `LDVH-Model` 的提交信息;涉及 `ldvh-base/` 或 `specs/` 时,调用 `ldvh_precheck_git_commit`(参数 `message`)预检(纯业务代码提交未触发受控预检时,也应保留完整的中文关键变更与 `LDVH-Provider` / `LDVH-Model` trailer)。
4. 看 `mechanical_outcome`:
   - `passed`:可以提交,并记下返回的 `snapshot_identity`。
   - `failed`:按 `issues` 逐条修正后重新预检,不要绕过。
   - `unverifiable`:通常是会话签名无法追溯,如实报告,不要手填一个“看起来对”的签名。
5. 用预检通过的原文执行 `git commit`。
6. 提交时 Git Gate 的 stderr 会打印 `snapshot_identity`,与预检结果一致即说明预检与实际提交对应同一份内容。

## 纪律

- 不用 `--no-verify` 绕过 Git Gate。
- 提交只包含本次任务相关文件;触及 `ldvh-base/` 载体的提交会触发更严格的校验。
- 预检通过不等于 Human 授权,也不等于工作已完成;是否推送由 Human 决定。

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.