/uxd-prototype:uxd-prototype-createfrom uxd-prototype
Creates or refines a UX prototype from Jira tickets, Figma designs, feature descriptions, or rough ideas. Enumerates user journeys and page states, wires mock data via ?state=, generates a design spec for QE test-plan ingest, and supports export of each step × state.
Ships in uxd-prototype. 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.
Read when SKILL.md points to them.
Builds a prototype from a Jira ticket, Figma file, feature description, or rough idea. Asks clarifying questions for anything missing, then writes a runnable prototype plus structured artifacts that uxd-prototype-evaluate, uxd-prototype-export, and uxd-prototype-publish consume.
Family: create → evaluate → publish (optional export along the way). Pipeline mode: references/pipeline-mode.md.
Workspace vs target: --workspace is the codebase you build in (clone, generate, verify). --target is only where the MR/PR lands. Never clone or generate against the target repo.
Create and hand off: use code-level checks during creation and ordinary refinement. Start the prototype server and open its entry page only at the final handoff for the user to review; do not browse routes, exercise journeys/states, or run interaction/keyboard tests as part of Create. Opening the design-choice report for user input is separate from testing the prototype. Browser evaluation belongs to uxd-prototype-evaluate when explicitly requested, including an explicit pipeline or headless run; --export may also use the browser for requested captures.
| Input | Required | Source |
|---|---|---|
| What to prototype (Jira URL/key, Figma link, description, or idea) | Yes | User; skill asks if omitted |
Workspace (--workspace) | No | Local path, git URL, or standalone (default) |
Push destination (--target) | No | none unless publishing |
| Prior eval feedback | No | artifacts/{ID}/eval/ when refining |
If the user has not said what to prototype, stop and ask before writing files.
Written under artifacts/{ID}/ in the consumer project (never ${CLAUDE_SKILL_DIR}):
| Output | Location |
|---|---|
| Prototype | prototype/ (standalone HTML) or code/ (workspace clone) |
| RFE snapshot, metadata, changeset, summary | rfe-snapshot.md, metadata.json, changeset.md, prototype-summary.yaml |
| Journeys + states | journeys.json, states.json |
| Design spec | {ID}-design-spec.md (QE companion; template references/templates/design-spec.md, rules references/design-spec.md) |
| Prototype Bar config | prototype-bar.json |
| Design decisions | decisions/ (only when --decisions is auto or human) |
| Optional exports | exports/ when --export |
Schemas: references/output-formats.md.
$ARGUMENTS
Parse as: <source> [--workspace <path-or-url-or-standalone>] [--target <dest>] [--decisions skip|auto|human] …
| Flag | Values | Default | Description |
|---|---|---|---|
--workspace | path, git URL, or standalone | standalone | Codebase to build in |
--workspace-branch | branch name | from URL / default branch | Clone branch |
--target | repo, github, gitlab, vercel, none, or a git URL | none (pipeline) | Publish destination only. A git URL means open an MR/PR against that repo (implies repo) |
--target-branch | branch name | --workspace-branch | MR/PR base on --target |
--decisions | skip, auto, human | skip | Build with defaults / review AI suggestions / choose together (internal values retained for compatibility) |
--depth | under, normal, over | normal | Optional exploration effort: key tradeoffs / relevant tradeoffs / broader alternatives. Never a decision quota |
--branch | branch name | — | Deprecated alias for --workspace-branch |
--dry-run | flag | off | Skip git and external writes; local artifacts still written |
--pipeline / --speedrun | flag | off | Create → evaluate → refine → publish |
--prototype-bar / --no-prototype-bar | flag | on | Sticky Prototype Bar after generate |
--export | flag | off | Batch-export journey steps via uxd-prototype-export |
--url | URL | asked if --export | Live base URL for export (and pipeline evaluate) |
--export-formats | html, tree, pf-spec | html,pf-spec | Formats for --export |
A --target value that looks like a git URL (https://, git@, ssh://, or .git) is the MR/PR base. Pass it to resolve_workspace.py --upstream. --workspace-branch and --target-branch are independent (clone a fork at main, open the MR against upstream release-2.22).
Start with a brief welcome. Substitute {version} with the version value from this file's frontmatter:
Welcome to Create Prototype, version {version}. This skill turns context from Jira and elsewhere into a visual prototype. I'll help you choose a starting point, work through any meaningful design choices, and build something you can try.
Ask only for missing information; honor answers and flags already supplied. Ask one approachable question at a time, without re-running setup when refining an existing prototype. Reading source material and checking possible starting points can happen during onboarding; wait for the agreed plan before generating or cloning.
Share a Jira ticket, a Figma link, a feature description, or a rough idea.
Use follow-ups only when a missing detail would change the experience. Do not demand a full requirements template from someone with a rough idea.
Would you like to build on an existing prototype, or start from scratch?
- Use an existing prototype — share a link, folder, or repository if you have one.
- Start from scratch — I'll create a standalone prototype you can open in your browser.
- Help me choose — I'll look for a starting point that fits your feature.
Before asking for a repository, check explicit workspace input and available project context. A Jira project can suggest a codebase when a matching mapping exists; never infer one from the project key alone. See references/workspace-suggestions.md. Explain the evidence for a suggestion and let the user choose it or start fresh. A running-site link is context, not necessarily a code repository; resolve the source or offer a standalone recreation.
Default to standalone if the user is unsure and no supported match exists. Explain technical details only when useful: an existing project will be used in a separate working copy; a standalone prototype needs no build tools. Publishing is optional and separate from the starting point.
- Build with sensible defaults — I'll follow the product's established patterns and note assumptions as I build.
- Review AI suggestions — I'll show the meaningful tradeoffs with visual comparisons and suggested choices for you to review together.
- Choose together — you'll choose the options on a review page, or we can talk through them in chat.
Map these to skip, auto, and human internally. Default to Build with sensible defaults. Do not ask users to choose a decision count or exploration depth. The feature's complexity and unresolved tradeoffs determine the questions; zero questions is a valid outcome. An explicit --depth adjusts exploration effort only.
Give a short plan in everyday language, for example:
I'll create a standalone settings prototype where people can edit their profile, save changes, and see validation feedback. I'll follow established form patterns and note any assumptions. I'll also add a prototype bar: a small toolbar for switching sample states, viewing sources, and opening evaluation results when available. The prototype will stay local unless you ask to publish it.
Describe the actual feature, starting point, design-choice approach, and relevant next steps. Explain “prototype bar” once if enabled; omit disabled or irrelevant extras. Do not echo a flag/configuration dump (Workspace: standalone, Target: none, etc.). Ask for confirmation if the plan still needs agreement; if the user already authorized this concrete plan, proceed without another permission loop.
artifacts/*/rfe-snapshot.md with valid frontmatter (may have been edited).getJiraIssue with the issue key. Resolve cloudId from a full Jira URL hostname, or via getAccessibleAtlassianResources when only a key is given. Prefer responseContentFormat: "markdown".python3 "${CLAUDE_SKILL_DIR}/scripts/fetch_jira.py" PROJ-298 --json (needs JIRA_SERVER, JIRA_USER, JIRA_TOKEN).If both local artifacts and Jira exist, ask which to use. Local may be edited; Jira is canonical.
If RFE IDs were given in the prompt, process all of them. Otherwise, if multiple related issues exist, present them and let the user select.
python3 "${CLAUDE_SKILL_DIR}/scripts/frontmatter.py" set "artifacts/{ID}/rfe-snapshot.md" \
prototype_id="{ID}" source_rfe="{KEY}" \
mode="{DECISIONS}" status="draft" iteration="0" \
created_at="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
{DECISIONS} is skip, auto, or human (field name stays mode). {ID} comes from the Jira key or a generated slug.
Parse from the RFE: user stories, acceptance criteria, personas/roles, key entities, flows, and page states.
${CLAUDE_PLUGIN_ROOT}/knowledge/personas/catalog.yaml; apply overlays from ${CLAUDE_PLUGIN_ROOT}/knowledge/personas/overlays/. If internal-ai-helpers is available, read plugins/uxd-eval-config/knowledge/personas/<id>.md for Sources; skip if missing.states.json. Prefer 3–7 distinct on-load end-states per page.artifacts/{ID}/user-stories.json, journeys.json, and states.json. If the RFE is thin, record assumptions in metadata.json.journey-N and ac_ids as source criterion ids (AC-1). Record each journey persona. Step 9 maps these into the design spec; do not invent a second numbering.Journey and state rules (canonical schemas in uxd-prototype-export):
"export": true. Interactions that are not distinct URLs keep the same route and add actions. Schema: journeys-schema.md.pages[] entry per distinct journey route, with at least a default state. Each description names the on-load end-state. State ids are filename-safe ([a-z0-9-]+). The page collection key is states. Field rules: states-schema.md. Mock wiring: references/state-mocks.md.Standalone: create artifacts/{ID}/prototype/ and continue with PatternFly preparation below (skip workspace analysis).
Workspace: clone into artifacts/{ID}/code/. A separate --target only affects later push — do not clone the target. Needs elevated git permissions (required_permissions: ["all"] in Cursor):
python3 "${CLAUDE_SKILL_DIR}/scripts/resolve_workspace.py" "<path-or-url>" \
--rfe-key "{KEY}" \
[--workspace-branch "{WORKSPACE_BRANCH}"] \
[--upstream "{TARGET_REPO_URL}"] \
[--target-branch "{TARGET_BRANCH}"]
Preserve branch, target_branch, clone_url, and upstream_url from the JSON output for Step 6 and publish. Set workspace_path to the clone path.
Workspace mode only. Run inline — Steps 7–10 depend on it.
Detect tech stack, conventions, navigation, design system, and verification commands (AGENTS.md, package scripts). Save to artifacts/{ID}/workspace-analysis.json with clone_url, branch, workspace_path, and when publishing: upstream_url / target_branch.
Follow references/patternfly-compliance.md: load pf-catalog-interaction-patterns and its interaction catalog, map journey interactions to components, then verify APIs/examples for the target PatternFly version. Read the relevant pf-component-check hierarchy references before composing those components. Apply this preparation even when --decisions=skip; no separate compliance artifact is needed.
If --decisions=skip: make design calls while building. Do not generate decision pages. Set decision_mode: skip in prototype-summary.yaml / metadata.json. Skip the rest of this step.
Otherwise, identify unresolved choices that change the user's experience and have at least two defensible options. Apply source requirements, accessibility basics, established UX practices, and codebase conventions as defaults; do not offer violations as alternatives. Do not manufacture decisions or options to fill a quota. Use references/decision-points.yaml as examples, not a checklist.
auto: record AI suggestions with rationales, then offer one batch review with overrides.human: let users select independent choices together on a review page and paste one response; offer a chat walk-through if preferred.Follow references/decision-workflow.md. Reuse the bundled renderer and template for one decisions/index.html report with every choice; keep accepted choices in decisions.json. The copy button produces a readable list of questions and option names for the user to send back to the agent. Generate visual comparisons once, update JSON as answers arrive, and refresh visuals after the independent batch is resolved. Resolve dependencies before presenting affected choices. Store artifacts in artifacts/{ID}/decisions/.
Workspace: generate in artifacts/{ID}/code/ following project conventions. Wire mocks from states.json via window.UxdScenario.get() / useUxdScenario so ?state=<id> lands on the intended UI with no extra clicks. See references/state-mocks.md.
Standalone: generate HTML in artifacts/{ID}/prototype/ with PatternFly 6 CDN:
<link rel="stylesheet" href="https://unpkg.com/@patternfly/patternfly@6/patternfly.min.css" />
<link rel="stylesheet" href="https://unpkg.com/@patternfly/patternfly@6/patternfly-addons.min.css" />
Implement the component mapping from PatternFly preparation. Use documented PatternFly components and wrappers; prefer supported props, layout utilities, and tokens before custom CSS. Standalone HTML must follow documented PatternFly HTML markup and implement its interactions — CDN styles alone do not supply behavior. Same state wiring as above.
Source consistency check: review route registrations, navigation links, journey action selectors, and state/mock mappings in the changed code. Keep journeys.json and states.json aligned with the implementation. This is a code review; leave runtime walkthroughs and visual confirmation to the user at handoff.
changeset.md — files created/modifiedmetadata.json — id, title, decision_mode, screens, paths, timestampsprototype-summary.yaml — machine-readable summary for downstream skills{ID}-design-spec.md — QE companion projected from the built UI, journeys.json, and states.json. Fill references/templates/design-spec.md. Rules: references/design-spec.md. Set design_spec_path in metadata and the summary.journeys.json / states.json in sync with what was actually builtSkip if --no-prototype-bar. Otherwise mandatory.
EXPORT_SKILL="${CLAUDE_SKILL_DIR}/../uxd-prototype-export"
bash "${EXPORT_SKILL}/scripts/install-prototype-bar.sh" \
--artifacts "artifacts/{ID}" \
--source "<prototype-dir-or-workspace>" \
--mode standalone|workspace
--source is artifacts/{ID}/prototype/ (standalone) or the workspace root from workspace-analysis.json. If auto-mount fails for React, import <PrototypeBar /> in the app shell.
Re-run after evaluate so the Eval tab gets the report (public/evals/{ID}/). Pass --no-eval-copy if the report is not needed.
Apply in both modes before handoff.
pf-component-check and pf-component-reuse-check on scoped React changes, plus the CSS review. For standalone HTML, inspect the documented HTML structure and event wiring in source. Fix issues within the authorized scope and recheck changed code.changeset.md, and record results in artifacts/{ID}/verification.json.Keep these checks scoped to the changed code. Do not start the dev server, open the prototype, or run browser/E2E tests for verification. Report the code checks actually performed; runtime review is deferred to handoff rather than treated as a blocked check.
--export)Skip unless --export.
journeys.json (prefer "export": true; else --export-all-if-unset) and states.json--url — ask if missing. For standalone, serve prototype/ and use that origincd "${CLAUDE_SKILL_DIR}/../uxd-prototype-export" && npm installEXPORT_SKILL="${CLAUDE_SKILL_DIR}/../uxd-prototype-export"
node "${EXPORT_SKILL}/scripts/export-journey.mjs" \
--base-url "{URL}" \
--journeys "artifacts/{ID}/journeys.json" \
--scenarios "artifacts/{ID}/states.json" \
--out "artifacts/{ID}/exports" \
--formats "{html,pf-spec|html,tree,pf-spec}" \
--export-all-if-unset
metadata.json and prototype-summary.yamlOptional local helper so the bar can write captures and open Eval at http://127.0.0.1:9417/evals/{ID}/:
node "${EXPORT_SKILL}/scripts/export-helper.mjs" \
--out "artifacts/{ID}/exports" \
--artifacts "artifacts"
At this final handoff, start the prototype with its documented launch command if needed, or reuse its existing server. Open the prototype's entry page once for the user to review and confirm. Do not click through routes, test states, or begin an evaluation. If launching is unavailable, provide the entry file or launch command and explain the specific limitation.
Lead with what people can try and the prototype link. Briefly describe what was built, assumptions, and the code checks performed, including relevant PatternFly structure/reuse/CSS findings or exceptions. Make clear that the user will review the running experience; do not imply that browser behavior or acceptance criteria have been evaluated. Keep artifact links and next steps relevant:
uxd-prototype-evaluate {ID} <URL> [--workspace=…] for a separate evaluationartifacts/{ID}/{ID}-design-spec.md as the file QE can attach to the strategy as {ID}-design-spec.md, or pass as a local path when creating a test planIf --pipeline / --speedrun, continue with references/pipeline-mode.md.
Apply targeted changes from user feedback or existing evaluation findings — do not rewrite the prototype. Full procedure: references/refinement-procedure.md.
Reads artifacts/{ID}/eval/evaluation-report.csv + refinement-suggestions.json. For explicitly requested evaluation loops, pass = zero FAIL and default max = 3 cycles. Ordinary refinement applies feedback, runs code-level checks, and hands back the prototype without re-evaluating.
/uxd-prototype-create refine {ID} [--decisions skip|auto|human] [--headless] [--max-cycles 3]
--headless loops refine → evaluate until zero FAIL, max cycles, or plateau.
--workspace.actions.--decisions=skip. Follow the compliance reference for missing helpers or a workspace using another design system.| Doc | When to load |
|---|---|
| output-formats.md | Writing create artifact files |
| design-spec.md | Rules for {ID}-design-spec.md |
| templates/design-spec.md | Design spec template to fill |
| patternfly-compliance.md | Before component selection and during code-level checks |
| journeys-schema.md | journeys.json shape (owned by export) |
| states-schema.md | State field rules (id, name, description, default) |
| state-brainstorm.md | Planning page states |
| state-mocks.md | Wiring ?state= mocks |
| workspace-suggestions.md | Suggesting an existing prototype from Jira/project context |
| decision-workflow.md | --decisions=auto or human |
| refinement-procedure.md | Applying eval feedback |
| pipeline-mode.md | --pipeline / --speedrun |
| edge-cases.md | Thin RFEs, clone failures, Jira down, API-only tickets |
README.md (opens in a new tab)eval/cases/code-checks-before-handoff/annotations.yaml (opens in a new tab)eval/cases/code-checks-before-handoff/input.yaml (opens in a new tab)eval/cases/onboarding-before-build/annotations.yaml (opens in a new tab)eval/cases/onboarding-before-build/input.yaml (opens in a new tab)eval/cases/partial-decision-response/annotations.yaml (opens in a new tab)eval/cases/partial-decision-response/input.yaml (opens in a new tab)eval/cases/simple-design-defaults/annotations.yaml (opens in a new tab)eval/cases/simple-design-defaults/input.yaml (opens in a new tab)eval/cases/standalone-plan-confirm/annotations.yaml (opens in a new tab)eval/cases/standalone-plan-confirm/input.yaml (opens in a new tab)eval/eval.yaml (opens in a new tab)references/decision-page-example.md (opens in a new tab)references/decision-page-template.html (opens in a new tab)references/decision-points.yaml (opens in a new tab)references/decision-workflow.md (opens in a new tab)references/design-spec.md (opens in a new tab)references/edge-cases.md (opens in a new tab)references/output-formats.md (opens in a new tab)references/patternfly-compliance.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ux-prototyping, design-spec, user-journeys, page-states, mock-data
4 skills in this plugin
/uxd-prototype-evaluateEvaluate a running prototype against a Jira ticket's acceptance criteria, automatically fix what fails, then run persona-based usability walkthroughs. Produces an HTML evidence report with screenshots, scores, and findings. Use when you want to validate a prototype, check usability, or generate evidence for an MR review./uxd-prototype-exportExport a prototype page or journey step as static HTML, a React component tree, or a PatternFly implementation spec, and install the Prototype Bar (Sources, Prototype|Eval, State, Export). Use when capturing the current view, batch-exporting journey screens and page scenarios, or wiring provenance/eval/scenario navigation into a prototype./uxd-prototype-npx claudepluginhub rh-uxd/ai-helpers --plugin uxd-prototypeOther plugins' skills for the same job