Agent skill

Create Pull Request

by trickle-labs in trickle-labs/pg-trickle

Create or update a pull request for pgtrickle. An agent skill from trickle-labs/pg-trickle.

Apache-2.0Auto-check passedDevelopment

Install Create Pull Request

skills CLI
$ npx skills add trickle-labs/pg-trickle --skill create-pull-request -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install trickle-labs/pg-trickle create-pull-request --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/trickle-labs/pg-trickle.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/create-pull-request .claude/skills/create-pull-request && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
create-pull-request
GitHub stars
147
Token cost
~1.1k tokens
SKILL.md length
406 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
Apache-2.0

At a glance

Create or update a pull request for pgtrickle. An agent skill from trickle-labs/pg-trickle.

  • Works in 6 steps: Gather Context → Choose a Title → Write the PR Description → …
  • : opening a new PR
  • SKILL.md covers When to Use, Prerequisites, Procedure and Branch Rules, plus 1 more section
  • Calls gh, just and git

What it does

Create Pull Request is an agent skill from trickle-labs/pg-trickle. Create or update a pull request for pgtrickle. Use when: opening a new PR, fixing a garbled PR description, updating an existing PR body, or preparing a PR after finishing a feature or fix. Handles the safe body-file workflow to avoid Unicode corruption.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Pull requests. The repository describes itself as: A PostgreSQL 18+ extension for streaming tables with incremental view maintenance, powered by differential dataflow in Rust. The licence is Apache-2.0.

When your agent uses it

  • : opening a new PR
  • Fixing a garbled PR description
  • Updating an existing PR body
  • Preparing a PR after finishing a feature

Example prompts

  • “/create-pull-request”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Gather Context
  2. Choose a Title
  3. Write the PR Description
  4. Write Description Using create_file Tool
  5. Create or Update the PR
  6. Verify the Live PR Body

What it can do on your machine

Read from SKILL.md and the folder at commit 101c5d3. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh
    • just
    • git
    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use gh and git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Create Pull Request loads about 1.1k tokens when it runs. Until then it costs about 69 tokens; SKILL.md has 406 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~69
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from trickle-labs/pg-trickle at commit 101c5d3, republished under its Apache-2.0 licence (© trickle-labs). 406 words, ~1,057 tokens.

Download SKILL.mdSave it as .claude/skills/create-pull-request/SKILL.md (or your agent's skills folder).
name
create-pull-request
description
Create or update a pull request for pg_trickle. Use when: opening a new PR, fixing a garbled PR description, updating an existing PR body, or preparing a PR after finishing a feature or fix. Handles the safe body-file workflow to avoid Unicode corruption.
argument-hint
Branch name or short description of the change (e.g. fix/scheduler-race)

Create Pull Request

Safe, Unicode-correct workflow for creating or updating GitHub pull requests in the pg_trickle repository. Never use shell heredocs or echo for PR bodies — they silently corrupt Unicode (math symbols, em-dashes, etc.) and can pick up stale content from a previous session.

When to Use

  • Opening a new pull request after completing a fix, feature, or refactor
  • Repairing a garbled PR description (gh pr edit)
  • Updating the PR body after new commits

Prerequisites

  • gh CLI authenticated (gh auth status)
  • Working tree is clean or changes are committed
  • Current branch is not main (never create a new branch unless the current branch is main — see AGENTS.md)

Procedure

Step 1 — Gather Context

Before writing the PR body, collect:

  1. git log main..HEAD --oneline — commits included in the PR
  2. git diff main --stat — files changed
  3. Relevant plans or issues referenced by the branch name or commit messages
  4. Check for an existing PR: gh pr list --head <branch>
Step 2 — Choose a Title

Format: <type>(<scope>): <short imperative summary> (conventional commits)

TypeWhen
featNew user-visible capability
fixBug fix
perfPerformance improvement
refactorInternal restructure, no behaviour change
testTests only
docsDocumentation only
choreBuild / CI / tooling

Keep the title under 72 characters.

Step 3 — Write the PR Description

Structure the body using this template:

markdown
## Summary

<!-- 2-4 sentences: what changed and why -->

## Changes

<!-- Bullet list of the most important changes -->
- …

## Testing

<!-- How the change was verified -->
- `just test-unit` — passes
- `just test-integration` — passes
- `just test-e2e` — passes (include relevant test names if targeted)

## Notes

<!-- Optional: migration steps, rollback plan, known limitations, follow-up issues -->
Show full SKILL.md (209 more words)Show less
Step 4 — Write Description Using create_file Tool

CRITICAL: Use the create_file tool — never echo or a shell heredoc.

  1. Delete any stale file at the target path first:

    bash
    rm -f /tmp/pr_<TICKETNAME>.md
  2. Use create_file to write the body to /tmp/pr_<TICKETNAME>.md. The file is written in UTF-8 and read directly by gh --body-file, so Unicode characters (math symbols, em-dashes, arrows) are safe.

  3. Verify the file is clean before using it:

    bash
    python3 -c "
    with open('/tmp/pr_<TICKETNAME>.md') as f:
        body = f.read()
    print('lines:', body.count(chr(10)))
    print('ok:', '####' not in body)
    print(body[:120])
    "
Step 5 — Create or Update the PR

New PR:

bash
gh pr create \
  --title "<type>(<scope>): <summary>" \
  --body-file /tmp/pr_<TICKETNAME>.md \
  --base main

Fix garbled description on existing PR:

bash
gh pr edit <number> --body-file /tmp/pr_<TICKETNAME>.md
Step 6 — Verify the Live PR Body
bash
gh pr view <number> --json body --jq '.body' | head -20

Confirm the first heading and a Unicode character (if any) render correctly. If the body is garbled, re-run Step 3–5.

Branch Rules

  • Never create a new git branch unless the current branch is main.
  • Branch names follow <type>/<short-slug>, e.g. fix/scheduler-race, feat/window-function-diff.

Checklist Before Opening the PR

  • just fmt && just lint passes with zero warnings
  • Relevant test tier passes (just test-unit / just test-integration / just test-e2e)
  • No unwrap() / panic!() in non-test code paths
  • All unsafe blocks have // SAFETY: comments
  • PR title follows conventional commit format
  • PR body written via create_file tool (not heredoc / echo)
  • Live PR body verified with gh pr view

© trickle-labs, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .github/skills/create-pull-request of trickle-labs/pg-trickle.

Open the folder on GitHubat commit 101c5d3

Compare with similar skills

Create Pull Request next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Create Pull Request compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Create Pull Request this skilltrickle-labs/pg-trickle147—~1.1kAutomated safety check: PassApache-2.0
Finishing a Development Branchobra/superpowers296k5 repos~1.9kAutomated safety check: PassMIT
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Check PRonyx-dot-app/onyx32k2 repos~2.3kAutomated safety check: PassMIT
Understand Diff AnalysisEgonex-AI/Understand-Anything86k1 repos~1.4kAutomated safety check: PassMIT
PR Design DocOpenHands/OpenHands90k—~2.4kAutomated safety check: PassMIT

Similar skills

  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    296k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Check PR

    onyx-dot-app/onyx

    Checks a GitHub, GitLab, or Perforce (p4) pull request (or merge request, or shelved changelist) for unresolved review comments, failing status checks, and incomplete PR descriptions.

    32k GitHub starsUsed in 2 repos~2.3k tokens
    DevelopmentAuto-check passed
  • Understand Diff Analysis

    Egonex-AI/Understand-Anything

    Reads your git changes or a pull request against a prebuilt knowledge graph of the project to explain what changed, which components are affected and what is risky.

    86k GitHub starsUsed in 1 repo~1.4k tokens
    DevelopmentAuto-check passed
  • PR Design Doc

    OpenHands/OpenHands

    For a non-trivial pull request, write a self-contained HTML design doc under the temporary .pr/ directory and link a visibility-appropriate preview in the PR description, so maintainers grasp the…

    90k GitHub stars~2.4k tokensUpdated today
    DevelopmentAuto-check passed
  • WooCommerce Code Review

    woocommerce/woocommerce

    Reviews WooCommerce code changes against the project's standards, flagging backend PHP architecture, naming, documentation, data integrity and testing violations.

    11k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed

More from trickle-labs/pg-trickle

  • Enrich Release Roadmap

    trickle-labs/pg-trickle

    Enrich a pgtrickle release roadmap with prioritised items across six quality pillars: correctness, stability, performance, scalability, ease-of-use, and test coverage.

    147 GitHub stars~1.9k tokensUpdated 2 days ago
    Auto-check passed
  • Implement Roadmap Version

    trickle-labs/pg-trickle

    Implement all items for a specific version in the pgtrickle roadmap.

    147 GitHub stars~2.9k tokensUpdated 2 days ago
    Auto-check passed
  • Improve Documentation

    trickle-labs/pg-trickle

    Reviews and improves the pgtrickle documentation in docs/. An agent skill from trickle-labs/pg-trickle.

    147 GitHub stars~2.3k tokensUpdated 2 days ago
    Auto-check passed

Categories

Questions about Create Pull Request

What does Create Pull Request do?

Create or update a pull request for pgtrickle. An agent skill from trickle-labs/pg-trickle. Create Pull Request is an agent skill from trickle-labs/pg-trickle. Create or update a pull request for pgtrickle.

When should I use Create Pull Request?

Create Pull Request fits situations like: : opening a new PR; fixing a garbled PR description; updating an existing PR body; preparing a PR after finishing a feature.

How do I install Create Pull Request in Claude Code?

Run `npx skills add trickle-labs/pg-trickle --skill create-pull-request -a claude-code`. Or copy the skill folder (.github/skills/create-pull-request in trickle-labs/pg-trickle) into .claude/skills/create-pull-request in your project. Claude Code loads it when a task matches its description.

How do I install Create Pull Request in Codex?

Run `npx skills add trickle-labs/pg-trickle --skill create-pull-request -a codex`. Or copy the skill folder (.github/skills/create-pull-request in trickle-labs/pg-trickle) into .agents/skills/create-pull-request in your project. Codex loads it when a task matches its description.

Can I use Create Pull Request in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add trickle-labs/pg-trickle --skill create-pull-request -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/create-pull-request, .gemini/skills/create-pull-request, .github/skills/create-pull-request and .opencode/skills/create-pull-request in your project.

What does Create Pull Request need to run?

Going by SKILL.md and its folder, Create Pull Request needs the command-line tools its instructions call (gh, just, git and python3). Our summary lists: Python 3.

Does Create Pull Request access the network?

SKILL.md contains no URLs. Its commands use gh and git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Create Pull Request safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Create Pull Request use?

Create Pull Request is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Create Pull Request use?

About 1.1k tokens (SKILL.md is roughly 4.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Create Pull Request?

Skills that share tags, products or a category with Create Pull Request: Finishing a Development Branch (obra/superpowers, 296k stars), PR Babysitter (openinterpreter/openinterpreter, 69k stars), Check PR (onyx-dot-app/onyx, 32k stars) and Understand Diff Analysis (Egonex-AI/Understand-Anything, 86k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Create Pull Request?

trickle-labs (a GitHub organization) maintains it in trickle-labs/pg-trickle, which has 147 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 6, 2026.

Source: trickle-labs/pg-trickle on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.