用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Marshall-Hallenbeck/dot_files --skill create-pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use when asked to work on, implement, or complete a GitHub issue — before writing any code, checks issue state, existing PRs, git history, and codebase to determine what work remains or if the issue is already resolved
Use when starting, checking, or finishing work on a GitHub issue in any repo where multiple agents may work in parallel — posts a session-info claim comment and manages the in-progress label so other agents skip claimed issues
Use when asked to create, open, file, or draft a GitHub issue
基于 SOC 职业分类
正在显示 SKILL.md
| name | create-pr |
| description | Use when asked to create, open, publish, or submit a pull request from the current branch |
| argument-hint | [title] |
| disable-model-invocation | true |
Creates a well-formatted pull request after verifying tests pass.
/create-pr [title]
# Check we're not on main
BRANCH=$(git branch --show-current)
if [ "$BRANCH" = "main" ] || [ "$BRANCH" = "master" ]; then
echo "ERROR: Cannot create PR from main branch"
exit 1
fi
# Check for uncommitted changes
if [ -n "$(git status --porcelain)" ]; then
echo "WARNING: Uncommitted changes exist."
fi
Auto-detect and run the project's test suite. Only proceed if tests pass.
git log main..HEAD --oneline
git diff main --stat
git diff main --name-only
List labels that exist in the repository:
gh label list --limit 200 --json name,description
Select all clearly applicable labels from the PR title, body, linked issue, and changed files.
bug, enhancement, documentation, refactor, security, or tests when it accurately describes the change.## Summary
[2-3 bullet points describing what this PR does]
## Changes
[Categorized list of changes]
## Test Plan
- [ ] Unit tests pass
- [ ] Integration tests pass (if applicable)
- [ ] Manual testing completed
## Screenshots (if UI changes)
[Include relevant screenshots]
## Related Issues
Closes #[issue-number]
git push -u origin HEAD 2>/dev/null || git push
gh pr create --title "[title]" --body "[description]" --base main \
--label "<label>" --label "<label>"
Then verify:
gh pr view <PR-NUMBER> --json labels
Compare the saved label names with the selected label names. Verification must show every selected label. If the result omits a selected label, treat verification as failed and abort.
If this branch's work claimed a GitHub issue (see the claim-issue skill),
keep the claim while the PR is open:
Closes #<N> so the merge closes the issue.~/.claude/skills/claim-issue/claim-issue.sh release <N> "merged in PR #<PR>"
(or the project-local copy, e.g. scripts/agent-claim-issue.sh).PR Created
Title: [PR title]
URL: [PR URL]
Branch: [branch] → main
Labels: [saved labels]
Claimed issue: [#N still claimed until merge | none]
/safe-commit