Official agent skill

Create PR

by microsoft in microsoft/aspire

Create a pull request using the repository PR template. An agent skill from microsoft/aspire.

OfficialMITAuto-check passedDevelopment

Install Create PR

skills CLI
$ npx skills add microsoft/aspire --skill create-pr -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install microsoft/aspire create-pr --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/microsoft/aspire.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/create-pr .claude/skills/create-pr && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
create-pr
GitHub stars
6.3k
Token cost
~4k tokens
SKILL.md length
1,943 words
Files
1
Skills in repo
22
Repo updated
First seen
Licence
MIT

At a glance

Create a pull request using the repository PR template. An agent skill from microsoft/aspire.

  • Works in 8 steps: Prepare the branch → Determine PR metadata → Detect non-trivial UI changes → …
  • Asked to: create PR
  • SKILL.md covers Example requests, Prerequisites, Procedure and Error handling, plus 1 more section
  • Calls gh and git

What it does

Create PR is an agent skill from microsoft/aspire, published by the product's own GitHub organization. Create a pull request using the repository PR template. Use when asked to: create PR, open PR, push and create PR, submit PR, open pull request, send changes for review.

Its SKILL.md is about 4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Pull requests. It works with Microsoft Azure. The repository describes itself as: Aspire is the tool for code-first, extensible, observable dev and deploy. The licence is MIT.

When your agent uses it

  • Asked to: create PR
  • Push and create PR
  • Open pull request
  • Send changes for review

Example prompts

  • “/create-pr”

Requirements

  • Docker

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Prepare the branch
  2. Determine PR metadata
  3. Detect non-trivial UI changes
  4. Upload visual artifacts
  5. Build PR body from template
  6. Create the PR
  7. Handle existing PRs
  8. Clean up

What it can do on your machine

Read from SKILL.md and the folder at commit 809a672. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • cli.github.com
    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Create PR loads about 4k tokens when it runs. Until then it costs about 45 tokens; SKILL.md has 1,943 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~45
When it runs · the whole SKILL.md, loaded when a task matches
~4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from microsoft/aspire at commit 809a672, republished under its MIT licence (© microsoft). 1,943 words, ~4,034 tokens.

Download SKILL.mdSave it as .claude/skills/create-pr/SKILL.md (or your agent's skills folder).
name
create-pr
description
Create a pull request using the repository PR template. Use when asked to: create PR, open PR, push and create PR, submit PR, open pull request, send changes for review.

You are a specialized pull request creation agent for this repository.

Your goal is to create a PR and always use the repository PR template at .github/pull_request_template.md.

Example requests

  • "Create a PR for this change"
  • "Push and open a pull request"
  • "Submit a PR with these fixes"
  • "Open a PR against the release branch"

Prerequisites

Before starting, verify:

  • gh CLI is available: run gh --version. If missing, tell the user to install it from https://cli.github.com/.
  • Authentication is configured: run gh auth status. If not authenticated, tell the user to run gh auth login.

Procedure

1. Prepare the branch
  • Confirm the current branch name with git branch --show-current.
  • Ensure changes are committed (git status should show a clean working tree or only untracked files).
  • Push the branch with git push -u origin <branch-name>. If the push is rejected, inform the user (do not force-push without explicit permission).
2. Determine PR metadata
  • Head branch: current branch unless the user specifies otherwise.
  • Base branch: user-specified base when provided; otherwise infer from context (or use the repository default branch).
  • Title: concise summary of the change.
  • Labels: add labels only when they are clearly applicable. Use the breaking-change label when the PR breaks public APIs or fundamentally changes the behavior of an existing scenario. Do not use it for every behavior change, additive feature, routine bug fix, or implementation-only change. Examples from existing breaking-change issues include API shape/semantics changes, obsoleting a public API, changing endpoint allocation/wait behavior, changing Docker Compose publish behavior, and disabling local auth for Azure resources.
3. Detect non-trivial UI changes

Before building the PR body, check whether the diff includes non-trivial UI changes to any of these areas:

  • Dashboard (src/Aspire.Dashboard/): changes to .razor, .razor.cs, .css, .js, or UI assets under src/Aspire.Dashboard/wwwroot/ (e.g., img/**, favicon.ico) that alter layout, add/remove components, change interactive behavior, or modify visual appearance beyond minor text or spacing tweaks.
  • CLI (src/Aspire.Cli/): changes to command output formatting, interactive prompts, table/list rendering, spinners, progress indicators, or colored output beyond simple message text changes.
  • VS Code Extension (extension/): changes to webview panels, tree views, status bar items, quick pick UIs, editor decorations, contributed view configuration (package.json), or UI assets (resources/**) beyond minor label text changes.

A change is non-trivial if it does more than:

  • Fix a typo or update a string literal without altering layout
  • Adjust a single CSS property (e.g., margin, padding) without changing visual structure
  • Change a tooltip or aria-label

If non-trivial UI changes are detected, add a prominent ### Screenshots / Recordings subsection in the PR body (under ## Description) with the following content:

markdown
### Screenshots / Recordings

> **This PR includes UI changes.** Please add screenshots or screen recordings so reviewers can evaluate the visual changes without running locally.
>
> - For before/after comparisons, place them side-by-side or label them clearly.
> - For interactive changes (animations, transitions, new flows), prefer a short screen recording (GIF or video).
> - If you cannot capture visuals now, note what scenario to test and mark this section as TODO.

<!-- Add screenshots/recordings here -->
4. Upload visual artifacts

For non-trivial UI changes, upload screenshots or recordings as GitHub user attachments. Do not commit them to the source branch unless explicitly requested.

Before uploading, inspect every artifact for secrets, credentials, tokens, customer or confidential data, private URLs, and unintended personal information. Redact or regenerate any artifact that contains sensitive data, and do not upload it until the inspection passes. Treat uploads as permanent public data because this public repository exposes attachments to everyone and the attachment API has no deletion endpoint.

Check attachment support for the command that will write the PR: gh pr create --help for a new PR or gh pr edit --help for an existing PR. Use --attach only when that command advertises it. Prepare local Markdown references for step 5 to insert at the intended location in pr-body.md. Use a table for before/after images when appropriate:

markdown
| Before | After |
| --- | --- |
| ![Before](./before.png) | ![After](./after.png) |

Place an image-style reference to a video on its own line in its own paragraph so GitHub CLI rewrites it to a bare asset URL that renders as a player:

markdown
![Screen recording](./demo.mp4)

Prepare one flag per referenced file and append the flags to the final gh pr create command in step 6 or gh pr edit command in step 7. GitHub CLI rewrites the local references to uploaded URLs; without references, it appends the attachments to the end of the body. For images, text after # is the alt text when the body does not already provide it. Videos do not support alt text and must omit the # suffix:

shell
--attach './before.png#Before' --attach './after.png#After' --attach './demo.mp4'

If the relevant command does not advertise --attach, do not upload the artifacts or call GitHub's undocumented attachment endpoint. Tell the user that their installed GitHub CLI version does not support attachment uploads for that command and ask them to upgrade it. Include the detected version from gh --version and link to the official upgrade instructions at https://github.com/cli/cli#installation.

After the upgrade, run gh --version and check the relevant command help again. Retry the upload only when --attach is advertised. If the user does not upgrade, continue without uploading and retain the TODO in the Screenshots / Recordings section so the missing visual evidence is explicit.

5. Build PR body from template
  • Read .github/pull_request_template.md.
  • Use the template structure as the PR body.
  • If step 4 prepared visual artifacts and gh --attach is available, replace the <!-- Add screenshots/recordings here --> placeholder with the prepared local Markdown references before running the create or edit command. Do not leave the placeholder in the final body after a successful upload.
  • Fill known details in ## Description with reviewer- and user-facing context:
    • Lead with why the change matters: the user problem, scenario, or workflow it improves.
    • Summarize the user-visible behavior before implementation details: what users can now do, see, configure, or call.
    • Include implementation details only after the behavior summary, and keep them concise.
    • Evaluate whether the change makes security assumptions or guarantees, and include details only when security review may be needed.
    • Include relevant validation: tests, manual verification, screenshots, recordings, generated help, or sample output.
  • For infra-only or internal-only changes, such as CI, build infrastructure, repository automation, tests, docs-only maintenance, or skill/workflow guidance, do not add user-facing usage artifacts, ### Breaking changes, or ### Security considerations unless the change also affects user-visible behavior, breaks a public API or established scenario, or requires security review.
  • When the change affects user-facing behavior, add a subsection such as ### User-facing usage or ### Examples under ## Description with concrete usage examples. Prefer examples from the diff, tests, docs, generated output, or commands you actually ran. Do not invent usage; if the usage cannot be determined confidently, ask the user or state that an example is not available.
  • Include the most relevant user-facing artifacts by change type:
    • Dashboard/UI changes: include dashboard screenshots, preferably before/after when visual behavior changes.
    • CLI changes: include command-specific --help output, example invocations with named arguments/options, and an asciinema recording link when practical.
    • Public API changes: include a consumer-focused usage example for the new API.
    • Integration changes: include both C# and TypeScript usage examples when applicable.
    • Configuration, template, or docs changes: include before/after snippets, generated output, or the command a user runs.
  • Include a ### Security considerations subsection only when the security checklist would be marked as needing security review because the change makes security assumptions or guarantees. Call out any relevant implications, such as:
    • New network listeners, outbound connections, exposed ports, proxying, or service discovery behavior.
    • Files written to global, shared, profile, cache, or temporary directories.
    • Script execution, generated commands, shell escaping, or script/content injection risks.
    • Path construction, archive extraction, file uploads/downloads, or path traversal risks.
    • Untrusted user input, data deserialization, authentication/authorization changes, secrets, credentials, certificates, tokens, or environment variables.
    • Container execution, process spawning, permissions, or elevated privileges.
  • Do not add a ### Security considerations subsection for changes that do not need security review; instead, keep the checklist answer aligned with that assessment.
  • If the PR uses the breaking-change label, include a short ### Breaking changes subsection that explains who is affected, what existing API or scenario changes, and how users should update.
  • Example PR body snippet shapes. Treat these as formats only; replace every placeholder with exact screenshots, commands, APIs, generated output, and security facts from the PR:
    • Dashboard/UI changes:
      markdown
      ### User-facing usage
      The dashboard now shows <new state or action> on the <page/panel>, so users can <outcome> without <old workaround>.
      Screenshot: ![Dashboard showing <feature>](<uploaded screenshot URL>)
    • CLI changes:
      markdown
      ### User-facing usage
      Users can run the command with named options:
      ```bash
      aspire <command> <resource> --name <command-name> --timeout 30s
      ```
      Command help:
      ```text
      Usage:
        aspire <command> <resource> [options]
      Options:
        --name <name>        <describe option>
        --timeout <value>    <describe option>
      ```
      Recording: <asciinema URL, if available>
    • Public API changes:
      markdown
      ### User-facing usage
      Consumers can configure <scenario> with the new API:
      ```csharp
      var resource = builder.Add<Integration>("resource")
                            .With<NewCapability>("<value>");
      ```
    • Integration changes:
      markdown
      ### User-facing usage
      C# AppHost:
      ```csharp
      var resource = builder.Add<Integration>("resource")
                            .With<NewCapability>("<value>");
      ```
      TypeScript AppHost:
      ```typescript
      const resource = builder.add<Integration>("resource")
        .with<NewCapability>("<value>");
      ```
    • Configuration, template, or docs changes:
      markdown
      ### User-facing usage
      Users enable the behavior with:
      ```json
      {
        "<settingName>": "<value>"
      }
      ```
      Generated output now includes `<observable output>`.
    • Security-review changes:
      markdown
      ### Security considerations
      This change <opens a listener/writes to a shared directory/executes generated commands/accepts untrusted input>. Security review is needed to confirm <specific concern>, such as host binding, path normalization, command escaping, or secret handling.
    • Breaking changes:
      markdown
      ### Breaking changes
      This changes <existing API or scenario>. Users who currently <old usage> should update to <new usage or migration guidance>.
  • Fill checklist choices by selecting known answers and leaving only unknown choices unchecked.
  • Keep Fixes # (issue) unless a concrete issue number is provided.
  • Write the body to a temporary file named pr-body.md in the repo root.
Show full SKILL.md (440 more words)Show less
6. Create the PR

Set GH_PAGER to cat to prevent interactive paging, then create the PR. The syntax differs by shell:

If the PR needs labels, add the matching label flags to the create command. For breaking public API changes or fundamental existing-scenario behavior changes, include --label breaking-change.

bash/Linux/macOS:

bash
GH_PAGER=cat gh pr create \
  --base <base-branch> \
  --head <head-branch> \
  --title "<pr-title>" \
  --body-file pr-body.md \
  --attach './before.png#Before' \
  --attach './after.png#After'

PowerShell/Windows:

powershell
$env:GH_PAGER = "cat"
gh pr create `
  --base <base-branch> `
  --head <head-branch> `
  --title "<pr-title>" `
  --body-file pr-body.md `
  --attach './before.png#Before' `
  --attach './after.png#After'

Omit the --attach lines when step 4 did not prepare visual artifacts. Attach videos without a # suffix.

Why GH_PAGER=cat? The gh CLI pipes long output through a pager (like less) by default, which blocks in non-interactive terminals. Setting it to cat disables paging so output prints directly.

Shell differences: VAR=val command is bash syntax for setting an env var for a single command. PowerShell requires a separate $env:VAR = "val" statement (persists for the session, which is harmless here).

7. Handle existing PRs

If a PR already exists for the branch:

  • Do not create another.

  • If requested (or if the body is still mostly unfilled template text), update it:

    bash: GH_PAGER=cat gh pr edit <pr-number-or-url> --body-file pr-body.md --attach './before.png#Before' --attach './demo.mp4'

    PowerShell: $env:GH_PAGER = "cat"; gh pr edit <pr-number-or-url> --body-file pr-body.md --attach './before.png#Before' --attach './demo.mp4'

  • Omit the --attach flags when step 4 did not prepare visual artifacts. Attach videos without a # suffix.

  • If a label needs to be applied to an existing PR, use gh pr edit <pr-number-or-url> --add-label <label-name>.

  • Return the existing PR URL.

8. Clean up

After you are completely finished creating or updating the PR (after step 6 and, if needed, step 7), delete the temporary body file:

  • bash: rm pr-body.md
  • PowerShell: Remove-Item pr-body.md

Error handling

ErrorAction
gh: command not foundTell the user to install gh from https://cli.github.com/
gh auth not logged inTell the user to run gh auth login
git push rejectedInform the user; do not force-push without explicit permission
PR already existsFollow step 7 (Handle existing PRs) above

Notes

  • Do not bypass the template with ad-hoc bodies.
  • Keep the body aligned with .github/pull_request_template.md.
  • If the user asks to preview before creating, show the prepared PR body first, then create after confirmation.
  • For checklist sections with Yes/No alternatives, prefer selecting exactly one option per question when information is known.
  • After creating the PR, if non-trivial UI changes were detected in step 3, verify that the screenshots or recordings from step 4 are present and rendered in the PR description. If capture or upload was not possible, alert the user with a message like: "This PR includes non-trivial UI changes to [Dashboard/CLI/Extension], but screenshots or recordings could not be added. Please add them so reviewers can evaluate the visual changes without running locally." Include the PR URL so the user can edit it directly.

© microsoft, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/create-pr of microsoft/aspire.

Open the folder on GitHubat commit 809a672

Compare with similar skills

Create PR next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Create PR compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Create PR this skillmicrosoft/aspire6.3k—~4kAutomated safety check: PassMIT
Code ReviewAzure/Azurite2.3k—~734Automated safety check: PassMIT
Azurite Pull Request ReviewAzure/AgentBaker157—~3.9kAutomated safety check: PassMIT
Review AreasAzure/azqr794—~1.6kAutomated safety check: PassMIT
Code SimplifierAzure/azqr794—~2.9kAutomated safety check: PassMIT
Code ReviewAzure/sap-automation145—~7kAutomated safety check: PassMIT

Similar skills

  • Code Review

    Azure/Azurite

    Official

    Review Azurite pull requests with service-aware checks for Blob, Queue, and Table behavior, API compatibility, tests, and release notes.

    2.3k GitHub stars~734 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Official

    Reviews Azurite pull requests with checks for Blob, Queue and Table API compatibility, auth paths, persistence, tests and changelog, ending in a fixed comment format.

    157 GitHub stars~3.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Review Areas

    Azure/azqr

    Official

    In-depth code review that fans out parallel subagents across review areas — CRITICAL after non-trivial development.

    794 GitHub stars~1.6k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Code Simplifier

    Azure/azqr

    Official

    Analyzes recently modified code and creates pull requests with simplifications that improve clarity, consistency, and maintainability while preserving functionality

    794 GitHub stars~2.9k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Code Review

    Azure/sap-automation

    Official

    Review pull requests in the SAP Deployment Automation Framework.

    145 GitHub stars~7k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Unblock Dependabot PR

    kubernetes-sigs/cloud-provider-azure

    Official

    Diagnose and unblock failed Dependabot pull requests in cloud-provider-azure by closing Kubernetes minor-version dependency bumps, classifying CI failures, syncing Go modules, retesting quota-flaked…

    294 GitHub stars~1.5k tokensUpdated today
    DevelopmentAuto-check passed

More from microsoft/aspire

All 22 skills in this repo
  • Azdo Internal

    microsoft/aspire

    Official

    A skill your agent uses when asked to trigger or inspect Aspire internal Azure DevOps builds, source-index runs, or release validation on dnceng/internal; push to the internal mirror; download build…

    6.3k GitHub stars~4.5k tokensUpdated today
    Auto-check passed
  • Backport PR

    microsoft/aspire

    Official

    Backports a merged PR to a release branch by triggering the /backport bot, waiting for the bot-created PR, and filling in the shiproom template (Customer Impact, Testing, Risk, Regression?).

    6.3k GitHub stars~4.2k tokensUpdated today
    Auto-check passed
  • Bump Aspire Version

    microsoft/aspire

    Official

    Bumps the Aspire repository product version in eng/Versions.props using previous version-bump commits as guidance.

    6.3k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • CI Test Failures

    microsoft/aspire

    Official

    Guide for diagnosing GitHub Actions test failures, extracting failed tests from runs, and creating or updating failing-test issues.

    6.3k GitHub stars~4.7k tokensUpdated today
    Auto-check passed
  • Dashboard Testing

    microsoft/aspire

    Official

    Guide for writing tests for the Aspire Dashboard. An agent skill from microsoft/aspire.

    6.3k GitHub stars~4.7k tokensUpdated today
    Auto-check passed
  • Deployment E2E Testing

    microsoft/aspire

    Official

    Guide for writing Aspire deployment end-to-end tests. An agent skill from microsoft/aspire.

    6.3k GitHub stars~3.2k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Create PR

What does Create PR do?

Create a pull request using the repository PR template. An agent skill from microsoft/aspire. Create PR is an agent skill from microsoft/aspire, published by the product's own GitHub organization. Create a pull request using the repository PR template.

When should I use Create PR?

Create PR fits situations like: asked to: create PR; push and create PR; open pull request; send changes for review.

How do I install Create PR in Claude Code?

Run `npx skills add microsoft/aspire --skill create-pr -a claude-code`. Or copy the skill folder (.agents/skills/create-pr in microsoft/aspire) into .claude/skills/create-pr in your project. Claude Code loads it when a task matches its description.

How do I install Create PR in Codex?

Run `npx skills add microsoft/aspire --skill create-pr -a codex`. Or copy the skill folder (.agents/skills/create-pr in microsoft/aspire) into .agents/skills/create-pr in your project. Codex loads it when a task matches its description.

Can I use Create PR in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add microsoft/aspire --skill create-pr -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/create-pr, .gemini/skills/create-pr, .github/skills/create-pr and .opencode/skills/create-pr in your project.

What does Create PR need to run?

Going by SKILL.md and its folder, Create PR needs the command-line tools its instructions call (gh and git). Our summary lists: Docker.

Does Create PR access the network?

SKILL.md names 2 domains. As links in the text: cli.github.com and github.com. This is read from the text; nothing was executed.

Is Create PR safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Create PR use?

Create PR is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Create PR use?

About 4k tokens (SKILL.md is roughly 16k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Create PR?

Skills that share tags, products or a category with Create PR: Code Review (Azure/Azurite, 2.3k stars), Azurite Pull Request Review (Azure/AgentBaker, 157 stars), Review Areas (Azure/azqr, 794 stars) and Code Simplifier (Azure/azqr, 794 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Create PR?

microsoft (a GitHub organization, an official publisher) maintains it in microsoft/aspire, which has 6,348 GitHub stars. The repository holds 22 skills in this directory. The repository was last updated on October 7, 2026.

Source: microsoft/aspire on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.