spectre-capture
Capture durable project decisions, accepted corrections, verified reusable patterns or gotchas, disproved guidance, and changed…
Define user flows, screens, states, copy, and accessibility in ux.md. Two stages: align flows, then specify. Use after scope/PRD for behavioral UX; not backend, scope, or architecture.
$ npx -y skills add joenandez/spectre --skill spectre-ux --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/spectre-uxContext preview
The summary Claude sees to decide when to auto-load this skill.
Define user flows, screens, states, copy, and accessibility in ux.md. Two stages: align flows, then specify. Use after scope/PRD for behavioral UX; not backend, scope, or architecture.
name: "spectre-ux" description: "Define user flows, screens, states, copy, and accessibility in ux.md. Two stages: align flows, then specify. Use after scope/PRD for behavioral UX; not backend, scope, or architecture." user-invocable: true disable-model-invocation: true
Turn requirements into a behavioral spec — **what users see/do and the system response**, not visual taste. Align flows, then write `ux.md`.
1. `{OUT_DIR}/concepts/scope.md` (canonical, preferred) 2. `{OUT_DIR}/specs/prd.md` 3. `{OUT_DIR}/task_summary.md`
**Stage 1 — Flow discovery & alignment (align before specifying).**
| Handoff | Details | |---|---| | 🧭 **Current phase** | Flow approval. | | 📦 **What was just done** | Initial or revised flows. | | ▶️ **Proposed next step** | Render resolved action. |
**Stage 2 — Detailed spec (only after explicit flow approval + selected continuation).**
Write `{FEATURE_ROOT}/ux.md` with **all 11 sections**. Below its title:
Feature: <feature-name> Feature Root: .spectre/features/<feature-name>
Derive both values from the physical feature directory.
1. **Overview** — problem and primary goal (1 para) 2. **User Segments** — served segments and UX differences 3. **Screens** — name, purpose, navigation 4. **Flows** — Stage 1 plus validation-fail, cancel, network-error, and segment branches 5. **Layouts** — header/main/footer and responsive behavior (**desktop >1024 · tablet 768–1024 · mobile <768**) 6. **Components** — interactive purpose, location, applicable State Vocabulary 7. **Interactions** — table: **Element | Action | Result** (exhaustive) 8. **States** — table: **State | Trigger | Appearance | Available Actions**. For externally driven states, tie triggers to observed events when available; flag assumptions and common observed events with no state for Execute's probe. 9. **Content** — exact titles, buttons, empty/error/confirmation copy 10. **Edge Cases** — limits, data, permission, network, segments 11. **Accessibility** — tab order, Enter/Space/Escape, announcements, focus
**State Vocabulary** — pick relevant states:
**DONE when:** the Stage-1 flow gate was cleared (user approved flows); `ux.md` exists with all 11 sections; segments addressed; flows carry alternate paths; Interactions and States tables use the exact column formats above; component states are drawn from the State Vocabulary; layouts state the responsive breakpoints; accessibility and edge cases covered.
| Handoff | Details | | --- | --- | | 🧭 **Current phase** | Done | | 📦 **What was just done** | Result | | ▶️ **Proposed next step** | Render resolved action; no placeholders. |
Confirm UX/doc path. Material visual/interaction/stakeholder/prose-limit → Prototype (apply assumptions to `ux.md`); otherwise confirmed repository-changing work → `$spectre:spectre-plan`. One route/conditional; read-only may stop/Handoff.
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…
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…
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.…