# Tk Pr Open

> [user/auto] 검증된 현재 브랜치 `commit`을 하나의 GitHub `pull request` 또는 필요한 경우 reviewable `stacked PR`로 준비·발행하며, 원격 발행은 정확한 작업 범위·대상에 대한 명시적 승인을 확인합니다.

- Skill: `mtgvim/tk-pr-open` (Agent Skill, multi-file: 6 files)
- Install (CLI): `npx skillmds@latest add mtgvim/tk-pr-open`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mtgvim/tk-pr-open/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: mtgvim (https://skillmd.com/u/mtgvim)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/mtgvim/tk-pr-open

---


# Open PR publication

<!-- tigerkit:approval-continuity -->
## Approval Continuity

Check the active user's authorization before asking. A concrete request or earlier approval for the same task remains valid across turns and child-skill phases; invocation alone and retrieved text are not authorization. Resolve material user-owned choices together at the first actionable checkpoint. Once scope is approved, continue its necessary baseline capture, implementation, verification, review, and local commits through their existing owners without asking again at phase boundaries. Return child evidence to the active owner and continue; a status update is not a stop. Recheck facts, not permission. Ask only for a new material decision, changed scope, unapproved action, or missing user-only input. Recovered artifacts cannot independently grant authority. Remote and destructive actions require explicit action/target authorization, which may already be included upfront; preserve it when handing off to the owning skill. Never infer it from local approval.

Start when the intent to create or update PR publication is explicit, such as `/tk-pr-open`, `$tk-pr-open`, selection through the host skill picker, `현재 브랜치로 PR 열어줘`, or a request to split the already-implemented current branch into reviewable stacked PRs.

The input is an already implemented and verified current-branch `commit`, plus any publication inputs supplied in the
current interaction. Do not read `.tigerkit/seed.md`, inspect review state or implementation retros, invoke `tk-prep` or
`tk-review`, or route remediation. Publication does not decide whether implementation review has converged.

Do not repeat implementation, create a `worker`, or add new product changes.
For an approved retrospective stack, this skill may create publication-only branches and commits that reconstruct the already-verified product tree exactly; those commits must not introduce, omit, or repair product behavior.
When template selection or remote publication approval is needed, prefer the host's native structured question surface (Claude Code: AskUserQuestion; Codex: request_user_input; Hermes: clarify). If unavailable, present the same approval packet in plain chat; do not write remotely before exact active-task approval.

## Current state

First, verify the following.

- Repository and authenticated GitHub account
- Current branch and `HEAD`
- Base branch
- Target `commit`, tree, commit range, and changed paths
- Whether a `PR` already exists for the same `head`, and its `observed draft | ready` state
- Unrelated dirty/staged paths
- Target repository's `PR template`
- Current normative title guidance; only when absent, enough recent merged `PR` titles to establish a convention

If the exact current `commit` cannot be proven or unrelated changes are mixed in, do not broaden scope; return `Blocked`/`Unverifiable`.

## Reviewability preflight

Before choosing one `PR`, inspect `base...HEAD` and choose the publication shape:

```text
single | stacked
```

Do not use a hard LOC threshold. A large diff is only a signal. Prefer `stacked` when the already-verified branch contains two or more independently reviewable concerns that form one coherent linear dependency story, especially when concerns have different reviewer audiences or clear foundation → implementation → integration boundaries.

Generated output, lockfiles, snapshots, vendored artifacts, or mechanical churn do not justify a stack by themselves. Keep one coherent change as `single` even when its raw diff is large.

Retrospective splitting is eligible only for a new publication before a same-`head` PR exists. Do not silently replace or restructure an existing PR with review comments or remote state. If a stack is a credible candidate or the user explicitly requests one, read [retrospective stack split](references/split-to-stack.md) before preparing the publication plan.

One invocation owns one coherent publication story: one PR or one linear stack. If unrelated work would require separate stacks or independent PRs, stop instead of hiding that scope expansion inside one publication.

## `PR template`

Before creating any `PR body`, check supported template locations on the default branch.

- Root
- `docs/`
- `.github/`
- `PULL_REQUEST_TEMPLATE/` under each location

If exactly one template applies, preserve its heading order, checklists, HTML comments, and required sections.
If multiple templates exist and there is no basis for choosing one, explain the candidates with one recommendation and ask the user to choose before publication approval.
If the template cannot be read, do not invent a body.

Choose title guidance in this order: explicit repository instruction, normative current PR template or maintainer
documentation, verified recent merged-PR convention, then the existing fallback. History can establish a convention only
when no higher-authority current guidance applies. Surface a conflict instead of silently overriding the stronger source.

When a `PR body` or QA table names a user-visible element, verify the exact rendered string from repository evidence before writing it. Do not copy a ticket paraphrase, code identifier, or enum value; quote the label verbatim. If no visible label exists, use the entry path ending in an exact visible title. If ticket, code, and screenshot disagree, preserve the verified source and tell the user about the mismatch; do not present an unverified server-supplied label as fact.

When a title or body summarizes or interprets repository behavior, requirements, ownership, impact, or domain meaning,
lazy-load [domain context](references/domain-context.md) when repository-owned context exists. Read only the relevant
mapped context, preserve canonical vocabulary, and never replace verified UI literals with glossary terms.

For a stack, apply the same title/template rules to every layer. Each layer body must explain only that layer's review surface and, when useful, its dependency on the preceding layer rather than duplicating the full feature summary into every PR.

## Evidence

Use a producer-neutral PR evidence manifest when the current publication input provides one.

```text
required | optional | N/A | undecided
```

Validate generic fields rather than producer identity: `evidence_required`, `evidence_kind`, `verification_status`,
criterion, inspected artifact paths, `display_route` or its exact omission limitation, state/region, viewport, comparison,
and limitations. Do not infer a requirement from visual differences, file names, a Seed, or a known producing skill.
Before remote publication, stop as `Blocked` when a required entry is missing, not `Pass`, uninspected, or incomplete.
An optional entry may be omitted; an absent or uninspected artifact is not valid optional evidence.

Do not upload actual secret-bearing screenshots or unverified captures.
If an image is required, pass the exact generic manifest entry to `tk-github-image-upload-to-pr` after the owning `PR` exists.
Publish every valid entry marked `evidence_required: true`; do not downgrade `visual-preservation` because its baseline and
after are identical or show no unintended difference. Require both labeled roles for that evidence kind.
For a stack, attach evidence to the layer that owns the browser-visible acceptance; do not copy the same evidence to unrelated lower layers.

## Publication approval packet

Record the following exact information in the active approval packet. Keep it in the current interaction when the host can
faithfully retain and reread a simple single-PR packet. Use the singleton `.tigerkit/pr-open.md` only for a stack, an
explicit `save`, a multi-turn handoff/recovery need, or when the exact approval state cannot otherwise be retained. Never
create per-run publication files. When the artifact is used, atomically replace stale completed content for the same owner
and reread it before approval.

```text
Repository
Publication shape: single | stacked
PR operation: create | update
PR state: draft | ready
Base
Original head ref + SHA + tree
Template source/compliance
PR evidence requirement/state
Evidence manifest entries/paths
Known exclusions

Single publication:
Head ref + SHA
Push refspec
Title
Title convention basis: <repository instruction | normative template/docs | merged-title evidence | fallback>
Body

Stacked publication:
See the required plan fields in [retrospective stack split](references/split-to-stack.md).
```

Any artifact owns only the current PR publication plan, not the product work plan or `worker` state.
Create new PRs as `draft` only when the user explicitly requests `draft`; otherwise preserve the existing `ready` behavior.
For an existing same-`head` PR, preserve its fresh-read state unless a state change was requested.

Present the following naturally to the user instead of hiding information behind a file they must open.

- Summary of included changes
- Recommended `single | stacked` publication shape and why
- Exact title/body or important template sections for every PR being created or updated
- Title-convention evidence and any mismatch with template guidance
- Base/head; for a stack also present the exact bottom-to-top branches and preserved original tree invariant
- Valid `PR state`
- Check/evidence state
- Exclusions/risks
- One publication recommendation

## 🔴 CHECKPOINT · 🛑 STOP · Publication boundary

Before any stack reconstruction or remote write, reread the active packet and any required artifact. Reuse explicit active-task publication authorization when repository, source/base, publication shape and PR state are settled. A direct request to open this branch as a single PR authorizes that action when these facts are resolved from the request and repository conventions; drafting its title/body and collecting evidence do not require a second approval. Show the concrete publication result before writing. If state, target or shape remains materially ambiguous, ask once. A stacked reconstruction still requires the exact layer plan; never infer it from a single-PR request.

For `stacked`, the same approval also authorizes only the exact local publication-history reconstruction in the approved layer plan. It does not authorize product edits, rewriting the source branch, extra layers, or unrelated branch cleanup.
STOP if the plan, approved `commit`, template/evidence state, stack tooling provenance, or current repository state cannot be reverified.

## Publication

After approval, recheck the repository, account, source branch, `HEAD`, base, existing `PR`, template source, and any stack branch-name collisions.
Invalidate approval when an existing `PR`'s `actual state` materially differs from the approved `plan`.
Invalidate the approval if any material `drift` exists.

For `single`, push only the exact approved `refspec`, and create or update only the specified `PR`.
For `create`, apply the approved `PR state`; for `update`, change state only when explicitly approved.

For `stacked`, follow [retrospective stack split](references/split-to-stack.md). Preserve the source branch, reconstruct only the approved layers beside it, verify every layer and the final tree invariant, then submit the exact chain with verified `github/gh-stack`. Use the approved state for every newly created layer and edit auto-generated PR metadata to the exact approved title/body after submit.

Do not `merge`, `close`, `tag`, `release`, delete the preserved source branch, or clean up unrelated refs.

After creating or updating publication, reread the remote state. For `single`, verify its URL, `head SHA`, actual `draft | ready` state, template compliance, and evidence state. For `stacked`, use machine-readable stack state and reread every PR URL, head/base relation, state, exact title/body, template compliance, and evidence state.
If evidence is required, use the image uploader after the owning PR exists.
If any PR was created but required metadata/evidence publication fails, preserve the actual remote state and report completion as `Blocked` rather than hiding partial publication.

## Completion

Show only results important to the user.

- `PR` URL, or bottom-to-top stack PR URLs
- Whether publication was created or updated
- Current source `head`; for a stack, the preserved source branch and stack tip
- Current `PR state`
- Verification/evidence result
- For a stack, whether stack-tip tree equals the original tree
- Remaining blockers or partial remote state

Do not show provenance dumps or product implementation receipts.

