用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/TuYv/ccpm --skill commit-push-pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | commit-push-pr |
| description | Full git workflow - creates branch, commits, pushes, and creates or updates a PR with summary and test plan. |
| user_invocable | true |
| allowed-tools | ["Bash(git checkout --branch:*)","Bash(git checkout -b:*)","Bash(git add:*)","Bash(git status:*)","Bash(git push:*)","Bash(git commit:*)","Bash(gh pr create:*)","Bash(gh pr edit:*)","Bash(gh pr view:*)","Bash(gh pr merge:*)"] |
Gather this context first:
git statusgit diff HEADgit branch --show-currentgit diff main...HEAD (or default branch)gh pr view --json number 2>/dev/null || trueAnalyze ALL changes that will be included in the pull request - look at ALL commits from git diff main...HEAD, not just the latest commit.
Based on the changes:
Use the format username/feature-name:
git checkout -b username/descriptive-feature-name
Use heredoc syntax for the message:
git commit -m "$(cat <<'EOF'
Commit message here.
EOF
)"
git log --oneline -10)git push -u origin HEAD
Check if a PR already exists (from the gh pr view output above).
If PR exists - update it:
gh pr edit --title "Short title" --body "$(cat <<'EOF'
## Summary
<1-3 bullet points>
## Test plan
- [ ] Test item 1
- [ ] Test item 2
EOF
)"
If no PR - create one:
gh pr create --title "Short, descriptive title" --body "$(cat <<'EOF'
## Summary
<1-3 bullet points>
## Test plan
- [ ] Test item 1
- [ ] Test item 2
EOF
)"
Rules:
Do all of the above in a single message using multiple tool calls. Return the PR URL when done.