ワンクリックで
commit-conventional
执行 git commit 创建符合约定式提交规范的提交。仅当用户明确要求"提交代码"、"创建提交"、"帮我commit"、"git commit"等执行提交操作时使用。不要在仅仅讨论提交、询问提交规范、或解释如何提交时触发
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
执行 git commit 创建符合约定式提交规范的提交。仅当用户明确要求"提交代码"、"创建提交"、"帮我commit"、"git commit"等执行提交操作时使用。不要在仅仅讨论提交、询问提交规范、或解释如何提交时触发
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use when diagnosing central skill repository drift, especially when platform links look inconsistent, .skill-source.json metadata may be incomplete, verify.sh reports issues, or you want a one-command health check before larger maintenance.
Use when maintaining shared ui-polish references, helper scripts, demo assets, or bridge documents that support the ui-polish bundle.
Use when you need the non-negotiable ui-polish rules for UI direction, color, copy, spacing, readability, button feedback, and layout restraint before making interface decisions.
提升 Web、H5、小程序、Chrome 扩展、移动应用、Electron、Tauri 和桌面应用的界面质感、层级与一致性。用于任何涉及页面、组件、弹窗、设置页、面板、工具窗口、仪表盘或设计重构的任务,尤其当用户要求更好看、更高级、更有质感、更专业、减少 AI 味时。
Use before claiming a UI is done, polished, or good-looking to run the ui-polish blocking checks, lightweight validation, and final visual review.
UI/UX design intelligence for web and mobile. Includes 50+ styles, 161 color palettes, 57 font pairings, 161 product types, 99 UX guidelines, and 25 chart types across 10 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui, and HTML/CSS). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, and check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, and mobile app. Elements: button, modal, navbar, sidebar, card, table, form, and chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, and flat design. Topics: color systems, accessibility, animation, layout, typography, font pairing, spacing, interaction states, shadow, and gradient. Integrations: shadcn/ui MCP for component search and examples.
| name | commit-conventional |
| description | 执行 git commit 创建符合约定式提交规范的提交。仅当用户明确要求"提交代码"、"创建提交"、"帮我commit"、"git commit"等执行提交操作时使用。不要在仅仅讨论提交、询问提交规范、或解释如何提交时触发 |
| argument-hint | ["额外上下文"] |
| disable-model-invocation | false |
| compatibility | {"claude-code":"full","codex":"basic","gemini":"basic","github-copilot":"basic"} |
创建符合规范的 Git 提交,遵循用户的编码规范。
<type>(<scope>): <description>
[可选的正文]
Co-Authored-By: Claude <noreply@anthropic.com>
在开始提交流程前,自动执行代码质量检查:
# 运行通用代码质量检查脚本(会自动识别项目类型)
bash ~/.claude/skills/code-quality-check/scripts/check.sh
检查逻辑:
检查结果处理:
重要:
git add 后,可以再次触发提交并行运行以下命令了解代码变更:
git status - 查看所有未跟踪和已修改文件git diff --staged - 查看暂存区的具体变更git log --oneline -5 - 查看最近的提交记录,学习项目的提交风格描述要求:
示例:
feat(auth): 添加 JWT 认证支持fix(api): 修复用户登录时的空指针异常refactor(utils): 优化日期格式化函数性能update code (太模糊)修改了登录功能的一些代码 (不够精确)git add <文件路径> 添加git add . 或 git add -A使用 HEREDOC 格式创建提交,确保格式正确:
git commit -m "$(cat <<'EOF'
<type>(<scope>): <description>
Co-Authored-By: Claude <noreply@anthropic.com>
EOF
)"
运行 git status 确认提交成功。
⚠️ 禁止提交的文件类型:
.env 文件credentials.json 或包含 secret/password 的文件node_modules/ 或其他依赖目录如果用户明确要求提交这些文件,必须警告风险并请求确认。
参数 $ARGUMENTS 可用于提供额外的提交上下文或说明。
git push--amend、--force、reset --hard 等(除非明确要求)git log 中的历史提交,保持一致性--amend兼容性说明:
- ✅ Claude Code:支持所有高级功能
- ⚠️ Codex/Gemini/Copilot:仅支持基础功能,会自动忽略高级特性
如果你使用的是 Claude Code,可以添加 Hooks 进行自动验证:
在 frontmatter 中添加(已注释,需要时取消注释):
hooks:
PreToolUse:
- matcher: "Bash"
hooks:
- type: command
command: "./scripts/validate-commit.sh"
验证脚本示例 (scripts/validate-commit.sh):
#!/bin/bash
# 检测提交信息是否符合规范
COMMIT_MSG=$(echo "$INPUT" | jq -r '.tool_input.command // empty')
# 检查是否包含敏感文件
if echo "$COMMIT_MSG" | grep -iE '\.(env|secret|key|pem)' > /dev/null; then
echo "❌ 警告:可能包含敏感文件" >&2
exit 2
fi
exit 0
在 frontmatter 中取消注释以启用:
allowed-tools: Read, Grep, Bash # 限制只能使用这些工具
本 Skill 已集成 code-quality-check,在提交代码前自动执行质量检查。
工作流程:
支持的项目类型:
检查规则示例:
✅ 通用规则(所有项目):
✅ 前端规则(前端项目):
✅ Obsidian 规则(Obsidian 插件):
用户体验: