Agent skill

Frontend Design Principles

by pretend1111 in pretend1111/claude-desktop-app

Gives practical design rules for polished HTML, CSS and JavaScript interfaces and browser games, covering spacing, type, color, components, motion and responsive breakpoints.

Custom licenceAuto-check passedFrontend & Design

Install Frontend Design Principles

skills CLI
$ npx skills add pretend1111/claude-desktop-app --skill frontend-design -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install pretend1111/claude-desktop-app frontend-design --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/pretend1111/claude-desktop-app.git skills-src && mkdir -p .claude/skills && cp -r skills-src/electron/skills/frontend-design .claude/skills/frontend-design && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
frontend-design
GitHub stars
494
Used in
1 other repo
Token cost
~824 tokens
SKILL.md length
404 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
Custom licence

At a glance

Gives practical design rules for polished HTML, CSS and JavaScript interfaces and browser games, covering spacing, type, color, components, motion and responsive breakpoints.

  • Building a website or web app with HTML, CSS and JavaScript
  • SKILL.md covers Design Principles, For Games & Interactive Projects, For Single-File Projects and Output Guidelines
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Creating a browser game with a start screen, score display and game over state

What it does

This is a compact rulebook for frontend work. It prescribes a spacing scale from 4px to 64px, generous whitespace, Grid or Flexbox layouts and a content max-width of 960 to 1200px. For type it suggests a system sans-serif stack, a clear heading hierarchy, body text of 16px or more, line height of 1.5 to 1.7 for body and 1.1 to 1.3 for headings, and lines of about 65 to 75 characters. Color guidance starts with neutral grays plus one accent, requires WCAG AA contrast, and says dark mode should use dark grays rather than pure black.

Component and interaction rules cover button hierarchy, card radii of 8 to 12px, form touch targets of 44px or more, modals, hover states and CSS transitions of 150 to 300ms using transform and opacity. A mobile-first section lists test breakpoints at 480, 768, 1024 and 1280px. A final section covers games: canvas or DOM rendering, a requestAnimationFrame loop, input handling, visual feedback, start and game over screens, and Web Audio sound. The excerpt is cut off there.

When your agent uses it

  • Building a website or web app with HTML, CSS and JavaScript
  • Creating a browser game with a start screen, score display and game over state
  • Fixing cramped spacing, weak hierarchy or low contrast in an interface
  • Making a page responsive with a mobile-first approach

Example prompts

  • “Build a landing page for a bakery with a mobile-first layout and one accent color.”
  • “Review this CSS for spacing, contrast and touch-target problems.”
  • “Create a canvas-based snake game with a start screen, score display and game over state.”
  • “Add subtle hover states and fade-in entrance animations to this card grid.”

What it can do on your machine

Read from SKILL.md and the folder at commit 8cbd7b7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Frontend Design Principles loads about 824 tokens when it runs. Until then it costs about 53 tokens; SKILL.md has 404 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~53
When it runs · the whole SKILL.md, loaded when a task matches
~824

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 404 words (~824 tokens).

“You are creating frontend code (HTML, CSS, JavaScript). Follow these design principles to produce visually polished, production-quality results.”

— opening of SKILL.md by pretend1111, Custom licence
name
frontend-design

Read the full SKILL.md on GitHub

Files

Just SKILL.md in electron/skills/frontend-design of pretend1111/claude-desktop-app.

Open the folder on GitHubat commit 8cbd7b7

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in pretend1111/claude-desktop-app, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Frontend Design Principles next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Frontend Design Principles compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Frontend Design Principles this skillpretend1111/claude-desktop-app4941 repos~824Automated safety check: PassCustom licence
Ultimate UINeverSight/learn-skills.dev2161 repos~4kAutomated safety check: PassMIT
Frontend Designseb1n/awesome-ai-agent-skills206—~2.3kAutomated safety check: PassMIT
UI StylingOhh-889/skyroc79513 repos~2.5kAutomated safety check: PassMIT
Refero Designreferodesign/refero_skill295—~5.3kAutomated safety check: PassMIT
Material Design 3 UI/UX Guideskydashnet/material-design-3-ui-skill130—~3kAutomated safety check: PassMIT

Similar skills

  • Ultimate UI

    NeverSight/learn-skills.dev

    A skill your agent uses when building user interfaces that need to look polished, modern, and intentional - not like AI-generated slop.

    216 GitHub starsUsed in 1 repo~4k tokens
    Frontend & DesignAuto-check passed
  • Frontend Design

    seb1n/awesome-ai-agent-skills

    Design and build production-ready frontend interfaces with design systems, responsive layouts, accessible components, and dark mode support.

    206 GitHub stars~2.3k tokensUpdated 2 mo ago
    Frontend & DesignAuto-check passed
  • UI Styling

    Ohh-889/skyroc

    Create beautiful, accessible user interfaces with shadcn/ui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs.

    795 GitHub starsUsed in 13 repos~2.5k tokens
    Frontend & DesignAuto-check passed
  • Refero Design

    referodesign/refero_skill

    Primary/default skill for UI design, product design, web design, landing pages, dashboards, product screens, redesigns, visual polish, frontend/CSS styling, design systems, components, responsive…

    295 GitHub stars~5.3k tokensUpdated 1 mo ago
    Frontend & DesignAuto-check passed
  • Material Design 3 UI/UX Guide

    skydashnet/material-design-3-ui-skill

    Guides designing, reviewing or implementing interfaces that follow Google's Material Design 3 system: semantic tokens, component states, adaptive layout and accessibility.

    130 GitHub stars~3k tokensUpdated 8 days ago
    Frontend & DesignAuto-check passed
  • Better Design

    marvkr/better-design

    Build, improve, and review production interfaces with the Better Design MCP.

    254 GitHub stars~1.2k tokensUpdated 16 days ago
    Frontend & DesignAuto-check passed

More from pretend1111/claude-desktop-app

  • Skill Creator

    pretend1111/claude-desktop-app

    Walks through creating a new Claude skill from scratch or improving an existing one, asking what it should do, when it should trigger, and in what format.

    494 GitHub starsUsed in 1 repo~591 tokens
    Auto-check passed
  • Thorough Code Review

    pretend1111/claude-desktop-app

    Reviews code or recent changes for bugs, security issues, performance problems and maintainability, reporting findings by severity with the reason and a fix.

    494 GitHub starsUsed in 1 repo~502 tokens
    Auto-check passed
  • Project Scaffolder

    pretend1111/claude-desktop-app

    Scaffolds a complete, runnable project from scratch, covering web, Python and Node.js projects, with a working entry point and no placeholder code.

    494 GitHub starsUsed in 1 repo~498 tokens
    Auto-check passed
  • Doc Writer

    pretend1111/claude-desktop-app

    Generate README, API docs, or user guides for code and projects.

    494 GitHub starsUsed in 1 repo~375 tokens
    Auto-check passed

Works with

Questions about Frontend Design Principles

What does Frontend Design Principles do?

Gives practical design rules for polished HTML, CSS and JavaScript interfaces and browser games, covering spacing, type, color, components, motion and responsive breakpoints. This is a compact rulebook for frontend work. It prescribes a spacing scale from 4px to 64px, generous whitespace, Grid or Flexbox layouts and a content max-width of 960 to 1200px.

When should I use Frontend Design Principles?

Frontend Design Principles fits situations like: building a website or web app with HTML, CSS and JavaScript; creating a browser game with a start screen, score display and game over state; fixing cramped spacing, weak hierarchy or low contrast in an interface; making a page responsive with a mobile-first approach.

How do I install Frontend Design Principles in Claude Code?

Run `npx skills add pretend1111/claude-desktop-app --skill frontend-design -a claude-code`. Or copy the skill folder (electron/skills/frontend-design in pretend1111/claude-desktop-app) into .claude/skills/frontend-design in your project. Claude Code loads it when a task matches its description.

How do I install Frontend Design Principles in Codex?

Run `npx skills add pretend1111/claude-desktop-app --skill frontend-design -a codex`. Or copy the skill folder (electron/skills/frontend-design in pretend1111/claude-desktop-app) into .agents/skills/frontend-design in your project. Codex loads it when a task matches its description.

Can I use Frontend Design Principles in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pretend1111/claude-desktop-app --skill frontend-design -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/frontend-design, .gemini/skills/frontend-design, .github/skills/frontend-design and .opencode/skills/frontend-design in your project.

What does Frontend Design Principles need to run?

SKILL.md names no scripts, command-line tools or credentials: Frontend Design Principles is instructions for the agent only.

Does Frontend Design Principles access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Frontend Design Principles safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Frontend Design Principles use?

Frontend Design Principles has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Frontend Design Principles use?

About 824 tokens (SKILL.md is roughly 3.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Frontend Design Principles?

Skills that share tags, products or a category with Frontend Design Principles: Ultimate UI (NeverSight/learn-skills.dev, 216 stars), Frontend Design (seb1n/awesome-ai-agent-skills, 206 stars), UI Styling (Ohh-889/skyroc, 795 stars) and Refero Design (referodesign/refero_skill, 295 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Frontend Design Principles?

pretend1111 (a GitHub user) maintains it in pretend1111/claude-desktop-app, which has 494 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on April 22, 2026.

Source: pretend1111/claude-desktop-app on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.