ui4-review

Automate UI4 CSS migration reviews and auto-correct token violations.

44.1k|4.0k|Updated Jan 5, 2021
One-click install
npx skills add https://github.com/payloadcms/payload --skill ui4-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ui4-review
Source: https://github.com/payloadcms/payload/tree/main/.claude/skills/ui4-review
Command: npx skills add https://github.com/payloadcms/payload --skill ui4-review

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the review and auto-fixing of CSS migrations for proper token usage in UI4, ensuring that CSS variables are used instead of hardcoded values.

Core Features & Use Cases

  • CSS Review: Reviews CSS changes and detects token violations.
  • Auto-Fix: Automatically corrects common CSS token violations.
  • Use Case: Ideal for developers and designers who need to ensure that their UI4 CSS migrations adhere to the UI4 token standards, reducing manual effort and improving consistency.

Quick Start

Run the ui4-review skill on the changed CSS files after migration to automatically fix token violations.

Frequently Asked Questions about ui4-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate CSS token migration checks and fix hardcoded values?

To automate CSS token migration checks, you can run the ui4-review skill on changed component CSS files. It detects hardcoded values and raw palette tokens, automatically replacing them with appropriate semantic tokens while generating detailed violation reports.

What is the best way to ensure UI4 CSS migrations use semantic tokens instead of raw palette values?

The best way to ensure UI4 CSS migrations use semantic tokens is to run an automated review script that detects raw palette values. This process corrects token violations by replacing them with appropriate semantic CSS variables, reducing manual effort.

How does auto-fixing token violations work for component CSS files?

Auto-fixing token violations works by scanning component CSS files to identify hardcoded values and raw palette tokens. The script automatically replaces these violations with proper UI4 semantic tokens and provides a detailed report of all corrections made.

Can I review CSS changes for token usage violations without manual inspection?

Yes, you can review CSS changes for token usage violations without manual inspection by running an automated review script. It checks component CSS files for hardcoded values and raw palette tokens, automatically applying fixes and generating detailed violation reports.

Does the ui4-review skill require any external dependencies to run?

No, the ui4-review skill does not require any external dependencies to run. It operates as a standalone script that directly processes your component CSS files to detect and auto-correct token usage violations during UI4 migrations.