用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/mitchellfyi/dex --skill dxcommit命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | dxcommit |
| description | Stage, commit, and push changes following the repo's commit discipline after verification passes. |
Stage, commit, and push changes following the repo's commit discipline.
/dxverify passes all quality gatesgit status
git diff --stat
Review what has changed. Identify logical groupings for atomic commits. If there are no changes to commit (clean working tree, nothing staged), stop here — inform the user and skip the remaining steps.
Read the commit format guide from the Dex prompts directory (prompts/commit-format.md) for the full format specification.
For each logical group:
Stage specific files — never use git add -A or git add .:
git add path/to/file1 path/to/file2
Check for forbidden and sensitive files — verify none are staged:
git diff --cached --name-only
Write a conventional commit message following the format in prompts/commit-format.md. Include the Dex Co-Authored-By trailer and no Claude attribution:
Co-Authored-By: Dex <noreply@dexcode.ai>
Do not include Generated with Claude Code, Co-Authored-By: Claude ..., or any similar Claude Code footer.
current_branch=$(git branch --show-current)
upstream=$(git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null || true)
if [[ -z "$upstream" || "$upstream" != "origin/${current_branch}" ]]; then
git push -u origin HEAD
else
git push
fi
Verify the push succeeded. This handles newly created Dex lifecycle branches whose first checkout was based on the default branch's upstream or remote-tracking ref, but whose push target must be their own branch. If push fails due to diverged history, investigate — do not force push without user approval.