agentleFS
gregwebsgregwebs/skills-sdlc/skills/pull-request/SKILL.md

pull-request

Skill17 starsChanged 2 months agoMITView on GitHub

Send a Github Pull Request of your work. Normally done after completing a ticket/issue. Check on CI and follow up on any failures.

19 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use commit, code-review and 1 more.

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

    commit

    Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.

    Also in 3 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 4 projects that use this

  • AWSSkill

    grill-me

    A relentless interview to sharpen a plan or design.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. 0 are common, 17 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 18 edited versions we read keep these.

  • 17

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Update the default branch to the latest from the origin.

    line 23
  2. Distinctive:

    If you were already on the default branch, branch from there.

    line 24
  3. Distinctive:

    If it has been merged, then branch off the updated default (move your changes there).

    line 26
  4. Distinctive:

    If you are working on a sub issue of a parent issue, then look for an active parent branch to use as the base.

    line 29
  5. Distinctive:

    All sub issues that do not have dependencies should use the discovered default branch or the parent branch as their base branch.

    line 30
  6. Distinctive:

    If the issue requires an existing PR to be merged, then the base branch will be the branch for that PR.

    line 32
  7. Distinctive:

    Create it as a Stacked PR.

    line 33
  8. Distinctive:

    If the PR resolves an issue, ensure it is auto-closed by using the "Resolves" keyword: "Resolves #10".

    line 38
  9. Distinctive:

    When you write a commit message, follow these 7 rules: Rule 1: Separate the subject line from the body with a single blank line.

    line 40
  10. Distinctive:

    When CI access is available and the user requested PR follow-up, check the CI run for the PR.

    line 54
  11. Distinctive:

    If there are CI failures, investigate them and change the PR.

    line 55
  12. Distinctive:

    If the CI failures are not related to your work, suggest filing an issue or otherwise fixing them separately.

    line 57
  13. Distinctive:

    If they are related to your work, and the changes needed are not minor, fix them using the same workflow you used to write the code.

    line 58
  14. Distinctive:

    If CI is in progress and the branch has multiple commits, check if there are incomplete runs on older commits that can be canceled.

    line 60
  15. Distinctive:

    Before pushing the PR, squash merge commits into a useful history.

    line 64
  16. Distinctive:

    If additional commits added onto the PR are not useful for history

    line 66
  17. Distinctive:

    if it is best to squash merge the PR into a single commit, tell the user

    line 67

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

Definitions

PR=Pull Request

Access

Access Github if the capability is available and the user instructs it.

  • skills
    • /github-app skill: create the PR with ./scripts/gh-app.sh pr-create
    • /github-actions-ci: check on CI with its bundled helper
  • Github API or MCP
  • github CLI

Branching

Update the default branch to the latest from the origin. If you were already on the default branch, branch from there. Otherwise, check if the current branch has been merged into the updated default (could be a squash merge). If it has been merged, then branch off the updated default (move your changes there). Otherwise, branch off of the current branch. First ensure the updated default is merged into it.

If you are working on a sub issue of a parent issue, then look for an active parent branch to use as the base. All sub issues that do not have dependencies should use the discovered default branch or the parent branch as their base branch.

If the issue requires an existing PR to be merged, then the base branch will be the branch for that PR. Create it as a Stacked PR.

Description

For the PR description, use the /document-changes skill. If the PR resolves an issue, ensure it is auto-closed by using the "Resolves" keyword: "Resolves #10".

When you write a commit message, follow these 7 rules: Rule 1: Separate the subject line from the body with a single blank line. Rule 2: Limit the subject line to 50 characters (72 is the absolute hard limit). Rule 3: Capitalize the first letter of the subject line. Rule 4: Do not end the subject line with a period. Rule 5: Use the imperative mood in the subject line (e.g., "Fix bug," "Add feature," not "Fixed" or "Adds"). Test formula: It must complete the sentence: "If applied, this commit will [your subject line here]". Rule 6: Wrap the body text manually at 72 characters to prevent Git formatting issues. Rule 7: Use the body to explain what and why vs. how. Assume the code explains the how; the message must explain the context and reasoning.

Check on CI

When CI access is available and the user requested PR follow-up, check the CI run for the PR. If there are CI failures, investigate them and change the PR.

If the CI failures are not related to your work, suggest filing an issue or otherwise fixing them separately. If they are related to your work, and the changes needed are not minor, fix them using the same workflow you used to write the code.

If CI is in progress and the branch has multiple commits, check if there are incomplete runs on older commits that can be canceled. Ask the user if you can cancel them unless you are already pre-authorized to cancel.

Cleaning up history

Before pushing the PR, squash merge commits into a useful history. Once the PR is opened, additional commits should be added on so reviewers can see additional changes. If additional commits added onto the PR are not useful for history

  • if it is best to squash merge the PR into a single commit, tell the user
  • otherwise offer to squash a subset of the commits together

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.