用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/nex-agi/weaver --skill github-pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | github-pr |
| description | Create a GitHub PR from a worktree branch. Use after committing changes. |
Changes committed via git-commit skill.
# Ensure we're in a worktree, not the main clone
git worktree list
pwd
BRANCH_NAME=$(git branch --show-current)
echo "Current branch: $BRANCH_NAME"
gh pr list --head "$BRANCH_NAME" --state open --repo nex-agi/weaver
If PR exists, show it with gh pr view and exit.
git push --set-upstream origin "$BRANCH_NAME"
# After rebase: git push --force-with-lease origin "$BRANCH_NAME"
gh pr create \
--repo nex-agi/weaver \
--base main \
--head "$BRANCH_NAME" \
--title "type(scope): description" \
--body "## Summary
- Key change 1
- Key change 2
## Testing
- [ ] Tests pass (`make test`)
- [ ] Linting clean (`make lint`)
- [ ] License headers present
## Related Issues
Fixes #ISSUE_NUMBER"
Auto-extract title/body from commit messages. No AI branding.
# Extract issue number from branch name if possible
ISSUE_NUM=$(echo "$BRANCH_NAME" | grep -oP 'issue-\K\d+')
if [ -n "$ISSUE_NUM" ]; then
gh issue edit "$ISSUE_NUM" --repo nex-agi/weaver \
--remove-label "status:in-progress" --add-label "status:review" 2>/dev/null || true
gh issue comment "$ISSUE_NUM" --repo nex-agi/weaver \
--body "✅ PR created: $(gh pr view --json url -q .url). Ready for review."
fi
基于 SOC 职业分类