update-request-body
Update the title and body of one or more GitHub pull requests or GitLab merge requests (MRs).
- License 许可
- MIT
- 所属仓库
- meymchen/skills
- 最近更新
- 2026-10-16
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- update-request-body
- description
- Update the title and body of one or more GitHub pull requests or GitLab merge requests (MRs).
02 资源文件 1
- 参考文档agents/openai.yaml290 B
03 SKILL.md 正文
Update Request Body
A request is a GitHub pull request or a GitLab merge request. Report it with the platform's own term, such as PR #12 or MR !42.
Detect the platform
When the user gives a request URL, take the host from it. Otherwise find the
remote: the current branch's upstream remote, or origin when the branch has
none.
git config --get branch.<branch>.remote
git remote get-url <remote>
Take the host from the remote URL:
github.comis GitHub; usegh.gitlab.com, or any host containinggitlab, is GitLab; useglab.- For any other host, run
gh auth status --hostname <host>andglab auth status --hostname <host>. The CLI that is authenticated decides the platform. Ask the user when neither or both are.
Confirm the chosen CLI is installed and authenticated for the host with the
same auth status command. If it is not, stop and tell the user to run
gh auth login --hostname <host> or glab auth login --hostname <host>. Do
not fall back to another tool or API.
Update
Resolve the requested request, or infer it from the current branch. Inspect its existing title, body, base, head, commits, and diff before editing:
gh pr view [<number>] --json number,url,title,body,baseRefName,headRefName,commits
gh pr diff [<number>]
glab mr view [<id>] --output json
glab mr diff [<id>] --raw
The GitLab JSON names these fields iid, web_url, title, description,
target_branch, and source_branch. List its commits with
git log <remote>/<target_branch>..<remote>/<source_branch>.
Write the title and body from the net change between the request base and head:
- explain why first and what changed second;
- include meaningful verification and relevant issue links;
- preserve existing images, including GitLab
/uploads/links, and useful content; - omit abandoned approaches, local absolute paths, confidential terms, and routine checks already covered by CI.
For stacked requests, describe only the change relative to that request's base. Apply the result, then return the request URL:
gh pr edit <number> --title <title> --body-file <file>
glab mr update <id> --title <title> --description-file <file> --yes
04 同仓库更多 Skills
cleanup-merged-branch
Safely clean a merged local branch, reproducible worktree caches, and stale local branches before updating the repository default branch.
verify-acceptance-items
Verify a GitHub pull request or GitLab merge request (MR) against the acceptance criteria (验收标准/条件, task-list checkboxes) of the issues it links to, then tick the criteria it proves once the user confirms. Use when asked whether a PR or MR is done or meets its issue, when asked to check off an issue's checkboxes, or right after opening or updating a PR or MR that closes an issue.
commit
Create a Git commit from the current changes.
commit-push-request
Commit current changes, push the branch, and open a GitHub pull request or GitLab merge request (MR).
clean-gone
Remove local Git branches whose upstreams are gone, including associated worktrees.
testing-strategy
Design test strategies and test plans. Trigger with "how should we test", "test strategy for", "write tests for", "test plan", "what tests do we need", or when the user needs help with testing approaches, coverage, or test architecture.