Agent skill

Swift

by margelo in margelo/react-native-skills

Design, implement, and review Swift APIs and Apple-platform code.

No licenceAuto-check passedMobile

Install Swift

skills CLI
$ npx skills add margelo/react-native-skills --skill swift -a claude-code

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

GitHub CLI
$ gh skill install margelo/react-native-skills swift --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/margelo/react-native-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/swift .claude/skills/swift && 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
swift
GitHub stars
175
Token cost
~3.2k tokens
SKILL.md length
1,557 words
Files
2
Skills in repo
9
Repo updated
First seen
Licence
None found

At a glance

Design, implement, and review Swift APIs and Apple-platform code.

  • Works in 5 steps: Read the local Swift code, generated… → Choose the public type model first: make… → Choose one concurrency model for the… → …
  • Working on .swift files
  • SKILL.md covers Workflow, Type-Safe API Design, Concurrency Model and Properties and Threading, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Swift is an agent skill from margelo/react-native-skills. Design, implement, and review Swift APIs and Apple-platform code. Use when working on .swift files, Swift types, Foundation or AVFoundation APIs, DispatchQueue, async/await, Task, actors, MainActor, thread-affine state, or Swift-backed React Native Nitro Module implementations.

Its SKILL.md is about 3.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Mobile, covering iOS development and Cross-platform mobile apps. It works with React Native. The repository describes itself as: The best react-native Agent Skills. Forget 10x, this is 100x.

When your agent uses it

  • Working on .swift files
  • AVFoundation APIs
  • Thread-affine state
  • Swift-backed React Native Nitro Module implementations

Example prompts

  • “/swift”

Workflow steps

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

  1. Read the local Swift code, generated protocols, and surrounding API shape before editing.
  2. Choose the public type model first: make invalid states unrepresentable where Swift can express them.
  3. Choose one concurrency model for the feature before writing implementation code.
  4. Keep synchronous properties and methods cheap, local, and nonblocking.
  5. Make queue hops, hardware/session negotiation, I/O, and fallible async work explicit in the API.

What it can do on your machine

Read from SKILL.md and the folder at commit 1e9e17b. 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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are swift).

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

  • Network

    No URLs in SKILL.md.

    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

Swift loads about 3.2k tokens when it runs. Until then it costs about 71 tokens; SKILL.md has 1,557 words of instructions outside code blocks.

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

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

Without a licence we can't republish the file, so here is its outline and opening line. It has 1,557 words (~3,192 tokens).

“Use this skill for Swift code that needs strong API boundaries, predictable threading, and idiomatic Apple-platform integration. When the code is part of a Nitro Module, pair this with build-nitro-modules for generated specs, Promise mapping, and HybridObject constraints.”

— opening of SKILL.md by margelo
name
swift

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file in skills/swift of margelo/react-native-skills.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit 1e9e17b

Compare with similar skills

Swift 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.

Swift compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Swift this skillmargelo/react-native-skills175—~3.2kAutomated safety check: PassNone
Cometchat React Native Migrationcometchat/cometchat-skills129—~1.3kAutomated safety check: PassMIT
Mobile App Builderrevfactory/harness-1001.3k—~1.8kAutomated safety check: PassApache-2.0
Apple Designvrcm-team/VRCM1791 repos~6.2kAutomated safety check: PassMIT
Expo Brownfield Integrationmweinbach/agent-coworker1562 repos~900Automated safety check: NotesCustom licence
Simulator Audio E2Ehyochan/react-native-nitro-sound961—~1.1kAutomated safety check: PassMIT

Similar skills

  • Cometchat React Native Migration

    cometchat/cometchat-skills

    Migrate a React Native app from CometChat UI Kit v4 to v5 — the 16 removed components, what replaces each, the composite-to-modular rewrite, and the theming change from setter objects to a provider.

    129 GitHub stars~1.3k tokensUpdated 2 days ago
    MobileAuto-check passed
  • Mobile App Builder

    revfactory/harness-100

    Full mobile app development pipeline. An agent skill from revfactory/harness-100.

    1.3k GitHub stars~1.8k tokensUpdated 6 mo ago
    MobileAuto-check passed
  • Apple Design

    vrcm-team/VRCM

    Cross-platform UI/UX design reviewer grounded in Apple's Human Interface Guidelines (122 pages pulled from developer.apple.com, including 57 component pages) plus a design-craft lens for…

    179 GitHub starsUsed in 1 repo~6.2k tokens
    MobileAuto-check passed
  • Expo Brownfield Integration

    mweinbach/agent-coworker

    Helps add Expo and React Native to an existing native iOS or Android app, and choose between a prebuilt AAR or XCFramework and a fully integrated build.

    156 GitHub starsUsed in 2 repos~900 tokens
    MobileAuto-check: notes
  • Simulator Audio E2E

    hyochan/react-native-nitro-sound

    Build and run repeatable react-native-nitro-sound recorder/player regression tests on an iOS Simulator or Android emulator, with explicit virtual-device selection, microphone permission, Maestro…

    961 GitHub stars~1.1k tokensUpdated 8 days ago
    MobileAuto-check passed
  • Expo UI

    arcboxlabs/linkcode

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

    155 GitHub stars~1.2k tokensUpdated 9 days ago
    MobileAuto-check passed

More from margelo/react-native-skills

All 9 skills in this repo
  • Build Nitro Modules

    margelo/react-native-skills

    Builds and designs React Native Nitro Modules with Nitrogen, HybridObject TypeScript specs, Nitro View components, generated native implementations, zero-copy and native-state APIs, Swift/Kotlin/C++…

    175 GitHub stars~9.9k tokensUpdated 1 mo ago
    Auto-check passed
  • Kotlin

    margelo/react-native-skills

    Design, implement, and review Kotlin and Android APIs. An agent skill from margelo/react-native-skills.

    175 GitHub stars~3k tokensUpdated 1 mo ago
    Auto-check passed
  • Nitro Fetch

    margelo/react-native-skills

    Fast native networking primitives for React Native built on Nitro Modules — react-native-nitro-fetch, react-native-nitro-websockets, and react-native-nitro-text-decoder.

    175 GitHub stars~1.5k tokensUpdated 1 mo ago
    Auto-check passed
  • React Native Mmkv

    margelo/react-native-skills

    Fast synchronous key-value storage for React Native via react-native-mmkv (Nitro-backed).

    175 GitHub stars~2.1k tokensUpdated 1 mo ago
    Auto-check passed
  • React Native Vision Camera Realtime

    margelo/react-native-skills

    Design and review production-grade low-latency VisionCamera v5 pipelines.

    175 GitHub stars~1.8k tokensUpdated 1 mo ago
    Auto-check passed
  • API Design

    margelo/react-native-skills

    Design and review predictable public APIs for TypeScript, JavaScript, React, and React Native libraries.

    175 GitHub stars~7.2k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Categories

Questions about Swift

What does Swift do?

Design, implement, and review Swift APIs and Apple-platform code. Swift is an agent skill from margelo/react-native-skills. Design, implement, and review Swift APIs and Apple-platform code.

When should I use Swift?

Swift fits situations like: working on .swift files; AVFoundation APIs; thread-affine state; swift-backed React Native Nitro Module implementations.

How do I install Swift in Claude Code?

Run `npx skills add margelo/react-native-skills --skill swift -a claude-code`. Or copy the skill folder (skills/swift in margelo/react-native-skills) into .claude/skills/swift in your project. Claude Code loads it when a task matches its description.

How do I install Swift in Codex?

Run `npx skills add margelo/react-native-skills --skill swift -a codex`. Or copy the skill folder (skills/swift in margelo/react-native-skills) into .agents/skills/swift in your project. Codex loads it when a task matches its description.

Can I use Swift 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 margelo/react-native-skills --skill swift -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/swift, .gemini/skills/swift, .github/skills/swift and .opencode/skills/swift in your project.

What does Swift need to run?

SKILL.md names no scripts, command-line tools or credentials: Swift is instructions for the agent only.

Does Swift access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Swift 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 Swift use?

No licence was found for Swift or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Swift use?

About 3.2k tokens (SKILL.md is roughly 13k 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 Swift?

Skills that share tags, products or a category with Swift: Cometchat React Native Migration (cometchat/cometchat-skills, 129 stars), Mobile App Builder (revfactory/harness-100, 1.3k stars), Apple Design (vrcm-team/VRCM, 179 stars) and Expo Brownfield Integration (mweinbach/agent-coworker, 156 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Swift?

margelo (a GitHub organization) maintains it in margelo/react-native-skills, which has 175 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on August 21, 2026.

Source: margelo/react-native-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.