360 Secure SkillHub
360 安全技能中心

Git Commit Validator

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

分类:开发
sky-lv
sky-lv
热度 5.48
最近更新 2026-05-11 17:45:27

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add sky-lv/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