Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计异常

commit-sentinel提交哨兵

Agent Skill

commit-sentinel 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

318

周安装

13

GitHub Stars

9

下载量

103
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/yuniorglez/gemini-elite-core --skill commit-sentinel

简介

commit-sentinel 守护仓库健康与历史清晰,防止“历史污染”和“类型衰减”。

  • 适用于 AI 生成大量代码的 2026 年环境,强制执行 4 步验证协议和历史雕刻。
  • 推广手术式 rebase 和自动化钩子,确保精英级代码进入主分支。
  • 依赖本地 git 环境和钩子机制,建议确认验证协议和 anti-patterns 规则。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

🛡️ Skill: Commit Sentinel (v2.1.0)

Executive Summary

The commit-sentinel is the guardian of repository health and historical clarity. In 2026, where AI agents generate thousands of lines of code daily, the role of the sentinel is critical to prevent "History Pollution" and "Type Decay." This skill enforces a rigorous 4-step validation protocol, promotes surgical history sculpting via rebasing, and leverages automated hooks to ensure that only elite-level code reaches the main branch.


📋 Table of Contents

  1. The 4-Step Validation Protocol
  2. The "Do Not" List (Anti-Patterns)
  3. Conventional Commits 2026
  4. History Sculpting (Interactive Rebase)
  5. Forensic Validation (Git Bisect)
  6. Git 3.0 Readiness (SHA-256)
  7. Automated Hook Orchestration
  8. Reference Library

🛡️ The 4-Step Validation Protocol

Before every commit, the Sentinel MUST execute:

  1. Surgical Diff Review: git diff --cached to verify every line.

- *Filter*: Remove all console.log, TODO (unless planned), and debug artifacts.

  1. Strict Type Audit: bun x tsc --noEmit (Mandatory).

- *Standard*: ZERO type errors allowed in the entire workspace.

  1. Linter Enforcement: bun run lint.

- *Standard*: Adherence to the project's formatting and security rules.

  1. Logical Atomicity: Ensure the commit does exactly ONE thing.

- *Check*: If the diff covers multiple features/fixes, use git add -p to split.


🚫 The "Do Not" List (Anti-Patterns)

Anti-PatternWhy it fails in 2026Modern Alternative
--no-verifyBypasses safety hooks.Fix the underlying issue.
git commit -m "update"Useless for forensics/AI context.Use Conventional Commits.
Pushed RebasesBreaks the team's local history.Only rebase local branches.
Massive "Cleanup" CommitsMakes git bisect impossible.Use Atomic, Incremental Changes.
SHA-1 AssumptionsSecurity risk in modern Git.Prepare for SHA-256 (Git 3.0).

📝 Conventional Commits 2026

We follow the strictly typed commit standard:

  • feat(scope): A new feature.
  • fix(scope): A bug fix.
  • refactor(scope): No feature or bug change.
  • perf(scope): Performance improvements.
  • chore(scope): Internal tools/config.
  • docs(scope): Documentation only.

Structure:

type(scope)!: short description (max 50 chars)

Detailed body explaining WHY this change was made.
Wrapped at 72 chars.

BREAKING CHANGE: [details]
Resolves #123

🔨 History Sculpting (Interactive Rebase)

The Sentinel never pushes messy local history.

# Clean up the last 3 local commits before pushing
git rebase -i HEAD~3

*Use squash to combine small "fix" commits into a single "feat" or "fix".*


🔍 Forensic Validation (Git Bisect)

When a bug appears, find the source with binary search.

git bisect start
git bisect bad HEAD
git bisect good [last_known_good_tag]
# Automate with:
git bisect run bun test

🚀 Git 3.0 Readiness

  • SHA-256: Transitioning away from SHA-1 for collision resistance.
  • Rust Core: Native speed for monorepo operations.
  • Push Protection: Automated secret detection in the commit loop.

📖 Reference Library

Detailed deep-dives into Git excellence:


*Updated: January 22, 2026 - 17:50*

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

38.07%
按下载量换算39

Claude

28.36%
按下载量换算29

Cursor

17.48%
按下载量换算18

Gemini CLI

9.82%
按下载量换算10

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills