agentleFS
ForeverAProgrammerForeverAProgrammer/claude-devflow/skills/create-pr-github/SKILL.md

create-pr-github

Skill0 starsChanged 9 months agoMITView on GitHub

Create a GitHub pull request from the current branch using a description provided by the user.

  • Commits and pushes

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create a GitHub pull request from the current branch using a description provided by the user.

    line 7
  2. Very specific:

    Check that gh is installed and authenticated by running gh auth status.

    line 12
  3. Very specific:

    Run git rev-parse --abbrev-ref --symbolic-full-name @{upstream} to check if an upstream is set.

    line 14
  4. Distinctive:

    If no upstream is set, run git push -u origin HEAD to push and set tracking.

    line 15
  5. Distinctive:

    If an upstream is set, run git push to make sure the remote is up to date.

    line 16
  6. Distinctive:

    No filler like "This PR..." or vague words without specifics

    line 20
  7. Very specific:

    Check if a PR already exists for this branch: gh pr view --json url,number 2>/dev/null.

    line 21
  8. Very specific:

    If no PR exists, run gh pr create --title "<title>" --body "<description>" to open one.

    line 22
  9. Very specific:

    If a PR already exists, run gh pr edit --title "<title>" --body "<description>" to update it.

    line 23

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “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

Create a GitHub pull request from the current branch using a description provided by the user.

$ARGUMENTS is the PR description — a sentence, bullet points, or a paragraph explaining what the PR does and why. If $ARGUMENTS is empty, ask the user to provide a description and stop.

Steps:

  1. Check that gh is installed and authenticated by running gh auth status. If not, tell the user and stop.
  2. Push the current branch to the remote if needed:
    • Run git rev-parse --abbrev-ref --symbolic-full-name @{upstream} to check if an upstream is set.
    • If no upstream is set, run git push -u origin HEAD to push and set tracking.
    • If an upstream is set, run git push to make sure the remote is up to date.
  3. Derive a PR title (imperative tense, under 72 chars) and a polished description from $ARGUMENTS:
    • What changed (2-4 sentences, plain English)
    • Why it was needed if inferrable from the input
    • No filler like "This PR..." or vague words without specifics
  4. Check if a PR already exists for this branch: gh pr view --json url,number 2>/dev/null.
    • If no PR exists, run gh pr create --title "<title>" --body "<description>" to open one.
    • If a PR already exists, run gh pr edit --title "<title>" --body "<description>" to update it.
  5. Print the PR URL.

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.