agentleFS
amirhs1amirhs1/ai-assisted-dev/.agents/skills/open-pull-request/SKILL.md

open-pull-request

Skill1 starsChanged 15 days agoMITView on GitHub

Open a draft pull request whose body is the full report. Use when a change is committed and ready for review, or to update an open pull request's body; not for reviewing someone else's pull request.

  • Commits and pushes

8 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 2

    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:

    Check the branch, the working tree, and HEAD.

    line 8
  2. Distinctive:

    Before the push, review the diff: git status --short, then the whole branch diff, git diff main...HEAD, for unrelated files, secrets, …

    line 10
  3. Very specific:

    Write the body in the order AGENTS.md, "Report back", gives: every section.

    line 14
  4. Distinctive:

    Never mark it ready or merge it.

    line 41
  5. Very specific:

    If the branch already has a pull request, update it.

    line 42
  6. Very specific:

    If it says MERGED or CLOSED, stop: the change needs a new branch.

    line 44

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

  1. Check the branch, the working tree, and HEAD. Run the pull request gate: the checks in AGENTS.md, "Commands".
  2. Before the push, review the diff: git status --short, then the whole branch diff, git diff main...HEAD, for unrelated files, secrets, private details, local paths, and accidental deletions. A change on the list in AGENTS.md, "Ask first", needs the maintainer's approval before you push it.
  3. Write the body in the order AGENTS.md, "Report back", gives: every section; a section that does not apply says None.

    • Summary: the reason only as the maintainer supplied it.
    • Related issues: one Closes #n per issue the pull request completes; Refs #n for one it covers only in part.
    • Checks run: commands you ran in this session, with their actual output.
    • Notes for review: mark every wording or design you proposed.
    • Last, your own trailer block (AGENTS.md, "Provenance"). Do not list the commits' trailers. Keep each trailer line within 72 characters, since GitHub wraps the body into the merge commit; give a long check result in "Checks run" and a short one in the trailer.

    Then check the trailer block, the body's last paragraph: awk -v RS= 'END { print }' <file> | LC_ALL=C awk 'length > 72' prints nothing, and git interpret-trailers --parse <file> prints every trailer. Fix the body until both hold. The check counts bytes, and an em dash is three bytes, so it can flag a line of 72 characters or fewer; shorten it.

  4. Title: in the commit subject format from CONTRIBUTING.md, "Names"; it becomes the merge commit's subject. Never put a closing keyword in the title.
  5. Labels, from "Names": one type: label, the branch's type, and an area: label for each area the diff changes. If a label does not exist, give the maintainer the gh label create command; do not run it. If the branch prefix, the title's type, and the type: label do not all agree, stop and ask the maintainer.
  6. Push the branch, open a draft, then read it back with gh pr view: gh pr create --draft --base main --title "<title>" --label <labels> --body-file <file>. Never mark it ready or merge it.
  7. If the branch already has a pull request, update it. Before pushing, check that the pull request is open: gh pr view <n> --json state --jq .state. If it says MERGED or CLOSED, stop: the change needs a new branch. Otherwise push, check the trailer block as in step 3, then replace its body and read it back: gh pr edit <n> --body-file <file>.

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.