Summary
分析未提交的代码变更,生成符合 Conventional Commits 规范的提交信息,并自动执行 git add、commit 和 push 操作。当用户需要提交代码、推送更改、生成提交信息,或提到 git commit、git push、提交代码、推送代码时使用。
smithery.ai
分析未提交的代码变更,生成符合 Conventional Commits 规范的提交信息,并自动执行 git add、commit 和 push 操作。当用户需要提交代码、推送更改、生成提交信息,或提到 git commit、git push、提交代码、推送代码时使用。
分析未提交的代码变更,生成符合 Conventional Commits 规范的提交信息,并自动执行 git add、commit 和 push 操作。当用户需要提交代码、推送更改、生成提交信息,或提到 git commit、git push、提交代码、推送代码时使用。
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Send an email via the Recoup API the reliable way — a Node helper that serializes the body corr…
3.8K installsStructured decision-making frameworks for evaluating options and making informed choices. Use w…
3K installsSafe Rust refactoring with LSP analysis. Triggers on: /refactor, rename symbol, move function, …
2.7K installsManages the end-to-end lifecycle of on-demand, temporary access using Privileged Access Manager…
1.5K installsSafely simulates and applies Google Cloud IAM v1 (Allow) policy changes. Uses the Policy Simula…
1.3K installsOther skills from smithery.ai · top by installs.
npx skills add https://smithery.ai
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Files included with this skill beyond the listing page.
SKILL.md
4,822 B
SUMMARY.md
299 B
自动分析代码变更,生成简洁的 commit 消息,并执行提交和推送操作。
按以下步骤执行:
``bash git status git diff ``
- 识别修改的文件类型和数量 - 理解代码变更的意图和影响范围 - 确定变更类型(功能、修复、重构、文档等)
- 使用 Conventional Commits 格式 - 标题简洁明了(50 字符以内) - 正文详细说明变更内容(如需要)
- git add . 或 git add <specific-files> 暂存变更 - git commit -m "<生成的提交信息>" - git push 推送到远程仓库
使用 Conventional Commits 规范:
<type>(<scope>): <subject>
<body>
feat: 新功能fix: 修复 bugdocs: 文档变更style: 代码格式(不影响代码运行)refactor: 重构(既不是新功能也不是修复)perf: 性能优化test: 测试相关chore: 构建过程或辅助工具的变动ci: CI 配置文件和脚本的变更示例 1:新功能
feat(chat): 添加流式响应支持
实现 ChatController 的流式输出功能,提升用户体验
示例 2:修复 Bug
fix(vector-store): 修复 SimpleVectorStore 初始化错误
解决 VectorStoreConfig 中构造函数参数不匹配的问题
示例 3:重构
refactor(service): 优化 ChatService 代码结构
提取公共方法,减少代码重复,提升可维护性
示例 4:文档更新
docs: 更新 README 添加快速开始指南
补充 API 使用示例和配置说明
示例 5:依赖更新
chore: 更新 Spring AI 版本到 1.0.0-M5
同步最新依赖,修复已知问题
当变更较复杂时,添加正文说明:
- Java 文件 → 关注类、方法、功能 - 配置文件 → 关注配置项和值 - 文档文件 → 关注内容更新
- 新增文件 → feat 或 docs - 修改逻辑 → fix 或 refactor - 删除代码 → refactor 或 chore - 仅格式调整 → style
- 单个文件 → 在 scope 中指定文件名或模块 - 多个文件 → 使用通用 scope 或省略
git status
git diff
根据变更范围决定:
git add .git add <file1> <file2>git commit -m "<生成的标题>"
如果变更复杂,使用多行消息:
git commit -m "<标题>" -m "<正文>"
git push
如果当前分支没有设置上游:
git push -u origin <branch-name>
如果 git status 显示没有变更:
在执行 git push 前:
git pull对于新文件:
.gitignore 规则git push 前确认当前分支和远程仓库正确.gitignore 确保不会提交临时文件场景 1:用户说"提交代码"
场景 2:用户说"帮我推送代码"
场景 3:用户说"生成提交信息"