agentleFS
iyazerskiiyazerski/dev-flows-plugin/skills/draft-pr/SKILL.md

draft-pr

Skill0 starsChanged 5 months agoMITView on GitHub

Create a draft pull request for the current branch. Use when the user asks to open, create, publish, or draft a PR; mirrors the user's latest repo PR when possible, pushes the branch when needed, runs `gh pr create --draft`, and reports the created PR URL.

  • Commits and pushes

8 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions8 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 8

    1. microsoft/roosterjs★ 1.3ksame name
    2. g2i-ai/agents★ 52same name
    3. Integralist/agent-skills★ 3same name
    4. zahardev/aicontext★ 2same name
    5. gigio1023/agent-skills★ 1same name
    6. k3forx/skills★ 1same name
    7. Xenoneqq/claudified-workflow★ 1same name
    8. flavio-portela/skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository2 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create a real draft PR for the current branch.

    line 8
  2. Very specific:

    Create the PR with gh pr create --draft --base <base_branch> --head <current_branch> --title "<title>" --body-file <body_file>.

    line 24
  3. Distinctive:

    Follow repo guidance for command prefixes and validation.

    line 27
  4. Distinctive:

    Keep it short and specific.

    line 31
  5. Distinctive:

    Prefer "what" over "how"; avoid vague titles.

    line 32
  6. Distinctive:

    Prefer the newest PR opened by the current user in this repo as the body format reference.

    line 37

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

Draft PR

Create a real draft PR for the current branch.

Workflow

  1. Confirm the current directory is a git repository and identify the current branch.
  2. Choose the base ref specified by the user. If none is specified, use the first existing ref in this order:
    • origin/main
    • origin/master
  3. Inspect the branch diff against the base:
    • git diff <base_ref>...HEAD --name-status
    • git diff <base_ref>...HEAD --stat
    • git diff <base_ref>...HEAD
  4. Fetch the newest PR opened by the current user in this repo:
    • gh pr list --state all --author "@me" --limit 1 --json number,title,body,url,createdAt
  5. Generate the PR title and body from the branch diff. Mirror the user's latest PR format and tone when one exists.
  6. Push the current branch if the remote head does not already exist or is behind local HEAD.
  7. Create the PR with gh pr create --draft --base <base_branch> --head <current_branch> --title "<title>" --body-file <body_file>.
  8. Report the created draft PR URL, title, base, head, and any push performed.

Follow repo guidance for command prefixes and validation. Do not create a ready-for-review PR, merge, approve, request review, add labels, or push unrelated branches unless the latest user request explicitly asks.

PR Title

  • Keep it short and specific; aim to fit comfortably in GitHub UI.
  • Prefer "what" over "how"; avoid vague titles.
  • Use imperative mood.

PR Body

Prefer the newest PR opened by the current user in this repo as the body format reference. If none exists, use the repository's existing PR template when present. Otherwise, include:

  • Why: 1-2 sentences explaining the problem being solved or the feature being added.
  • What: concise description of the new behaviour or functionality introduced.

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.