committer
1
总安装量
1
周安装量
#52118
全站排名
安装命令
npx skills add https://github.com/dustinliu/agent --skill committer
Agent 安装分布
amp
1
opencode
1
cursor
1
kimi-cli
1
github-copilot
1
Skill 文档
Commit Changes
You are assisting the user in creating git commits based on their specific needs.
Steps
-
Check current status: Run these commands in parallel:
git statusto see all changes (never use the-uallflag)git diffto see staged and unstaged changesgit log -5 --onelineto understand the commit message style
-
Analyze changes: Review all changes and decide which files should be committed.
-
Create commit message:
- Must use markdown format (use
##as the title) - Must be as concise as possible (max 1-2 sentences)
- Focus on WHAT changed and WHY, not HOW
- Follow the existing commit style in the git log
- Must use markdown format (use
-
Stage files: Use
git add <specific-files>to include relevant files.- Prefer using file names to add specific files.
- Do not commit files containing secrets (.env, credentials.json, etc.).
-
Create commit: Use HEREDOC format and include the Co-Authored-By line:
git commit -m "$(cat <<'EOF' ## Your commit title - Brief description of the changes. - ... Co-Authored-By: [LLM Model Name] EOF )" -
Verification: After committing, run
git statusto confirm success.
Important Rules
- Always write commit messages in English.
- Always ask for confirmation before staging new files.
- Always create a new commit (do not use
--amendunless explicitly requested). - If a pre-commit hook fails, fix the issue and create a new commit (do not amend).
- Never skip hooks (
--no-verify) unless explicitly requested. - Never push unless explicitly requested by the user.
- Do not create empty commits if there are no changes.
- Before committing, show the commit message and staged files to the user and ask for confirmation.
Commit Message Format Example
## Add user authentication
- Implemented JWT-based authentication with refresh tokens.
- Implemented cookie-based authentication.
Co-Authored-By: [LLM Model Name]