pr-update
Replace a GitHub pull request's body with the contents of a file, then verify the body GitHub holds is that file.
- License 许可
- GPL-3.0
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- pr-update
- description
- Replace a GitHub pull request's body with the contents of a file, then verify the body GitHub holds is that file.
03 SKILL.md 正文
PR Update
Replace a pull request's body — the whole body — with the contents of
a file. The body arrives by path rather than inline, so a body full of
backticks and $ reaches GitHub as written instead of being read by
the shell.
Which callers may edit a body at all, and when, is theirs to rule on, not this skill's.
This skill is GitHub-only by design; there is no CodeCommit (or other source-control) branch.
Invocation
/pr-update <PR> --body-file <path>
<PR>(required): the pull request, in any formskills/lib/pr-reference.mdlists.--body-file <path>(required): a file holding the complete new body.
Execution
Run the bundled script, spelled as a bare name:
pr-update <PR> --body-file <path>
The script writes the body, then re-reads it from GitHub and compares it with the file, trailing newlines aside.
Output and exit status
- Exit 0 — the body GitHub holds is the file. Stdout is one line naming the PR and the file; report it back.
- Exit 1 — a command the script ran failed, such as the
ghcall, and its own error is on stderr above the script's line. Surface it verbatim. - Exit 2 — a usage error, such as a path that is not a readable file; nothing was sent to GitHub.
- Exit 3 — the edit did not land: the re-read body differs from the file. Stderr says so. Report the failure; do not retry on top of a body you have not read back.
04 同仓库更多 Skills
mask-inappropriate-language
Replace inappropriate language (profanity, slurs, strong insults) in provided text or a file with asterisks, character-for-character, preserving everything else.
theorem-agents-interface
The interface between the sdlc reviewer and the theorem agents it spawns — what each double-dash brief parameter means, and what each consequence class means. Preloaded into every theorem agent (sdlc:theorem-generator, the disprover, and the verifier) via its skills frontmatter, and read by name by the sdlc:theorem-based-pr-reviewer agent for what its briefs' parameters mean; not invoked from the user's slash menu.
sdlc-config-user
Interactively create or merge-update the repo user sdlc config, `<repo-root>/.sdlc/user-config.yml` (tier 3 — this user, this repo, never committed), and add it to the repo's tracked `.gitignore`.
sdlc-config-repo
Interactively create or merge-update the shared repo sdlc config, `<repo-root>/.sdlc/repo-config.yml` (tier 2 — tracked, every user of this repo).
sdlc-config-global
Interactively create or merge-update the global user sdlc config, `$XDG_CONFIG_HOME/sdlc/user-config.yml` (tier 1 — this user, every repo on this machine).
pr-read-cli-interface
The contract for sdlc's PR-read CLIs — sdlc-pr-round, sdlc-pr-adjustments, sdlc-fixer-brief and sdlc-records-chain — their arguments, exit codes and output grammar. Preloaded into sdlc:theorem-based-pr-reviewer, sdlc:issue-fixer, sdlc:docs-writer and sdlc:pr-finalizer via their skills frontmatter; not invoked from the user's slash menu.