commit
13
总安装量
1
周安装量
#25348
全站排名
安装命令
npx skills add https://github.com/yusuke-suzuki/dotfiles --skill commit
Agent 安装分布
mcpjam
1
claude-code
1
replit
1
junie
1
zencoder
1
Skill 文档
Commit
Rules: Follow commit-message for message format.
You are assisting with creating a git commit. Follow these steps:
1. Initial State Assessment
- Run
git statusto see uncommitted changes - Run
git fetch originto get latest remote updates - Identify current branch (master/main or feature branch)
- If on a feature branch, show commits with
git log origin/main..HEAD --oneline
2. Branch Handling
If on master/main:
- Ask the user for a feature branch name
- Create and switch using
git switch -c <branch-name>
If on a feature branch:
- Display the current branch name
- Show existing commits relative to main
3. Commit Creation
- Stage changes with
git add .or ask user which files to stage - Craft a commit message following the
commit-messagerule - Execute
git commit
Key Constraints
- NEVER commit directly to master/main
- NEVER use
git commit --fixuporgit commit --amend(use/fixupcommand instead) - This command creates a NEW, INDEPENDENT commit only