Skip to content
Skillpedia
General coding18k Β· #10626

pr

What it does

This skill opens a draft pull request on GitHub with a clear title and a description of the changes, then follows the review rounds until it is ready. It is for developers sharing code for review.

When to use it

  • βœ“When you want to open a pull request for your branch on GitHub.
  • βœ“When you want a pull request title and description that list what changed.
  • βœ“When your pull request needs review rounds before it is ready to merge.

Skill link

https://github.com/windmill-labs/windmill/blob/main/.agents/skills/pr/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/windmill-labs/windmill/blob/main/.agents/skills/pr/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œOpen a draft pull request for my branch with a summary of the changes and a test plan.”

5 new skills a week. 1 minute to read.

How it works

The skill checks the commits since main, pushes the branch, opens a draft, and then runs review rounds until every verdict is a go.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Pull Request Skill

Create a draft pull request with a clear title and explicit description of changes, then drive it through CI review rounds to ready.

Instructions

  1. Analyze branch changes: Understand all commits since diverging from main
  2. Push to remote: Ensure all commits are pushed
  3. Create draft PR: Always open as draft for review before merging
  4. Drive review rounds: trigger CI reviews on the draft and only flip to ready once every verdict is a go (see "Review rounds" below)

PR Title Format

Follow conventional commit format for the PR title:

<type>: <description>

Types

  • feat: New feature or capability
  • fix: Bug fix
  • refactor: Code restructuring
  • docs: Documentation changes
  • chore: Maintenance tasks
  • perf: Performance improvements

Title Rules

  • Keep under 70 characters
  • Use lowercase, imperative mood
  • No period at the end
  • If *_ee.rs files were modified, prefix with [ee]: [ee] <type>: <description>

PR Body Format

The body MUST be explicit about what changed. Structure:

## Summary
<Clear description of what this PR does and why>

## Changes
- <Specific change 1>
- <Specific change 2>
- <Specific change 3>

## Test plan
- [ ] <How to verify change 1>
- [ ] <How to verify change 2>

The harness/tooling that invoked the skill may add its own attribution trailer; the skill itself does not prescribe one.

Screenshots (required for frontend changes)

If git diff main...HEAD --name-only matches ^frontend/, the PR body must include screenshots of the affected UI. Skip only when there is no visible UI effect (types, tests, build config) β€” and say so in the body.

  1. Verify the change in the browser (frontend/AGENTS.md β†’ "Verifying Frontend Changes").

  2. Screenshot each affected page with mcp__playwright__browser_take_screenshot (save to a file).

  3. Host each image and get its Markdown embed by pushing to the public windmill-labs/agent-screenshots-internal repo. Pipe base64 through stdin β€” passing it as -f content=… fails with argument list too long on real images:

    REPO=windmill-labs/agent-screenshots-internal
    IMG=screenshot.png                                          # repeat per page
    DEST="shots/$(git branch --show-current)/$(date +%s)-$(basename "$IMG")"
    base64 -w0 "$IMG" | jq -Rs --arg m "add $DEST" '{message:$m, content:.}' \
      | gh api -X PUT "repos/$REPO/contents/$DEST" --input - >/dev/null
    echo "![$(basename "$IMG" .png)](https://raw.githubusercontent.com/$REPO/main/$DEST)"
    

    Derive $DEST from the file name (as above) so distinct pages never collide β€” a fixed name would make same-second uploads reuse one path, and the second PUT then 422s (the Contents API needs the existing file's sha to overwrite).

  4. Put the printed ![…](…) lines under a ## Screenshots heading in the PR body.

Requires gh (repo scope), jq, base64 β€” all in the devShell. The host repo is public (so the raw URLs render for reviewers without a token) and its history is permanent β€” never screenshot pages that show secrets or sensitive values (workspace variables, resource values, instance settings, OAuth/SMTP config); deleting the file can't undo an accidental capture. (GitHub's drag-and-drop uploader needs a browser session and can't be driven from a token.)

If gh can't push to the host repo (e.g. a CI token scoped only to windmill), do not fail the PR or skip silently β€” hand the upload to the user, who has push access, and continue once they confirm it's done.

Execution Steps

  1. Run git status to check for uncommitted changes

  2. Run git log main..HEAD --oneline to see all commits in this branch

  3. Run git diff main...HEAD to see the full diff against main

  4. Review the diff before creating the PR β€” run both reviews, do not skip:

    • local-review β€” Claude-native branch-diff-reviewer (/local-review in Claude Code, $local-review in Codex, pi --skill local-review / /skill:local-review in Pi).
    • local-review-codex β€” cold Codex pass, the same review CI runs, for an independent perspective the Claude pass misses (/local-review-codex in Claude Code, or bash .agents/skills/local-review-codex/run.sh). If the codex CLI is missing or older than the version pinned in that skill, note it in your summary and continue β€” never block the PR on codex being unavailable.

    Run both β€” they catch different things. If eithe

FAQ

Why does it open a draft first?

A draft lets reviewers look at the work before the pull request is marked ready to merge.

What goes in the description?

A summary, a list of the changes and a test plan with checkboxes.

When does the pull request become ready?

Only after every review verdict is a go.

Details

Original description by the author

Open a draft pull request on GitHub and drive CI review rounds until it is ready. MUST use when you want to create/open a PR.

repo: windmill-labs/windmill

Popularity

GitHub stars
18k
Ranking position
#10626
License
β€”
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills