by softaworks
创建高质量的 git 提交既耗时又容易出错。此技能通过智能暂存、逻辑拆分和约定式提交格式来自动化提交创建,从而每次都能生成可直接用于审查的提交。
1. 打开 Claude 聊天界面
2. 点击下方 "📋 复制" 按钮
3. 粘贴到 Claude 聊天框中并发送
4. 输入 "使用 commit-work 技能" 开始使用
=== commit-work 技能 === 作者: softaworks 描述: 创建高质量的 git 提交既耗时又容易出错。此技能通过智能暂存、逻辑拆分和约定式提交格式来自动化提交创建,从而每次都能生成可直接用于审查的提交。 使用方法: 1. 调用技能: "使用 commit-work 技能" 2. 提供相关信息: 根据技能要求提供必要参数 3. 查看结果: 技能会返回处理结果 示例: "使用 commit-work 技能,帮我分析一下这段代码"
这种方法适用于所有 Claude 用户,不需要安装额外工具。
productivity
safe
A comprehensive skill for creating high-quality, production-ready git commits that are easy to review, safe to ship, and follow best practices.
This skill helps you create well-crafted git commits by:
Use this skill when you need to:
Trigger phrases:
The skill follows a rigorous 8-step workflow:
git status and git diffgit add -p) for granular controlgit diff --cachedAutomatically identifies when to split commits by:
All commits follow the standard:
type(scope): short summary
Detailed body explaining what changed and why.
BREAKING CHANGE: if applicable
Reviews staged changes for:
Uses git add -p for fine-grained control when changes within a single file need to be split across commits.
# User asks: "commit this bugfix"
# Skill workflow:
git status
git diff
git add src/api/auth.js
git diff --cached
git commit -m "fix(auth): resolve token expiration edge case
Previously tokens would fail validation within 1 second of expiry
due to clock skew. Now includes 5-second grace period."
# User has: formatting changes + new feature + test updates
# Skill creates 3 commits:
# Commit 1: chore: format code with prettier
# Commit 2: feat(api): add user profile endpoint
# Commit 3: test: add coverage for profile endpoint
# Uses git add -p to stage selectively
# Single file has refactor + bugfix mixed
git add -p src/components/Header.js
# Stages only bugfix hunks for first commit
git commit -m "fix(ui): correct mobile menu z-index"
git add src/components/Header.js
# Stages refactor hunks for second commit
git commit -m "refactor(ui): extract menu logic to custom hook"
The skill may ask for:
If not provided, defaults to:
After running, the skill provides:
git diff firstgit add . or git add -Agit add -p for mixed changesgit diff --cached before committingreferences/commit-message-template.md for message templatesgit add -p) is used extensively for granular controlView Count
0
Download Count
0
Favorite Count
0
Quality Score
71