pr-draft
Convert a ready-for-review GitHub pull request back to a draft (ready -> draft).
- License 许可
- GPL-3.0
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- pr-draft
- description
- Convert a ready-for-review GitHub pull request back to a draft (ready -> draft).
03 SKILL.md 正文
PR Draft
Convert a ready-for-review GitHub pull request back into a draft. Use
this manually when a PR that was flipped to ready turns out to still
need work (e.g. it looks untested), to re-arm the draft safety gate:
the repo's auto-merge workflow filters isDraft == false, so a draft
PR cannot be auto-merged.
Invocation
/pr-draft <PR>
<PR>(required): the pull request, in any formskills/lib/pr-reference.mdlists.
Execution
Run the bundled script, spelled as a bare name:
pr-draft <PR>
The script converts the PR, then re-reads it. A PR that is already a
draft is left as it is — gh warns about it on stderr and succeeds —
so the script is safe to run more than once.
Output and exit status
- Exit 0 — the re-read shows the PR a draft. Stdout is one line,
PR <PR> is now a draft; 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; nothing was sent to GitHub.
- Exit 3 — the conversion did not land: the re-read still shows the PR ready. Stderr says so; report it.
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.