/magic-ui-ux:persistencefrom magic-ui-ux
Manages the .ui-ux/ persistence folder: initializes, reads, and writes design tokens, project state, and screen references. Every design command reads from this folder before operating.
Ships in magic-ui-ux. 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.
.ui-ux/ is the single source of truth for all design operations. It persists design tokens (JSON), screen IDs, project state, branding guidelines, and UX briefs across sessions. Every command reads from it before generating, and writes back after completing.
.ui-ux/
tokens.json # Design system tokens (colors, typography, spacing, patterns)
state.json # Project state (screens, pages, Stitch IDs, status)
branding.md # Human-readable design system description
briefs/ # UX briefs per page ({page}-ux-brief.md)
references/ # Reference screenshots and assets
When .ui-ux/ does not exist, initialize it:
Create the directory structure:
mkdir -p .ui-ux/briefs .ui-ux/references
Create state.json with initial values:
{
"projectName": "<ask user>",
"niche": "<ask user>",
"createdAt": "<ISO 8601 timestamp>",
"updatedAt": "<ISO 8601 timestamp>",
"screens": [],
"pages": [],
"deviceType": null,
"brandingComplete": false,
"animationSpecs": [],
"scrollVideoSpecs": [],
"imageSpecs": []
}
Do NOT create tokens.json yet -- that comes from the /branding command (Phase 2).
Do NOT create branding.md yet -- that also comes from /branding.
Before any design command executes:
.ui-ux/ exists. If not, run initialization (above).state.json for current project status (pages designed, screens generated, branding state).tokens.json if it exists (indicates branding is complete -- design tokens are available).branding.md if it exists (human-readable design system for context).If tokens.json does not exist and the command requires design tokens (e.g., /design), prompt the user to run /branding first.
After any design command completes:
state.json with new screen IDs, page statuses, and updatedAt timestamp.tokens.json during design operations -- only /branding writes tokens.briefs/{page}-ux-brief.md.references/ when reverse-engineering designs.Design tokens and project state are validated against JSON Schema (draft-07):
schemas/tokens.json -- defines colors (primary, secondary, CTA, background, text, semantic), typography (heading, body, accent with Google Fonts), spacing, UI style, industry, and component patterns.schemas/state.json -- defines project name, niche, timestamps, Stitch project reference, screens array, pages array with status tracking, branding completion flag, animation specs, and scroll-video specs."Always read
.ui-ux/before generating. Never design blind."
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
persistence, design-tokens, project-state, ui-ux, file-management
8 skills in this plugin
/animationGenerates per-page animation choreography specs. Reads UX briefs for psychology context and design tokens for style-appropriate motion. Produces implementation-ready specs with Framer Motion, GSAP + ScrollTrigger, Swup.js, and Lenis code patterns.
/brandingGenerates complete design systems from project niche/industry descriptions. Produces machine-readable tokens (tokens.json) and human-readable design documentation (branding.md) using industry-specific design rules and color psychology.
/copy-generationGenerates page copy (headlines, subheadings, body text, CTAs, labels) based on project niche, page type, and UX brief psychology rationale. Presents all copy for human approval before use. Never passes unapproved copy to the UI Agent.
/image-generationGenerates comprehensive JSON visual specifications from text descriptions, reference images, or both. Translates photography/cinematography parameters into rich natural-language image guidance that dramatically improves Stitch's image rendering in generated screens.
/magic-ui-uxRun psychology-led branding, page design, iteration, image specification, motion, sync, and export workflows in Codex./psychology-routerRoutes page sections to relevant psychology skills. Given a page-type and section-type, returns 2-4 focused skills instead of all 14. Called by the UX Agent before analyzing each section of a page layout.
npx claudepluginhub flyingwebie/skills --plugin magic-ui-uxOther plugins' skills for the same job