npx skills add https://github.com/github/awesome-copilot
kweaver-ai/skills · Archived
create-github-pull-request-from-specification
Create or update a GitHub pull request from .github/pull_request_template.md using the gh CLI.
Installation
npx skills add kweaver-ai/skills --skill create-github-pull-request-from-specification
Stronger alternatives
This repository is archived — consider an actively maintained alternative.
Draft or update release notes and changelog entries from repository evidence. Use when the user…
3 installsGenerate complete Chinese PRD documents from rough product requests.
2 installsGenerate complete Chinese implementation design documents from a product PRD.
1 installsCreate a new Remotion video
74.5K installsSimilar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Create a new specification file for the solution, optimized for Generative AI consumption.
13.4K installsCreate a formal specification for an existing GitHub Actions CI/CD workflow, optimized for AI c…
10.5K installsUpdate an existing specification file for the solution, optimized for Generative AI consumption…
9.2K installsCreate GitHub Issues for unimplemented requirements from specification files using feature_requ…
9K installsCreate GitHub Issue for feature request from specification file using feature_request.yml templ…
8.9K installsAlso in this package
Other skills from kweaver-ai/skills.
npx skills add kweaver-ai/skills
More details
Agent compatibility
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Also listed on
Alternate registries and mirrors of this skill.
Repository health
main
Package contents
Files included with this skill beyond the listing page.
-
skill md
SKILL.md2,507 B -
docs
SUMMARY.md147 B
History
- First seen on skills.sh
- First recorded snapshot · 1 installs
SKILL.md
Create GitHub Pull Request from Specification
Create or update a GitHub pull request using the specification at ${workspaceFolder}/.github/pullrequesttemplate.md. If the template file does not exist, create it first from assets/default-pull-request-template.md.
Prerequisites
- Run inside a Git repository with a checked out feature branch.
ghmust be installed and authenticated.${input:targetBranch}must be a valid base branch name.
Process
- Check whether
${workspaceFolder}/.github/pullrequesttemplate.mdexists. - If it is missing, create
${workspaceFolder}/.github/and copyassets/default-pull-request-template.mdto.github/pullrequesttemplate.md. - Read
${workspaceFolder}/.github/pullrequesttemplate.mdand extract the required sections for the pull request title and body. - Determine the current branch and confirm
${input:targetBranch}as the base branch. - Check whether a pull request already exists for the current branch. Use
gh pr list --head <current-branch>orgh pr view <current-branch>for this lookup. - If no pull request exists, create a draft pull request targeting
${input:targetBranch}. Usegh pr create --draft --base <target-branch>. - Once the pull request exists, inspect its code changes with
gh pr diffso the title and body reflect the actual diff, not only the template text. - Update the pull request title and body with the extracted template content and diff summary. Use
gh pr edit --title ... --body .... - Mark the pull request ready for review after the draft content is complete. Use
gh pr ready. - Fetch the authenticated GitHub username with
gh api userand assign that user to the pull request. Usegh pr edit --add-assignee <username>. - Return the pull request URL to the user.
Requirements
- Single pull request for the complete specification
- Clear title identifying the specification and the implemented change
- Fill the pull request body with enough detail from
pullrequesttemplate.md - When the template is missing, create it from the bundled default template before continuing
- Verify against existing pull requests before creation
- Do not create a duplicate pull request for the same branch
- Stop and report the error if
ghis unavailable, unauthenticated, or a required command fails