agentleFS
DockerKnown publisherdocker/docs/.agents/skills/create-pr/SKILL.md

create-pr

Skill4.7k starsChanged 7 months agoApache-2.0View on GitHub

Push the current branch and create a pull request against docker/docs. Use after changes are committed and reviewed. "create a PR", "submit the fix", "open a pull request for this".

  • Commits and pushes

91 other projects use a version of this.

Trending

Quiet this year.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the docker/docs repository that our weekly crawl found: only 1 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about docker/docs

The biggest 1 of 1 mention linking to the repository that our crawl found. Each line is their own headline.

Used with

Projects with it also use update-pr, create-issue and 9 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 5 projects that use this

  • sahinSkill

    create-issue

    Also in 9 projects that use this

  • anderson-c-santosSkill

    merge-pr

    Merge a GitHub PR after all checks pass. Trigger for: /merge-pr, merge PR, approve and merge, squash merge, ship PR. Verifies CI, draft state, and approvals, then merges with the correct strategy based on branch type.

    Also in 3 projects that use this

  • SentrySkill

    fix-ci

    Diagnose and fix failing CI on a PR. Load repo-setup first.

    Also in 6 projects that use this

  • 32103210Skill

    create-rule

    Create Cursor rules for persistent AI guidance. Use when you want to create a rule, add coding standards, set up project conventions, configure file-specific patterns, create RULE.md files, or asks about .cursor/rules/ or AGENTS.md.

    Also in 3 projects that use this

  • MicrosoftSkill

    update-skills

    Check for and apply updates to installed skill branches from upstream.

    Also in 3 projects that use this

  • +2 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, 8 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 82 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If this returns main or master, stop.

    line 21
  2. Very specific:

    If git status --porcelain prints anything, there are uncommitted or unstaged changes.

    line 31
  3. Very specific:

    If origin is your fork, use it.

    line 43
  4. Distinctive:

    Before creating a PR for an issue, check whether that issue already has an open linked PR:

    line 54
  5. Distinctive:

    If this returns an open PR that addresses the same issue, stop.

    line 62
  6. Distinctive:

    Keep the body short. Reviewers need to know what changed and why — nothing else.

    line 93
  7. Very specific:

    Use an accurate disclosure footer that names the active coding agent, for example Generated by Codex or Generated by Claude Code.

    line 96
  8. Very specific:

    If the PR primarily edits a single page or a focused section of pages, add a @netlify stanza to the PR body (for example, just below the …

    line 101
  9. Distinctive:

    Only add this when the change is focused on one page or section.

    line 116
  10. Distinctive:

    When the change is focused, also add direct links to the deploy preview in the PR body so reviewers can jump straight to the affected pages.

    line 121
  11. Very specific:

    Use the same source-path-to-URL mapping as the @netlify stanza above.

    line 136
  12. Very specific:

    Use the Issues API for labels — gh pr edit --add-label silently fails:

    line 140
  13. Distinctive:

    Verify the reviewer was assigned:

    line 154
  14. Distinctive:

    If the team doesn't appear, use the API directly:

    line 161
  15. Very specific:

    Always use Closes #NNNN (not "Fixes") for GitHub auto-close linkage

    line 179

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

Push the branch and create a properly structured pull request.

1. Verify the branch

Confirm you're on a dedicated branch, not the default branch:

git branch --show-current   # must not be main or master

If this returns main or master, stop. Create a branch and move your commits onto it before continuing.

Confirm commits exist and the working tree is clean:

git log --oneline main..HEAD   # confirm commits exist
git status --porcelain         # must print nothing

If git status --porcelain prints anything, there are uncommitted or unstaged changes. Stop and commit them — or unstage stray files like package-lock.json — before opening a PR. Don't open a PR mid-edit.

2. Push the branch

Identify the remote that points at your fork. Inspect the remotes:

git remote -v

If origin is your fork, use it. If origin points at canonical docker/docs (the upstream), push to your separate fork remote instead — never push the branch to docker/docs directly:

FORK_REMOTE=origin   # or the name of your fork remote if origin is upstream
git push -u "$FORK_REMOTE" <branch-name>

3. Create the PR

Before creating a PR for an issue, check whether that issue already has an open linked PR:

gh api repos/docker/docs/issues/<issue-number>/timeline --paginate \
  --jq '.[] | select((.event=="cross-referenced" or .event=="connected" or .event=="referenced") and .source.issue.pull_request and .source.issue.state=="open") | {url: .source.issue.html_url, title: .source.issue.title}'

If this returns an open PR that addresses the same issue, stop. Don't open a duplicate PR; report the existing PR instead. Only proceed if there is no open linked PR, or if the existing PR clearly does not address the issue and you explain why in the new PR body.

Derive the fork owner dynamically from the same fork remote you pushed to:

FORK_OWNER=$(git remote get-url "$FORK_REMOTE" | sed -E 's|.*[:/]([^/]+)/[^/]+(\.git)?$|\1|')
gh pr create --repo docker/docs \
  --head "${FORK_OWNER}:<branch-name>" \
  --title "<concise summary under 70 chars>" \
  --body "$(cat <<'EOF'
## Summary

<1-2 sentences: what was wrong and what was changed>

Closes #NNNN

Generated by <active coding agent name>
EOF
)"

Prefix the title with the change type to match repo convention — docs: for documentation changes (or another scope like hub: when appropriate), for example docs: fix broken link on install page.

Keep the body short. Reviewers need to know what changed and why — nothing else. Do not add a "Test plan" section — documentation PRs don't need one.

Use an accurate disclosure footer that names the active coding agent, for example Generated by Codex or Generated by Claude Code.

Optional: Netlify preview entry path

If the PR primarily edits a single page or a focused section of pages, add a @netlify stanza to the PR body (for example, just below the Summary). This sets the entry path for the Netlify deploy preview so reviewers land on the edited page instead of the site root:

@netlify /desktop/setup/install/

The stanza takes a single published URL path. Derive it from the source file path: drop the content/ prefix and .md suffix, strip the /manuals segment, and add a trailing slash. For example, content/manuals/desktop/setup/install/mac-install.md becomes /desktop/setup/install/mac-install/.

Only add this when the change is focused on one page or section. Skip it for PRs that touch many unrelated pages — there is no useful single entry path.

Optional: Preview links

When the change is focused, also add direct links to the deploy preview in the PR body so reviewers can jump straight to the affected pages. The preview URL embeds the PR number:

https://deploy-preview-<pr-number>--docsdocker.netlify.app/path/to/page/

The PR number isn't known until gh pr create returns, so add these links after creating the PR by updating the body:

gh pr edit <pr-number> --repo docker/docs --body "..."

Use the same source-path-to-URL mapping as the @netlify stanza above.

4. Apply labels and request review

Use the Issues API for labels — gh pr edit --add-label silently fails:

gh api repos/docker/docs/issues/<pr-number>/labels \
  --method POST \
  --field 'labels[]=status/review'

Request review:

gh pr edit <pr-number> --repo docker/docs --add-reviewer docker/docs-team

Verify the reviewer was assigned:

gh pr view <pr-number> --repo docker/docs --json reviewRequests \
  --jq '.reviewRequests[].slug'

If the team doesn't appear, use the API directly:

gh api repos/docker/docs/pulls/<pr-number>/requested_reviewers \
  --method POST --field 'team_reviewers[]=docs-team'

5. Report

Print the PR URL and current CI state:

gh pr view <pr-number> --repo docker/docs --json url,state
gh pr checks <pr-number> --repo docker/docs --json name,state

Notes

  • Always use Closes #NNNN (not "Fixes") for GitHub auto-close linkage
  • One issue, one branch, one PR — never combine

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.