Agent skill

Swiftui Best Practices

by coinbase in coinbase/cds

USE THIS when migrating a CDS React Native component to native iOS, or when writing or reviewing SwiftUI in packages/cds-ios or apps/ios-gallery.

Custom licenceAuto-check passedMobile

Install Swiftui Best Practices

skills CLI
$ npx skills add coinbase/cds --skill swiftui-best-practices -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install coinbase/cds swiftui-best-practices --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/coinbase/cds.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/swiftui-best-practices .claude/skills/swiftui-best-practices && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
swiftui-best-practices
GitHub stars
505
Token cost
~3k tokens
SKILL.md length
1,321 words
Files
1
Skills in repo
11
Repo updated
First seen
Licence
Custom licence

At a glance

USE THIS when migrating a CDS React Native component to native iOS, or when writing or reviewing SwiftUI in packages/cds-ios or apps/ios-gallery.

  • Works in 6 steps: Always-safe defaults (do these on the… → Button is inherited too, but the default… → OS .alert / .confirmationDialog are not… → …
  • Tasks that involve iOS development
  • SKILL.md covers Classify before writing code, Do not wrap styled HIG…, Read RN for capability, not tree and Implement, plus 2 more sections
  • Calls yarn

What it does

Swiftui Best Practices is an agent skill from coinbase/cds. USE THIS when migrating a CDS React Native component to native iOS, or when writing or reviewing SwiftUI in packages/cds-ios or apps/ios-gallery. Covers rewrite patterns (Style vs SwiftUI API vs CDS view), RN visual spec (not HIG look-alikes), HIG-styled control enforcement, tokens, gallery, and tests.

Its SKILL.md is about 3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Mobile, covering iOS development. It works with SwiftUI, iOS and React Native. The repository describes itself as: Coinbase Design System.

When your agent uses it

  • Tasks that involve iOS development

Example prompts

  • “/swiftui-best-practices”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Always-safe defaults (do these on the provider)
  2. Button is inherited too, but the default variant is not filled primary. A root
  3. OS .alert / .confirmationDialog are not CDS Alert. They ignore app ButtonStyle and
  4. Typography roles still use .cdsText(.title3) (and so on). Environment .font can only
  5. Gallery is the spec. Show both the inherited default and the explicit variant override.
  6. Do not add a second sugar (.cdsButton(.primary) that only forwards to .buttonStyle)

What it can do on your machine

Read from SKILL.md and the folder at commit 46d9e48. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • yarn

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • linear.app

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Swiftui Best Practices loads about 3k tokens when it runs. Until then it costs about 82 tokens; SKILL.md has 1,321 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~82
When it runs · the whole SKILL.md, loaded when a task matches
~3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,321 words (~3,047 tokens).

“Read packages/cds-ios/AGENTS.md before writing any Swift. That file is the API-boundary source of truth (public theme only; components stay internal until they stabilize). This skill is the migration workflow: take one RN component and produce the iOS equivalent without wrapping…”

— opening of SKILL.md by coinbase, Custom licence
name
swiftui-best-practices

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .claude/skills/swiftui-best-practices of coinbase/cds.

Open the folder on GitHubat commit 46d9e48

Compare with similar skills

Swiftui Best Practices next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Swiftui Best Practices compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Swiftui Best Practices this skillcoinbase/cds505—~3kAutomated safety check: PassCustom licence
Expo UIarcboxlabs/linkcode156—~1.2kAutomated safety check: PassMIT
SimdeckNativeScript/SimDeck152—~3.6kAutomated safety check: PassMIT
Mobile Devcallstackincubator/codex-mobile-dev-plugin150—~5.5kAutomated safety check: PassNone
Expo Brownfieldexpo/skills2.7k—~1.4kAutomated safety check: PassMIT
Developing Mobile Appstelagod/code-abyss243—~258Automated safety check: PassMIT

Similar skills

  • Expo UI

    arcboxlabs/linkcode

    Framework (OSS). An agent skill from arcboxlabs/linkcode.

    156 GitHub stars~1.2k tokensUpdated 11 days ago
    MobileAuto-check passed
  • Simdeck

    NativeScript/SimDeck

    A skill your agent uses for simulator lifecycle, app install/launch, live viewing, UI inspection, touch/keyboard automation, screenshots, recordings, logs, pasteboard, hardware controls, and…

    152 GitHub stars~3.6k tokensUpdated 28 days ago
    MobileAuto-check passed
  • Mobile Dev

    callstackincubator/codex-mobile-dev-plugin

    Official

    A skill your agent uses when building, running, changing, or debugging local iOS, Android, Expo, React Native, or SwiftUI apps.

    150 GitHub stars~5.5k tokensUpdated today
    MobileAuto-check passed
  • Expo Brownfield

    expo/skills

    Official

    Integrate Expo and React Native into an existing native iOS or Android app.

    2.7k GitHub stars~1.4k tokensUpdated 2 days ago
    MobileAuto-check passed
  • Developing Mobile Apps

    telagod/code-abyss

    Mobile development knowledge reference covering iOS (SwiftUI), Android (Jetpack Compose), React Native, and Flutter.

    243 GitHub stars~258 tokensUpdated 2 mo ago
    MobileAuto-check passed
  • Senior Mobile

    borghei/Claude-Skills

    A skill your agent uses when the user asks to "build a mobile app", "scaffold React Native project", "create SwiftUI views", "set up Jetpack Compose", "optimize mobile performance", "configure Expo…

    886 GitHub stars~1.9k tokensUpdated 2 days ago
    MobileAuto-check passed

More from coinbase/cds

All 11 skills in this repo
  • A skill your agent uses when a CDS change in cds-web, cds-common, cds-mobile, web-visualization, or mobile-visualization needs a jscodeshift migration in packages/migrator to update callers or…

    505 GitHub stars~3.4k tokensUpdated 2 days ago
    Auto-check passed
  • Deprecate Cds API

    coinbase/cds

    Deprecates a CDS component, hook, or other exported symbol with consistent JSDoc, version tags, and docsite metadata across every public export path (web, mobile, common, visualization), not only…

    505 GitHub stars~2.6k tokensUpdated 2 days ago
    Auto-check passed
  • USE THIS when writing or reviewing Jetpack Compose / Kotlin code in packages/cds-android or apps/android-app - @Composable APIs, Modifier parameters, CompositionLocal, state hoisting, or naming.

    505 GitHub stars~805 tokensUpdated 2 days ago
    Auto-check passed
  • Cds Design To Code

    coinbase/cds

    Turn Figma designs into CDS React (cds-web) or React Native (cds-mobile) code.

    505 GitHub stars~4.9k tokensUpdated 2 days ago
    Auto-check passed
  • Cds Docs

    coinbase/cds

    Retrieve Coinbase Design System (CDS) documentation: setup, installation, theming, tokens, and per-component APIs/examples.

    505 GitHub stars~1.1k tokensUpdated 2 days ago
    Auto-check passed
  • USE THIS when asked to create a new eslint plugin rule for the eslint-plugin-cds package

    505 GitHub stars~731 tokensUpdated 2 days ago
    Auto-check passed

Categories

Questions about Swiftui Best Practices

What does Swiftui Best Practices do?

USE THIS when migrating a CDS React Native component to native iOS, or when writing or reviewing SwiftUI in packages/cds-ios or apps/ios-gallery. Swiftui Best Practices is an agent skill from coinbase/cds. USE THIS when migrating a CDS React Native component to native iOS, or when writing or reviewing SwiftUI in packages/cds-ios or apps/ios-gallery.

When should I use Swiftui Best Practices?

Swiftui Best Practices fits situations like: tasks that involve iOS development.

How do I install Swiftui Best Practices in Claude Code?

Run `npx skills add coinbase/cds --skill swiftui-best-practices -a claude-code`. Or copy the skill folder (.claude/skills/swiftui-best-practices in coinbase/cds) into .claude/skills/swiftui-best-practices in your project. Claude Code loads it when a task matches its description.

How do I install Swiftui Best Practices in Codex?

Run `npx skills add coinbase/cds --skill swiftui-best-practices -a codex`. Or copy the skill folder (.claude/skills/swiftui-best-practices in coinbase/cds) into .agents/skills/swiftui-best-practices in your project. Codex loads it when a task matches its description.

Can I use Swiftui Best Practices in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add coinbase/cds --skill swiftui-best-practices -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/swiftui-best-practices, .gemini/skills/swiftui-best-practices, .github/skills/swiftui-best-practices and .opencode/skills/swiftui-best-practices in your project.

What does Swiftui Best Practices need to run?

Going by SKILL.md and its folder, Swiftui Best Practices needs the command-line tools its instructions call (yarn).

Does Swiftui Best Practices access the network?

SKILL.md names 1 domain. As links in the text: linear.app. This is read from the text; nothing was executed.

Is Swiftui Best Practices safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Swiftui Best Practices use?

Swiftui Best Practices has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Swiftui Best Practices use?

About 3k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Swiftui Best Practices?

Skills that share tags, products or a category with Swiftui Best Practices: Expo UI (arcboxlabs/linkcode, 156 stars), Simdeck (NativeScript/SimDeck, 152 stars), Mobile Dev (callstackincubator/codex-mobile-dev-plugin, 150 stars) and Expo Brownfield (expo/skills, 2.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Swiftui Best Practices?

coinbase (a GitHub organization) maintains it in coinbase/cds, which has 505 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on October 6, 2026.

Source: coinbase/cds on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.