360 Secure SkillHub
360 安全技能中心

Git Commit Validator

该 Skill 提供 Conventional Commits 格式说明、允许的类型列表、正例和书写规则(主题行不超过 72 字符、使用祈使语气、结尾不加句号、主题与正文空行分隔),并给出查看近期提交的命令用于人工核对。未包含自动修复或强制校验逻辑。

sky-lv
sky-lv
热度 40.67
最近更新 2026-05-11 17:45:27
分类:开发依赖:代码执行应用场景:代码审查 / DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add git-commit-validator
Metadata
name
skylv-commit-linter
slug
skylv-commit-linter
version
1.0.0
description
Validates git commit messages against conventional commits format. Triggers: commit lint, conventional commits, commit format.
author
SKY-lv
license
MIT
tags
["automation","tools"]
keywords
["automation","tools"]
triggers
commit-linter

Commit Linter

Overview

Validates commit messages and enforces conventional commits format.

Conventional Commit Format

type(scope): description

Types: feat, fix, docs, style, refactor, perf, test, chore

Valid Examples

feat(auth): add password reset fix(api): handle null response docs(readme): update install

Rules

  • Subject line max 72 characters
  • Use imperative mood ("add" not "added")
  • No period at end of subject
  • Separate subject from body with blank line

Validate

git log --oneline -20