design-principles

design-principles is a skill for Claude Code from HermeticOrmus/design-mastery-claude-code. It costs 70 tokens per session (2,004 once invoked), scanned A, a copy of design-principles, MIT.

A reference for visual design fundamentals, including how layout, colour, typography, grouping, and emphasis affect what people notice and understand.

In plain words
What is it for?
Use it when creating or reviewing interfaces, arranging information, choosing visual emphasis, or teaching basic design decisions.
Why use it?
It helps explain why a design feels unclear or unbalanced and gives principles for evaluating those problems.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the design-mastery plugin — 4 skills shipped together , and of design-mastery

Good fit Use it when creating or reviewing interfaces, arranging information, choosing visual emphasis, or teaching basic design decisions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hermeticormus/design-mastery-claude-code/design-principles
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.

Any agent
npx skills add HermeticOrmus/design-mastery-claude-code --skill design-principles
Clone the repo
git clone --depth 1 https://github.com/HermeticOrmus/design-mastery-claude-code

Made for: Claude Code.

Or install design-mastery, the plugin that ships this one along with the rest of its 4 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for design-principles

README.md
[![agentmods](https://agentmods.dev/badge/skills/hermeticormus/design-mastery-claude-code/design-principles/github.svg)](https://agentmods.dev/skills/hermeticormus/design-mastery-claude-code/design-principles)
Your own site
<a href="https://agentmods.dev/skills/hermeticormus/design-mastery-claude-code/design-principles"><img src="https://agentmods.dev/badge/skills/hermeticormus/design-mastery-claude-code/design-principles/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for design-principles

Your own site · 80×15
<a href="https://agentmods.dev/skills/hermeticormus/design-mastery-claude-code/design-principles"><img src="https://agentmods.dev/badge/skills/hermeticormus/design-mastery-claude-code/design-principles.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,004 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% 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.1 $0.00070 $0.02004
Opus 5.5 $0.00028 $0.00802
Sonnet 5.5 $0.00014 $0.00401
Haiku 4.5 $0.00007 $0.00200

Measured 2mo ago against content hash 5f27bba22384, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

design-principles 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 2mo ago.

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

100% identical to design-principles — 0 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.

skills/design-principles/SKILL.md · 282 lines

How it starts

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

Design Principles

The fundamental laws governing visual perception and communication. These principles are not opinions—they're observations about how human vision and cognition work.

When to Use This Skill

  • Making visual design decisions
  • Evaluating whether a design "works"
  • Explaining why something feels off
  • Teaching design fundamentals
  • Debugging design problems

Core Principles

1. Visual Hierarchy

The Law: Not all elements are equally important. Design must guide the eye.

Establishing Hierarchy:

Tool What It Does Example
Scale Larger = more important Hero headlines vs. body text
Weight Heavier = more important Bold headings vs. light body
Color Saturated/contrasting = attention Primary CTA vs. secondary
Position Top-left (in LTR) = first seen Logo placement
Space More space = more importance Generous padding around CTAs
Depth Shadows/elevation = prominence Floating action buttons

Testing Hierarchy: Blur the design at 50%. Can you still identify:

  • The primary focal point?
  • The secondary information?
  • The action you should take?

2. Gestalt Principles

The Law: The brain organizes visual elements into meaningful groups.

Proximity

Elements near each other are perceived as related.

Good:  [Label]          [Label]
       [Input]          [Input]
       (8px gap)        (8px gap)

       (32px gap between groups)

       [Label]          [Label]
       [Input]          [Input]

Bad:   [Label]  [Label]  [Label]  [Label]
       [Input]  [Input]  [Input]  [Input]
       (equal spacing destroys grouping)

In Tailwind:

  • Related items: space-y-2 (8px)
  • Unrelated groups: space-y-8 (32px) or divide-y
Similarity

Elements that look alike appear grouped.

When multiple card types exist, make categories visually distinct:

  • Same category: same border-radius, shadow, padding
  • Different category: different color, icon style, or layout

Read the full file on GitHub · 282 lines

Files

What ships with it

6 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. 2mo ago Changed · +4 lines · +27 tokens per session 5f27bba22384
  2. 3mo ago First seen · 278 lines · 43 tokens per session scan A 4606f6cc24b8

Subscribe to this mod's changes

design-principles is a skill published in the GitHub repository HermeticOrmus/design-mastery-claude-code (20 stars, last pushed 2mo ago), licensed MIT. It adds 70 tokens to every session and 2,004 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to design-principles, differing in 0 lines, and is treated as a copy.

Related

design-principles compared with skills from other repositories

design-principles next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
design-principlesHermeticOrmus/design-mastery-claude-codeSkill202mo agoMITA70Claude Code
anti-slop-designsickn33/agentic-awesome-skillsSkill51ktodayMITA34Claude Code
ui-ux-pro-max-skillbest-of-ai/best-of-aiSkill804yesterdaynoneA76Claude Code, Codex
figma-extract-design-systemsouthleft/figma-console-mcp-skillsSkill1023mo agoMITA133Claude Code
figma-version-historysouthleft/figma-console-mcp-skillsSkill1023mo agoMITA181Claude Code
figma-blame-nodesouthleft/figma-console-mcp-skillsSkill1023mo agoMITA176Claude Code
figma-commentssouthleft/figma-console-mcp-skillsSkill1023mo agoMITA151Claude Code