spectre-capture
Capture durable project decisions, accepted corrections, verified reusable patterns or gotchas, disproved guidance, and changed…
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.
$ npx -y skills add joenandez/spectre --skill spectre-create_pr --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/spectre-create_prContext preview
The summary Claude sees to decide when to auto-load this skill.
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.
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
Produce a grounded draft PR.
Target-to-HEAD diff and commit log, issue reference, and any GitHub PR template (required sections win).
**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.
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.
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.
SPECTRE is an Agentic Engineering workflow for Claude Code and Codex designed to help you do ONE THING more, faster, and with higher quality.
Capture durable project decisions, accepted corrections, verified reusable patterns or gotchas, disproved guidance, and changed…
Run final adversarial review through a pinned high-effort opposing runtime with one native fallback. Use at the final boundary to…
Assess and repair a project's Spectre knowledge, work history, tags, and retrieval quality through primary-led decisions,…
Execute tasks/plans with checks/reviews/proof. Use after planning/resume. Not for planning, unplanned fixes, or pruning.
Internal initializer for a missing Spectre feature root. Invoke only from a standalone workflow with no confirmed managed root.…
Internal diagnosis engine for the Spectre Fix workflow. Use only when invoked by spectre-fix to investigate a reported bug and…