egregore: Skill for Claude Code

.claude/skills/dark-mode/SKILL.md

dark-mode is a skill for Claude Code from egregore-labs/egregore. It costs 142 tokens per session (4,592 once invoked), scanned A, original, MIT.

A set of rules for making browser-rendered pages and components support dark mode, a darker color theme, consistently. It covers colors, theme behavior, and rendered styles across HTML, CSS, React, and similar outputs.

In plain words
What is it for?
Use it when creating or changing dark themes, theme toggles, browser visuals, design tokens, CSS, React components, or standalone web demos.
Why use it?
It prevents hard-coded light colors or inline styles from making parts of a dark-themed page unreadable or inconsistent.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is egregore-labs/egregore's own configuration. It tells Claude Code how to work on egregore itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything egregore configures →

Reuse

Borrowing it

Nothing to install: this file belongs to egregore-labs/egregore. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/egregore-labs/egregore/main/.claude/skills/dark-mode/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/egregore-labs/egregore

Made for: Claude Code.

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 dark-mode

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/egregore-labs/egregore/dark-mode"><img src="https://agentmods.dev/badge/skills/egregore-labs/egregore/dark-mode.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 142 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,592 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.00142 $0.04592
Opus 5 $0.00071 $0.02296
Sonnet 5 $0.00028 $0.00918
Haiku 4.5 $0.00014 $0.00459

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

Security

Grade A, and why

dark-mode 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.

.claude/skills/dark-mode/SKILL.md · 409 lines

How it starts

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

Dark Mode

Voice Complex

This skill governs BROWSER VISUAL RENDERING — warm palette, CSS token system, theme behavior. The warm-brown base (#1D1611) and terracotta accent (#D4875A) are the visual expression of the same warmth that runs through all Egregore registers. Shared aesthetic: voice-bedrock (.claude/rules/voice-bedrock.md). For terminal rendering: tui-design skill. For product copy in rendered pages: product-voice skill. For prose content in rendered pages: egregore-voice skill.

This skill is a behavioral constraint system for Egregore visual output. It exists to stop the most common failure mode before it happens: an otherwise correct dark palette being defeated by SSR-emitted inline styles.

When to invoke

User says: "dark mode", "theme toggle", "color system", "card surface", "make this work in dark mode", or any request to generate or modify browser-rendered visual output (HTML, CSS, React SSR, Egregore artifacts, design tokens) Not this: TUI terminal output → tui-design · plain markdown files with no styled HTML

The Bitter Lesson

If React SSR renders style="color:#2A2A2A", dark mode loses. CSS variable overrides only work when the rendered value is itself a variable reference. If a color must adapt across themes, emit var(--token) at the render site. Not in comments. Not in a later stylesheet. In the actual rendered style.

Treat this as a hard constraint:

  1. Every theme-sensitive color in CSS or inline style props must use var(--token).
  2. Theme state lives on <html data-theme="...">.
  3. Theme restoration happens before paint, in <head>.

Everything else is secondary.

When To Invoke

  • Generating standalone HTML
  • Building or editing React SSR output
  • Writing CSS for Egregore artifacts
  • Modifying markdown renderers that emit inline styles
  • Adding a theme toggle
  • Extending the design system with dark surfaces
  • Producing any browser-rendered visual artifact

Not This

  • TUI terminal output; use /tui-design
  • Plain markdown files that do not render styled HTML
  • Backend or CLI code with no visual surface
  • Non-rendered config changes unrelated to color or theme behavior

Read the full file on GitHub · 409 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 First seen · 409 lines · 142 tokens per session scan A ec1a4bdc1afa

Subscribe to this mod's changes

dark-mode is a skill published in the GitHub repository egregore-labs/egregore (282 stars, last pushed 6d ago), licensed MIT. It adds 142 tokens to every session and 4,592 once invoked, about $0.0007 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

threejs

Build immersive 3D web experiences with Three.js - WebGL/WebGPU library for scenes, cameras, geometries, materials, lights, animations, loaders, post-processing, shaders (including node-based TSL), compute, physics, VR/XR, and advanced rendering. Use when creating 3D visualizations, games, interactive graphics, data…

ihatesea69/kiro-kit · 136 tokens

frontend-taste

Premium frontend design skills that override LLM defaults. Prevents generic 'AI-looking' UI. Enforces deterministic typography, calibrated color, asymmetric layouts, spring physics, hardware-accelerated motion. Triggers: 'UI tasarla', 'design a UI', 'premium landing page', 'frontend taste', 'anti-slop', 'dashboard…

fatihkan/badi · 0 tokens

design-tokens

Project-level DESIGN.md tokens reference. When the project has a DESIGN.md file, agents producing UI / components / visuals must consult this skill to use canonical color/typography/spacing tokens rather than inventing new ones. Triggers on: UI generation, component creation, design brief, visual asset, tailwind…

fatihkan/badi · 0 tokens

responsive-audit

Responsive audit: test pages at 375/768/1024px breakpoints via Playwright. Checks overflow, tap targets, sidebar collapse, text reflow, WCAG 1.4.4 zoom.

marcoguillermaz/Tierward · 0 tokens

ui-audit

Audit UI for design token compliance and component adoption. Static grep-based analysis against the sitemap's page and component files. Requires a design system with semantic tokens.

marcoguillermaz/Tierward · 35 tokens

image-taste-frontend

Elite frontend image-direction skill for generating premium, artistic, implementation-friendly website design references. Uses combinatorial variation to avoid repetitive AI aesthetics, enforces cinematic hero minimalism, strong hierarchy, generous spacing, image-led composition, and anti-slop visual discipline. For…

fatihkan/badi · 90 tokens