CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

optics-context

Styles Rails views with RoleModel's Optics design system — its components, `--op-` design tokens, and theme overrides. Use when writing or reviewing CSS, styling a view or component, picking a color, spacing, font, radius, or shadow value, fixing hard-coded CSS values, adding a project token, or theming an app (brand colors, fonts, color scales, dark mode). Also use when the user says things like "style this", "make this look like the design", "what token should I use", "fix the hard-coded colors", "change the brand color", or "add dark mode".

Quality

97%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

100%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

An exemplary skill body: lean, entirely project-specific knowledge Claude could not recall (package paths, gotchas, override conventions), with a clear decision workflow and explicit validation checks tied to each named failure mode. The single external reference is well-placed, clearly signaled, and one level deep.

DimensionReasoningScore

Conciseness

The ~45-line body is lean and assumes Claude's competence: no explanation of what CSS or design systems are, just project-specific facts — source-of-truth file paths, a decision order, a literal-vs-token table, and four non-obvious gotchas. Every token earns its place, matching the 5 anchor; the 4 anchor would require trimmable over-explanation, and none is present.

5 / 5

Actionability

Guidance is directly executable: exact paths ("node_modules/@rolemodel/optics/dist/tokens/tokens.json", "app/assets/stylesheets/components/optics-overrides/{component}.css"), a concrete instead-of/use table with real token names, and specific verification commands (check names against tokens.json, check both values in scale_color_tokens.css). The common cases (picking a token, overriding a component, theming) are all covered specifically.

5 / 5

Workflow Clarity

The "Before writing CSS" section is a clear 3-step decision sequence, and validation checkpoints are explicit throughout: "Check dist/css/components/", "Check the name against tokens.json" (for the silent-failure gotcha), "check both values in scale_color_tokens.css" for dark mode, and "read references/theming.md before changing any --op-color-* value". Each failure mode named in Gotchas comes with an explicit check, which fits the 5 anchor's explicit validation steps.

5 / 5

Progressive Disclosure

The body is a well-organized overview and the theming detail is split at exactly the right boundary into references/theming.md (verified to exist, self-contained, one level deep), signaled twice with clear context ("See references/theming.md before changing any --op-color-* value"). Structure matches the 5 anchor: clear overview, well-signaled one-level-deep references, easy navigation.

5 / 5

Total

20

/

20

Passed

Description

96%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description: concrete third-person actions, explicit what-and-when structure, and excellent trigger coverage that mixes technical keywords with natural user phrasings. The only weakness is mild overlap risk with adjacent styling/BEM skills via the broad "writing or reviewing CSS" trigger.

Suggestions

Tighten the "Use when writing or reviewing CSS" trigger to "writing or reviewing CSS in a Rails app that uses Optics" to reduce overlap with adjacent styling skills like bem-structure.

Clarify that the skill applies when the project has @rolemodel/optics installed, so it doesn't fire for arbitrary CSS work.

DimensionReasoningScore

Specificity

Lists multiple concrete actions in third person — "Styles Rails views", "picking a color, spacing, font, radius, or shadow value", "fixing hard-coded CSS values", "adding a project token", "theming an app (brand colors, fonts, color scales, dark mode)" — with comprehensive coverage of both styling and theming tasks. It clearly exceeds the 4 anchor ("several specific actions; minor gaps") since no common task in the domain is left out.

5 / 5

Completeness

First sentence answers "what" (styles Rails views with Optics components, tokens, and theme overrides), and an explicit "Use when..." clause enumerates concrete "when" triggers, reinforced by a second sentence of quoted user phrasings. Both what and when are explicit with concrete triggers, exactly the 5 anchor; the 4 anchor requires a weaker or less specific "when".

5 / 5

Trigger Term Quality

Combines natural colloquial phrases users would actually say ("style this", "make this look like the design", "fix the hard-coded colors", "change the brand color", "add dark mode") with technical triggers ("css", "design tokens", "--op-", "color scale", "dark mode"). Coverage includes synonyms at both the lay and technical level, matching the 5 anchor rather than leaving a few natural terms missing.

5 / 5

Distinctiveness Conflict Risk

The niche is clear (RoleModel's Optics design system for Rails views, with a named package), but the broad trigger "Use when writing or reviewing CSS" overlaps with closely related styling skills in the same ecosystem (e.g., the bem-structure skill referenced in the body). Minor overlap risk with a closely related skill fits the 4 anchor; it does not reach 5's "minimal conflict risk" because generic CSS-writing triggers would fire for adjacent skills.

4 / 5

Total

19

/

20

Passed

Validation

93%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

metadata_version

'metadata.version' is missing

Warning

Total

15

/

16

Passed

Repository

RoleModel/rolemodel-skills

Path

skills/optics-context/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.