agentleFS
strands-agentsstrands-agents/harness-sdk/.agents/skills/pr-create/SKILL.md

pr-create

Skill8.7k starsChanged 2 months agoApache-2.0View on GitHub

Creates a GitHub pull request using the gh CLI. Use when the user asks to create, open, or submit a PR on GitHub.

  • Commits and pushes

18 other projects use a version of this.

Trending

Quiet since October.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 5 mentionsJul 2026: 3 mentionsAug 2026: 8 mentionsSep 2026: 23 mentionsOct 2026: 12 mentionsNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the strands-agents/harness-sdk repository that our weekly crawl found. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about strands-agents/harness-sdk

The biggest 5 of 51 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 51

Talked about on GitHub and Bluesky (51 times).

On GitHub · 47

42 more on GitHub

Used with

Projects with it also use pr-review.

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.
  • AWSSkill

    pr-review

    AWS CDK CLI general PR reviewer. Use when reviewing any pull request to aws/aws-cdk-cli — the CLI (packages/aws-cdk), toolkit-lib, cloud-assembly-schema, cdk-assets, cloudformation-diff, integ-runner, or the projen/monorepo config. Precision-first: flags only concrete defects the PR introduces, across compatibility, architecture, error handling, testing, correctness, and PR scope.

    Also in 7 projects that use this

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 3

    Distinctive

    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. Very specific:

    Check for CONTRIBUTING.md (at the repo root or in docs/) and .github/PULL_REQUEST_TEMPLATE.md.

    line 18
  2. Distinctive:

    If you find any such steps, list them and ask the user which ones they'd like you to run.

    line 25
  3. Distinctive:

    If neither file exists or they contain no actionable pre-PR steps, skip this and move on.

    line 27
  4. Distinctive:

    Check whether the current branch has an upstream tracking branch with all commits pushed.

    line 33
  5. Very specific:

    Ensure the final PR body is written to .local/pr-body.md (create .local/ if needed), overwriting any earlier draft.

    line 37
  6. Very specific:

    Default to --draft. Only omit it if the user explicitly asks for a non-draft PR.

    line 46
  7. Very specific:

    Do NOT pass --repo — let gh infer the upstream from the git remotes so the PR targets the correct upstream repository.

    line 47
  8. Very specific:

    If gh is not authenticated or the command fails, show the error and stop.

    line 51

“Common” is measured: kept by at least 6 in 10 of the 15 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

GitHub PR Create Skill

Process

1. Get the PR Description

  • Check for .local/pr-body.md. If it exists, re-read it fresh and sanity-check that its content matches the current branch's changes (e.g. the description references files, features, or issues consistent with the current diff). If it looks stale or unrelated to the current changes, warn the user and offer to regenerate it.
  • Else if the user already generated a PR description earlier in the conversation, use that.
  • Otherwise, fall back to the pr-writer skill to generate the title and body.

2. Pre-flight Checks

Check for CONTRIBUTING.md (at the repo root or in docs/) and .github/PULL_REQUEST_TEMPLATE.md. Scan them for any recommended steps before opening a PR — common examples:

  • Running a linter or formatter (e.g. npm run lint, cargo fmt)
  • Running tests (e.g. npm test, pytest)
  • Building the project
  • Updating documentation or changelogs

If you find any such steps, list them and ask the user which ones they'd like you to run. Run whichever the user approves. If any step fails, show the output and ask how to proceed before continuing.

If neither file exists or they contain no actionable pre-PR steps, skip this and move on.

To run the local equivalent of the CI merge gate before opening the PR (lint, format, type-check, tests for the areas the change touches), use the pre-push skill — bash .agents/skills/pre-push/run-checks.sh.

3. Push the Branch (if needed)

Check whether the current branch has an upstream tracking branch with all commits pushed. If not, push before creating the PR. If the push fails, show the error and stop.

4. Create the PR

Ensure the final PR body is written to .local/pr-body.md (create .local/ if needed), overwriting any earlier draft. Then create the PR:

gh pr create \
  --title "<title>" \
  --body-file .local/pr-body.md \
  --draft
  • Default to --draft. Only omit it if the user explicitly asks for a non-draft PR.
  • Do NOT pass --repo — let gh infer the upstream from the git remotes so the PR targets the correct upstream repository.

Rules

  • If gh is not authenticated or the command fails, show the error and stop.

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.