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.

referencesconfig.md

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

Create PR — Configuration

.eagerworks/create-pr.json, at the target repo's root, is entirely optional. The skill works with no config file at all — it resolves the base branch from evidence (see references/base-branch.md), derives the checklist from whatever verification tooling it finds, and infers whether the change is UI-visible from the repo's shape. Add the file only when a repo needs to override a default.

Resolution order

.eagerworks/create-pr.json → conventions stated in AGENTS.md/CLAUDE.md → the skill's built-in default. A later source only fills in what an earlier one didn't set.

baseBranch is one exception: an already-open PR's actual base outranks it whenever the branch under review already has one — see references/base-branch.md.

PR language

pr.language has its own ladder, separate from Resolution Order above — the same shape pr-review uses for review.language:

  1. An explicit instruction in the user's request for this run (e.g. "open this PR in English") — wins, once, without touching the config file.
  2. pr.language in .eagerworks/create-pr.json.
  3. A stated convention in the target repo's AGENTS.md/CLAUDE.md.
  4. Built-in default: English.

The language the user is chatting in is never an input to this ladder. A developer working in English still gets a PR written in es if that's what the repo's config says — the PR is a team-facing artifact on GitHub, not a reply to the user, and its language must be deterministic regardless of which language happens to drive the conversation.

Schema

All fields optional.

{
  // Branch to open the PR against. Overridden by an open PR's actual base when one
  // exists. If unset and no other rung resolves it, the skill asks — see
  // references/base-branch.md. Not necessarily the repo's default branch.
  "baseBranch": "main",

  "pr": {
    // "conventional" (default) enforces "<type>(<scope>): <description>", matched
    // against recently merged PR titles. "free" skips that shape for a repo that
    // doesn't use Conventional Commits.
    "titleFormat": "conventional",

    // Self-assign the PR to the current gh account on creation.
    "assignSelf": true,

    // "auto" (default) picks matching labels from `gh label list`, never inventing
    // one. "off" skips labeling entirely. An array always applies exactly those
    // labels (still validated against `gh label list`).
    "labels": "auto",

    // Open as a draft PR.
    "draft": false,

    // GitHub logins or team slugs to request review from at creation time.
    "reviewers": [],

    // Language the PR title and description are written in — a BCP-47 tag or a
    // plain language name ("en", "es", "pt-BR"). Default "en", regardless of what
    // language the conversation is in. An explicit one-off instruction in the
    // user's request for this run overrides this for that run only — see
    // "PR language" above.
    "language": "en",

    // Section headings and order for the description. Unset uses the default:
    // Summary, Problem, Solution, Screenshots/Demo, Test plan, Checklist. See
    // references/description.md for what each section covers.
    "sections": [],

    // Checklist items, verbatim, in order. Unset derives the checklist from
    // verification tooling actually detected in the repo (references/description.md
    // -> "Deriving the checklist"). An explicit [] means no ## Checklist section
    // at all, rather than an empty one.
    "checklist": [],

    "screenshots": {
      // "auto" (default) requires a screenshot when the diff touches a UI path.
      // "off" turns the requirement off entirely — for a repo with no UI at all.
      "mode": "auto",

      // Glob patterns that mark a change as UI-visible. Unset infers from the
      // repo's shape (an apps/web, apps/mobile, resources/views, or similar
      // directory touched by the diff).
      "uiPaths": [],

      // Glob patterns to check for already-captured screenshots before attempting
      // a live capture — e.g. e2e test-run output.
      "artifactPaths": [],

      // A command that produces a fresh screenshot on demand. Never run without
      // confirming with the user first, since it may start a server or a browser.
      "captureCommand": null
    },

    // Manual test cases under "## Test plan" -> "### Manual" — see
    // references/manual-test-cases.md. On by default.
    "manualTestCases": {
      // Set false to drop the ### Manual subsection entirely. A run that does so
      // discloses it in the description rather than silently omitting it.
      "enabled": true,

      // Optional cap on scenarios in the subsection. Unset (default): no cap —
      // the skill writes as many real scenarios as the diff supports. When set,
      // over the cap the highest-risk scenarios are kept (security/permissions,
      // then data integrity, then regression-prone paths) and the description
      // says how many were dropped.
      "maxScenarios": null
    }
  }
}

Example — Rails app merging into staging

{
  "baseBranch": "staging",
  "pr": {
    "titleFormat": "conventional",
    "checklist": [
      "RSpec — `bundle exec rspec` — result: …",
      "Rubocop — `bundle exec rubocop` — result: …",
      "No secrets or live keys in the diff"
    ],
    "screenshots": { "mode": "off" }
  }
}

Example — Node/TypeScript app with Playwright screenshots

{
  "baseBranch": "main",
  "pr": {
    "labels": ["ui"],
    "language": "es",
    "screenshots": {
      "mode": "auto",
      "uiPaths": ["apps/web/**"],
      "artifactPaths": ["playwright-report/**/*.png", "test-results/**/*.png"]
    },
    "manualTestCases": { "maxScenarios": 3 }
  }
}

See assets/create-pr.example.json for a copyable starter combining both.

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