/bytedesk-designer:bytedesk-designer-authorityfrom bytedesk-designer
Create, 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.
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.
Everything else in this suite reads what this skill produces. A design authority is a git repository holding the values, the language, and the rules — the thing a team points at when they argue about a colour, and the thing an agent reads instead of inventing one.
It is a repository, not a document. That distinction is the point: a document gets copied into a deck and drifts. A repository has a commit sha, so a run six months old can be explained, and a validator, so a rule that isn't followed is a build failure rather than a disappointment.
Read ${CLAUDE_PLUGIN_ROOT}/references/authority-contract.md for the shape a conforming
authority must have, and ${CLAUDE_PLUGIN_ROOT}/references/claude-codex-collaboration.md for how Claude and
Codex divide this work. Both are prerequisites, not background.
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.
Codex is required — it produces the candidate palettes, scales, and motif language that
Claude then judges. If it is 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.
Do not build the authority alone: a palette Claude picked unaided is a palette with one
opinion in it, and the header this skill writes would be claiming otherwise.
Do not create a second authority next to a first. Run the doctor — it resolves, verifies, and tells you which of the three situations below you are in:
${CLAUDE_PLUGIN_ROOT}/scripts/authority-doctor.sh
It never adopts a repo it merely found lying around. If it names candidates, they are suggestions for the operator to confirm, not inputs.
Three situations, three different jobs:
| Doctor says | What this skill does |
|---|---|
CONNECTED | audit — report what's missing or inconsistent, fix what's asked |
NOT-CONFORMING | repair — add what it named, then re-run the doctor |
none, and an authority exists elsewhere | connect — write .design-authority, then re-run the doctor |
none, and design values are scattered across a codebase, a Figma export, a brand PDF, a live site | capture — reverse-engineer them into a repo |
none, and there is nothing at all | bootstrap — build one from the product idea |
Connect is the cheapest and most common, and it is one line. An operator who already has a design system does not need a new one; they need this repo to know where it is:
printf 'path: ../acme-brand\n' > .design-authority
Commit that file. It is what makes every clone, every teammate and every CI job resolve the same way instead of depending on which directory someone happened to be in.
Say which one you're doing before you start. An operator who asked you to add a product and watched you scaffold a fresh repo has lost their afternoon.
Three or four questions, not a form. The ones that actually change the output:
If they've already told you enough, don't interrogate them.
Hand Codex two or three genuinely different foundations, not variations on one. Text mode; see the handoff reference for flags and prompt shape. Each returns a palette, a type scale, and a spacing rhythm as plain values.
Divergence here is the whole value. A team rarely knows what it wants until it sees the austere version beside the warm one.
Ask each for a rationale line per decision. You are going to write those into DESIGN.md
and they need to say why, not what — "warm off-white ground because the product is read
for hours and pure white fatigues" is worth keeping; "#F7F4EE" is already in the tokens.
Look at every returned foundation. Check what Codex reliably gets wrong:
Then pick one and say why, in a sentence the user can disagree with. Take the best ideas from the runners-up rather than discarding them whole — a losing palette often has the right accent.
DESIGN.md foundation + the generated-art contract
tokens/<name>.tokens.json canonical values, DTCG-shaped
tokens/css/<name>.css :root custom properties + per-product scopes
profiles/<product>/DESIGN.md one per product
catalog.json the inventory
scripts/validate.mjs the gates
README.md how to consume it
Templates are in assets/. Fill them; don't ship them with placeholders in.
DESIGN.md carries the reasoning, tokens/ carries the values, and neither repeats the
other. A hex written in prose is a hex that will disagree with the token file within a
month.
Generate the CSS adapter from the token JSON, mechanically, and say in the file that it is generated. Two hand-maintained copies of a palette is the drift this whole suite exists to prevent.
Then watch for the day it stops being generated. An adapter earns things the token file
cannot express — a light theme as the semantic counterpart of the dark one, richness scopes,
per-desk tints, a prefers-reduced-motion block — and at that moment it becomes
hand-maintained and its header must say so. After that, regenerating it is destructive: it
silently deletes every one of those. Change the one property you mean to change and leave the
file otherwise byte-identical. This is not hypothetical; it is what the ByteDesk authority's
adapter already is.
DESIGN.md gets a section stating what generated raster art may and may not be. The
contract reference carries a default worth proposing. Do not skip it because the user
hasn't asked — they haven't asked because they haven't yet had a generated screenshot
mistaken for an approved design, and this section is how that stays true.
Offer it as a proposal, in their repo, in their words, and let them cut it. What matters is that the answer lives somewhere their team can read it.
scripts/validate.mjs is what separates an authority from a style guide. Ship it with at
least:
catalog.json has a profile, and every
profile is in the catalogProve each gate by breaking the repo. Introduce the failure it is supposed to catch, confirm it catches it, and undo it. A gate that has never failed is a gate you are guessing about — this is not a formality, and an accent-parity gate written this way found four undocumented accents on its first real run.
git init, one commit — for a new authority; extending an existing one is the two-phase
commit described under "Adding a product" — and a plain statement of where it is and how to
point the rest of the suite at it (--authority <path>, or a .design-authority file in the consuming
repo).
Same output, different input. Read what exists first: CSS custom properties, a Tailwind config, a Figma token export, a brand PDF, or screenshots.
Two failure modes to watch:
Don't launder inconsistency into a system. A codebase with eleven greys does not have an eleven-step grey scale; it has drift. Say so, propose the scale you'd collapse them to, and record what was merged. The value of a capture is the decisions it forces, not the completeness of its inventory.
Don't read values off rendered images. Eyedroppering a screenshot picks up compression artefacts, blend modes, and opacity you can't see. Prefer the source. Where an image is genuinely all you have, say the value is approximate and mark it for confirmation.
Run its own validate.mjs first; if it passes, the interesting findings are the ones a
validator can't reach:
DESIGN.md prose and the token file, already divergingReport findings; change only what you're asked to change.
The narrow case, and the common one. A new profile needs: its language and voice, its motif for generated art, its accent decision, and its bans — the things this product specifically must not do.
An accent decision is one of four, and all four are legitimate: own it, inherit the family's, have none, or leave it undecided. Undecided must be written down. A product with an accent nobody declared is how two products end up on the same hex and nobody notices for a year.
If the accent is own, it must agree in four places — token JSON, CSS custom property,
the per-product scope, and whatever table the README keeps. That's exactly the kind of
four-way consistency a human forgets and a validator never does. Note what a validator
does forget: checking that all four exist is not checking that all four agree, and
a real authority was found with two product accents below the 4.5:1 its own token file
asserts, because nothing in it computed contrast.
Demoting an accent runs the same list backwards. Going from own to none is a deletion
across those four files plus a written reason, not a field edit — and inherits is the
quiet one: a product that inherits but has no [data-bd-product] scope passes every gate
and renders the family accent, because :root wins. Three products in a real authority were
in exactly that state.
Extending an existing authority is a two-phase commit. If its manifest records hashes,
they are compared against git show HEAD:<path> — so the order is write → commit →
regenerate the manifest → commit again. Writing everything and validating once fails the
checksum, size and inventory gates every single time, and the failure reads like a bug in
the files rather than in the order.
assets/
are shapes with prompts in them, not a house style with the serial numbers filed off.references/repo-layout.md — the full file-by-file spec, and what each gate checksreferences/capture.md — reverse-engineering from CSS, Tailwind, Figma exports, sitesassets/ — templates for DESIGN.md, a profile, catalog.json, and validate.mjsShared contracts: ${CLAUDE_PLUGIN_ROOT}/references/authority-contract.md (the contract),
${CLAUDE_PLUGIN_ROOT}/references/claude-codex-collaboration.md (the loop), ${CLAUDE_PLUGIN_ROOT}/references/codex-handoff.md
(the mechanics).
assets/DESIGN.template.md (opens in a new tab)assets/catalog.template.json (opens in a new tab)assets/profile.template.md (opens in a new tab)assets/validate.mjs (opens in a new tab)evals/evals.json (opens in a new tab)references/capture.md (opens in a new tab)references/repo-layout.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
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-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.Other plugins' skills for the same job