Skip to content
Skills Library
Programming · Writing

spectre-create_pr

/spectre-create_pr

Generate a grounded draft pull request from the actual diff and open it via gh. Use when wrapping up a branch or writing a PR description; not for Ship-owned cleanup, rebase, or delivery sequencing.

Repository
spectre ↗
Licence
MIT
Last repository change
02.10.2026

Assessment and security

85/ 100Class: good
Format20 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
1
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 02.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.

What it does and when to use it

Generate a grounded draft pull request from the actual diff and open it via gh. Use when wrapping up a branch or writing a PR description; not for Ship-owned cleanup, rebase, or delivery sequencing.

Original author description

Generate a grounded draft pull request from the actual diff and open it via gh. Use when wrapping up a branch or writing a PR description; not for Ship-owned cleanup, rebase, or delivery sequencing.

How it works

  1. Inputs
  2. Working Set
  3. Outputs + DONE
  4. Method / guardrails
  5. Handoff
  6. Escalate-If
Original SKILL.md headings · 47 lines, 533 words
SKILL.md preview
---
name: "spectre-create_pr"
description: "Generate a grounded draft pull request from the actual diff and open it via gh. Use when wrapping up a branch or writing a PR description; not for Ship-owned cleanup, rebase, or delivery sequencing."
user-invocable: true
---

# create_pr

Produce a grounded draft PR.

## Inputs

- `$ARGUMENTS`: `TARGET_BRANCH` (default `origin/main`), feedback focus, verification, all-or-none `EXPECTED_BASE_SHA`/`EXPECTED_HEAD_SHA`/`EXPECTED_DIFF_SHA256`, or `--orchestrated`.
- Orchestrated `--pr-phase pending|final-update`: pending needs complete candidate tuple, local verification `RUNNING`, and returns URL/body; final-update needs its URL/body, same tuple, and `FINAL_VERIFICATION_SUMMARY`, updating existing draft Testing only. A parent may supply a frozen work-ID set. Orchestrated Create PR does not write a work record; an unchanged candidate is a no-op.
- Resolve just-in-time: branch (not `main`/`master`), fetch target and derive `PR_BASE`, `BASE_SHA`, `HEAD_SHA`, canonical `git-diff-v1` `DIFF_SHA256` over binary/full-index/no-color/no-renames `{BASE_SHA}...{HEAD_SHA}`, commits, branch/commit issue ref, `gh`, unpushed commits.
- Expected fields are all-or-none. After fetch compare live tuple and clean candidate worktree (committed review/proof artifacts allowed; ignored lifecycle excluded). Tracked or non-ignored untracked changes return `PR_CANDIDATE_STALE` before push, create, or edit. Without `gh`, return title/body for manual draft.

## Working Set

Target-to-HEAD diff and commit log, issue reference, and any GitHub PR template (required sections win).

## Outputs + DONE

- Conventional `type(scope): summary`: <70 chars, imperative, lowercase after colon, no period; grounded body scales to change. Standalone/pending opens `gh pr create --draft` only without an open branch PR, else updates it.

**DONE:** fetched tuple is verified; every factual claim is grounded; Testing honestly reflects diff tests and verification, never turns advisory non-green into pass; sourced/placeholder Why; no secret/credential/PII; only a draft is opened or updated, never duplicated.

## Method / guardrails

1. **Ground:** What is behavior; Why is issue, commits, branch, or `<!-- WHY: motivation not found in commits/issue — fill in -->`; visible How/trade-offs; Testing reports supplied verification, changed tests, or none.
2. **Scale:** trivial What/Why/Closes; standard Summary/Changes/Testing/Closes; complex adds trade-offs, breaking/rollback, UI/CLI evidence, reviewer focus. Derive type/scope from change; add found issue links only.
3. **Verify before side effects:** map every claim to diff/commit/issue, drop unsupported claims/secrets, verify tuple, clean candidate, and this branch's own open PR (`gh pr list --head`; never another branch's or closed), then push.
4. **Work-record ownership:** in orchestrated mode return PR evidence to Ship without writing a work record. In standalone mode only, when no Execute or Ship parent owns history, invoke `Skill(spectre-work-record)` once at the terminal boundary after the draft exists; that write and explicit historical correction are unchanged; report capture failure/recovery input without blocking draft. Refresh a stale parent candidate; a draft is not merged.
5. **Draft lifecycle:** pending grounds `RUNNING`, pushes, updates that open PR, else creates the draft, and returns its PR identity/URL against the frozen work-ID set for Ship to associate. Final-update rechecks its tuple/clean candidate; if repairs changed the tuple, refresh candidate-sensitive claims under freshness, grounding, secret gates, verify clean repaired HEAD, pushes, re-resolves/rechecks live tuple, then `gh pr edit` only Testing from `FINAL_VERIFICATION_SUMMARY`; never mark ready.

## Handoff

Return URL/body or `PR_CANDIDATE_STALE`; `--orchestrated`: no user step.

| Handoff | Details |
|---|---|
| 🧭 **Current phase** | Done |
| 📦 **What was just done** | Result |
| ▶️ **Proposed next step** | Render resolved action. |

Standalone: review the PR.

## Escalate-If

- Branch is main/master or has no target-ahead commits; candidate tuple is incomplete/different; branch/target/remote is unsafe; or the diff has secrets/PII.
- Large intent is ungrounded: use the Why placeholder and draft, never fabricate.

Versions

The database has no other skills named spectre-create_pr.

Identical content appears in 1 other GitHub folders. We show one copy with the highest score.

Database snapshot: 13.11.2026 · package version 572c392e5565 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100file-pr
    Write a pull request title and body grounded in the actual diff, as a local draft by default, and create or update the PR only when that is asked for or already authorized. Use when the user asks to write or fix a PR description, or to file, open, create or update a pull request.
  • 100pr-describe
    Write a pull request title and description from the actual diff and commits, including a risk line and how to test. Use when the user asks to write, draft, fill in or improve a PR description, open a PR, or summarise a branch for reviewers.
  • 100pr
    Use when drafting a pull request description from the current branch's diff, optionally creating the PR with gh.
  • 100pr
    Use when drafting a pull request description from the current branch's diff, optionally creating the PR with gh.
  • 90spectre-ship
    Turn completed branch work into a reviewer-ready PR: directly coordinate cleanup, rebase, one advisory full suite, repair/route failures, and spectre-create_pr. Use when asked to ship finished work. Proof is optional. Do NOT use for implementation, main/master pushes, releases,…
  • 90spectre-ship
    Turn completed branch work into a reviewer-ready PR: directly coordinate cleanup, rebase, one advisory full suite, repair/route failures, and spectre-create_pr. Use when asked to ship finished work. Proof is optional. Do NOT use for implementation, main/master pushes, releases,…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.