/ab-method:prototype-uifrom ab-method
Builds multiple distinct UI variants in a single disposable HTML file with a live picker, letting users compare and choose a direction before writing production code. Never modifies the codebase.
Ships in ab-method. 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.
A divergence skill. It takes one described piece of UI ("the refund row action", "a hold-to-delete button"), builds several genuinely different versions of it in one disposable HTML file, and puts them behind a picker so the user can flip through them and choose. The picked variant becomes the spec the task's missions implement. This skill never writes production code.
ALWAYS check .ab-method/structure/index.yaml FIRST for where task folders and domain docs live — paths are user-configurable. Look for it under the project root first; only if the project has none (AB Method installed as a plugin), read the bundled default at ../../../.ab-method/structure/index.yaml relative to this SKILL.md. Every path the index names is relative to the project root. Read UBIQUITOUS_LANGUAGE.md (if it exists) so variant copy uses the product's real terms.
Talk to the user per .ab-method/rules/communication.md.
You are a senior design engineer running a design exploration. The value is divergence: three tints of one idea teach the user nothing. Each variant is a direction you could defend shipping on its own.
Divergence never lowers the craft bar. Every variant meets it: ease-out on entrances (never ease-in), UI motion under 300ms, correct transform-origin, animate transform/opacity only, prefers-reduced-motion handled.
.gitignore line and the tracker's ## UI Spec.| Context | Path |
|---|---|
Run for a task (from create-task / extend-task) | docs/tasks/<task>/prototype/index.html (task folder per the index) |
| Standalone | $TMPDIR/prototype-<slug>-<timestamp>.html |
For a task run: if the project .gitignore lacks docs/tasks/*/prototype/, append it and tell the user in one line. The folder is disposable; the task workflows delete it when the task completes.
One piece of UI per run. If the brief spans several ("the dashboard"), pick the highest-leverage piece, say which and why, and offer the rest as follow-up runs. Restate the brief in one sentence: what it is, where it lives, what it must do.
Read, don't import:
No project (or no tokens): neutral grays, one accent, system font stack.
Default 3 variants, up to 5 when asked or the space is genuinely wide. Before writing code, list each variant's name and axis. Names describe the direction ("Quiet", "Dense", "Editorial"), never "Option A". If two directions differ only in color or copy, they are one; replace one with a real alternative.
Done when every variant has a name and an axis, and no two share an axis position.
One HTML file containing: the copied tokens as CSS variables, the surrounding page context, one render function per variant, and the picker from PICKER.md. Render one variant at a time, full size, in context; never side-by-side thumbnails. Switching is instant.
Open the file. With a browser tool available, flip through every variant, check interactions respond and the console is clean, and screenshot each. Without one, at least confirm the file parses and every variant's render function returns markup.
Present the set and stop; the choice belongs to the user:
| # | Variant | Axis | When it's the right choice | Its cost |
|---|---|---|---|---|
| 1 | Quiet | Minimal motion, borders over shadows | Daily-use tool | Least memorable |
Close with the file path and the keys to flip (1–N, ←/→, R).
When the user picks:
## UI Spec into the task's progress-tracker.md (create the section if missing, replace it if present): winner name and axis, then the concrete decisions the missions must implement: layout, states (empty / loading / error / success), interactions, motion (property, duration, easing), and key copy. Close with Reference: docs/tasks/<task>/prototype/index.html. Keep it under ~15 lines.Standalone runs skip step 1 and report the spec in chat instead.
| Invocation | Behavior |
|---|---|
<description> | Scope → recon → 3 variants → picker → wait for the pick |
<description> xN | Same with N variants (max 5) |
riff <variant> | New round in the same file, diverging around that variant's direction |
keep <variant> | Record the pick: write ## UI Spec, strip the losers |
One line on when each variant wins, one on what it costs. Never pre-pick in the table. If asked for your choice, answer from the product's personality and frequency of use, not aesthetics alone. If two variants converged while building, cut one and say so.
What SKILL.md sets; muted values are Claude Code's defaults
36 skills in this plugin
/ab-analyze-backendAnalyze and document a project's backend patterns — API design, data access, service structure. Use when the user wants a backend-only architecture analysis./ab-analyze-frontendAnalyze and document a project's frontend patterns — component structure, state management, conventions. Use when the user wants a frontend-only architecture analysis./ab-analyze-projectAnalyze a project's architecture end to end — extract domain language, map the tech stack, document frontend and backend patterns. Use when onboarding a new codebase or refreshing the architecture baseline.npx claudepluginhub ayoubben18/ab-method --plugin ab-methodOther plugins' skills for the same job