bem-naming

bem-naming is a skill for Claude Code, Codex from SAP/fundamental-styles. It costs 23 tokens per session (2,856 once invoked), scanned A, original, Apache-2.0.

A guide to BEM, a way of naming CSS classes by separating a component, its parts, and its variations. It explains the naming patterns used by Fundamental Styles, including the `fd-` prefix.

In plain words
What is it for?
It helps choose names for Fundamental Styles components, their child parts, and visual or behavioral variants such as `fd-button--emphasized`.
Why use it?
It makes CSS class names easier to understand and keeps component styles predictable as a project grows.

Skill for Claude CodeCodex ✓ vendor

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

Good fit It helps choose names for Fundamental Styles components, their child parts, and visual or behavioral variants such as fd-button--emphasized.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sap/fundamental-styles/bem-naming
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 · 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 bem-naming
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 bem-naming

README.md
[![agentmods](https://agentmods.dev/badge/skills/sap/fundamental-styles/bem-naming.svg)](https://agentmods.dev/skills/sap/fundamental-styles/bem-naming)
Your own site
<a href="https://agentmods.dev/skills/sap/fundamental-styles/bem-naming"><img src="https://agentmods.dev/badge/skills/sap/fundamental-styles/bem-naming.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,856 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 pass 7 Sept 2026
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.00023 $0.02856
Opus 5 $0.00012 $0.01428
Sonnet 5 $0.00005 $0.00571
Haiku 4.5 $0.00002 $0.00286

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

Security

Grade A, and why

bem-naming 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 8d 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/bem-naming/SKILL.md · 419 lines

How it starts

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

BEM Naming in Fundamental Styles

This skill explains the BEM (Block Element Modifier) methodology used in fundamental-styles and provides naming patterns with real examples.

When to Use This Skill

Use this skill when:

  • The user asks "How do I name CSS classes in fundamental-styles?"
  • The user asks about BEM methodology
  • The user wants to understand class naming patterns
  • The user asks "What does fd-button--emphasized mean?"
  • The user needs to create custom variants or understand modifier classes
  • The user asks about the fd- prefix

What is BEM?

BEM stands for Block Element Modifier - a naming convention for CSS classes that makes code more readable, maintainable, and predictable.

BEM Structure

.block { }
.block__element { }
.block--modifier { }
.block__element--modifier { }

BEM in Fundamental Styles

All fundamental-styles components use the fd- prefix and follow strict BEM conventions:

.fd-{block}
.fd-{block}__{element}
.fd-{block}--{modifier}
.fd-{block}__{element}--{modifier}

The Three Parts of BEM

1. Block (Component)

The block is the top-level component - a standalone, meaningful entity.

Pattern: .fd-{block-name}

Examples:

  • .fd-button - Button component
  • .fd-input - Input component
  • .fd-card - Card component
  • .fd-table - Table component
  • .fd-dialog - Dialog component

Rules:

  • ✅ Use lowercase
  • ✅ Use hyphens for multi-word blocks: .fd-message-strip
  • ✅ Always prefix with fd-
  • ❌ Don't nest block classes (.fd-button .fd-icon is two blocks, not nested)

2. Element (Sub-component)

An element is a part of a block that has no meaning outside its parent block. Uses double underscores __.

Pattern: .fd-{block}__{element-name}

Examples:

  • .fd-button__text - Text inside a button
  • .fd-table__cell - Cell inside a table
  • .fd-table__row - Row inside a table
  • .fd-dialog__header - Header inside a dialog
  • .fd-dialog__body - Body inside a dialog
  • .fd-dialog__footer - Footer inside a dialog
  • .fd-card__header - Header inside a card
  • .fd-input__addon - Addon inside an input group

Read the full file on GitHub · 419 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. 8d ago First seen · 419 lines · 23 tokens per session scan A 568d5ee792d9

Subscribe to this mod's changes

bem-naming is a skill published in the GitHub repository SAP/fundamental-styles (232 stars, last pushed 4d ago), licensed Apache-2.0. It adds 23 tokens to every session and 2,856 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

static-web-artifacts-builder

Build self-contained static HTML artifacts opened in a browser: interactive diagrams, dashboards, infographics. Pure HTML5+CSS3+inline SVG, zero toolchain. Triggers on: "interactive HTML", "open in browser", "HTML artifact", "visual dashboard", "HTML infographic". NOT for PNG/SVG output, use concept-to-image.

Mathews-Tom/armory · 76 tokens

grainient

Recreate grainient.supply's 16 dark-mode visual effects as single-file HTML pages: WebGL shader gradients, vignette overlays, 9-layer box shadows, smooth scroll, spring animations, hover-zoom, ticker marquees, glassmorphism, 3D card flips, bento grids, gradient CTAs. Dark-mode-first with lime green (#C2F13C) accent.…

tdimino/claude-code-minoan · 110 tokens

figma-mcp

Convert Figma designs into production-ready code using MCP server tools. Use this skill when users provide Figma URLs, request design-to-code conversion, ask to implement Figma mockups, or need to extract design tokens and system values from Figma files. Works with frames, components, and entire design files to…

tdimino/claude-code-minoan · 79 tokens

shadcn

Install, customize, and compose shadcn/ui components with design-system awareness. Covers CLI v4, custom registries, Tailwind v4 OKLCH theming, components.json, presets, and monorepo setup. Pairs with minoan-frontend-design for creative direction. Triggers on shadcn, install component, shadcn theme, OKLCH colors…

tdimino/claude-code-minoan · 85 tokens

minoan-frontend-design

Build distinctive, production-grade frontend interfaces — websites, landing pages, dashboards, React components, HTML/CSS layouts, editorial heroes with depth-parallax (Astryx pattern), pointer-reactive fluid effects, pixel-glitch canvas heroes and terminal-style tool-panel dioramas (Composio pattern). Avoids generic…

tdimino/claude-code-minoan · 104 tokens

redesign-codex-ui

Redesign and locally modify an existing Codex desktop or web interface from reference images, a user persona, a celebrity, idol, actor, musician, fictional character or original IP theme, a visual style, or a combination of these inputs. Use when Codex needs to inspect a local Codex installation or source checkout…

opcspace/CodexUI · 146 tokens