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 ✓ vendor

Written for no agent in particular: nothing here depends on one.

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sap/fundamental-styles/content-density
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 · 237 stars · on GitHub · sap.github.io

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 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/github.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/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 content-density

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 4 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high YARA Match · line 3
    YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).
    Fix: Remove offensive tool references and exploit code. Legitimate agent skills should not contain penetration testing tools, exploit frameworks, or reconnaissance utilities.
  • high Prompt Injection · line 118
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
  • high Prompt Injection · line 217
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
  • high Prompt Injection · line 295
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
How audits are shown
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.00028 $0.03211
Opus 5.5 $0.00011 $0.01284
Sonnet 5.5 $0.00006 $0.00642
Haiku 4.5 $0.00003 $0.00321

Measured 1mo ago against content hash 47a3bf8ac20f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (237 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.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

open-pencil

Work with Figma .fig design files and the running OpenPencil editor — inspect structure, query nodes, analyze design tokens, export PNG/SVG/PDF/JSX, and modify designs programmatically. Use when asked to open, inspect, export, analyze, or edit .fig files, or to control the running OpenPencil app.

open-pencil/open-pencil · 73 tokens

visualize

Render a polished visual inline in the chat as part of your answer — a diagram, a chart, an interactive explainer, or a UI mockup. Load it proactively whenever an explanation would land better as a picture than as prose. Do not wait to be asked.

vellum-ai/vellum-assistant · 57 tokens

vellum-workspace-theme

Customize the app's visual theme — author design-token overrides (accent, background, surfaces, text, message-bubble colors) in the workspace ui/theme.json, validated by the assistant runtime and applied live to connected clients. Covers the token slots, the all-or-none override groups, the contrast floor, and reading…

vellum-ai/vellum-assistant · 72 tokens

openscreen-design

Use this skill to generate well-branded interfaces and assets for OpenScreen (an AI-native screen-recording studio & video editor), either for production or throwaway prototypes/mocks/etc. Contains essential design guidelines, colors, type, fonts, assets, and UI kit components for prototyping.

getopenscreen/openscreen · 62 tokens

vellum-avatar

Customize the assistant's avatar - build a native character, upload an image, or generate one with AI.

vellum-ai/vellum-assistant · 24 tokens

shieldcn-badges

Create polished shieldcn README badges, badge groups, charts, headers, sponsors grids, and full README hero sections. Use when a user wants shadcn/ui-styled badges, Shields.io replacement, npm/GitHub/CI/status badges, download charts, README header banners, contributor/sponsor images, or README Studio guidance.…

jal-co/shieldcn · 145 tokens