agentleFS
openslopopenslop/openslop/.agents/skills/create-pr/SKILL.md

create-pr

Skill41 starsChanged 4 months agoApache-2.0View on GitHub

Commit all changes and create a GitHub PR. Ensures you're on a feature branch, stages everything, commits with a concise message, pushes, and opens the PR.

  • Commits and pushes

197 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use update-pr, create-release-note and 10 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.
  • MicrosoftSkill

    update-pr

    Update the pull request for the current session. Use when the user wants to push new changes to an existing PR.

    Also in 10 projects that use this

  • ModelEngine-GroupSkill

    create-release-note

    从 PR/commit 中自动生成结构化的 Release Notes,并可选创建 GitHub Draft Release。支持 x.y.0 版本合并前一 minor 系列的 release notes。当用户要求生成发布说明、创建 release notes 时触发。参数为版本号和可选的上一版本号。

    Also in 3 projects that use this

  • frostneySkill

    delivery-wait

    Provides deterministic, resumable GitHub transition waits used internally by delivery workflows. Use when another workflow must await CI, merge, tag, or release state without model heartbeats.

    Also in 3 projects that use this

  • frostneySkill

    native-nostalgia-stack

    Applies the user's FreePascal toolchain and its build, formatting, hook, and test contracts while leaving project-specific mechanics local. Use when scaffolding or working in a FreePascal project that follows this toolchain.

    Also in 3 projects that use this

  • parkchuSkill

    start-mission

    넥스트스텝(NextStep) 미션을 처음 시작할 때, 미션 저장소를 fork·clone하고 최초 작업 브랜치(step1 등)까지 만들어 준다. gh CLI로 fork하고 clone까지 이어서 처리하며, gh가 없거나 인증이 안 돼 있으면 브라우저 Fork 안내로 폴백한다. 이미 fork/clone돼 있으면 재사용하고 이어서 진행한다(재실행 안전). 사용자가 "미션 시작하려는데 저장소 세팅해줘", "새 미션 시작할래", "fork부터 해줘", "/nextstep:start-mission" 등으로 요청할 때 사용한다.

    Also in 3 projects that use this

  • MicrosoftSkill

    act-on-feedback

    Act on user feedback attached to the current session. Use when the user submits feedback on the session's changes via the Submit Feedback button.

    Also in 3 projects that use this

  • +1 more from frostney
  • +1 more from microsoft

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 11 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 182 edited versions we read keep these.

  • 11

    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
  1. Distinctive:

    Commit all current changes and open a GitHub pull request.

    line 10
  2. Distinctive:

    Run git branch --show-current to get the current branch.

    line 16
  3. Distinctive:

    If the branch is main or master, create and switch to a new branch:

    line 17
  4. Very specific:

    Run git fetch origin first.

    line 24
  5. Very specific:

    Run git log --oneline origin/master..HEAD to check for existing commits on the branch.

    line 27
  6. Very specific:

    If there are commits ahead, note the current HEAD sha, then soft-reset so all changes become staged: git reset --soft origin/master

    line 28
  7. Distinctive:

    Run git add -A to stage all changes.

    line 37
  8. Distinctive:

    Run git diff --cached --stat and git diff --cached to understand what changed.

    line 38
  9. Distinctive:

    Write a single commit message following these rules:

    line 39
  10. Distinctive:

    Follow the spirit of https://www.chiark.greenend.org.uk/~sgtatham/quasiblog/commit-messages/.

    line 43
  11. Distinctive:

    If there are known side effects or things the change does NOT do, say so briefly.

    line 55
  12. Distinctive:

    No emoji, plain text, no markdown.

    line 57
  13. Distinctive:

    Commit using a HEREDOC to preserve formatting:

    line 75
  14. Very specific:

    Create the PR with gh pr create:

    line 87
  15. Distinctive:

    Body: use this template:

    line 89

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

Create PR

Commit all current changes and open a GitHub pull request.

Steps

1. Ensure feature branch

  • Run git branch --show-current to get the current branch.
  • If the branch is main or master, create and switch to a new branch:
    • Derive a short kebab-case name from the staged changes (2-4 words max).
    • Branch name format: $USER/<feature-name> (use the system $USER env var).
    • Run git checkout -b $USER/<feature-name>.

2. Squash existing commits (if any)

  • Run git fetch origin first. Squash against origin/master, not the local master ref, which is often stale. Resetting onto a stale base silently pulls other people's commits into yours.
  • Run git log --oneline origin/master..HEAD to check for existing commits on the branch.
  • If there are commits ahead, note the current HEAD sha, then soft-reset so all changes become staged: git reset --soft origin/master
  • Confirm nothing was lost before continuing: git diff --cached <that sha> should be empty (or show only your uncommitted work). The reset is recoverable via git reflog if it is not.
  • This ensures everything (previous commits + uncommitted work) goes into a single commit.

3. Stage and commit

  • Run git add -A to stage all changes.
  • Run git diff --cached --stat and git diff --cached to understand what changed.
  • Write a single commit message following these rules:

Commit message rules

Follow the spirit of https://www.chiark.greenend.org.uk/~sgtatham/quasiblog/commit-messages/.

  • Subject line: <type>: <subject>. Imperative, lowercase after the prefix, no period, ~50-72 chars. Make it distinguishable from other commits.
    • Types in use here: feat, fix, refactor, perf, chore, docs. No scopes.
    • The subject doubles as the PR title. GitHub appends (#NNN) on squash-merge, so never write a PR number yourself.
  • Body: skip it only when the subject genuinely says it all. Otherwise explain why, in full sentences. For anything non-trivial that means naming what was wrong before and what the change makes true instead. Several paragraphs is normal and matches the repo's history. Do not pad a trivial change to reach it.
  • Mention what changed from the user's perspective first, implementation details second.
  • If there are known side effects or things the change does NOT do, say so briefly.
  • Reference an issue with a Closes #NNN line when the change resolves one.
  • No emoji, plain text, no markdown.

Example good messages:

fix: keep enum attribute editors visible when the key is absent
refactor: stop smuggling the tag name into OSML attributes

parseXmlTag returned one flat Record where the element type shared a
namespace with the parsed attributes, so callers had to know to pull
`tag` back out, and an OSML tag carrying a literal `tag="..."` attribute
would silently become that element type instead.

Return `{ tag, attributes }` so the two can't collide.
  • Commit using a HEREDOC to preserve formatting:
git commit -m "$(cat <<'EOF'
<message here>
EOF
)"

4. Push and create PR

  • Push the branch: git push -u origin HEAD --force-with-lease
    • Force push is expected here because step 2 rewrites history via squash.
  • Create the PR with gh pr create:
    • Title: same as the commit subject line.
    • Body: use this template:
      ## Summary
      <1-3 bullet points describing changes>
      
      ## Test plan
      <brief checklist of how to verify>
  • Return the PR URL to the user.

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.