open-draft-pr

open-draft-pr is a skill for Claude Code, Codex from ethanaubuchon/dossier-tradecraft. It costs 64 tokens per session (579 once invoked), scanned A, original, MIT.

A GitHub routine that pushes a committed feature branch and opens a draft pull request. A draft pull request is a review request that is not yet marked ready for merging.

In plain words
What is it for?
Use it after committing implementation work to publish the branch, create or find its draft pull request, and return the pull-request reference.
Why use it?
It gives reviewers a shared pull-request page while keeping the change clearly unfinished. It also avoids creating a duplicate pull request when one already exists for the branch.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it after committing implementation work to publish the branch, create or find its draft pull request, and return the pull-request reference.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ethanaubuchon/dossier-tradecraft/open-draft-pr
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ethanaubuchon/dossier-tradecraft --skill open-draft-pr
Clone the repo
git clone --depth 1 https://github.com/ethanaubuchon/dossier-tradecraft

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for open-draft-pr

README.md
[![agentmods](https://agentmods.dev/badge/skills/ethanaubuchon/dossier-tradecraft/open-draft-pr/github.svg)](https://agentmods.dev/skills/ethanaubuchon/dossier-tradecraft/open-draft-pr)
Your own site
<a href="https://agentmods.dev/skills/ethanaubuchon/dossier-tradecraft/open-draft-pr"><img src="https://agentmods.dev/badge/skills/ethanaubuchon/dossier-tradecraft/open-draft-pr/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for open-draft-pr

Your own site · 80×15
<a href="https://agentmods.dev/skills/ethanaubuchon/dossier-tradecraft/open-draft-pr"><img src="https://agentmods.dev/badge/skills/ethanaubuchon/dossier-tradecraft/open-draft-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 579 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.00579
Opus 5.5 $0.00026 $0.00232
Sonnet 5.5 $0.00013 $0.00116
Haiku 4.5 $0.00006 $0.00058

Measured 1mo ago against content hash a64967c95657, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

open-draft-pr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/open-draft-pr/SKILL.md · 37 lines

How it starts

The opening of the file, as written. The whole thing — 37 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Open Draft PR

Opens the draft PR that /implement's review step runs inside. Thin: push the branch, create a draft PR, return its ref. The PR is a draft (not ready) so review happens before it's "real" — and so pr-review-toolkit's PR-framed agents (when used via the agent-review ceiling) have a PR object to attach to.

All GitHub/gh coupling lives here and in publish-pr; the recipe and the other primitives stay host-agnostic.

Input

  • branch — the feature branch (from repo-setup), already committed.
  • title, body — composed by the recipe from the plan-file / ticket.

Steps

  1. Push the branch and set upstream if it isn't on the remote yet: git push -u origin <branch>.
  2. Idempotency — if a PR already exists for this branch (gh pr list --head <branch> returns one), return its ref instead of creating a duplicate (gh pr create errors when one exists).
  3. Open a draft PR: gh pr create --draft --title "<title>" --body "<body>" — base = the repo's default branch, head = the current branch (gh infers both; pass --base/--head explicitly if those defaults don't apply). Add per-repo flags (labels, reviewers) per the project's agent-instruction file.
  4. Capture and return the PR ref (number + URL) from the gh output.

Output / contract

  • In: a committed branch + PR title/body.
  • Out: the draft PR ref (number/URL), surfaced so agent-review and publish-pr can target it.
  • Side effects: pushes the branch (network write); creates a draft PR. Nothing merged or marked ready.

Project overrides

  • Provisioning-heavy open steps — a repo with a scripted opener (e.g. domainator's create-pr.sh: templated body, labels, linked issues) overrides this, keeping the contract (branch → PR ref).

Future scope

  • Transitional. Under the post-v1 flow simplification (review the branch directly, no draft PR), this primitive is removed and publish-pr absorbs PR creation. Keep it thin so its removal is cheap.

Read the full file on GitHub · 37 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 37 lines · 64 tokens per session scan A a64967c95657

Subscribe to this mod's changes

open-draft-pr is a skill published in the GitHub repository ethanaubuchon/dossier-tradecraft (3 stars, last pushed 8d ago), licensed MIT. It adds 64 tokens to every session and 579 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.