agentleFS
MrCipherSmithMrCipherSmith/goodai-base/skills/pr/SKILL.md

pr

Skill0 starsChanged 5 months agoMITView on GitHub

Use when opening a pull request for the current branch.

  • Commits and pushes

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    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 well-documented GitHub Pull Request from current branch.

    line 20
  2. Distinctive:

    If there are uncommitted changes → ask if the user wants to commit first

    line 32
  3. Very specific:

    If branch is not pushed → push it with -u origin

    line 33
  4. Distinctive:

    If already on main/master → error: "Create a feature branch first"

    line 34
  5. Distinctive:

    NEVER create empty PRs

    line 72
  6. Distinctive:

    Always analyze ALL commits, not just the last one

    line 73
  7. Distinctive:

    If the branch has linked GitHub issues, reference them in the body

    line 74
  8. Distinctive:

    Ask user for confirmation before creating if there are 10+ commits

    line 75

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Smart PR Creation

Create a well-documented GitHub Pull Request from current branch.

Workflow

Phase 1: Gather Context

Run in parallel:

  1. git status — check for uncommitted changes
  2. git branch --show-current — current branch name
  3. git log --oneline main..HEAD (or master) — all commits in this branch
  4. git diff main...HEAD --stat — changed files summary

Phase 2: Pre-checks

  • If there are uncommitted changes → ask if the user wants to commit first
  • If branch is not pushed → push it with -u origin
  • If already on main/master → error: "Create a feature branch first"

Phase 3: Analyze Changes

Analyze ALL commits and changes (not just the latest):

  • git diff main...HEAD for the full diff
  • Understand the scope: new feature, bugfix, refactor, etc.

Phase 4: Generate & Create PR

Generate structured PR:

  • Title: short, under 70 chars, descriptive
  • Body: Summary + Changes + Test plan
gh pr create --title "title" --body "$(cat <<'EOF'
## Summary
<bullet points>

## Changes
<key changes by area>

## Test plan
<how to verify>
EOF
)"

Phase 5: Report

Return the PR URL to the user.

Arguments

  • /pr — create PR to default branch (main/master)
  • /pr --draft — create as draft PR
  • /pr --base <branch> — target specific base branch
  • /pr <title> — use provided title instead of generating one

Rules

  • NEVER create empty PRs
  • Always analyze ALL commits, not just the last one
  • If the branch has linked GitHub issues, reference them in the body
  • Ask user for confirmation before creating if there are 10+ commits

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.