用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/TypedDevs/bashunit --skill commit命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | commit |
| description | Stage and commit changes using conventional commits format |
| user-invocable | true |
| argument-hint | [message hint] |
| disable-model-invocation | true |
| allowed-tools | Bash, Read, Grep, Glob |
Stage and commit current changes using the conventional commits format.
IMPORTANT: This skill MUST be used for ALL commits — even when the user says "commit" without
/commit. Never commit without following these steps.
git branch --show-currentgit status --shortgit diff --cached --stat 2>/dev/nullgit diff --stat 2>/dev/nullgit log --oneline -5 2>/dev/null$ARGUMENTS - Optional hint for the commit message (e.g., fix the snapshot comparison)Review the state above — understand what changed and why.
Stage files — add only the relevant changed files by name. Never use git add -A or git add .. Never stage files that contain secrets (.env, credentials, etc.).
Determine the commit type from the nature of the changes:
feat — new feature or capabilityfix — bug fixdocs — documentation onlystyle — formatting, whitespace (no logic change)refactor — code restructuring (no behavior change)test — adding or updating testschore — maintenance, tooling, configperf — performance improvementDetermine the scope from the area of the codebase affected:
assert — assertions (src/assert*.sh)runner — test runnercli — CLI entry point, flags, optionsdoubles — mocks, spiesdocs — documentation siteci — CI/CD, GitHub ActionsWrite the commit message:
<type>(<scope>): <description>Create the commit:
git commit -m "$(cat <<'EOF'
<type>(<scope>): <description>
<optional body>
EOF
)"
Verify the commit was created:
git log --oneline -1
feat(assert): add assert_json_contains function
fix(runner): resolve parallel execution race condition
test(doubles): add spy verification edge cases
refactor(cli): extract option parsing into helper
docs: update installation instructions
chore(ci): upgrade shellcheck to v0.10
perf(runner): reduce subshell usage in test discovery
--no-verify — if hooks fail, fix the issue