tangchunwu/skill-hub/source-command-ccg-commit

Claude Code and agent skill by tangchunwu/skill-hub

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

智能 Git 提交:分析改动生成 Conventional Commit 信息,支持拆分建议

Install

npx vskill@latest install tangchunwu/skill-hub/source-command-ccg-commit

SKILL.md

The same SKILL.md was published earlier as tangchunwu/skill-hub/source-command-ccg-commit.

source-command-ccg-commit

Use this skill when the user asks to run the migrated source command ccg-commit.

Command Template

Commit - 智能 Git 提交

分析当前改动,生成 Conventional Commits 风格的提交信息。

使用方法

bash
/commit [options]

选项

选项说明
--no-verify跳过 Git 钩子
--all暂存所有改动
--amend修补上次提交
--signoff附加签名
--emoji包含 emoji 前缀
--scope <scope>指定作用域
--type <type>指定提交类型

执行工作流

🔍 阶段 1:仓库校验

[模式:检查]

  1. 验证 Git 仓库状态
  2. 检测 rebase/merge 冲突
  3. 读取当前分支/HEAD 状态
📋 阶段 2:改动检测

[模式:分析]

  1. 获取已暂存与未暂存改动
  2. 若暂存区为空:
  • --all → 执行 git add -A
  • 否则提示选择
✂️ 阶段 3:拆分建议

[模式:建议]

按以下维度聚类:

  • 关注点(源代码 vs 文档/测试)
  • 文件模式(不同目录/包)
  • 改动类型(新增 vs 删除)

若检测到多组独立变更(>300 行 / 跨多个顶级目录),建议拆分。

✍️ 阶段 4:生成提交信息

[模式:生成]

格式:[emoji] <type>(<scope>): <subject>

  • 首行 ≤ 72 字符
  • 祈使语气
  • 消息体:动机、实现要点、影响范围

语言:根据最近 50 次提交判断中文/英文

✅ 阶段 5:执行提交

[模式:执行]

bash
git commit [-S] [--no-verify] [-s] -F .git/COMMIT_EDITMSG

Type 与 Emoji 映射

EmojiType说明
✨feat新增功能
🐛fix缺陷修复
📝docs文档更新
🎨style代码格式
♻️refactor重构
⚡️perf性能优化
✅test测试相关
🔧chore构建/工具
👷ciCI/CD
⏪️revert回滚

示例

bash
# 基本提交
/commit
# 暂存所有并提交
/commit --all
# 带 emoji 提交
/commit --emoji
# 指定类型和作用域
/commit --scope ui --type feat --emoji
# 修补上次提交
/commit --amend --signoff

关键规则

  1. 仅使用 Git – 不调用包管理器
  2. 尊重钩子 – 默认执行,--no-verify 可跳过
  3. 不改源码 – 只读写 .git/COMMIT_EDITMSG
  4. 原子提交 – 一次提交只做一件事

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/tangchunwu/skill-hub/source-command-ccg-commit/badge)](https://verified-skill.com/skills/tangchunwu/skill-hub/source-command-ccg-commit)

Something wrong with this skill or its page? Tell us.