360 Secure SkillHub
360 安全技能中心

commit-ai

读取暂存区的 git diff,分析变更内容并按 Conventional Commits 规范生成包含类型、范围和正文的提交信息,支持 feat、fix、docs、refactor、test、chore 等类型;仅生成建议文本,不执行提交操作。

vexify-build
vexify-build
热度 12.88
最近更新 2026-10-04 21:33:31
分类:开发依赖:代码执行 / 内部调用大模型应用场景:DevOps / 工作流 / 摘要总结

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add commit-ai
Metadata
name
commit-ai
description
Use when user wants to generate a good git commit message from their changes.
triggers
["commit","提交","git commit","写提交信息"]
version
1.0.0
author
VBot

Git Commit AI

Generate meaningful commit messages from git diff

Usage

git diff --staged

Analyze the diff and generate a commit message following conventional commits:

  • feat: for new features
  • fix: for bug fixes
  • docs: for documentation
  • refactor: for code refactoring
  • test: for tests
  • chore: for maintenance

Example Output

feat(auth): add OAuth2 login support

- Implement Google OAuth2 flow
- Add user session management
- Store refresh tokens securely

Rules

  1. First line: type(scope): short description (max 72 chars)
  2. Body: bullet points explaining why, not what
  3. Be specific, not generic
  4. No "Update file" or "Fix bug" messages