360 Secure SkillHub
360 安全技能中心

Skylv Commit Linter

核心功能:按约定式提交规范(支持feat、fix等8种类型)校验Git提交信息,检查主题长度、语气、标点等规则。典型场景:团队协作时统一提交格式,便于日志生成与版本管理。输入为Git提交信息,输出为合规性校验结果并反馈问题。

sky-lv
sky-lv
热度 40.64
最近更新 2026-05-11 17:44:32
分类:开发依赖:纯提示词应用场景:DevOps

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add skylv-commit-linter
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