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

draft-pr

Skill0 starsChanged 4 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

14 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use interview and frontend-design.

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

    interview

    Interview me about a plan to flesh out requirements before implementation. Asks non-obvious questions one at a time until all ambiguities are resolved.

    Also in 3 projects that use this

  • BlockSkill

    frontend-design

    Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 6

    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 22
  3. Distinctive:

    Follow repo guidance for command prefixes and validation.

    line 25
  4. Distinctive:

    Keep it short and specific.

    line 29
  5. Distinctive:

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

    line 30
  6. Distinctive:

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

    line 35
  7. Distinctive:

    If no reference PR exists, use the repository's existing PR template when present.

    line 42

“Common” is measured: kept by at least 6 in 10 of the 13 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 branch. Use the one the user specified. Otherwise, infer the branch the current branch was created from using the conversation context. If the base is ambiguous, stop and ask the user which base branch to use.
  3. Inspect the branch diff against the base:
    • git diff origin/<base_branch>...HEAD --name-status
    • git diff origin/<base_branch>...HEAD --stat
    • git diff origin/<base_branch>...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. When a latest PR exists, mirror its title style, body structure, scope, and tone as described in PR Body.
  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 reference. Treat it as a template to match closely, not loose inspiration:

  • Structure: use the same sections and headings, in the same order, with the same Markdown elements (prose, bullets, checklists, code blocks, links). Do not add sections it lacks, such as "Testing" or "Files changed". If a reference section does not apply to this change, drop it instead of filling it with filler.
  • Scope: match its length and level of detail. If it summarizes the change in a few high-level bullets, do the same instead of listing every file or function. If it goes into detail, go into similar detail.
  • Title: follow its title conventions, such as ticket prefixes, conventional-commit types, or capitalization.
  • Tone: match its voice and wording style.
  • Content: write it from the current diff only. Never copy facts, links, or ticket IDs from the reference unless they also apply to this change.

If no reference PR 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.