/spectre:spectre-create_prfrom spectre
Generates a grounded draft pull request from the actual git diff and opens it via gh. Verifies commit tuple, branch state, and factual claims before creating or updating a PR.
Ships in spectre. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Produce a grounded draft PR.
$ARGUMENTS: TARGET_BRANCH (default origin/main), feedback focus, verification, all-or-none EXPECTED_BASE_SHA/EXPECTED_HEAD_SHA/EXPECTED_DIFF_SHA256, or --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.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.PR_CANDIDATE_STALE before push, create, or edit. Without gh, return title/body for manual draft.Target-to-HEAD diff and commit log, issue reference, and any GitHub PR template (required sections win).
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.
<!-- WHY: motivation not found in commits/issue — fill in -->; visible How/trade-offs; Testing reports supplied verification, changed tests, or none.gh pr list --head; never another branch's or closed), then push.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.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.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.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub joenandez/spectre --plugin spectre20 skills in this plugin
/spectre-captureCapture durable project decisions, accepted corrections, verified reusable patterns or gotchas, disproved guidance, and changed persistent blockers as soon as they matter. The user's correction is sufficient authority without code corroboration. Do not use for routine progress, transient errors, incidental code, task outcomes, or historical work accounts./spectre-code_reviewRun final adversarial review through a pinned high-effort opposing runtime with one native fallback. Use at the final boundary to falsify correctness, safety, production readiness, and requirement delivery. Do not use for partial checkpoints or implementation; review only./spectre-doctorAssess and repair a project's Spectre knowledge, work history, tags, and retrieval quality through primary-led decisions, parallel evidence review, and delegated repairs. Use for corpus cleanup, claim accuracy review, legacy migration, format compliance, or Knowledge Doctor. Not for installer/runtime diagnostics, product-code fixes, or routine capture./spectre-executeExecute tasks/plans with checks/reviews/proof. Use after planning/resume. Not for planning, unplanned fixes, or pruning./spectre-feature-rootInternal initializer for a missing Spectre feature root. Invoke only from a standalone workflow with no confirmed managed root. Do NOT invoke for existing roots, orchestrated calls missing a root, or direct user requests./spectre-fixInvestigate a reported bug, pin its root cause, and prepare an Execute handoff. Use for errors, stack traces, failing behavior, or repro steps. Do NOT use for greenfield work (plan/execute) or a complete repair report (execute).Other plugins' skills for the same job