/bytedesk-designer:bytedesk-designer-surfacefrom bytedesk-designer
Build a real screen in HTML and CSS against a design authority's actual tokens, then render it, look at the screenshot, and fix what is wrong. Use this whenever someone wants to see a screen, page, or app view - a mockup, a wireframe made real, a landing page, a dashboard, a settings screen, an email template, a component in context - and whenever a generated image would have been the wrong tool because the thing needs real text, real controls, real data, and colours that are exactly right. Also use it to turn an approved direction or a screenshot into something buildable. The output is a page that loads the authority's stylesheet, so it cannot drift from the system it claims to follow. Requires the Codex CLI installed and signed in.
Ships in bytedesk-designer. 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.
This is where the accurate artifact gets built. A generated image of a screen is a picture of a screen: its text is garbled, its controls are decorative, its numbers are invented, and its colours are approximately right in a way that cannot be relied on. A surface built in HTML against real tokens is the actual thing at zero fidelity cost.
The rule that makes it worth doing: the page loads the authority's stylesheet. It does not re-declare the palette, and it does not carry a hex anywhere in its own CSS. A mockup that hardcodes colours is a mockup that will disagree with the product within a month, and nobody will notice until it's in a deck.
Read ${CLAUDE_PLUGIN_ROOT}/references/claude-codex-collaboration.md and ${CLAUDE_PLUGIN_ROOT}/references/codex-handoff.md first.
command -v codex && codex --version
echo "Reply with exactly: OK" | timeout 60 codex exec --skip-git-repo-check -s read-only -
The second line is the one that matters. --version does not start a session, so it
does not load the MCP servers declared in ~/.codex/config.toml — it returns cleanly on a
machine where every real invocation hangs. A preflight built on it passes, and the arc then
fails several minutes in, which is precisely what failing at preflight is supposed to
prevent. Measured on a real machine: --version exit 0, codex exec timed out at 120s.
Use ${CLAUDE_PLUGIN_ROOT}/scripts/codex-exec.sh for every invocation rather than calling
codex exec directly. It carries the bounded retry described below.
Preflight the authority in the same breath, unless this stage genuinely has no authority to read:
${CLAUDE_PLUGIN_ROOT}/scripts/authority-doctor.sh
CONNECTED and you may proceed, recording the sha it reports. NOT-CONFORMING or none
and you stop, exactly as for a missing Codex — a stage that guesses at values produces work
that looks finished and is wrong.
This was a real gap, not a hypothetical one: authority resolution used to happen inside each stage rather than at the gate, and across one sweep five runs silently adopted a repository that two others correctly refused. Same machine, same repository. The only variable was the working directory.
Missing or signed out: stop and say which, with the fix. If it is on the machine and working but simply unreachable — a broken shim, a
half-finished upgrade — that is the third state: repair it for this run only, say
what you did, and record the version you actually invoked. See
${CLAUDE_PLUGIN_ROOT}/references/claude-codex-collaboration.md. Codex writes the
implementations; Claude renders them, looks, and re-briefs. A surface Claude wrote and
judged alone has one opinion in it and a provenance header claiming two.
This stage needs brief.md (for what the surface is and who is looking) and a resolved
authority (for the tokens). If the brief is absent, refuse and name the stage that produces
it. If the authority is absent, refuse and name that one — a surface built against an
invented palette is worse than no surface, because it looks finished.
Direction pieces from direction/ are useful input but not required. Where they exist,
read them: they carry the light, the texture, and the accent behaviour the surface should
be consistent with.
Copy the authority's CSS adapter to surfaces/tokens/ and write .source-sha with the
commit it came from.
This is the suite's one sanctioned cache, and it exists for a mundane reason: a static HTML
file has to load CSS from a path that will still work when the folder is zipped and emailed.
The .source-sha is what makes the copy honest — drift becomes detectable instead of
silent, and a page rendered six months ago can be explained.
Vendor. Do not retype. A hand-copied palette is the exact failure this stage exists to avoid.
Before any markup, decide three things and write them into the brief for this surface:
The state. Populated with realistic data — not empty, not lorem, not the happy path only. The state most worth building is usually the awkward one: the list with one item, the name that's too long, the metric that's negative. A surface that only exists in its best state hides every layout decision that matters.
The focal hierarchy. What the eye hits first, second, third. This comes from the brief's "one thing" section. If three elements compete, the surface has failed before it is written.
The restraint level. The governing profile — the project's own if it has one, otherwise the authority's — governs the product; marketing surfaces inherit the palette and the type but are allowed to be striking. Decide which room you are in and say so — flattening both into the same austerity produces on-system work nobody wants to look at.
Give Codex the surface brief, the token names it may use, and the structure. Text mode, one surface per invocation.
Two instructions belong in every prompt here, because they are what Codex gets wrong left to itself:
var(--...) for colour, spacing, radius, and type. No hex, no rgb(), no
pixel value that should have been a token. Give it the token list; it cannot read the
file.tokens/<name>.css. No build step, no CDN, no placeholder text.Ask for realistic copy in the product's voice, from the brief. Lorem ipsum makes every layout look better than it is, because real text is uneven and lorem is not.
This is the step that makes this stage more than templating. Open the page in a browser and take a screenshot, then read the screenshot so it enters context as an image.
Reading the HTML is not looking at the surface. Markup that is correct line by line routinely renders as something nobody would ship, and you cannot see that in the source.
Then judge, in this order:
Record every screenshot in state.json under viewed. Nothing goes in artifacts that
isn't in viewed.
Generated interfaces have a house style, and it is recognisable. The reliable way to avoid it is not to describe good design — every model already believes it is doing that — but to name the specific moves it reaches for by default and forbid those by name.
Two rules govern this whole section:
The authority always wins. If a product's design system asks for something on this list, it gets it. These are defaults to break, not laws. A skill that overrides someone's design system has stopped being useful to them.
Ban the move, not the element. "No badges" is wrong — a badge carrying real state is fine. "No badge whose only job is to say Live" is the actual rule. Every entry below is a decorative use of something that has a legitimate one.
border-radius: 999px applied past the one or two places it belongs.backdrop-filter blur as the default surface treatment.translate or scale on nav items and cards.::before, and nav badges that only ever say "Live".Before writing the prompt, list what you would reach for on this surface if none of the above existed — then don't. Writing the reflex down is what makes it visible; a rule you have not consciously nearly-broken is a rule you will break.
Put the list in the prompt too. Codex is the one producing the markup, and a ban it never saw is a ban that does not apply to it.
The named-reflex list is adapted from Uncodixfy (MIT), narrowed to the entries that describe a generation habit rather than a house style. Its palettes and its absolute colour and typeface bans are deliberately not carried over — in this suite those decisions belong to the authority.
Same discipline as everywhere in this suite: one axis per round, hold what worked verbatim, three rounds is a ceiling. If round 3 still misses, the surface brief is wrong, not the markup — say what you'd change about it rather than rolling again.
Before promoting, run two checks. Both are cheap and both catch real defects:
grep -nE '#[0-9a-fA-F]{3,8}|rgba?\(' surfaces/*.html
Any hit is a hardcoded colour that should be a token. There is no legitimate exception in a surface file; if a value genuinely isn't in the authority, that is a finding for the authority, not a licence to inline it.
Then check that every var(--...) used actually exists in the vendored stylesheet. A
typo'd custom property doesn't error — it silently falls back to nothing, and the element
renders transparent or unstyled in a way that is easy to miss on a busy page and impossible
to miss in a review.
Then check the product scope is actually on the page. Where the authority serves a
family from one stylesheet, the product's own accent lives in a product-scoped block and
the root element has to carry that attribute for it to apply. Authorities spell the
attribute differently — data-product, data-bd-product — so look for the shape, not one
spelling; authority-doctor.sh --product <id> reports whether a scope exists at all.
Forget the attribute and the page renders in the family default instead — the nastiest
failure in this stage, because the page uses var(--...) correctly, hardcodes nothing,
passes both greps above, and is still entirely the wrong colour. Two independent runs hit
it on the same file.
Check it the only way that works: render it and compare the accent you see against the token value you expect.
When the authority has no scope for this product, that is not the same failure. A
project the authority has never heard of has no accent of its own to apply, so the page
renders the family accent — correctly, and in a colour nobody chose. Do not fix it by
inlining a hex. Name it once, in surfaces/notes.md and in the summary, and let the
profile say which case it is:
If the authority ships scripts/validate.mjs, run it too.
Never hardcode a colour, a spacing value, or a font stack. Vendor the tokens and use them.
Never ship a surface it has not rendered and viewed. Correct-looking markup renders wrong constantly.
Never use lorem ipsum. It flatters every layout it touches.
Never invent data that could be mistaken for real, and put the marker in the artifact. This rule failed in testing — two independent runs produced entirely plausible fake figures — because "keep it obviously illustrative" is an adjective with no method, and because it fights the rule above it: the state has to look real or the layout isn't tested.
Resolve it by separating shape from content. The shape stays realistic — long names, negative amounts, wrapping headings, empty sections — because that is what stresses the layout. The content must not survive being screenshotted into a deck: fictional entity names, figures that are visibly round or visibly absurd at the margin, and a line on the surface itself saying what it is.
The marker goes in the page, not in your message. A mockup outlives the sentence that accompanied it — same reason the provenance header exists — and "I said it was fake" is no defence once the image is in a slide.
Never add a framework or a CDN link. The page must open from disk in five years.
Shared contracts: ${CLAUDE_PLUGIN_ROOT}/references/claude-codex-collaboration.md, ${CLAUDE_PLUGIN_ROOT}/references/codex-handoff.md (text mode),
${CLAUDE_PLUGIN_ROOT}/references/authority-contract.md (the product/marketing distinction), ${CLAUDE_PLUGIN_ROOT}/references/run-folder-contract.md
(the vendored-tokens rule and .source-sha).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub bytedeskai/bytedesk-marketplace --plugin bytedesk-designer9 skills in this plugin
/bytedesk-designerRun design work end to end: product idea to design brief to identity to art direction to real HTML screens to a published storybook, with an independent review before anything ships. Use this whenever someone wants to design a product, see what their idea would look like, get mockups made, refresh a look, or design several products or screens at once - and whenever design work needs more than one stage but nobody has said which. Works from nothing at all, bootstrapping a design system first if none exists, or picks up from a run already partly done. Fans out one focused worker per surface so attention does not dilute across a batch, and keeps set-level judgement in one place. Requires the Codex CLI installed and signed in./bytedesk-designer-authorityCreate, audit, or extend a design-authority repository: the single source of truth for design tokens, per-product profiles, motif language, and the rules governing what generated art may be. Use this when someone wants to start a design system, set up design tokens, capture an existing look as a reusable system, add a product to one they already have, decide a product accent, or check whether their tokens, CSS and docs still agree. Also use it when another design task cannot find an authority to read, since nothing else in the suite can run without one. Bootstraps from nothing, from a scattering of existing brand values, or from a live site or screenshot to reverse-engineer. Produces a real git repository with a validator, not a document. Requires the Codex CLI installed and signed in./bytedesk-designer-directionEstablish the visual world of a product by generating and critiquing art direction: Claude briefs, the Codex CLI renders, Claude looks at the result and re-briefs until it lands. Use this whenever someone wants an image made, changed, or explored - moodboards, hero and header graphics, social and ad creative, illustrations, spot art, packaging, textures, or abstract pieces that establish how something should feel. Trigger it even when they never say Codex or image generation, as in a header graphic for the launch post, or that image is too busy redo it. Also covers variants of an existing image and edits to one they already have. Reads the design authority live for the palette, the product motif, and the rules on what generated art may be, rather than inventing a look. For logos, marks, and icons use the identity skill instead. Requires the Codex CLI installed and signed in./bytedesk-designer-discoveryTurn a product idea into a design brief a designer or an agent can actually build from: who it is for, which surfaces exist, what constraints are real, how it should sound, and what it must never look like. Use this at the start of any design work, whenever someone describes a product they want to build and wants to see it, or when design work has begun without anyone writing down what it is for. Also use it when an existing brief is thin, contradictory, or reads as a list of adjectives. Generates two or three genuinely different product framings with the Codex CLI so the operator can choose by rejecting rather than by describing, then commits to one. Produces a brief every later stage reads. Requires the Codex CLI installed and signed in./bytedesk-designer-identityDesign a logo mark, app icon, or favicon and ship it as a real asset kit rather than a picture of a logo. Use this whenever someone wants a logo, a mark, a wordmark, a brandmark, an app icon, a favicon, or a set of icons - made, revised, or explored. Generates two or three concepts with the Codex CLI to find the idea fast, then redraws the winner as SVG by hand and delivers a vector master, a PNG size ladder, a favicon carrying sizes drawn at size, ground variants, and a proof showing it at 16px where marks actually die. Exists as a separate stage because image models have an unbreakable white-background prior for marks and cannot produce exact geometry. Requires the Codex CLI installed and signed in./bytedesk-designer-publishAssemble finished design work into a browsable storybook that anyone can open: every surface rendered live, every direction piece beside the brief that produced it, provenance attached, and a manifest recording what came from where. Use this when design work is done and needs to be shared, shown, handed over, reviewed by people, or kept somewhere it will not rot - a storybook, a gallery, a contact sheet, a design index, a handoff package. Also use it to add newly finished work to a storybook that already exists. Builds a static zero-dependency site that loads the design authority's real stylesheet, so what it shows cannot drift from what the system says.