agentleFS
gitt510gitt510/agent-skills/skills/create-pr/SKILL.md

create-pr

Skill0 starsChanged 3 months agoMITView on GitHub

Commit the current local changes, push them, and open a pull request without merging. Use when shipping local work as a PR.

  • Commits and pushes

196 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use update-pr, act-on-feedback 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 9 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

  • 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

    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

  • frostneySkill

    software-engineering-excellence

    Applies the user's engineering standards during substantial technical work: preserve scope, use current evidence, delegate independent parts, and complete authorized outcomes. Use during substantial implementation, debugging, refactoring, or multi-part delivery work.

    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

  • +1 more from microsoft

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 6 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 179 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 3

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

    Read the diff before touching anything.

    line 27
  2. Distinctive:

    If everything in the tree clearly belongs to one change, stage it all.

    line 32
  3. Distinctive:

    If the current branch is main / master / the repo's default, create a new branch first — committing straight onto a shared default branch …

    line 40
  4. Distinctive:

    Use a terse, scoped message:

    line 48
  5. Very specific:

    Add the Co-Authored-By trailer identifying the agent that made the commit — these commits are authored through the agent, not by hand, so …

    line 64
  6. Distinctive:

    Use the co-author line your harness convention specifies.

    line 66
  7. Very specific:

    Default to a ready PR; only pass --draft if the user asks for a draft.

    line 83
  8. Distinctive:

    No merge: Stop at an open PR. Merging is a separate decision (CI, review, merge strategy) and lives in its own flow.

    line 92
  9. Very specific:

    Stop and explain: if the repo has no accessible GitHub remote, or gh / auth is missing, rather than guessing.

    line 98

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

Take whatever is in the working tree right now and turn it into an open pull request: figure out what should go in, commit it, push the branch, and open the PR. Nothing more.

The job is deliberately narrow. "Is the code correct?" and "should this be merged?" are real questions, but they belong to other tools (a verify step, CI, a human reviewer, a future merge-pr). Folding them in here would make the one-shot slow and ambiguous, so this skill leaves them out on purpose.

Workflow

1. See what's actually there

git status -sb
git diff HEAD
git branch --show-current

Read the diff before touching anything. You need to know what's staged, what's unstaged, and whether the current branch is a shared default branch.

2. Decide scope before staging

If everything in the tree clearly belongs to one change, stage it all. But if the tree is mixed — unrelated edits, stray debug prints, an unrelated file — do not reach for git add -A. Silently sweeping unrelated work into someone's PR is the kind of mistake that's annoying to unwind. Ask which files belong, then stage those paths explicitly.

3. Branch if you're on the default branch

If the current branch is main / master / the repo's default, create a new branch first — committing straight onto a shared default branch is what you're trying to avoid by opening a PR at all. Use a short, descriptive branch name derived from the change; if the repo has an obvious branch-naming convention, follow it. If already on a feature branch, stay on it.

4. Commit

Use a terse, scoped message:

<area>: <subject>

<area> is the part of the codebase or component touched; <subject> says what changed, in the imperative. Keep it to one line unless the change genuinely needs a body.

Examples:

  • auth: reject expired refresh tokens
  • docs: fix broken link in setup guide
  • fish: add gh-issue-pull abbr

Add the Co-Authored-By trailer identifying the agent that made the commit — these commits are authored through the agent, not by hand, so attribute them. Use the co-author line your harness convention specifies.

5. Push

git push -u origin $(git branch --show-current)

6. Open the PR (ready, not draft)

gh pr create --title "<title>" --body-file <file>

Writing the body is owned by the writing-documents skill — invoke it and follow its rules. This skill carries no skeleton or format knowledge of its own.

Default to a ready PR; only pass --draft if the user asks for a draft.

7. Report

Give the user the branch name, the commit, and the PR URL, plus anything still needing their attention (e.g. an unrelated change you left unstaged).

Boundaries

  • No merge. Stop at an open PR. Merging is a separate decision (CI, review, merge strategy) and lives in its own flow.
  • No test/build/lint run. This skill won't guess and run a project's checks — that's unbounded and overlaps with CI. If the user wants pre-push verification, they run it deliberately beforehand.
  • Never stage unrelated changes silently (see step 2).
  • Stop and explain if the repo has no accessible GitHub remote, or gh / auth is missing, rather than guessing.

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.