Agent Skills
› antiwork/gumroad
› commit
commit
GitHub指导Agent对代码变更进行安全提交。包括检查状态、运行测试验证(需99%置信度)、执行多语言Lint/类型检查,规范暂存文件并生成符合特定风格的简洁提交信息。
Trigger Scenarios
用户要求提交代码更改
完成编码任务后需要保存成果
Install
npx skills add antiwork/gumroad --skill commit -g -y
SKILL.md
Frontmatter
{
"name": "commit",
"description": "Stage and commit changes with a clear, concise commit message.",
"allowed-tools": "Bash(git *)",
"argument-hint": [
"optional message hint"
]
}
Commit
Create a commit for the current changes.
Steps
- Run
git status(without-uall) to see untracked and modified files. - Run
git diffandgit diff --cachedto understand staged and unstaged changes. - Run
git log --oneline -5to see recent commit style. - Run
bin/test-confidenceto verify your changes don't break anything. Opus analyzes your diff and runs the right tests. Wait for 99% confidence (green bar) before proceeding. If any test fails, fix it first. - Run linters on changed files before staging:
- Ruby files:
bundle exec rubocop --force-exclusion -a <files> - JS/TS files:
npm run lint-fast -- --max-warnings 0 --fix --no-warn-ignored <files> - TypeScript type check:
npx tsc --noEmit(required, catches type errors that eslint skips) - CSS/SCSS/JSON/MD files:
npx prettier --write <files> - SVG files:
npx svgo --multipass <files> - Fix any lint errors or type errors before proceeding. Do not commit code that fails linting or type checking.
- Ruby files:
- Stage the relevant files by name — avoid
git add -Aorgit add .. - Write a commit message and commit.
If $ARGUMENTS is provided, use it as a hint for the message.
Commit message rules
- Use the imperative mood ("Add", "Fix", "Remove", not "Added", "Fixes", "Removed").
- Be concise: one short sentence, ideally under 50 characters.
- Do NOT use conventional commit prefixes (no
feat:,fix:,chore:, etc.). - Do NOT add any
Co-Authored-Byor similar trailers. - Focus on what changed and why, not how.
- If a second line is needed for context, keep it brief.
Examples of good messages
Prevent discount code from being cleared on editAdd integration test for offer code persistenceRemove unused legacy export helperFix thumbnail missing in upsell insert
$ARGUMENTS
Version History
- 92e22de Current 2026-08-20 17:15


