content-density

content-density is a skill for Claude Code, Codex from SAP/fundamental-styles. It costs 28 tokens per session (3,211 once invoked), scanned A, original, Apache-2.0.

Guidance for choosing and applying interface spacing modes: cozy, compact, or condensed. These modes adjust component size and spacing for touch use or information-dense screens.

In plain words
What is it for?
Use it to choose a layout density for mobile, tablet, or desktop screens, set touch-friendly controls, or fit more information into mouse-and-keyboard workflows.
Why use it?
It helps match an interface’s size and density to the device and the way people interact with it.

Skill for Claude CodeCodex

About the project

Fundamental Library Styles is a framework-independent CSS component library for creating SAP web interfaces with reusable styles and components. Developers can use it with Angular, React, Vue, or plain HTML to build consistent SAP applications and apply supported visual themes.

SAP/fundamental-styles · 232 stars · on GitHub

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/sap/fundamental-styles/content-density
Any agent
npx skills add SAP/fundamental-styles --skill content-density
Clone the repo
git clone --depth 1 https://github.com/SAP/fundamental-styles

Made for: Claude Code, Codex.

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 content-density

README.md
[![agentmods](https://agentmods.dev/badge/skills/sap/fundamental-styles/content-density.svg)](https://agentmods.dev/skills/sap/fundamental-styles/content-density)
Your own site
<a href="https://agentmods.dev/skills/sap/fundamental-styles/content-density"><img src="https://agentmods.dev/badge/skills/sap/fundamental-styles/content-density.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,211 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00028 $0.03211
Opus 5 $0.00014 $0.01605
Sonnet 5 $0.00006 $0.00642
Haiku 4.5 $0.00003 $0.00321

Measured 5d ago against content hash 47a3bf8ac20f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

content-density 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 5d 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.

skills/content-density/SKILL.md · 508 lines

How it starts

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

Content Density in Fundamental Styles

SAP Fiori provides content density modes that allow you to render components at different sizes to optimize for different devices and use cases.

When to Use This Skill

Use this skill when you need to:

  • Choose between cozy, compact, or condensed modes
  • Apply content density to your application or specific sections
  • Understand when to use touch-friendly vs information-dense layouts
  • Optimize UI for different device types (touch vs mouse/keyboard)

Content Density Modes

Cozy Mode (Default)

Description: Cozy mode displays components with dimensions large enough for fingertip interaction. The default touch area is 2.75 rem (44 px).

When to use:

  • Touch screen devices (mobile, tablets)
  • Products that benefit from spacious layouts
  • Apps where user comfort is prioritized over information density
  • Default mode when no density class is specified

Metrics:

  • Touch area: 2.75 rem (44 px)
  • Larger spacing between components
  • Optimized for finger interaction

Best practices:

  • ✅ Use for entire app on touch devices
  • ✅ Set as default for mobile-first applications
  • ✅ Use when users need larger tap targets

Compact Mode

Description: Compact mode reduces component dimensions to display more information on screen. The touch area is reduced to 2 rem (32 px). Font sizes remain the same, but components and spacing are smaller.

When to use:

  • Devices operated with mouse and keyboard
  • Desktop applications
  • Products requiring high information density
  • Data-heavy interfaces (tables, forms, dashboards)

Metrics:

  • Touch area: 2 rem (32 px)
  • Smaller margins and padding
  • Same font size as cozy mode
  • Visually more compact appearance

Best practices:

  • ✅ Use for entire app on desktop devices
  • ✅ Set as default for products requiring high information density
  • ✅ Use for data tables and complex forms
  • ✅ Apply at application level, not per component

Condensed Mode

Description: Condensed mode further reduces component dimensions and letter spacing for maximum information density. Primarily used on small screens or very information-dense layouts.

Read the full file on GitHub · 508 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. 5d ago First seen · 508 lines · 28 tokens per session scan A 47a3bf8ac20f

Subscribe to this mod's changes

content-density is a skill published in the GitHub repository SAP/fundamental-styles (232 stars, last pushed yesterday), licensed Apache-2.0. It adds 28 tokens to every session and 3,211 once invoked, about $0.0001 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

copilotkit-develop

Use when building AI-powered features with CopilotKit v2 -- adding chat interfaces, registering frontend tools, sharing application context with agents, handling agent interrupts, and working with the CopilotKit runtime.

CopilotKit/CopilotKit · 46 tokens

copilotkit-upgrade

Use when migrating a CopilotKit v1 application to v2 -- updating package imports, replacing deprecated hooks and components, switching from GraphQL runtime to AG-UI protocol runtime, and resolving breaking API changes.

CopilotKit/CopilotKit · 48 tokens

metrics-instrumentation

Specification for instrumenting an opik-backend workflow with operational OpenTelemetry metrics — per-stage throughput/latency/error counters and native histograms, dimensioned per-customer (workspace). Use when a pipeline (scoring, ingestion, experiments, jobs) needs per-stage visibility. Covers metric emission only…

comet-ml/opik · 93 tokens

review-agents-md

Audit Dograh AGENTS.md files for drift against the live repo and for bad scope boundaries between parent and child docs. Use when the user asks to review existing AGENTS files, identify stale guidance, decide whether a subtree needs its own AGENTS.md, or update the AGENTS.md hierarchy under the repo root, api/, or ui/.

dograh-hq/dograh · 82 tokens

notifications

Send notifications through the unified notification router.

vellum-ai/vellum-assistant · 9 tokens

telegram-setup

Connect a Telegram bot to the Vellum Assistant gateway with automated webhook registration and credential storage.

vellum-ai/vellum-assistant · 22 tokens