make-pr

make-pr is a skill for Claude Code from seungdeok/harness-starter. It costs 123 tokens per session (2,219 once invoked), scanned A, original, MIT.

A procedure for creating a draft pull request on GitHub from the current branch. A draft pull request is open for review but is not yet presented as ready to merge.

In plain words
What is it for?
It helps open a draft pull request with the repository's template or a standard summary and checklist, while checking for stacked changes and documentation updates.
Why use it?
It removes the repeated work of checking the branch, finding the right base branch and pull-request template, reviewing changes, and composing the request.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool.

Part of the harness plugin — 6 skills, 1 hook shipped together

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.

agentmods
npx agentmods add skills/seungdeok/harness-starter/make-pr
Any agent
npx skills add seungdeok/harness-starter --skill make-pr
Clone the repo
git clone --depth 1 https://github.com/seungdeok/harness-starter

Made for: Claude Code.

Or install harness, the plugin that ships this one along with the rest of its 6 skills, 1 hook.

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 make-pr

README.md
[![agentmods](https://agentmods.dev/badge/skills/seungdeok/harness-starter/make-pr.svg)](https://agentmods.dev/skills/seungdeok/harness-starter/make-pr)
Your own site
<a href="https://agentmods.dev/skills/seungdeok/harness-starter/make-pr"><img src="https://agentmods.dev/badge/skills/seungdeok/harness-starter/make-pr.svg" alt="Measured on agentmods" height="20"></a>
Per session 123 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,219 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00123 $0.02219
Opus 5 $0.00062 $0.01110
Sonnet 5 $0.00025 $0.00444
Haiku 4.5 $0.00012 $0.00222

Measured 5d ago against content hash 4b10e0bc670f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

make-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 5d 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/make-pr/SKILL.md · 155 lines

How it starts

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

make-pr

레포에 PR 템플릿이 있으면 그 형식으로, 없으면 아래에 명시된 기본 형식으로 draft PR을 만들어요.

템플릿 탐색 → 브랜치·변경 확인 → stacked PR 여부(리뷰 단위 2+) → 문서 동기화 확인 → 본문 작성 → 확인 → gh pr create --draft
                                 └─ 예: gh-stack (gh stack init/submit)

사전 조건

gh가 인증되어 있어야 해요. 실패하면 안내하세요:

gh auth status || echo "gh 인증이 필요해요: gh auth login -h github.com"

절차

0. base 브랜치·docs 경로·PR 템플릿 결정

  • base 브랜치: gh repo view --json defaultBranchRef -q .defaultBranchRef.name 으로 감지해요 (실패 시 main). 아래의 <base> 는 전부 이 값이에요.

  • docs 경로: 환경변수 HARNESS_DOCS_PATH 를 읽고, 없으면 .claude/settings.local.jsonenv.HARNESS_DOCS_PATH 를 읽어요 (둘 다 없으면 docs). 아래의 <docsPath> 는 이 값이에요.

  • PR 템플릿: GitHub 이 인식하는 위치를 훑어요 — 단일 파일과 다중 템플릿 디렉토리 둘 다예요:

    find .github docs . -maxdepth 1 -iname 'pull_request_template.md' 2>/dev/null
    find .github/PULL_REQUEST_TEMPLATE -name '*.md' 2>/dev/null
    

    (ls + glob 은 zsh 에서 매칭이 없을 때 2>/dev/null 로도 안 막히는 에러를 내니 find 로 통일해요.)

    • 후보가 하나면 그 파일을 읽어서 써요.
    • 여러 개면 목록을 보여주고 어느 템플릿을 쓸지 사용자에게 물어요.
    • 없으면 절차 4 의 기본 형식으로 가요.

1. 브랜치·변경 상태 확인

git branch --show-current
git status --porcelain
git log <base>..HEAD --oneline
  • 현재 브랜치가 <base>중단하고, 별도 브랜치가 필요하다고 안내해요.
  • 커밋 안 된 변경이 있으면 사용자에게 커밋/스태시 여부를 물어요.
  • 원격에 브랜치가 없으면 gh pr create가 자동 push하지만, 필요 시 git push -u origin <branch>를 안내해요.

1.5 stacked PR 여부 (opt-in)

판단 기준은 커밋 개수가 아니라 리뷰 단위(관심사)가 2개 이상으로 나뉘는지예요. git log <base>..HEAD --oneline 과 변경 파일을 보고, 커밋들이 의존 순서가 있는 계층(예: 모델 → API → UI)으로 묶일 때만 AskUserQuestion 으로 "stacked PR로 나눌까요?"를 물어요. 커밋이 많아도 전부 한 관심사면 묻지 않고 단일 PR로 가요.

  • 아니오 (기본) → 아래 2~5 그대로 진행 (단일 draft PR).

  • → 절차 2(문서 동기화)까지는 그대로 수행하고, 절차 3~5 대신 아래 gh-stack 흐름으로 생성해요.

    주의: gh stack 명령은 인자 없이 실행하면 대화형 프롬프트에 걸려 멈춰요. 반드시 아래처럼 브랜치 이름·플래그를 붙여요.

    1. 확장 설치 확인 — 없으면 안내하고 설치받아요:

      gh extension list | grep -qi gh-stack || echo "설치 필요: gh extension install github/gh-stack"
      git config rerere.enabled true   # init 시 대화형 프롬프트 방지
      

Read the full file on GitHub · 155 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. 5d ago First seen · 155 lines · 123 tokens per session scan A 4b10e0bc670f

Subscribe to this mod's changes

make-pr is a skill published in the GitHub repository seungdeok/harness-starter (2 stars, last pushed 19d ago), licensed MIT. It adds 123 tokens to every session and 2,219 once invoked, about $0.0006 per session on Opus 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.