commit by paulrberg/agent-skills
npx skills add https://github.com/paulrberg/agent-skills --skill commit通过暂存正确的文件、分析暂存的差异、编写符合规范的提交信息,并可选择性地推送,来创建原子提交。
在一个 bash 调用中运行所有检查和上下文收集:
git rev-parse --is-inside-work-tree \
&& ! test -d "$(git rev-parse --git-dir)/rebase-merge" \
&& ! test -f "$(git rev-parse --git-dir)/MERGE_HEAD" \
&& ! test -f "$(git rev-parse --git-dir)/CHERRY_PICK_HEAD" \
&& git symbolic-ref HEAD \
&& git status --short --branch
如果任何检查失败,则停止并显示明确的错误和建议的修复方法。
参数:$ARGUMENTS
--all 提交所有更改--deep 深度分析,破坏性变更,简洁的正文--push 提交后推送广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
--all:
git add -Agit diff --cached --name-onlygit restore --staged <文件>git add <文件>git checkout 无关的更改。git diff --cached读取暂存的差异并一次性生成提交信息。
类型推断 — 根据行为确定:
| 行为 | 类型 |
|---|---|
| 新功能 | feat |
| 错误修复 / 错误处理 | fix |
| 代码重组,行为无变化 | refactor |
| 文档 | docs |
| 测试 | test |
| 构建系统(webpack, vite, esbuild) | build |
| CI/CD 流水线 | ci |
| 依赖项 | chore(deps) |
| 仅格式化 / 空格 | style |
| 性能 | perf |
| 还原之前的提交 | revert |
| AI 配置(CLAUDE.md, .claude/, .gemini/, .codex/) | ai |
| 其他维护 | chore |
参数中的显式类型关键字优先于推断。
作用域 — 仅在路径明显时推断(小写)。
无关的代码块 — 在确定类型/作用域/描述时忽略先前存在的更改。如果无关的更改与会话更改在同一文件中,它们会包含在提交作用域内,但不应影响提交信息。
信息格式:
type(scope): description 或 type: description如果使用 --deep:
BREAKING CHANGE: + 一行迁移说明Closes #123git commit -m "subject"(仅当正文非空时添加 -m "body")--push)git pushgit push -u origin HEAD每周安装次数
105
仓库
GitHub 星标数
41
首次出现
2026年2月5日
安全审计
安装于
claude-code101
codex88
opencode85
gemini-cli85
github-copilot85
amp85
Create atomic commits by staging the right files, analyzing the staged diff, composing a conventional commit message, and optionally pushing.
Run all checks and context collection in one bash call:
git rev-parse --is-inside-work-tree \
&& ! test -d "$(git rev-parse --git-dir)/rebase-merge" \
&& ! test -f "$(git rev-parse --git-dir)/MERGE_HEAD" \
&& ! test -f "$(git rev-parse --git-dir)/CHERRY_PICK_HEAD" \
&& git symbolic-ref HEAD \
&& git status --short --branch
If any check fails, stop with a clear error and suggested fix.
Arguments: $ARGUMENTS
--all commit all changes--deep deep analysis, breaking changes, concise body--push push after commit--all:
git add -Agit diff --cached --name-onlygit restore --staged <file>git add <file>git checkout unrelated changes.git diff --cachedRead the staged diff and produce the commit message in a single pass.
Type inference — determine from behavior:
| Behavior | Type |
|---|---|
| New functionality | feat |
| Bug fix / error handling | fix |
| Code reorganization, no behavior change | refactor |
| Documentation | docs |
| Tests | test |
| Build system (webpack, vite, esbuild) | build |
| CI/CD pipelines |
Explicit type keyword in arguments takes precedence over inference.
Scope — infer only when path makes it obvious (lowercase).
Unrelated hunks — ignore pre-existing changes when determining type/scope/description. If unrelated changes are in the same file as session changes, they are included in the commit scope but should not influence the message.
Message format:
type(scope): description or type: descriptionIf--deep:
BREAKING CHANGE: + one-line migration noteCloses #123git commit -m "subject" (add -m "body" only if body is non-empty)--push)git pushgit push -u origin HEADWeekly Installs
105
Repository
GitHub Stars
41
First Seen
Feb 5, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code101
codex88
opencode85
gemini-cli85
github-copilot85
amp85
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
157,400 周安装
ripgrep (rg) 快速文本搜索工具:比 grep 快 100 倍的正则表达式搜索
104 周安装
Python PDF处理指南:合并、拆分、提取文本与表格,创建PDF文件
104 周安装
Shopify Polaris Web Components 使用指南:为 App Home 构建 UI 的完整教程
104 周安装
每日新闻摘要生成器 - AI自动汇总多源新闻,智能生成Markdown报告
104 周安装
Obsidian CLI 官方命令行工具使用指南:文件管理、搜索、属性与任务操作
104 周安装
流程图创建器 - 在线生成交互式HTML流程图、决策树和工作流可视化工具
104 周安装
ci |
| Dependencies | chore(deps) |
| Formatting / whitespace only | style |
| Performance | perf |
| Reverting previous commit | revert |
| AI config (CLAUDE.md, .claude/, .gemini/, .codex/) | ai |
| Other maintenance | chore |