agentleFS
antithesishqantithesishq/antithesis-plugin/.agents/skills/open-pr/SKILL.md

open-pr

Skill25 starsChanged 34 days agoApache-2.0View on GitHub

Push the current branch of this repo and open a pull request for it. Use when the user asks to "open a PR", "put this up for review", or "turn this branch into a PR", or when another skill hands you a finished branch.

  • Commits and pushes

73 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use open-issue, implement-change and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • dlupiakSkill

    open-issue

    Analyze a change request, ask clarifying questions, and create a well-structured GitHub issue with acceptance criteria. Use this skill whenever the user wants to create an issue, write a ticket, log a bug, propose a feature request, or capture requirements — even if they say "let's track this" or "add this to the backlog".

    Also in 3 projects that use this

  • Codagent-AISkill

    implement-change

    Implements an approved change in one continuous session, with tiered test runs. Use when asked to implement a change from its approved definition, or to invoke codagent:implement-change.

    Also in 3 projects that use this

  • thlaureSkill

    review-change

    Use this skill when the user asks for a code review, a correctness pass, a check before PR, or asks whether a Signalist change follows project conventions.

    Also in 4 projects that use this

  • saffron-healthSkill

    address-review

    Address PR review comments systematically. Use when responding to code review feedback on a pull request.

    Also in 3 projects that use this

  • DataCoveySkill

    commit-push

    Commit and push the changes made on this chat session to the current branch. Use best practices from Conventional Commits.

    Also in 3 projects that use this

  • AnthropicSkill

    write-spec

    Write a feature spec or PRD from a problem statement or feature idea. Use when turning a vague idea or user request into a structured document, scoping a feature with goals and non-goals, defining success metrics and acceptance criteria, or breaking a big ask into a phased spec.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 72 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Read what the PR will contain: git fetch origin && git log --oneline origin/main..HEAD and git diff origin/main...HEAD --stat.

    line 16
  2. Very specific:

    Write the body to a file outside the checkout, such as /tmp/pr-body-<branch>.md, so the shell never mangles it and the repo's checks never …

    line 28
  3. Very specific:

    When the change raises a token budget in mise.toml, say so and why, as AGENTS.md asks.

    line 34
  4. Very specific:

    When the work closes an issue, put fixes #<N> on its own line, one line per issue.

    line 36
  5. Distinctive:

    Delete the body file once the PR exists, and give the user the PR's number and URL.

    line 54

“Common” is measured: kept by at least 6 in 10 of the 72 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Open a PR

Push the current branch and open a pull request for it. The branch already holds the finished commits. This skill only publishes them.

A release PR is different: the release skill opens its own.

Check the branch

  • The working tree is clean: git status --porcelain prints nothing. Commit or stash anything left over first.
  • The branch is not main.
  • Read what the PR will contain: git fetch origin && git log --oneline origin/main..HEAD and git diff origin/main...HEAD --stat.
  • The diff leaves the version alone: scripts/set-version.py --check passes, and CHANGELOG.md is unchanged. Only a release PR changes them.
  • mise run check passes. The Stop hook runs it with CHECK_OFFLINE set, which skips the link and schema checks, so run it yourself before the push.

Push the branch

git push -u origin <branch>

Write the title and body

Write the body to a file outside the checkout, such as /tmp/pr-body-<branch>.md, so the shell never mangles it and the repo's checks never lint or commit it.

Write prose that explains the change and why, as the difference between main and the branch. Leave out how the branch got there. Say what an agent that uses the plugin, or a contributor to this repo, does differently after the change. If nothing changes for them, say so. The release skill writes the release notes from the diff, not from this body, so explain the reasoning rather than list every edit.

Bullets are fine for listing specific changes. Section headers usually are not. Don't add a ## Summary header, a ## Test plan section, or any other template boilerplate. Don't list outstanding work, test checklists, or follow-up TODOs.

When the change raises a token budget in mise.toml, say so and why, as AGENTS.md asks.

When the work closes an issue, put fixes #<N> on its own line, one line per issue.

The title is one line in the voice of the subjects in git log --oneline origin/main, such as Triage runs live instead of waiting for them to finish. The repo squash-merges, so the title becomes the commit subject on main, and GitHub adds the (#N).

Create the PR

gh pr create --title "<title>" --body-file /tmp/pr-body-<branch>.md --base main

A GitHub proxy can reject the GraphQL write with HTTP 403, which fails gh pr create. Create the PR over REST instead:

gh api -X POST repos/{owner}/{repo}/pulls \
  -f title="<title>" -f head=<branch> -f base=main \
  -F body=@/tmp/pr-body-<branch>.md --jq '.html_url'

Delete the body file once the PR exists, and give the user the PR's number and URL. Don't merge the PR yourself.

Watch it

A larger workflow, such as the work-on-task skill, watches the PR in its own step. When nothing else does, because the user asked only for a PR, watch it with the watch-pr skill.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.