MCP.Market

open-pr skill

by Significant-Gravitas·Significant-Gravitas/AutoGPT·188k stars

Open a pull request with proper PR template, test coverage, and review workflow. Guides agents through creating a PR that follows repo conventions, ensures existing behaviors aren't broken, covers new behaviors with tests, and handles review via bot when local testing isn't possible. TRIGGER when user asks to "open a PR", "create a PR", "make a PR", "submit a PR", "open pull request", "push and create PR", or any variation of opening/submitting a pull request.

A100/100content scan

Is the open-pr skill safe?

Clean: nothing in its files matched our rules. We read 1 file in the folder on 2026-10-25.

No findings.

Install the open-pr skill

A skill is a folder. Copy it into your agent's skills folder and the agent loads it when the task matches its description.

git clone --depth 1 https://github.com/Significant-Gravitas/AutoGPT.git /tmp/AutoGPT
mkdir -p ~/.claude/skills
cp -r /tmp/AutoGPT/.claude/skills/open-pr ~/.claude/skills/open-pr
available in every project

In the Claude apps, zip the folder and upload it from the Skills settings. The folder on GitHub

The instructions your agent would load

SKILL.md as published, without the frontmatter. Read it on GitHub

Open a Pull Request

Step 1: Pre-flight checks

Before opening the PR:

  1. Ensure all changes are committed
  2. Ensure the branch is pushed to the remote (git push -u origin )
  3. Run linters/formatters across the whole repo (not just changed files) and commit any fixes

Step 2: Test coverage

This is critical. Before opening the PR, verify:

Existing behavior is not broken

  • Identify which modules/components your changes touch
  • Run the existing test suites for those areas
  • If tests fail, fix them before opening the PR — do not open a PR with known regressions

New behavior has test coverage

  • Every new feature, endpoint, or behavior change needs tests
  • If you added a new block, add tests for that block
  • If you changed API behavior, add or update API tests
  • If you changed frontend behavior, verify it doesn't break existing flows

If you cannot run the full test suite locally, note which tests you ran and which you couldn't in the test plan.

Step 3: Create the PR using the repo template

Read the canonical PR template at .github/PULLREQUESTTEMPLATE.md and use it verbatim as your PR body:

  1. Read the template: cat .github/PULLREQUESTTEMPLATE.md
  2. Preserve the exact section titles and formatting, including:
  • ### Why / What / How
  • ### Changes 🏗️
  • ### Checklist 📋
  1. Replace HTML comment prompts (<!-- ... -->) with actual content; do not leave them in
  2. Do not pre-check boxes — leave all checkboxes as - [ ] until each step is actually completed
  3. Do not alter the template structure, rename sections, or remove any checklist items

PR title must use conventional commit format (e.g., feat(backend): add new block, fix(frontend): resolve routing bug, dx(skills): update PR workflow). See CLAUDE.md for the full list of scopes.

Use gh pr create with the base branch (defaults to dev if no [base-branch] was provided). Use --body-file to avoid shell interpretation of backticks and special characters:

BASE_BRANCH="${BASE_BRANCH:-dev}"
PR_BODY=$(mktemp)
cat > "$PR_BODY" << 'PREOF'
<filled-in template from .github/PULL_REQUEST_TEMPLATE.md>
PREOF
gh pr create --base "$BASE_BRANCH" --title "<type>(scope): short description" --body-file "$PR_BODY"
rm "$PR_BODY"

Step 4: Review workflow

If you have a workspace that allows testing (docker, running backend, etc.)

  • Run /pr-test to do E2E manual testing of the PR using docker compose, agent-browser, and API calls. This is the most thorough way to validate your changes before review.
  • After testing, run /pr-review to self-review the PR for correctness, security, code quality, and testing gaps before requesting human review.

If you do NOT have a workspace that allows testing

This is common for agents running in worktrees without a full stack. In this case:

wait at 60 minutes from the /review comment, the same budget /pr-address and /pr-polish use. If nothing has arrived by then, stop waiting and tell the user the requested review never came. Never block indefinitely on a bot.

  1. Run /pr-review locally to catch obvious issues before pushing
  2. Comment /review on the PR after creating it to trigger the review bot
  3. Poll for the review rather than blindly waiting — check for new review comments every 30 seconds using gh api repos/Significant-Gravitas/AutoGPT/pulls/{N}/reviews --paginate and the GraphQL inline threads query. The bot typically responds within 30 minutes, but polling lets the agent react as soon as it arrives.
  4. Do NOT proceed or merge until the bot review comes back — but bound the
  1. Address any issues the bot raises — use /pr-address which has a full polling loop with CI + comment tracking
# After creating the PR:
PR_NUMBER=$(gh pr view --json number -q .number)
gh pr comment "$PR_NUMBER" --body "/review"
# Then use /pr-address to poll for and address the review when it arrives

Step 5: Address review feedback

Once the review bot or human reviewers leave comments:

  • Run /pr-address to address review comments. It will loop until CI is green and all comments are resolved.
  • Do not merge without human approval.

Related skills

Step 6: Post-creation

After the PR is created and review is triggered:

  • Share the PR URL with the user
  • If waiting on the review bot, let the user know the expected wait time (~30 min)
  • Do not merge without human approval

More skills from Significant-Gravitas/AutoGPT

  • DorchestrateMeta-agent supervisor that manages a fleet of Claude Code agents running in tmux windows. Auto-discovers spare worktrees, spawns agents, monitors state, kicks idle agents, approves safe confirmations, and recycles worktrees when done. TRIGGER when user asks to supervise agents, run parallel tasks, manage worktrees, check agent status, or orchestrate parallel work.
  • Aperf-compareShared measurement recipe for AutoGPT performance work. Compares a baseline and a candidate in Sentry (two releases, two environments such as preview pr-<n> deploys, or two time windows) per transaction: count, p50/p95/p99, failure rate, and a trace-clustered bootstrap verdict of faster / slower / no detectable change / not enough data, with exit codes agents can branch on. Works for span duration, web vitals (measurements.lcp) or any numeric span field. TRIGGER when an agent needs to show a change made the backend or frontend faster or slower, compare a preview against a control or dev, check a release after merge on dev or prod, or check for regressions.
  • Apr-addressAddress PR review comments and loop until CI green and all comments resolved. TRIGGER when user asks to address comments, fix PR feedback, respond to reviewers, or babysit/monitor a PR.
  • Apr-polishAlternate /pr-review and /pr-address on a PR until the PR is truly mergeable — no new review findings, zero unresolved inline threads, zero unaddressed top-level reviews or issue comments, all CI checks green, and two consecutive quiet polls after CI settles. Use when the user wants a PR polished to merge-ready without setting a fixed number of rounds.
  • Apr-reviewReview a PR for correctness, security, code quality, and testing issues. TRIGGER when user asks to review a PR, check PR quality, or give feedback on a PR.
  • Apr-testE2E manual testing of PRs/branches using docker compose, agent-browser, and API calls. TRIGGER when user asks to manually test a PR, test a feature end-to-end, or run integration tests against a running system.
  • Asetup-repoInitialize a worktree-based repo layout for parallel development. Creates a main worktree, a reviews worktree for PR reviews, and N numbered work branches. Handles .env creation, dependency installation, and branchlet config. TRIGGER when user asks to set up the repo from scratch, initialize worktrees, bootstrap their dev environment, "setup repo", "setup worktrees", "initialize dev environment", "set up branches", or when a freshly cloned repo has no sibling worktrees.
  • Avercel-react-best-practicesReact and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
  • Awebapp-testingToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
  • AworktreeSet up a new git worktree for parallel development. Creates the worktree, copies .env files, installs dependencies, and generates Prisma client. TRIGGER when user asks to set up a worktree, work on a branch in isolation, or needs a separate environment for a branch or PR.
  • Awrite-frontend-testsAnalyze the current branch diff against dev, plan integration tests for changed frontend pages/components, and write them. TRIGGER when user asks to write frontend tests, add test coverage, or 'write tests for my changes'.

All agent skills → · MCP servers