用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/rjmurillo/ai-agents --skill push-pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | push-pr |
| description | Commit, push, and open a PR |
| allowed-tools | Bash(git checkout -b:*), Bash(git switch -c:*), Bash(git add:*), Bash(git status:*), Bash(git push:*), Bash(git commit:*), Bash(python3:*/pr/new_pr.py*), Bash(git diff:*), Bash(git branch:*) |
| user-invocable | true |
git statusgit diff HEADgit branch --show-currentBased on the above changes:
Create a new branch if on main
Push the branch to origin
Read @.github/PULL_REQUEST_TEMPLATE.md
Write a new file adapting the template to describe THIS branch's changes (e.g. /tmp/PR-123-BODY.md):
<!-- Brief description --> unfilled## Acceptance criteria heading with - [ ] or * [ ] bullets. The Validate Spec Coverage job reads these from the PR body, not the linked issue. Any unchecked box makes the signal report FAIL, and that FAIL does not block the merge, so check a box only once the criterion is actually met. Numbered criteria are not recognized.Create a pull request using the new_pr skill script:
SCRIPTS_DIR="${CLAUDE_PLUGIN_ROOT:-.claude}/skills/github/scripts"
python3 "$SCRIPTS_DIR/pr/new_pr.py" --title "<conventional commit title>" --body-file /tmp/PR-123-BODY.md
feat: Add feature, fix(auth): Resolve bug)Closes #123: auto-closes issue when PR mergesFixes #456: auto-fixes issue when PR mergesResolves #789: auto-resolves issue when PR mergesYou have the capability to call multiple tools in a single response. You MUST do all of the above in a single message. Do not use any other tools or do anything else. Do not send any other text or messages besides these tool calls.