Agent skill

design-system-token-enforcer

Enforce design system token usage in espresso-engineered-1 frontend UI work. Use when creating or editing Svelte components, layout sections, typography, spacing, colors, surfaces, or buttons, especially when introducing new UI components or section headers.

Stars 1
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/nickabeelee/espresso-engineered/tree/main/skills/design-system-token-enforcer

SKILL.md

Design System Token Enforcer

Overview

Use existing design tokens and UI patterns instead of hardcoded values. Align new component structure and header styles with established patterns (notably the bean detail section header).

Workflow

  1. Locate token sources and patterns.
  2. Map every new style or layout decision to a token or established pattern.
  3. Add missing tokens upstream only when necessary.
  4. Call out any intentional exceptions.

Token Sources (required)

Read references/ui-token-sources.md before editing UI components.

Checklist

  • Use typography tokens (textStyles.*) for headers, labels, and helper text.
  • Use spacing/gap tokens (spacing.*, gap.*, layoutSpacing.*) for layout.
  • Use surface/card tokens (card, sectionSurface, pageSurface) for backgrounds and borders.
  • Use color tokens (colorCss.*) for text, borders, and backgrounds.
  • Match section headers to the bean detail section-title-area pattern unless told otherwise.

If Tokens Are Missing

  • Add a token upstream in frontend/src/lib/ui/** and use it.
  • Avoid hardcoded values unless explicitly required; document the exception.

Output Expectations

  • Reference the token source used for key visual decisions.
  • Keep styles consistent with existing component patterns.

Expand your agent's capabilities with these related and highly-rated skills.

nickabeelee/espresso-engineered

ios-input-hints

Ensure iOS/iPadOS-friendly form inputs (keyboard type, inputmode, autocomplete, autocapitalize/autocorrect, enterkeyhint) when editing or reviewing UI forms in web apps. Use when adding or modifying form fields (Svelte/HTML/TSX/etc.), auditing form UX, or fixing mobile Safari keyboard issues.

1 0
Explore
nickabeelee/espresso-engineered

backend-build-check

Ensure backend build readiness for Espresso Engineered. Use when backend code/config changes are made or when a feature/task is wrapping up to suggest running `npm run build:backend` (and tests only if requested).

1 0
Explore
nickabeelee/espresso-engineered

ui-token-first

Enforce UI token usage for Espresso Engineered frontend work. Use when editing Svelte/SvelteKit UI, styling typography, voice lines, headers, cards, surfaces, or layout so styles come from frontend/src/lib/ui tokens instead of app.css or ad-hoc CSS.

1 0
Explore
mattpocock/skills

setup-pre-commit

Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.

111,310 9,758
Explore
mattpocock/skills

handoff

Compact the current conversation into a handoff document for another agent to pick up.

111,310 9,758
Explore
mattpocock/skills

edit-article

Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.

111,310 9,758
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results