dense-ui-metrics

dense-ui-metrics is a skill for Claude Code from HarKro753/claude-copy. It costs 229 tokens per session (2,349 once invoked), scanned A, original, MIT.

A set of rules for spacing, sizing, typography, and density in productivity-focused software interfaces.

In plain words
What is it for?
Building or refining SaaS interfaces, choosing a compact or roomier layout, and checking whether the visual spacing follows the rules.
Why use it?
It replaces subjective placement decisions with consistent relationships between interface elements.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Building or refining SaaS interfaces, choosing a compact or roomier layout, and checking whether the visual spacing follows the rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/harkro753/claude-copy/dense-ui-metrics
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 HarKro753/claude-copy --skill dense-ui-metrics
Clone the repo
git clone --depth 1 https://github.com/HarKro753/claude-copy

Made for: Claude Code.

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 dense-ui-metrics

README.md
[![agentmods](https://agentmods.dev/badge/skills/harkro753/claude-copy/dense-ui-metrics/github.svg)](https://agentmods.dev/skills/harkro753/claude-copy/dense-ui-metrics)
Your own site
<a href="https://agentmods.dev/skills/harkro753/claude-copy/dense-ui-metrics"><img src="https://agentmods.dev/badge/skills/harkro753/claude-copy/dense-ui-metrics/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 dense-ui-metrics

Your own site · 80×15
<a href="https://agentmods.dev/skills/harkro753/claude-copy/dense-ui-metrics"><img src="https://agentmods.dev/badge/skills/harkro753/claude-copy/dense-ui-metrics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 229 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,349 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 original No closer match found 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.00229 $0.02349
Opus 5 $0.00114 $0.01175
Sonnet 5 $0.00046 $0.00470
Haiku 4.5 $0.00023 $0.00235

Measured 12d ago against content hash b1c313ef7248, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

dense-ui-metrics 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 12d 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.

.claude/skills/dense-ui-metrics/SKILL.md · 153 lines

How it starts

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

Dense UI Metrics

A single source of truth for the numbers that make productive SaaS UIs feel engineered rather than hand-placed. Every value traces to an industry spec: Inter Dynamic Metrics (Rasmus Andersson) for tracking, IBM Carbon 2x grid + Material Design 3 8dp grid for spacing/density, Bringhurst / Carbon Productive sets for type. The point of encoding it is that "premium" isn't taste — it's a small set of locked relationships. Follow them and the rhythm holds; break one and the eye notices even when the user can't say why.

The model in one breath: a small set of universal laws (this file) applied at a chosen set of anchors (a regime). Laws never change; anchors slide with density. Regimes are named points on a continuous axis, not boxes every app falls into — if a design matches no preset, read its base font size and base padding off the reference and apply the laws at those numbers.

Where things live

  • This file — the universal laws (grid, tracking, derived height, degrees of freedom) + the apply-loop + self-check. Read top to bottom; it's the whole method.
  • references/regimes.md — the regime concept and the full property matrices (Dense + Comfortable): per-role font size, weight, line-height, tracking, padding, height. Read this when you need concrete numbers for a component.
  • references/component-patterns.md — recipes for specific components that don't reduce to a single-line control: multi-line list rows, icon-only nav rails, corner- radius scale, row-separation strategy (zebra vs borders vs whitespace), inline code chips. Read this when building lists, rails, cards, or choosing radii/separators.

How to apply (the loop)

  1. Pick the regime, then the component role. Regime = density anchor set (Dense / Comfortable / read-your-own). Then find the role's row in references/regimes.md — it gives size, weight, line-height, tracking, and padding at once. Don't mix values across roles or across regimes on one screen.
  2. Snap every spacing value to the grid (§Spatial scale). Padding, margin, gap, offsets. No arbitrary numbers — 13px, 18px, 60px are smells. Nearest step wins.
  3. Derive height, don't set it. H = L + 2·Py (Degree 4). A 36px control is 20px line-height + 2×8px, not a magic height: 36px with mystery padding. (Multi- line rows are the exception — see references/component-patterns.md.)
  4. Apply tracking by font size (§Tracking). Small text loosens (positive), large text tightens (negative). Headings left at 0 look soft; body over-tightened looks cramped. This is where cheap UIs give themselves away.
  5. Vary only along the degrees of freedom (§Degrees of freedom) when a design needs to breathe or compress. Those axes are the only sanctioned ways to move off the defaults without breaking rhythm.

Read the full file on GitHub · 153 lines

Files

What ships with it

2 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. 12d ago First seen · 153 lines · 229 tokens per session scan A b1c313ef7248

Subscribe to this mod's changes

dense-ui-metrics is a skill published in the GitHub repository HarKro753/claude-copy (17 stars, last pushed 1mo ago), licensed MIT. It adds 229 tokens to every session and 2,349 once invoked, about $0.0011 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

top-design

Create award-winning, immersive web experiences at the level of Awwwards-featured agencies. Use when the user mentions "Awwwards quality", "make my site stunning", "scroll animations", "parallax storytelling", "cinematic web design", "portfolio site", or "brand experience". Also trigger when elevating a standard…

wondelai/skills · 113 tokens

web-typography

Select, pair, and implement typefaces for web projects. Use when the user mentions "font pairing", "which typeface", "line height", "responsive typography", "web font loading", "type hierarchy", "variable fonts", "FOUT/FOIT", "typographic scale", or "the text is hard to read". Also trigger when choosing between system…

wondelai/skills · 128 tokens

scroll-craft

Build premium scroll-driven landing pages for service, product, food, and drink brands. Plan the visitor journey, page grammar, emotional peak, and bespoke signature move. Create dimensional heroes with independent visual planes, restrained motion, and separate mobile composition. Use supplied photos and footage or…

nateherkai/scroll-craft · 177 tokens

designlang-tokens

Use when styling UI for cal.com — references the extracted design system tokens instead of inventing colors, spacing, or typography.

Manavarya09/design-extract · 30 tokens

refactoring-ui

Audit and fix visual hierarchy, spacing, color, and depth in web UIs. Use when the user mentions "my UI looks off" (or amateur/unprofessional), "fix the design", "Tailwind styling", "color palette", "visual hierarchy", "design system", "spacing scale", or "component styling". Also trigger when building consistent…

wondelai/skills · 132 tokens

shiny-bslib-theming

Advanced theming for Shiny apps using bslib and Bootstrap 5. Use when customizing app appearance with bstheme(), Bootswatch themes, custom colors, typography, brand.yml integration, Bootstrap Sass variables, custom Sass/CSS rules, dark mode and color modes, dynamic theme switching, real-time theming, theme inspection…

posit-dev/skills · 87 tokens