bem-scss

bem-scss is a cursor rule for Cursor from AtulFalle/ng-elemental. It costs 0 tokens per session (384 once invoked), scanned A, original, MIT.

A style rule set for naming SCSS classes with BEM, a convention that groups names into a component, its parts, and its variations. It applies these rules to NgElemental UI and documentation styles.

In plain words
What is it for?
Use it when writing or reviewing Angular component and documentation styles, including names such as blocks, elements, and modifiers for UI parts and their states.
Why use it?
It keeps related styles easy to identify and reduces collisions caused by generic names such as “active” or “open.” It also sets conventions for component prefixes, separate SCSS files, and limited use of deep styling.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when writing or reviewing Angular component and documentation styles, including names such as blocks, elements, and modifiers for UI parts and their states.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/atulfalle/ng-elemental/bem-scss
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.

Clone the repo
git clone --depth 1 https://github.com/AtulFalle/ng-elemental

Made for: Cursor.

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-scss

README.md
[![agentmods](https://agentmods.dev/badge/rules/atulfalle/ng-elemental/bem-scss/github.svg)](https://agentmods.dev/rules/atulfalle/ng-elemental/bem-scss)
Your own site
<a href="https://agentmods.dev/rules/atulfalle/ng-elemental/bem-scss"><img src="https://agentmods.dev/badge/rules/atulfalle/ng-elemental/bem-scss/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 bem-scss

Your own site · 80×15
<a href="https://agentmods.dev/rules/atulfalle/ng-elemental/bem-scss"><img src="https://agentmods.dev/badge/rules/atulfalle/ng-elemental/bem-scss.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 384 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.00000 $0.00384
Opus 5 $0.00000 $0.00192
Sonnet 5 $0.00000 $0.00077
Haiku 4.5 $0.00000 $0.00038

Measured today against content hash 792064f9606d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-14, from the pricing page.

Security

Grade A, and why

bem-scss 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 today.

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.

.cursor/rules/bem-scss.mdc · 39 lines

What it actually says

BEM SCSS

Use Block Element Modifier naming for all component and docs styles.

Pattern

  • Block: .el-button, .docs-example, .docs-page
  • Element: .el-button__label, .docs-example__canvas, .docs-page__header
  • Modifier: .el-button--primary, .docs-example--code, .docs-toc__link--active

Rules

  • Do not use bare state classes like .is-active, .active, .open on their own. Prefer a modifier on the block or element: .docs-toc__link--active.
  • Do not invent one-off utility class names outside an existing block (e.g. .docs-section-lead). Nest under the block: .docs-page__section-lead.
  • Prefer styleUrl + a sibling .scss file over large inline styles: strings for new docs/UI chrome.
  • Library widgets use the el- prefix: .el-<block>, .el-<block>__<element>, .el-<block>--<modifier>.
  • Docs app chrome uses the docs- prefix the same way.
  • Avoid styling through ::ng-deep when possible. If a docs demo must pierce encapsulation (e.g. rounded button), keep the piercing rule under a clear BEM block such as .docs-page__rounded.

Examples

/* Good */
.docs-example__toolbar { }
.docs-toc__link--active { }
.el-button--ghost { }

/* Bad */
.is-active { }
.docs-section-lead { }
.view-code-btn { }
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. today First seen · 39 lines · 0 tokens per session scan A 792064f9606d

Subscribe to this mod's changes

bem-scss is a cursor rule published in the GitHub repository AtulFalle/ng-elemental (2 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 384 tokens. 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-13.