agentleFS
briansu2004briansu2004/MyAgentSkills/.github/skills/prepare-pr/SKILL.md

prepare-pr

Skill1 starsChanged 9 months agoMITView on GitHub

Prepares for a pull request when the user enters the phrase "Prepare PR

13 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use review-pr.

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

    review-pr

    Review one or more incoming Docker documentation pull requests as a maintainer. Independently validate technical claims, assess editorial fit and information architecture, choose a verdict, and draft exact inline or PR-wide feedback behind a confirmation gate. Use for requests such as "review PR 123", "is this PR correct?", "does this information belong here?", "validate this PR", or "help review backlog PRs". Do not use to maintain or fix a PR you own; use maintain-pr for that.

    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, 7 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 7

    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:

    Use the prepare-pr skill when the user enters the phrase "Prepare PR" in the chat.

    line 8
  2. Distinctive:

    Run the script to determine if there are uncommitted changes.

    line 14
  3. Distinctive:

    If the script responds with a value of 0, then print a thumbs up emoji followed by "All Changes Committed"

    line 16
  4. Distinctive:

    If the script responds with a value of 1, then print a thumbs down emoji followed by "Uncommitted changes"

    line 18
  5. Distinctive:

    If you find any references to an untracked file then print a thumbs down emoji followed by "Untracked File Dependencies"

    line 27
  6. Distinctive:

    After that output a report on the dependencies according to the template to the screen to list both the untracked file and the committed …

    line 29
  7. Distinctive:

    If there are no references to any of the untracked files, then print a thumbs up emoji followed by "No Untracked File Dependencies"

    line 31

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

Prepare PR

Use the prepare-pr skill when the user enters the phrase "Prepare PR" in the chat.

The check consists of two stages.

Step 1. Check for uncommited changes to files already in the repository.

Run the script to determine if there are uncommitted changes.

If the script responds with a value of 0, then print a thumbs up emoji followed by "All Changes Committed"

If the script responds with a value of 1, then print a thumbs down emoji followed by "Uncommitted changes"

Step 2. Check if there are untracked files that the committed files depend on.

Get a list of all the untracked files and iterate over them.

For each untracked file check if there is an include statement or link or mention of the untracked file inside any of the committed files. Any connection to the untracked file is a reference we need to flag.

If you find any references to an untracked file then print a thumbs down emoji followed by "Untracked File Dependencies"

After that output a report on the dependencies according to the template to the screen to list both the untracked file and the committed files that appears to depend on it.

If there are no references to any of the untracked files, then print a thumbs up emoji followed by "No Untracked File Dependencies"

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.