Awesome-omni-skill frontend-governance
Enforces Contemplative design system and Anti-Slop protocols for all UI generation
install
source · Clone the upstream repo
git clone https://github.com/diegosouzapw/awesome-omni-skill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/design/frontend-governance" ~/.claude/skills/diegosouzapw-awesome-omni-skill-frontend-governance && rm -rf "$T"
manifest:
skills/design/frontend-governance/SKILL.mdsource content
Frontend Governance Skill
Design Philosophy: Contemplative
UI must exhibit restraint, intentionality, and quiet confidence. Reject the generic SaaS aesthetic. Every element earns its place through purpose, not decoration.
Semantic Token System
All styling MUST use the project's semantic tokens. Direct color values are forbidden.
Background Layers
| Token | Usage | Tailwind Class |
|---|---|---|
| Page background, deepest | |
| Card backgrounds, containers | |
| Modals, popovers, dropdowns | |
Text Hierarchy
| Token | Usage | Tailwind Class |
|---|---|---|
| Headings, body text | |
| Muted text, labels | |
| Disabled, hints, captions | |
Accent Colors
| Token | Usage | Tailwind Class |
|---|---|---|
| Warm highlights, warnings | |
| Links, interactive states | |
| Purple accent, special | |
Typography
| Token | Usage | Tailwind Class |
|---|---|---|
| Display text, headings | |
| Numbers, code, tabular | |
Forbidden Patterns (Anti-Slop)
The following patterns are explicitly banned. Their presence indicates "AI slop" and must be rejected:
Visual Anti-Patterns
- Gradient Crutch:
used decoratively without semantic purposebg-gradient-to-* - Rounded-XL Addiction: Excessive
,rounded-xl
,rounded-2xl
on every elementrounded-3xl - Skeleton Aesthetic: Gray placeholder boxes as permanent design elements
- Shadow Spam: Multiple layered shadows (
) for "depth"shadow-lg shadow-xl - Border Radius Inconsistency: Mixing radius values without system
Color Anti-Patterns
- Hardcoded Colors:
,bg-gray-900
,text-white
,#1a1a1a
,rgb(...)hsl(...) - Tailwind Palette Direct:
,bg-blue-500
(use semantic tokens)text-slate-400 - Opacity Hacks:
instead of proper elevation tokensbg-black/50
Layout Anti-Patterns
- Flexbox Soup: Nested flex containers without clear hierarchy
- Magic Numbers:
,mt-[47px]
(use spacing scale)w-[312px] - Container Nesting: Excessive wrapper divs for spacing
Typography Anti-Patterns
- Font Size Chaos: Arbitrary text sizes without hierarchy
- Weight Overload: Bold everything for emphasis
- Line Height Neglect: Default line heights on dense text
Component Guidelines
Prefer Radix/shadcn Primitives
When available, use Radix UI primitives or shadcn/ui components. These provide:
- Accessibility out of the box
- Keyboard navigation
- Focus management
- ARIA compliance
Server Components by Default
All components are React Server Components unless they require:
- Event handlers (
,onClick
)onChange - React hooks (
,useState
)useEffect - Browser APIs (
,window
)document
Client components must import
client-only at the top.
Design Intent Protocol
Before generating any UI component, emit a
<design_intent> block in the conversation:
<design_intent> Component: [Name] Purpose: [Single sentence] Tokens: [List semantic tokens to be used] Hierarchy: [Visual hierarchy description] Interactions: [If any] </design_intent>
CRITICAL: The
<design_intent> block is ephemeral. It appears in conversation only and is NEVER committed to the codebase. It is a meta-cognitive tool for ensuring intentional design, not a code artifact.
Validation Checklist
Before presenting any UI code:
- All colors use semantic tokens (no hardcoded values)
- Typography uses
or--font-heading
where appropriate--font-data - No forbidden patterns present
- Component has clear visual hierarchy
- Spacing uses Tailwind scale (no magic numbers)
- Server/Client boundary is correct