К основному содержанию
скилл CX Codex

build-swiftui-interface — скилл для Claude Code: что делает

Скилл задаёт правила проектирования и проверки интерфейсов SwiftUI для iOS и macOS. Помогает агенту учитывать доступность, состояния экранов и проверки в Xcode.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add memi-design/memi --skill build-swiftui-interface -a claude-code
Открыть на GitHub

Что делает build-swiftui-interface

Скилл направляет агента при разработке интерфейсов SwiftUI под iOS и macOS. Инструкции требуют выносить тяжёлые вычисления и ввод-вывод из body, сужать владение состоянием и сначала переиспользовать локальные компоненты проекта. Агент обязан описать состояния загрузки, пустых данных, ошибок, а также проверить Dynamic Type, тёмную тему и VoiceOver.

Автоматической генерации кода здесь нет. Команды ios brief и ios scaffold в бета-версиях 2.8.0-beta.1 и 2.8.0-beta.2 недоступны даже при выдаче разрешений. При запущенном процессе memi --profile locked mcp start --no-figma агент может вызвать только инструмент prepare_apple_design_brief. Он готовит бриф в режиме чтения, но не правит файлы проекта.

Для проверки сборки нужны локальные утилиты xcodebuild и xcrun simctl. Без запуска тестов в симуляторе агент не подтвердит работоспособность интерфейса, потому что статический анализ кода не гарантирует нативную сборку.

Какие задачи решает

  • проверить поддержку Dynamic Type и контраст в тёмной теме
  • вынести тяжёлые операции и ввод-вывод из SwiftUI body
  • составить бриф требований перед версткой через prepare_apple_design_brief
  • подготовить команды сборки и запуска тестов через xcodebuild

Примеры запросов агенту

  • Сверь экран профиля на SwiftUI с требованиями VoiceOver и Dynamic Type.
  • Подготовь бриф интерфейса для iOS через prepare_apple_design_brief.
  • Проверь состояния экрана настроек: пустой список, ошибку сети и тёмную тему.

Как установить build-swiftui-interface

1Через Skills CLI (Vercel)

npx skills add memi-design/memi --skill build-swiftui-interface -a claude-code

2Вручную: положить файлы

~/.claude/skills/build-swiftui-interface/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/build-swiftui-interface/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о build-swiftui-interface

Как установить build-swiftui-interface в Claude Code?

Выполните команду npx skills add memi-design/memi --skill build-swiftui-interface -a claude-code.

Зачем нужен скилл build-swiftui-interface?

Он задаёт агенту правила вёрстки SwiftUI под iOS и macOS. Скилл заставляет учитывать доступность, разделять состояния и тестировать сборку через Xcode.

Создаёт ли этот скилл проект SwiftUI автоматически?

Нет, пайплайн автоматической генерации отсутствует. Команды ios brief и ios scaffold отключены в версиях 2.8.0-beta.1 и 2.8.0-beta.2.

Исходный текст

SKILL.md · MIT
---
name: build-swiftui-interface
description: Use when a coding agent must design, scaffold, implement, or verify an iOS or macOS SwiftUI interface with Apple-platform state, accessibility, availability, testing, and Xcode evidence.
---

# Build SwiftUI Interface

Use this as Apple-platform design and verification guidance. Pair it with an installed host's Apple-platform tools when simulator, profiling, App Intents, or detailed framework guidance is needed.

## 2.8 beta availability

This workflow targets published beta **2.8.0-beta.2**. Use `npx -y @memi-design/[email protected] --version` to verify the exact package; a local `memi` must report that same version before these recipes run. The independent stable compatibility baseline is **2.7.9**. See [current release state](https://github.com/memi-design/memi/blob/main/docs/CURRENT_RELEASE.md) and [known limitations](https://github.com/memi-design/memi/blob/main/docs/trust/KNOWN_LIMITATIONS.md). npm availability alone does not establish native-binary success.

Memi's `ios brief` and `ios scaffold` commands are unavailable in 2.8.0-beta.1 and 2.8.0-beta.2, including preview and write modes. Capability grants do not enable them. This skill does not provide an automatic SwiftUI scaffolding pipeline.

With the exact beta running `memi --profile locked mcp start --no-figma`, the host may call the read-only `prepare_apple_design_brief` tool:

```json
{"intent":"Review the feature contract","platform":"ios","detail":"compact"}
```

`platform` accepts `ios` or `macos`. This tool prepares guidance without running Xcode or writing files; it does not inspect native source or replace project verification.

Inspect the actual project: deployment target, Swift language mode, shared schemes, local components, assets, navigation, state ownership, test targets, and nearby implementation patterns. Prepare the feature contract with the coding host using that evidence, and review proposed paths and source before writing. Preserve the repository's project-generation workflow.

The supported `memi agent brief . --json` command can provide general project context; it is not an equivalent Apple-platform brief or proof that SwiftUI was analyzed. Memi's frontend checks do not establish native UI correctness.

## Implementation rules

1. Reuse local SwiftUI components and semantic assets before adding primitives.
2. Keep state ownership narrow; keep I/O and expensive work out of `body`.
3. Define loading, empty, populated, error, Dynamic Type, VoiceOver, reduced-motion, and dark-appearance states.
4. Gate newer APIs. Liquid Glass requires an iOS 26+ branch and a behaviorally equivalent fallback.
5. Treat June 2026 APIs by their documented availability; do not invent an iOS version label.
6. Preserve the existing architecture and project-generation workflow.

## Verification receipt

Run the repository's canonical commands. When none exist, discover shared schemes and explicit destinations with `xcodebuild -list -json` and `xcrun simctl list devices available`, then build and test the smallest target.

Report exact commands, files, deployment assumptions, simulator flow, accessibility states, and anything not executed. A source review is not simulator proof, and a simulator build is not signing or App Store proof.

© memi-design · MIT · memi-design/memi

Похожие скиллы

Все скиллы по теме «Мобильная разработка» →
vercel-react-native-skills vercel Набор правил по React Native и Expo для ИИ-агента: списки, анимации, навигация. Пригодится, когда агент правит мобильный код и надо, чтобы он делал это одинаково. CX Codex +1 255 200установок animate-expo emilkowalski Создаёт мобильные анимации для React Native и Expo на базе Reanimated и Gesture Handler. Помогает избежать просадок кадров на реальных устройствах. CX Codex +1 137 900установок mobile-native emilkowalski Убирает мелочи, из-за которых веб-приложение на телефоне выдаёт себя: залипающий hover, вспышку при тапе, ошибку с 100vh. CX Codex +1 86 600установок aso coreyhaines31 Анализирует страницы приложений в App Store и Google Play по правилам поисковой оптимизации. Находит слабые места в метаданных, графике и конверсии. CX Codex +1 75 900установок paywalls coreyhaines31 Скилл помогает проектировать и улучшать экран оплаты, апгрейд, upsell-модалку и ограничения функций. Нужен, когда бесплатного пользователя подводят к платному плану. CX Codex +1 71 000установок swiftui-pro Paul Hudson Проверяет SwiftUI-код на устаревшие API, ошибки в структуре и проблемы доступности. Пригодится для ревью и доработки проектов на SwiftUI. CX Codex +1 35 200установок

Из того же набора5

Спонсоры проекта

Компании, которые помогают держать аналитику открытой