- Home
- Skills
- UX & UI Design
- Design Guardrails
More screenshots
Works with the AI Agents you already use
Design Guardrails
Automated hooks to enforce DESIGN.md rules and flag raw colors or unauthorized framework classes during UI edits.
$5
Design Guardrails
Example session with this skill installed
Set up the design guardrails for this project to make sure I don't use raw hex codes or Tailwind defaults.
- Read your context and instructions
- Compiled the design guardrails
I have installed the design guardrails. I copied the necessary scripts to your project and updated the hook configurations to monitor UI file changes. ## Design Guardrail Installation **I have performed the following actions** 1. Created `.claude/considered/` and added `guardrails.mjs`, `config.mjs`, and `token-drift.mjs`. 2. Updated `.claude/settings.json` to include `SessionStart` and `PostToolUse` hooks. 3. Enabled the system in `.claude/considered.json`. The following configuration was applied to your project settings: ```json { "hooks": { "SessionStart": [ { "hooks": [ { "type": "command", "command": "node \"$CLAUDE_PROJECT_DIR/.claude/considered/guardrails.mjs\"", "timeout": 10 } ] } ], "PostToolUse": [ { "matcher": "Edit|Write|MultiEdit", "hooks": [ { "type": "command", "command": "node \"$CLAUDE_PROJECT_DIR/.claude/considered/guardrails.mjs\"", "timeout": 10 } ] } ] } } ``` The system is now active. It will automatically load your `DESIGN.md` context and flag any color literals or unauthorized Tailwind classes (e.g., `bg-blue-500`) that appear in your UI edits. **Next steps** - Restart your session or run `/hooks` to reload the new configurations. - Ensure your `DESIGN.md` file contains your primary color tokens and font families. - Add any generated file paths to the `"ignore"` array in `.claude/considered.json` if needed.
Connects securely to your tools. The creator never sees your data.
About this skill
Design systems often rot because developers slip raw hex codes or framework defaults into components. This skill installs automated hooks to catch design drift before it reaches your main branch. ## What it does - **Automatic context loading** loads your `DESIGN.md` from the project root or docs folder at the start of every session. - **Raw color detection** flags hardcoded hex, RGB, or HSL literals that sit outside your defined design tokens. - **Palette enforcement** identifies default framework classes like `blue-500` or `gray-100` that violate custom themes. - **Font verification** scans for unknown font families or typography declarations not documented in your design spec. - **Selective ignoring** allows you to skip specific paths like generated files or third party components via configuration. ## How it works 1. **Script deployment** copies the guardrail logic to your local `.claude/considered/` directory. 2. **Hook registration** updates your project settings to trigger checks during session starts and file edits. 3. **Activation** enables the guardrails via a configuration file or environment variable. 4. **Active monitoring** provides immediate feedback whenever UI files are created or modified. ## Frameworks & tools This skill uses Node.js scripts and integrates with the Claude Code hooks system, specifically targeting `.claude/settings.json` and `.claude/considered.json`. ## Why this beats prompting it yourself Manual prompts to "follow the design system" are easily forgotten or ignored during complex refactors. These hooks automate the audit process, ensuring every edit is checked against your `DESIGN.md` without you having to remember to ask. ## Use cases - Enforce strict adherence to brand-approved design tokens in a large React or Vue codebase. - Prevent Tailwind default palette "leakage" in projects with custom color configurations. - Onboard new developers by providing instant feedback on CSS and UI styling mistakes. - Maintain a single source of truth for typography across multiple web components. ## Known limitations Requires Node.js to execute the guardrail scripts. It only monitors UI files during Edit, Write, or MultiEdit operations.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 4 days ago
Permissions
What's inside
Frequently Asked Questions
New in UX & UI Design
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for UX & UI Design.