surface-separation

surface-separation is a skill for Claude Code from dembrandt/dembrandt-skills. It costs 40 tokens per session (1,373 once invoked), scanned A, original, MIT.

A design guide for separating cards, panels, toolbars, and other interface surfaces from their backgrounds. It recommends choosing one method: a border, a shadow, or a contrasting fill.

In plain words
What is it for?
It is for deciding how UI surfaces should look in cards, tables, forms, menus, and other screens.
Why use it?
It prevents interfaces from looking noisy or making the same boundary unclear through several visual effects.

Skill for Claude Code

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

Part of the dembrandt plugin — 45 skills shipped together

Good fit It is for deciding how UI surfaces should look in cards, tables, forms, menus, and other screens.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dembrandt/dembrandt-skills/surface-separation
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 dembrandt/dembrandt-skills --skill surface-separation
Clone the repo
git clone --depth 1 https://github.com/dembrandt/dembrandt-skills

Made for: Claude Code.

Or install dembrandt, the plugin that ships this one along with the rest of its 45 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 surface-separation

README.md
[![agentmods](https://agentmods.dev/badge/skills/dembrandt/dembrandt-skills/surface-separation/github.svg)](https://agentmods.dev/skills/dembrandt/dembrandt-skills/surface-separation)
Your own site
<a href="https://agentmods.dev/skills/dembrandt/dembrandt-skills/surface-separation"><img src="https://agentmods.dev/badge/skills/dembrandt/dembrandt-skills/surface-separation/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 surface-separation

Your own site · 80×15
<a href="https://agentmods.dev/skills/dembrandt/dembrandt-skills/surface-separation"><img src="https://agentmods.dev/badge/skills/dembrandt/dembrandt-skills/surface-separation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,373 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.00040 $0.01373
Opus 5.5 $0.00016 $0.00549
Sonnet 5.5 $0.00008 $0.00275
Haiku 4.5 $0.00004 $0.00137

Measured 10d ago against content hash 91162c18e637, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

surface-separation 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 10d 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.

directory/skills/surface-separation/SKILL.md · 87 lines

How it starts

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

Surface Separation

A surface — a card, a panel, a toolbar, a row — needs to read as distinct from whatever sits behind it. There are exactly three ways to achieve that, and the mistake is almost always using more than one at full strength rather than choosing badly between them.

Pick One Strategy Per Surface

Strategy Mechanism Reads as Best for
Border 1px line at the boundary Precise, drawn, documentary Dense UI, tables, forms, anything where the edge itself carries meaning
Elevation Shadow implying height Floating, temporary, above Modals, dropdowns, popovers, drag states
Fill Contrasting background tone Grouped, embedded, part of the page Sections, sidebars, alternating rows, inline callouts

Each answers a different question. A border says where the surface ends. An elevation says how far above the page it sits. A fill says what it belongs to. Choose based on which question the user actually has.

The rule: never combine all three on the same surface. A card that carries a visible border, a drop shadow, and a background tone distinct from the page is stating its boundary three times. Nothing is emphasised because everything is. This is the most common single cause of a UI that someone describes as "busy" or "heavy" without being able to point at why.

The Legitimate Pair

Border and elevation together are correct in one specific case: a light surface on a light page, where a subtle shadow alone washes out and the edge goes fuzzy. Here the border defines the boundary and the shadow supplies the depth — they do different jobs. See [[elevation-and-depth]] for the shadow scale and the border tone that pairs with it.

What keeps this to two signals is that the surface fill stays at or near the page tone. The moment you also push the background a clear step away, the edge is being stated a third time.

Nesting

A surface inside a surface should change strategy, not intensify the same one. A bordered card containing bordered rows produces a grid of lines with no hierarchy. Use a fill shift for the inner rows, or drop the inner borders and rely on spacing — see [[gestalt-ui-organisation]] for when proximity alone is enough to group.

Read the full file on GitHub · 87 lines

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. 10d ago Changed · -39 lines 91162c18e637
  2. 1mo ago Changed · -49 tokens per session 9183bb531aab
  3. 2mo ago First seen · 126 lines · 89 tokens per session scan A 7a56b5dd0538

Subscribe to this mod's changes

surface-separation is a skill published in the GitHub repository dembrandt/dembrandt-skills (245 stars, last pushed yesterday), licensed MIT. It adds 40 tokens to every session and 1,373 once invoked, about $0.0002 per session on Opus 5.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-09-20.

Related

surface-separation compared with skills from other repositories

surface-separation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
surface-separationdembrandt/dembrandt-skillsSkill245yesterdayMITA40Claude Code
design-dnazanwei/design-dnaSkill2.2k3mo agoMITA192Claude Code, Codex
dbim-brand-identityYashraj00700/indian-gov-ui-skillsSkill24mo agoMITA117Claude Code, Codex
indian-gov-web-uiYashraj00700/indian-gov-ui-skillsSkill24mo agoMITA95Claude Code, Codex
ux4g-design-systemYashraj00700/indian-gov-ui-skillsSkill24mo agoMITA147Claude Code, Codex
gov-service-patternsYashraj00700/indian-gov-ui-skillsSkill24mo agoMITA115Claude Code, Codex
ui-ux-lawsAmirGhl/ui-ux-lawsSkill24mo agoMITA203Claude Code, Codex