# Design Guardrails

> Automated hooks to enforce DESIGN.md rules and flag raw colors or unauthorized framework classes during UI edits.

Design Guardrails is a paid AI agent skill on Agensi by Rommel Jay Ocon, in UX & UI Design. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [Rommel Jay Ocon](https://www.agensi.io/creators/rommelocon)
- Category: [UX & UI Design](https://www.agensi.io/skills/ux-ui-design)
- Version: 1.0
- Last updated: 2026-12-01
- Security: scan passed (2026-12-01); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/design-guardrails
- Tags: ui-ux, tailwind-css, design-systems, node-js, code-review

## 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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Design Guardrails skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill prevent design systems from rotting?

This skill enforces your design system by loading your DESIGN.md file at the start of every session. It automatically flags raw color codes, unauthorized framework palette classes, and unknown fonts during UI edits to prevent design drift.

### What software or files do I need to have ready to use this skill?

You need a project that uses Node.js and a DESIGN.md file located in your project root or docs folder. The skill specifically integrates with your project settings through the .claude directory to monitor file edits.

### What kind of feedback will I see when I am editing UI components?

The skill provides immediate feedback during edit and write operations by identifying hardcoded hex or RGB values and default framework classes like blue-500. It can also be configured to ignore specific paths such as generated files or third party components.

### Are there any specific situations where the guardrails do not work?

The guardrails only monitor UI files during specific actions like Edit, Write, or MultiEdit operations. It requires Node.js to execute the scripts and will stay silent unless the configuration is explicitly enabled.

### How should I tell my agent to start using these design hooks?

You can ask your agent to set up design guardrails or to automatically enforce your DESIGN.md rules. It is best used when you want to ensure every UI edit is checked against your design tokens without manual prompting.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
