styling-best-practices

styling-best-practices is a skill for Claude Code from AmadeusITGroup/otter. It costs 54 tokens per session (848 once invoked), scanned A, original, BSD-3-Clause.

A set of rules for writing CSS and building user-interface styles, with guidance on reusable design values for colours, spacing, text, borders, shadows, and animation timing.

In plain words
What is it for?
Use it when developing interface components, writing CSS or SCSS, creating themes, or deciding how styles should be organised.
Why use it?
It helps keep visual styles consistent and makes it easier to choose the right existing design values.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ama-styling plugin — 2 skills shipped together

Good fit Use it when developing interface components, writing CSS or SCSS, creating themes, or deciding how styles should be organised.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/amadeusitgroup/otter/styling-best-practices
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 AmadeusITGroup/otter --skill styling-best-practices
Clone the repo
git clone --depth 1 https://github.com/AmadeusITGroup/otter

Made for: Claude Code.

Or install ama-styling, the plugin that ships this one along with the rest of its 2 skills.

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 styling-best-practices

README.md
[![agentmods](https://agentmods.dev/badge/skills/amadeusitgroup/otter/styling-best-practices.svg)](https://agentmods.dev/skills/amadeusitgroup/otter/styling-best-practices)
Your own site
<a href="https://agentmods.dev/skills/amadeusitgroup/otter/styling-best-practices"><img src="https://agentmods.dev/badge/skills/amadeusitgroup/otter/styling-best-practices.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 848 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.00054 $0.00848
Opus 5 $0.00027 $0.00424
Sonnet 5 $0.00011 $0.00170
Haiku 4.5 $0.00005 $0.00085

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

Security

Grade A, and why

styling-best-practices 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.

tools/llm/plugins/ama-styling/skills/styling-best-practices/SKILL.md · 81 lines

How it starts

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

Styling Best Practices

Core Rule: Token-First

ALWAYS use design tokens (CSS custom properties) instead of hardcoded values for colors, spacing, typography, border-radius, shadows, and animation durations.

Decision Rules

  1. Use the find_design_token MCP tool to discover available tokens.
  2. Apply the following decision tree:
  • If token found → recommend it and explain why.
  • If multiple tokens match → ask the user to choose.
  • If no token matches → ask for more precise intent or broader context.
  • If only a primitive matches → prefer a semantic token / ask whether a semantic alias should be created.

Token Selection Rules

  • If an exact component token exists, use it.
  • Else if a semantic token exists, use it.
  • Else if only a primitive token exists, use it only as a fallback and mention that a semantic token would be better.
  • Else ask the user for clarification.

Fallback Questions

Ask for:

  • the visual intent (color, spacing, size, radius, shadow, etc.)
  • the semantic meaning (primary, success, danger, neutral, etc.)
  • the expected scope (component-specific or global)
  • whether a primitive fallback is acceptable
/* ❌ BAD */
.card { background: #ffffff; padding: 16px; border-radius: 8px; }

/* ✅ GOOD */
.card { background: var(--colors-surface); padding: var(--spacing-md); border-radius: var(--shape-corner-medium); }

Finding Tokens

Use find_design_token with the CSS property and a semantic description of the need. If no results, try broader terms or use list_design_tokens to browse by category.

Otter Extensions (for token JSON definitions)

Extension Purpose Example
o3rPrivate: true Internal token, not exposed to CMS Implementation details
o3rScope: '<selector>' Scope CSS property to a selector instead of :root Component-specific tokens
o3rExpectOverride: true Token designed to be overridden (theming/rules engine) Brand colors
o3rImportant: true Generates with !important (use sparingly) Legacy CSS specificity battles
o3rUnit: '<unit>' Converts unitless value to a CSS unit (px, rem, em, %, vw, vh, ms, s) Figma-extracted raw numbers
o3rRatio: <number> Applies a multiplier to numeric value Derived spacing/type scales
o3rMetadata: {...} CMS metadata (tags, label, category, component) Design system portal discoverability

Read the full file on GitHub · 81 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 · 81 lines · 54 tokens per session scan A 78520f305909

Subscribe to this mod's changes

styling-best-practices is a skill published in the GitHub repository AmadeusITGroup/otter (58 stars, last pushed today), licensed BSD-3-Clause. It adds 54 tokens to every session and 848 once invoked, about $0.0003 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

angular-developer

Generates Angular code and provides architectural guidance. Trigger when creating projects, components, services, or HTTP communication, or for best practices on reactivity (signals, linkedSignal, resource, httpResource), forms, dependency injection, routing, SSR, accessibility (ARIA), animations, styling (component…

angular/angular · 77 tokens

angular-new-app

Creates a new Angular app using the Angular CLI. This skill should be used whenever a user wants to create a new Angular application and contains important guidelines for how to effectively create a modern Angular application.

angular/angular · 43 tokens

angular

Use when building, refactoring, or debugging Angular (v20/21+): standalone components, signals, zoneless change detection, @if/@for/@defer control flow, inject() DI, resource()/httpResource(), RxJS interop, NgRx SignalStore, ng CLI. NOT React (that is react), NOT Next.js (that is nextjs), NOT a TypeScript language…

ericrisco/rsc-harness · 89 tokens

photo-sphere-viewer

Use when displaying 360-degree panoramic images (equirectangular/cubemap/dual-fisheye) in web applications, building virtual tours with markers and transitions, embedding interactive panoramas in Vue/React/vanilla JS, or creating 360-degree video players with gyroscope VR support. Photo-Sphere-Viewer v5: JavaScript…

znlgis/opengis-skills · 99 tokens

deepseek-harness

Use when building AI agent applications with a plugin-based architecture — Web UI, CLI, Python SDK, Cordis plugin system, multi-model orchestration. DeepSeek Harness (dsh): open-source agent harness by DeepSeek AI where everything is a plugin, powered by Cordis for spatiotemporal composability.

znlgis/opengis-skills · 68 tokens

angular-expert

Expert knowledge in Angular framework, RxJS reactive programming, TypeScript, dependency injection, and enterprise application development. Use when the user mentions RxJS, TypeScript, dependency injection, reactive, frontend, or enterprise, or when the task involves Angular Fundamentals, RxJS Integration, Advanced…

personamanagmentlayer/pcl · 67 tokens