commit-validator — community commit-validator, agent-studio, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0

关于此技能

适用于需要自动化提交消息验证的代码审查代理,验证标准遵循 Conventional Commits 规范。 Validates commit messages against Conventional Commits specification using programmatic validation. Replaces the git-conventional-commit-messages text file with a tool that provides instant feedback.

oimiragieo oimiragieo
[16]
[0]
更新于: 3/10/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 9/11

This page remains useful for operators, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution Quality floor passed for review
Review Score
9/11
Quality Score
50
Canonical Locale
en
Detected Body Locale
en

适用于需要自动化提交消息验证的代码审查代理,验证标准遵循 Conventional Commits 规范。 Validates commit messages against Conventional Commits specification using programmatic validation. Replaces the git-conventional-commit-messages text file with a tool that provides instant feedback.

核心价值

赋予代理以强制执行标准化的提交消息的能力,使用 Conventional Commits 无缝集成到 pre-commit hooks 和 CI/CD 流水线中,并利用 commitlint 进行验证。

适用 Agent 类型

适用于需要自动化提交消息验证的代码审查代理,验证标准遵循 Conventional Commits 规范。

赋予的主要能力 · commit-validator

在代码审查期间验证提交消息是否符合 Conventional Commits 规范
在 pre-commit hooks 中自动化提交消息检查以确保一致性
将提交验证集成到 CI/CD 流水线中以提高代码质量

! 使用限制与门槛

  • 需要与 pre-commit hooks 或 CI/CD 流水线集成
  • 仅限于 Conventional Commits 规范
  • 需要访问提交消息以进行验证

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.

Source Boundary

The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.

实验室 Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

常见问题与安装步骤

以下问题与步骤与页面结构化数据保持一致,便于搜索引擎理解页面内容。

? FAQ

commit-validator 是什么?

适用于需要自动化提交消息验证的代码审查代理,验证标准遵循 Conventional Commits 规范。 Validates commit messages against Conventional Commits specification using programmatic validation. Replaces the git-conventional-commit-messages text file with a tool that provides instant feedback.

如何安装 commit-validator?

运行命令:npx killer-skills add oimiragieo/agent-studio/commit-validator。支持 Cursor、Windsurf、VS Code、Claude Code 等 19+ IDE/Agent。

commit-validator 适用于哪些场景?

典型场景包括:在代码审查期间验证提交消息是否符合 Conventional Commits 规范、在 pre-commit hooks 中自动化提交消息检查以确保一致性、将提交验证集成到 CI/CD 流水线中以提高代码质量。

commit-validator 支持哪些 IDE 或 Agent?

该技能兼容 Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer。可使用 Killer-Skills CLI 一条命令通用安装。

commit-validator 有哪些限制?

需要与 pre-commit hooks 或 CI/CD 流水线集成;仅限于 Conventional Commits 规范;需要访问提交消息以进行验证。

安装步骤

  1. 1. 打开终端

    在你的项目目录中打开终端或命令行。

  2. 2. 执行安装命令

    运行:npx killer-skills add oimiragieo/agent-studio/commit-validator。CLI 会自动识别 IDE 或 AI Agent 并完成配置。

  3. 3. 开始使用技能

    commit-validator 已启用,可立即在当前项目中调用。

! 参考页模式

此页面仍可作为安装与查阅参考,但 Killer-Skills 不再把它视为主要可索引落地页。请优先阅读上方评审结论,再决定是否继续查看上游仓库说明。

Imported Repository Instructions

The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.

Supporting Evidence

commit-validator

安装 commit-validator,这是一款面向AI agent workflows and automation的 AI Agent Skill。支持 Claude Code、Cursor、Windsurf,一键安装。

SKILL.md
Readonly
Imported Repository Instructions
The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.
Supporting Evidence

References (archive): SCAFFOLD_SKILLS_ARCHIVE_MAP.md — commit validation logic inspired by claude-flow v3 git-commit hook, everything-claude-code commitlint.

<identity> Commit Message Validator - Programmatically validates commit messages against the [Conventional Commits](https://www.conventionalcommits.org/) specification. </identity> <capabilities> - Before committing code - In pre-commit hooks - In CI/CD pipelines - During code review - To enforce team standards </capabilities> <instructions> <execution_process>

Step 1: Validate Commit Message

Validate a commit message string against Conventional Commits format:

Format: <type>(<scope>): <subject>

Types:

  • feat: A new feature
  • fix: A bug fix
  • docs: Documentation only changes
  • style: Code style changes (formatting, etc.)
  • refactor: Code refactoring
  • perf: Performance improvements
  • test: Adding or updating tests
  • chore: Maintenance tasks
  • ci: CI/CD changes
  • build: Build system changes
  • revert: Reverting a previous commit

Validation Rules:

  1. Must start with type (required)
  2. Scope is optional (in parentheses)
  3. Subject is required (after colon and space)
  4. Use imperative, present tense ("add" not "added")
  5. Don't capitalize first letter
  6. No period at end
  7. Can include body and footer (separated by blank line) </execution_process> </instructions>
<examples> <code_example> **Implementation**

Use this regex pattern for validation:

javascript
1const CONVENTIONAL_COMMIT_REGEX = 2 /^(feat|fix|docs|style|refactor|perf|test|chore|ci|build|revert)(\(.+\))?: .{1,72}/; 3 4function validateCommitMessage(message) { 5 const lines = message.trim().split('\n'); 6 const header = lines[0]; 7 8 // Check format 9 if (!CONVENTIONAL_COMMIT_REGEX.test(header)) { 10 return { 11 valid: false, 12 error: 'Commit message does not follow Conventional Commits format', 13 }; 14 } 15 16 // Check length 17 if (header.length > 72) { 18 return { 19 valid: false, 20 error: 'Commit header exceeds 72 characters', 21 }; 22 } 23 24 return { valid: true }; 25}

</code_example>

<code_example> Valid Examples:

feat(auth): add OAuth2 login support
fix(api): resolve timeout issue in user endpoint
docs(readme): update installation instructions
refactor(components): extract common button logic
test(utils): add unit tests for date formatting

</code_example>

<code_example> Invalid Examples:

Added new feature  # Missing type
feat:new feature   # Missing space after colon
FEAT: Add feature  # Type should be lowercase
feat: Added feature  # Should use imperative tense

</code_example>

<code_example> Pre-commit Hook (.git/hooks/pre-commit):

bash
1#!/bin/bash 2commit_msg=$(git log -1 --pretty=%B) 3if ! node .claude/tools/validate-commit.mjs "$commit_msg"; then 4 echo "Commit message validation failed" 5 exit 1 6fi

</code_example>

<code_example> CI/CD Integration:

yaml
1# .github/workflows/validate-commits.yml 2- name: Validate commit messages 3 run: | 4 git log origin/main..HEAD --pretty=%B | while read msg; do 5 node .claude/tools/validate-commit.mjs "$msg" || exit 1 6 done

</code_example> </examples>

<examples> <formatting_example> **Output Format**

Returns structured validation result:

json
1{ 2 "valid": true, 3 "type": "feat", 4 "scope": "auth", 5 "subject": "add OAuth2 login support", 6 "warnings": [] 7}

Or for invalid messages:

json
1{ 2 "valid": false, 3 "error": "Commit message does not follow Conventional Commits format", 4 "suggestions": [ 5 "Use format: <type>(<scope>): <subject>", 6 "Valid types: feat, fix, docs, style, refactor, perf, test, chore, ci, build, revert" 7 ] 8}

</formatting_example> </examples>

<examples> <usage_example> **Example Commands**:
bash
1# Validate a commit message 2node .claude/tools/validate-commit.mjs "feat(auth): implement jwt login" 3 4# Validate from stdin (e.g. in a hook) 5echo "fix: incorrect variable name" | node .claude/tools/validate-commit.mjs

</usage_example> </examples>

<instructions> <best_practices> 1. **Validate Early**: Check commit messages before pushing 2. **Provide Feedback**: Show clear error messages with suggestions 3. **Enforce in CI**: Add validation to CI/CD pipelines 4. **Team Training**: Educate team on Conventional Commits format 5. **Tool Integration**: Integrate with Git hooks and IDEs </best_practices> </instructions>

Memory Protocol (MANDATORY)

Before starting: Read .claude/context/memory/learnings.md

After completing:

  • New pattern -> .claude/context/memory/learnings.md
  • Issue found -> .claude/context/memory/issues.md
  • Decision made -> .claude/context/memory/decisions.md

ASSUME INTERRUPTION: If it's not in memory, it didn't happen.

相关技能

寻找 commit-validator 的替代方案 (Alternative) 或可搭配使用的同类 community Skill?探索以下相关开源技能。

查看全部

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

333.8k
0
AI

widget-generator

Logo of f
f

为prompts.chat的信息反馈系统生成可定制的插件小部件

149.6k
0
AI

flags

Logo of vercel
vercel

React 框架

138.4k
0
浏览器

pr-review

Logo of pytorch
pytorch

Python中具有强大GPU加速的张量和动态神经网络

98.6k
0
开发者工具