← Browse

@nex-agi/github-pr

A

Create a GitHub PR from a worktree branch. Use after committing changes.

skillclaude

Install

agr install @nex-agi/github-pr --target claude

Writes 1 file into .claude/skills/, pinned to git-c2826ade.

  • .claude/skills/github-pr/SKILL.md

Document


name: github-pr description: Create a GitHub PR from a worktree branch. Use after committing changes.

GitHub PR Workflow (Worktree-Aware)

Prerequisites

Changes committed via git-commit skill.

Workflow

Step 1: Verify Current Location

git worktree list
pwd
BRANCH_NAME=$(git branch --show-current)
echo "Current branch: $BRANCH_NAME"

Step 2: Check for Existing PR

gh pr list --head "$BRANCH_NAME" --state open --repo "$REPO"

If PR exists, show it and exit.

Step 3: Push Branch

git push --set-upstream origin "$BRANCH_NAME"

Step 4: Create PR

gh pr create \
  --repo china-qijizhifeng/NexRL \
  --base main \
  --head "$BRANCH_NAME" \
  --title "type(scope): description" \
  --body "## Summary
- Key change 1
- Key change 2

## Testing
- [ ] Tests pass (`pytest`)
- [ ] Linting clean (`pylint`, `mypy`)
- [ ] Formatting applied (`black`, `isort`)

## Related Issues
Fixes #ISSUE_NUMBER"

Auto-extract title/body from commit messages. No AI branding.

Step 5: Update Issue

ISSUE_NUM=$(echo "$BRANCH_NAME" | grep -oP 'issue-\K\d+')
if [ -n "$ISSUE_NUM" ]; then
  gh issue edit "$ISSUE_NUM" --repo china-qijizhifeng/NexRL \
    --remove-label "status:in-progress" --add-label "status:review" 2>/dev/null || true
  gh issue comment "$ISSUE_NUM" --repo china-qijizhifeng/NexRL \
    --body "✅ PR created: $(gh pr view --json url -q .url). Ready for review."
fi

Trustgrade A

  • passBody integrity

    Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.

  • passType matchnot applicable to this artifact type

    Whether the artifact is really the kind of thing its metadata claims it is.

  • passFreshness

    How long since the source repository was last pushed to.

  • passPrompt injection

    Scans the artifact's own text for instructions aimed at your agent rather than at you.

  • passLicense

    Whether the source repository declares an SPDX license permissive enough to redistribute.

How the grade is calculated

Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:

  • Aevery check passed
  • Bone warning
  • Ctwo warnings
  • Dprompt injection or body integrity failed, or three warnings
  • Fone of those failed, and something else is wrong

These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.

Versions

  • git-c2826adeb84c2026-07-31