Install
npx skillscat add thevoskamps/claude-plugins-marketplace/pr-draft Install via the SkillsCat registry.
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.