git-commit by github/awesome-copilot
npx skills add https://github.com/github/awesome-copilot --skill git-commit使用 Conventional Commits 规范创建标准化、语义化的 git 提交。分析实际的代码差异来确定合适的类型、作用域和提交信息。
<类型>[可选作用域]: <描述>
[可选正文]
[可选脚注]
| 类型 | 用途 |
|---|---|
feat | 新功能 |
fix | 错误修复 |
docs | 仅文档更改 |
style | 格式化/样式调整(不影响逻辑) |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
refactor | 代码重构(不涉及新功能或修复) |
perf | 性能改进 |
test | 添加/更新测试 |
build | 构建系统/依赖项更改 |
ci | CI/配置更改 |
chore | 维护/杂项 |
revert | 回滚提交 |
# 在类型/作用域后使用感叹号
feat!: 移除已弃用的端点
# 使用 BREAKING CHANGE 脚注
feat: 允许配置扩展其他配置
BREAKING CHANGE: `extends` 键的行为已更改
# 如果文件已暂存,使用暂存区差异
git diff --staged
# 如果未暂存任何文件,使用工作树差异
git diff
# 同时检查状态
git status --porcelain
如果未暂存任何文件,或者希望以不同方式分组更改:
# 暂存特定文件
git add path/to/file1 path/to/file2
# 按模式暂存
git add *.test.*
git add src/components/*
# 交互式暂存
git add -p
切勿提交机密信息(如 .env、credentials.json、私钥等)。
分析差异以确定:
# 单行提交
git commit -m "<类型>[作用域]: <描述>"
# 多行提交(包含正文/脚注)
git commit -m "$(cat <<'EOF'
<类型>[作用域]: <描述>
<可选正文>
<可选脚注>
EOF
)"
Closes #123、Refs #456每周安装量
18.0K
代码仓库
GitHub 星标数
27.0K
首次出现时间
2026年1月23日
安全审计
安装于
opencode17.1K
codex16.9K
gemini-cli16.8K
github-copilot16.8K
kimi-cli16.4K
amp16.3K
Create standardized, semantic git commits using the Conventional Commits specification. Analyze the actual diff to determine appropriate type, scope, and message.
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]
| Type | Purpose |
|---|---|
feat | New feature |
fix | Bug fix |
docs | Documentation only |
style | Formatting/style (no logic) |
refactor | Code refactor (no feature/fix) |
perf | Performance improvement |
test | Add/update tests |
build | Build system/dependencies |
ci | CI/config changes |
chore | Maintenance/misc |
revert | Revert commit |
# Exclamation mark after type/scope
feat!: remove deprecated endpoint
# BREAKING CHANGE footer
feat: allow config to extend other configs
BREAKING CHANGE: `extends` key behavior changed
# If files are staged, use staged diff
git diff --staged
# If nothing staged, use working tree diff
git diff
# Also check status
git status --porcelain
If nothing is staged or you want to group changes differently:
# Stage specific files
git add path/to/file1 path/to/file2
# Stage by pattern
git add *.test.*
git add src/components/*
# Interactive staging
git add -p
Never commit secrets (.env, credentials.json, private keys).
Analyze the diff to determine:
# Single line
git commit -m "<type>[scope]: <description>"
# Multi-line with body/footer
git commit -m "$(cat <<'EOF'
<type>[scope]: <description>
<optional body>
<optional footer>
EOF
)"
Closes #123, Refs #456Weekly Installs
18.0K
Repository
GitHub Stars
27.0K
First Seen
Jan 23, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode17.1K
codex16.9K
gemini-cli16.8K
github-copilot16.8K
kimi-cli16.4K
amp16.3K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装
AI代码审查工具 - 自动化安全漏洞检测与代码质量分析 | 支持多领域检查清单
1,200 周安装
AI智能体长期记忆系统 - 精英级架构,融合6种方法,永不丢失上下文
1,200 周安装
AI新闻播客制作技能:实时新闻转对话式播客脚本与音频生成
1,200 周安装
Word文档处理器:DOCX创建、编辑、分析与修订痕迹处理全指南 | 自动化办公解决方案
1,200 周安装
React Router 框架模式指南:全栈开发、文件路由、数据加载与渲染策略
1,200 周安装
Nano Banana AI 图像生成工具:使用 Gemini 3 Pro 生成与编辑高分辨率图像
1,200 周安装