Index of every page on this site: llms.txt
All skills
eagerworks avatar

/create-pr

@4e2af20
by eagerworkseagerworks/skills16 stars
Run it yourself

Opens (or updates) a pull request with a conventional title, an evidence-backed description, and a real verification checklist — resolving the base branch from evidence, attaching screenshots via the GitHub CLI when the change is visible in the UI, and asking rather than guessing at every genuine judgment call. Use when asked to "open a PR", "create a pull request", "push this and make a PR", "ship this branch", or to fix up an existing PR's title, description, or checklist.

Use this Skill: https://skilld.dev/gh/eagerworks/skills/create-pr

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesworkflow.md

≈731 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Create PR — End-to-End Workflow

Standard flow (no PR open yet)

  1. Preflight (see SKILL.md): confirm you're not on the base branch, check git status, check gh pr view for an existing PR, check gh --version for the --attach gate.
  2. Resolve the base branch — references/base-branch.md.
  3. Read repo conventions: AGENTS.md/CLAUDE.md at the repo root, and .eagerworks/create-pr.json if present (references/config.md). A repo's own PR-authoring conventions (title style, required sections, a commit skill's message rules) take precedence over this skill's defaults.
  4. Gather the real diff context instead of guessing what changed:
    git status
    git diff --stat origin/<base>...HEAD
    git log origin/<base>..HEAD --oneline
  5. Commit anything pending. If the repo has its own commit skill or documented commit-message convention, follow it; otherwise use Conventional Commits.
  6. Push: git push -u origin <branch>.
  7. Get screenshots if the change is UI-visible — references/screenshots.md.
  8. Write the description to a temp file per references/description.md, then create:
    gh pr create --base <base> --title "<type>(<scope>): <description>" \
      --body-file <file> \
      --assignee @me \
      --label <label1>,<label2> \
      --attach './screenshots/foo.png#Alt text'   # repeat per screenshot, omit if none
  9. Fix up anything that wasn't set at creation time, or that only became clear afterward:
    gh pr edit <number> --add-assignee @me --add-label <label>

When a PR already exists

Rung 1 of the base-branch ladder already told you this. Don't call gh pr create again — update in place:

gh pr edit <number> --title "..." --body-file <file>
gh pr edit <number> --attach './screenshots/foo.png#Alt text'

If the user only asked to fix the title or description, touch only that — don't force-push new commits or re-run the whole checklist unless asked.

When gh is missing or unauthenticated

gh auth status

If gh isn't installed or isn't authenticated, don't fail the task: write the resolved title, body, and checklist, print them in full, and tell the user how to open the PR themselves (or ask them to run gh auth login and offer to run the gh pr create command once they have). The branch can still be pushed with plain git push in the meantime if that part was requested.

Reviewing an existing PR before editing it

If the user is asking to fix up a PR someone already opened (not necessarily the current branch's own), pull its real state before touching anything:

gh pr view <N> --json number,title,body,baseRefName,headRefName,labels,assignees

Diff the resolved changes against that state rather than starting from a blank template — don't overwrite a description section the user didn't ask you to touch.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

2 warnings2mo3 checks · Risk MEDIUM
  • Gen Agent Trust Hub2mo

    The skill automates pull request creation by resolving base branches, writing descriptions, and verifying changes using repository-defined scripts. It presents a security risk by instructing the agent to execute arbitrary commands found in local configuration files (like package.json or Makefiles) and by processing untrusted data from GitHub issues and PR templates, which could be leveraged for indirect prompt injection.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: MEDIUM · 1 issue

Signed by skilld at 4e2af20. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 2 months ago
metadata
{
  "author": "eagerworks",
  "version": "1.2.0"
}

README badge

README badge for eagerworks/skills/create-pr