frontend
Use when writing or changing client code for web, mobile or desktop: a screen or component, its state and data loading, or a bug in the UI.
от crewforth★ 26 звёзд на GitHub
Установить frontend в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Frontend Discipline (stack-agnostic)
Trigger phrases: "in the frontend", "frontend code", "frontend'de", "screen size", "component", "page", "the UI", "UI component", "UI bug", "state management", "interface"
Web, mobile (native iOS/Android, Flutter, React Native, .NET MAUI, KMP) or desktop — shared principles. The stack-specific "how" (native bridge, router choice, etc.) lives in the relevant project skill; this skill applies to all of them.
Client stack — resolve it before the first line, in this order; stop at the first answer
There is no default client stack, and none is suggested: the user chooses. Model discipline, not a gate.
The request says it. "Add a Flutter screen" is an answer. Use it; record it if
## Stackwas empty.CLAUDE.md ## Stack→Client:says it. A filled line is a decision: follow it.The repo says it — manifests at the root and one level down (
app/,mobile/,web/,client/,apps/*):Manifest Client package.jsonweb (framework from its dependencies); React Native/Expo if it depends on react-nativeorexpopubspec.yamlFlutter *.xcodeproj/Package.swiftnative iOS (Swift / SwiftUI) build.gradle(.kts)with the Android pluginnative Android (Kotlin / Compose); KMP if it applies kotlin("multiplatform")*.csprojwith<UseMaui>.NET MAUI Still open (a new project) → ask, once. A few questions at most (which platforms · which client stack), the options listed plainly — no option marked recommended and no "Decide for me": the stack is the user's call. This is the one decision where the discipline's "give a clear recommendation" does NOT apply: state each option's trade-off and stop there. That Crewforth ships layers for two stacks (
frontend-rn-expo,frontend-flutter) is not a reason to favour either (measured: the first version of this step still got "React Native + Expo (recommended)", because of it). No one to ask (headless) → write the questions as text and stop; do not start client code on a guessed stack.
Record it in the Client: line of CLAUDE.md ## Stack, plus an ADR (adr skill). Never ask twice — a
recorded client stack changes only when the user asks. Then apply this skill on that stack; an RN/Expo project
also applies frontend-rn-expo, a Flutter project frontend-flutter.
Architecture
- Presentation / logic separation: component/view is pure and thin; business logic lives in the hook/composable/service layer.
- Reusability: repeated UI is factored out; the prop contract is clear and typed.
- Folder: feature-based (
features/<name>/) — view, logic, and test together.
State & data
- Local state first (
useState/signal); if global is needed, the project's choice (store/context) — nothing imposed. - Data fetching: cache + error + loading states are considered; race/abort are handled.
State-complete UI (design it from the start)
Every data-bound view covers four states: loading · empty · error · full.
Don't code only the "full" case; empty/error/loading are part of the experience. "Full" means the worst realistic
data too (a long unbreakable name, 0, 1 and 1000 items, extreme numbers, RTL): references/worst-data.md.
i18n & accessibility (default, not decoration)
- User-visible text comes from the language file (project languages); no hard-coded strings (
i18n-integrity). - Meaningful labels/roles, sufficient contrast, keyboard/screen-reader access, appropriate touch/click target.
Visual & UX quality
This skill covers structure; the visual/UX design layer — hierarchy, spacing rhythm, typographic scale, a
restrained color system, and polished states — lives in frontend-design. Apply it when the work is about how the
interface looks and feels, not just how it's wired. Building from a design file or a mock ("match this design",
a Figma link): references/from-design.md. A page others will find or share (title, description, canonical, Open
Graph, structured data): references/page-metadata.md.
Responsive & performance
- Works across the target screen/device matrix (responsive/adaptive).
- Unnecessary renders (memo/callback), bundle size, lazy loading, virtualization for long lists.
Verify at runtime (contract)
Prove a change works by observing the running UI, structured — not by interpreting a screenshot (a size, a
colour or a spacing read off one is an estimate, and is said as one). Have components
emit data-verify-* state attributes, register verifiable units with fixtures + invariants (≥1 adversarial probe
each), expose window.__verify, and adopt the PASS/FAIL/BLOCKED/SKIP taxonomy (when in doubt, FAIL). Then drive
the browser to check it. The full convention: references/verify-contract.md.
DoD (this skill's contribution)
- `/s
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/from-design.md
- references/page-metadata.md
- references/verify-contract.md
- references/worst-data.md
FAQ
Что делает скилл frontend?
Use when writing or changing client code for web, mobile or desktop: a screen or component, its state and data loading, or a bug in the UI.
Как установить скилл frontend?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл frontend запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…