frontend-design

Guidance for making decisions about web interface layouts, components, colors, fonts, effects, and motion. It focuses on design reasoning and includes a user-experience and accessibility audit script.

In plain words
What is it for?
Designing web pages and components, choosing visual styles and typography, planning animations, and checking an interface for user-experience and accessibility issues.
Why use it?
It helps developers make interfaces easier to understand and use instead of choosing visual details without a clear reason.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/felipeslo/opencode-kit/frontend-design
Any agent
npx skills add felipeslo/opencode-kit --skill frontend-design
Clone the repo
git clone --depth 1 https://github.com/felipeslo/opencode-kit

Made for: Claude Code, Codex.

Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,324 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 94% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00037 $0.03324
Opus 5 $0.00018 $0.01662
Sonnet 5 $0.00007 $0.00665
Haiku 4.5 $0.00004 $0.00332

Measured yesterday against content hash 1f418c233d31, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

frontend-design scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/accessibility_checker.py, scripts/ux_audit.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

94% identical to frontend-design — 57 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.opencode/skills/frontend-design/SKILL.md · 452 lines

How it starts

The opening of the file, as written. The whole thing — 452 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Frontend Design System

Philosophy: Every pixel has purpose. Restraint is luxury. User psychology drives decisions. Core Principle: THINK, don't memorize. ASK, don't assume.


🎯 Selective Reading Rule (MANDATORY)

Read REQUIRED files always, OPTIONAL only when needed:

File Status When to Read
ux-psychology.md 🔴 REQUIRED Always read first!
color-system.md ⚪ Optional Color/palette decisions
typography-system.md ⚪ Optional Font selection/pairing
visual-effects.md ⚪ Optional Glassmorphism, shadows, gradients
animation-guide.md ⚪ Optional Animation needed
motion-graphics.md ⚪ Optional Lottie, GSAP, 3D
decision-trees.md ⚪ Optional Context templates

🔴 ux-psychology.md = ALWAYS READ. Others = only if relevant.


🔧 Runtime Scripts

Execute these for audits (don't read, just run):

Script Purpose Usage
scripts/ux_audit.py UX Psychology & Accessibility Audit python scripts/ux_audit.py <project_path>

⚠️ CRITICAL: ASK BEFORE ASSUMING (MANDATORY)

STOP! If the user's request is open-ended, DO NOT default to your favorites.

When User Prompt is Vague, ASK:

Color not specified? Ask:

"What color palette do you prefer? (blue/green/orange/neutral/other?)"

Style not specified? Ask:

"What style are you going for? (minimal/bold/retro/futuristic/organic?)"

Layout not specified? Ask:

"Do you have a layout preference? (single column/grid/asymmetric/full-width?)"

⛔ DEFAULT TENDENCIES TO AVOID (ANTI-SAFE HARBOR):

AI Default Tendency Why It's Bad Think Instead
Bento Grids (Modern Cliché) Used in every AI design Why does this content NEED a grid?
Hero Split (Left/Right) Predictable & Boring How about Massive Typography or Vertical Narrative?
Mesh/Aurora Gradients The "new" lazy background What's a radical color pairing?
Glassmorphism AI's idea of "premium" How about solid, high-contrast flat?
Deep Cyan / Fintech Blue Safe harbor from purple ban Why not Red, Black, or Neon Green?
"Orchestrate / Empower" AI-generated copywriting How would a human say this?
Dark background + neon glow Overused, "AI look" What does the BRAND actually need?
Rounded everything Generic/Safe Where can I use sharp, brutalist edges?

Read the full file on GitHub · 452 lines

Files

What ships with it

9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 452 lines · 37 tokens per session scan A 1f418c233d31

Subscribe to this mod's changes

frontend-design is a skill published in the GitHub repository felipeslo/opencode-kit (2 stars, last pushed 5mo ago), licensed MIT. It adds 37 tokens to every session and 3,324 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 94% identical to frontend-design, differing in 57 lines, and is treated as a copy.

Related

Other skills, from other repositories

baoyu-comic

Knowledge comics (知识漫画): educational, biography, tutorial.

NousResearch/hermes-agent · 17 tokens

stage-design

The baseline method for building ONE stage — a single classroom — with this runtime. Covers how the plan is settled in conversation, the order the generation tools are called in, how the classroom roster is written, when narration has to be re-synthesized, and what must be true before a stage is called done. Load this…

THU-MAIC/OpenMAIC · 97 tokens

baoyu-comic

Knowledge comic creator supporting multiple art styles and tones. Creates original educational comics with detailed panel layouts and batch-capable image generation. Use when user asks to create "知识漫画", "教育漫画", "biography comic", "tutorial comic", or "Logicomix-style comic".

JimLiu/baoyu-skills · 61 tokens

songwriting-and-ai-music

Songwriting craft, AI music generation prompts (Suno focus), parody/adaptation techniques, phonetic tricks, and lessons learned. These are tools and ideas, not rules. Break any of them when the art calls for it.

moltis-org/moltis · 53 tokens

bilibili-helper

B站内容助手 - 视频标题描述优化、标签策略、封面设计建议、分区选择、评论互动.

dongsheng123132/u-claw · 29 tokens

muapi-storyboard-to-cooking-video

Turn a single photo of a person into a 15-second cinematic pasta-making (or other cuisine) tutorial video. First builds a composite reference sheet (character + kitchen + 9-step action board), then animates the full cooking sequence with audio in a single continuous shot.

SamurAIGPT/Generative-Media-Skills · 64 tokens