360 Secure SkillHub
360 安全技能中心

commit-ai

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

分类:开发
vexify-build
vexify-build
热度 9.13
最近更新 2026-10-04 21:33:31

安装

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