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.
npx skills add AmadeusITGroup/otter --skill styling-best-practicesgit clone --depth 1 https://github.com/AmadeusITGroup/otterWrote 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.
[](https://agentmods.dev/skills/amadeusitgroup/otter/styling-best-practices)<a href="https://agentmods.dev/skills/amadeusitgroup/otter/styling-best-practices"><img src="https://agentmods.dev/badge/skills/amadeusitgroup/otter/styling-best-practices/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.
<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="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00054 | $0.00848 |
| Opus 5.5 | $0.00022 | $0.00339 |
| Sonnet 5.5 | $0.00011 | $0.00170 |
| Haiku 4.5 | $0.00005 | $0.00085 |
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 2mo 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.
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
- Use the
find_design_tokenMCP tool to discover available tokens. - 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 |
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.
- 2mo ago First seen · 81 lines · 54 tokens per session scan A 78520f305909
styling-best-practices is a skill published in the GitHub repository AmadeusITGroup/otter (59 stars, last pushed yesterday), licensed BSD-3-Clause. It adds 54 tokens to every session and 848 once invoked, about $0.0002 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.
styling-best-practices compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| styling-best-practicesAmadeusITGroup/otter | Skill | 59 | yesterday | BSD-3-Clause | A | 54 | Claude Code |
| angular-developerangular/angular | Skill | 101k | yesterday | MIT | A | 93 | Claude Code, Codex |
| ax-aiax-llm/ax | Skill | 3.0k | 3d ago | Apache-2.0 | A | 105 | Claude Code, Codex |
| ax-cpp-genax-llm/ax | Skill | 3.0k | 3d ago | Apache-2.0 | A | 48 | Claude Code, Codex |
| ax-go-genax-llm/ax | Skill | 3.0k | 3d ago | Apache-2.0 | A | 54 | Claude Code, Codex |
| ax-java-genax-llm/ax | Skill | 3.0k | 3d ago | Apache-2.0 | A | 49 | Claude Code, Codex |
| ax-cpp-signatureax-llm/ax | Skill | 3.0k | 3d ago | Apache-2.0 | A | 37 | Claude Code, Codex |