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.
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
- Locate token sources and patterns.
- Map every new style or layout decision to a token or established pattern.
- Add missing tokens upstream only when necessary.
- 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-areapattern 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.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
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.
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).
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.
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.
handoff
Compact the current conversation into a handoff document for another agent to pick up.
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.
Didn't find tool you were looking for?