/crucible:mockup-builderfrom crucible
Creates HTML mockups for Unity UI Toolkit using CSS custom properties that mirror Theme.uss variables. Constrained to USS-feasible CSS with no grid or absolute positioning.
Ships in crucible. 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.
Create HTML mockups for your project's UI that are constrained to Theme.uss variables and designed for direct translation to Unity UI Toolkit.
Skill type: Rigid — follow exactly.
references/theme-variables.md for the Theme.uss variable catalog. Freshness check: verify the Last synced date is current. If the project's Theme.uss has been modified since that date, regenerate theme-variables.md from Theme.uss's :root block only (see the Freshness Check instructions in theme-variables.md).skills/shared/uss-approximation-patterns.md to understand what CSS effects are achievable in USS and how to approximate those that aren't.skills/mock-to-unity/references/css-to-uss-mapping.md, specifically the "CSS Properties Not Available in USS" section, for the hard-block list of features that MUST NOT be used in mockups.docs/mockups/ for visual language reference — but note that mockups created before this skill may use hardcoded hex values and lack CSS variables. Use them only to understand the project's visual language (colors, proportions, layout patterns), NOT as CSS architecture exemplars.These are non-negotiable. Every mockup must satisfy all of them.
Theming:
var(--color-bg-base))--spacing-*, --font-size-*, --radius-*, --border-*)--color-* variable in :root with a comment explaining why:root block is a LOCAL COPY of Theme.uss values for browser rendering. Values MUST match references/theme-variables.md exactly. Do not redefine existing variables with different values. If you need a value that doesn't exist, add a new variable with a descriptive name and document it in the Translation Notes.Layout:
translateY for hover lift effects (these need C# in Unity)USS Feasibility:
skills/mock-to-unity/references/css-to-uss-mapping.md under "CSS Properties Not Available in USS." These have no USS equivalent and no viable approximation. This includes but is not limited to: text-shadow, @media queries, display: grid/inline, calc(), clamp(), viewport units (vw/vh/vmin/vmax).skills/shared/uss-approximation-patterns.md:
::before/::after, text-transform, transition, cursor (non-standard values), border-style: dashed, letter-spacing in em units, backdrop-filter, animation/@keyframesNaming:
.talent-node, .talent-node__icon, .talent-node--maxed)Output:
docs/mockups/<feature>-mockup.htmlEvery mockup follows this structure:
1. :root block
- All CSS variables from Theme.uss used by this mockup
- Any new variables with explanatory comments
2. Component CSS
- Uses only var() references, never raw values
- Flexbox layout only
- BEM class names
3. HTML structure
- Class names match USS selector intent
- Hierarchy maps to VisualElement tree
- Data-attributes for state variants (data-state="maxed", etc.)
4. Translation Notes (visible footer section)
- CSS features that need C# equivalents (hover → PointerEnterEvent)
- Properties known to fail in USS (height in ScrollView)
- Any new Theme.uss variables this mockup introduces
At the bottom of every mockup, include a visible <section class="translation-notes"> covering:
:hover and :active → USS supports these as pseudo-classes. Use USS selectors directly (e.g., .button:hover { background-color: ... }). Do NOT use C# PointerEnterEvent/PointerLeaveEvent for hover styling — that pattern is outdated.text-overflow: ellipsis → may need C# truncation logictransition → need DOTween or manual interpolation--color-* or --spacing-* variables not yet in Theme.ussmock-to-unity's jobThis skill produces mockups. When used standalone, invoke crucible:quality-gate after the mockup is created and committed. When used as a sub-skill of build, the parent orchestrator handles gating.
The quality gate reviewer MUST check:
skills/shared/uss-approximation-patterns.md:root variable values match references/theme-variables.md (after freshness check)var() references, no hardcoded hex/rgb valuesItems 1-3 are blocking — they guarantee downstream translation failure if not fixed before proceeding to mock-to-unity.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (raddue/crucible) — no native marketplace selected
npx claudepluginhub p/raddue-crucible51 skills in this plugin
/adrWrite, supersede, and maintain Architecture Decision Records (docs/decisions/) for technical choices that had real, seriously-considered alternatives and would be costly to reverse. Use on "write an ADR", "record this decision", or when recording a choice that a design or PR already settled. Matches the target repo's existing ADR convention before imposing one, and declines with a reason when a decision does not meet the bar — not for routine design docs, implementation plans, session handoffs, the pre-push/merge wrap-up itself (that belongs to `finish` / `merge-pr`), or answering "why did we choose X" from an ADR that already exists (that's a read, owned by `recall` / `recon`)./adversarial-testerUse after completing an implementation to find unknown failure modes. Reads the implementation diff and writes up to 5 tests designed to make it break — per-task, scoped to that single implementation (for a fully-assembled multi-component feature, use inquisitor to hunt cross-component bugs). Triggers on 'break it', 'adversarial test', 'stress test implementation', 'find weaknesses', or any task seeking to expose unknown failure modes in a single implementation./assayRecon-informed approach evaluator. Weighs competing options against codebase constraints and returns structured recommendations with confidence scoring, kill criteria, and evidence grounding. Consumes recon briefs or caller context. Used by design, spec, migrate. Triggers on /assay, 'evaluate approaches', 'which option', 'compare alternatives'.Other plugins' skills for the same job