quay/ai-helpers/pr
- community
Checking that the SKILL.md file is still in the repository.
Create a pull request with the correct title format, filled-in description template, and JIRA reference. Handles fork workflow with fallback ladder. Validates the PR title against the CI-enforced regex before creating.
Install
npx vskill@latest install quay/ai-helpers/prSKILL.md
Create Pull Request
Create a PR with the correct title format, description, and JIRA reference. This skill handles the full git workflow: validate, push, and PR creation.
IMPORTANT: Follow This Skill Exactly
Do not improvise. Follow the numbered steps in order. When steps fail, use the documented fallback ladder.
Critical Rules
- Always use a fork. Every push goes to a fork remote, every PR is a
cross-fork PR. No exceptions — even if you have write access to upstream.
- Never push directly to upstream. Not even for "small" changes.
- Never skip pre-flight checks.
Step 0: Determine Auth Context
Determine your identity:
If that fails (403), you're running as a GitHub App:
Record $GH_USER and $AUTH_TYPE (user-token / github-app / none).
Step 1: Pre-flight Checks
1a. Git configuration:
If missing, set from $GH_USER.
1b. Inventory remotes:
1c. Identify upstream and default branch:
Record $UPSTREAM_OWNER/$REPO and $DEFAULT_BRANCH. Do not assume main.
1d. Verify changes exist:
Step 2: Validate PR Title
Title must match the CI-enforced regex (set via $PR_TITLE_PATTERN env var):
Step 3: Build Description
Read the template at .claude/templates/pr-description.md. Fill in:
- Summary: What this PR does
- Root Cause / Rationale: Why
- Changes: What changed
- Test Plan: How to verify
- JIRA Link:
${JIRA_BROWSE_URL:-https://redhat.atlassian.net/browse}/<TICKET-KEY> - Backport: Required or not
Check for ambient session metadata:
- If `AGENTIC_SESSION_NAME` is set: populate the
## Automationsection. - If empty/unset: remove the
## Automationsection entirely.
Write the filled template to /tmp/pr-body.md.
Step 4: Ensure Fork Exists
If no fork exists, ask the user before creating one.
Step 5: Configure Fork Remote
If not present:
Step 6: Sync Fork and Push
If workflow file differences exist, attempt automated sync:
Push:
Step 7: Create PR
If AGENTIC_SESSION_NAME is set, add --label "${AMBIENT_SESSION_LABEL:-ambient-session}".
If `gh pr create` fails (403, "Resource not accessible"):
Provide the user a pre-filled compare URL:
Step 8: Post-PR
Always run /poll <PR#> immediately after PR creation — do not ask the user.
Fallback Ladder
Rung 1: Fix and Retry
Most failures have a specific cause. Diagnose and retry.
Rung 2: Manual PR via Compare URL
If gh pr create fails but the branch is pushed, provide a pre-filled GitHub compare URL with title and body query parameters.
Rung 3: User Creates Fork
If no fork exists and automated forking fails, give the user the fork URL and wait.
Rung 4: Patch File (absolute last resort)
Only if ALL above fail:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/dev/skills/pr/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/quay/ai-helpers/pr)