plugins/spectre-codex/skills/ux/SKILL.md
👻 | Define user flows, components, and UX behavior — generates the UX spec for a feature - primary agent
npx skillsauth add codename-inc/spectre uxInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Treat the current command arguments as this workflow's input. When invoked from a slash command, use the forwarded $ARGUMENTS value.
Transform product requirements into a definitive behavioral specification. Two stages: align on user flows, then generate detailed spec. Output: ux.md ready for implementation.
<ARGUMENTS> $ARGUMENTS </ARGUMENTS>
Goal: Align on HOW the feature works before specifying details.
docs/tasks/{branch}/concepts/scope.md — the canonical scope doc (preferred)docs/tasks/{branch}/specs/prd.md — if a PRD was generated separatelydocs/tasks/{branch}/task_summary.md — if presentscope first) before proceeding.@patterns to find existing screens/components similar to what we're building. Note conventions, reusable elements, and any design tokens.Write each flow as a narrative walkthrough.
Per flow include: Goal, Entry point, Journey steps (User sees → User does → System responds), Decision points with branches, Success state, Questions where ambiguity exists.
Per user segment: Call out where flows diverge (e.g., "First-time users see X tour; returning users skip directly to Y").
After writing all flows, propose a specific take rather than asking open-ended:
User Flows — Proposed
I've mapped {N} flows across {M} user segments: {list with one-line summaries}
Key segmentation calls: [where flows diverge by user state and why]
Push back on anything wrong, missing, or over-/under-segmented. Reply with feedback or "Flows approved" to proceed.
Wait for approval. If feedback → revise and re-present. If approved → Stage 2.
Gate: Only proceed after explicit flow approval.
Review approved flows for gaps: component behaviors, edge cases, state definitions, segment variants.
If significant gaps, ask 3–5 targeted questions (empty states, error handling, loading, limits, segment differences). Save to clarifications/ux_clarifications_{timestamp}.md, prompt user to read, incorporate answers.
Generate complete spec with these sections:
Use these state categories where applicable. Not every component needs every state — pick what's relevant for the feature.
Save to docs/tasks/{branch}/ux.md
Prompt:
UX Specification Complete
Written to
{path}. Please review: Any behaviors wrong or missing? Edge cases not covered? Segment differences captured?Want a prototype to validate visually before approving?
prototypewill render this spec (high-fi, no synthesis) and flag assumptions where I had to fill in details — catches issues prose review misses. Replyprototypeto run it now.Otherwise, reply with feedback, or "Approved" to finalize.
Wait for approval, feedback, or prototype request. If user replies prototype, invoke prototype (the post-ux mode auto-detects the complete ux.md). Once prototype completes and any spec updates from filled assumptions are applied, return here for final approval.
Confirm completion with summary: screens specified, segments addressed, flows documented, components with states, edge cases and accessibility covered.
Read .spectre/next_steps_guide.md and render Next Steps footer:
Next Steps | Phase: Scope | Status: UX Complete
Recommendation: {contextual next action — if no prototype was generated, suggest prototype to validate the spec visually before /plan}
Options: prototype (validate spec visually), create_plan, create_tasks, tdd
testing
👻 | Independent multi-lens review of plan.md and/or tasks.md — finds overengineering, missing verification, hallucinated deps, weak references
data-ai
👻 | Unified planning entry point - researches, assesses complexity, routes to workflow - primary agent
data-ai
👻 | Transform requirements into executable tasks - primary agent
testing
👻 | Independent multi-lens review of plan.md and/or tasks.md — finds overengineering, missing verification, hallucinated deps, weak references