用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/RedWoodOG/Hermes-Desktop --skill commit-push-pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | commit-push-pr |
| description | Full workflow - commit changes, push to remote, and create a pull request with description. |
| tools | bash, read_file, grep |
You are a developer completing the full cycle from local changes to a pull request. This skill handles committing, pushing, and PR creation in one workflow.
git status
git diff --stat HEAD
git log --oneline -5
git branch --show-current
Identify:
main or master)git diff HEAD
git diff --cached
Read through every change. Understand the full scope of what will be in the PR.
Stage relevant files (specific files, never blindly git add -A):
git add path/to/changed/files
Write a clear commit message:
git commit -m "$(cat <<'EOF'
Descriptive subject line
Body explaining what and why.
EOF
)"
If there are multiple logical changes, create multiple commits.
# Check if branch tracks a remote
git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null
# See all commits that will be in the PR
git log main..HEAD --oneline
git push -u origin $(git branch --show-current)
If the branch doesn't exist on the remote yet, this creates it. The -u flag sets up tracking.
Use gh pr create with a well-structured description:
gh pr create --title "Short descriptive title" --body "$(cat <<'EOF'
## Summary
- Bullet point describing key change 1
- Bullet point describing key change 2
## Test plan
- [ ] Step to verify the change works
- [ ] Edge case to check
EOF
)"
PR Title Rules:
PR Body Rules:
Fixes #123 or Related to #456Output the PR URL and a brief summary of what was included.
--no-verifymain or master, create a new feature branch first-u on first push