ui4
Skill by payloadcms
Reskins Payload CMS UI components to match a Figma design. It converts SCSS to CSS, maps Figma variant states and checks icons and spacer tokens. Built for developers working in the Payload repository.
Install ui4
Built from the published package, never by AI.
git clone --depth 1 https://github.com/payloadcms/payload /tmp/payload && mkdir -p ~/.claude/skills && cp -r /tmp/payload/.agents/skills/ui4 ~/.claude/skills/ui4Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/payloadcms/payload /tmp/payload && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/payload/.agents/skills/ui4 ~/.gemini/antigravity-cli/skills/ui4Antigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
ui4 is a manually invoked skill for reskinning Payload UI components. It requires a Figma URL and asks for one if it is not provided. The workflow starts with an icon scan that compares component icon imports and the packages/ui icons folder against the Figma design.
Next, the skill migrates SCSS files to index.css, replaces legacy var(--base) values with --spacer tokens, and checks that CSS variables exist in packages/ui/src/css. It then analyzes Figma variants and restyles the component to match. The source says the migration step is syntax conversion only, so the component must look identical afterward. It is aimed at developers working in the Payload source.
Written from the project's SKILL.md and checked against it.
What it can do
- Icon scanCompares icon imports and existing icons against the Figma design before work starts.
- SCSS to CSS migrationConverts index.scss to index.css, wraps styles in a payload-default layer and removes the SCSS file.
- Legacy token migrationReplaces var(--base) with --spacer tokens, rounding values to the nearest token.
- Token lookupChecks that each CSS variable exists in packages/ui/src/css before it is used.
- Figma variant analysisBuilds a matrix of Figma component states and maps them to CSS selectors.
- Restyle to match FigmaReads the token files first, then writes CSS to match the Figma design.
What you need
- A Figma URL for the design
- Access to the Figma file through the Figma MCP tools
- The Payload repository with the packages/ui source
- Local Figma icon library at ~/figma/figma/fpl/icons/src/icons/ for icon updates
Try asking
- /ui4 with my Figma URL to reskin the Checkbox field component
- Scan the Select element for icons that are missing from the Figma design
- Convert the Drawer index.scss to index.css and replace var(--base) tokens
Good to know
- A Figma URL is required. The skill asks for one before it starts.
- If Figma access fails, the skill stops and asks the user to share the file.
- Icons missing from the Figma source require asking the user how to proceed.
- Post-migration checks refer to a separate ui4-review skill.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/ui4/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md23 KB
Alternatives to ui4
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
ui4: common questions
When should I use ui4?
Use it when you need to reskin a Payload UI component to match a Figma design. The source says it is manually invoked with /ui4.
Does ui4 change how components look?
The migration step is described as syntax conversion only, and the component must look identical after it. The restyle step then matches the Figma design.
Where do the design tokens come from?
Tokens are read from packages/ui/src/css, including spacing, colors, typography and radius files. The source says the packages/ui/src/scss folder has been removed.
How do I install ui4?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is ui4 free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is ui4 safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to ui4?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
