Agent skill

Swift iOS Standards

by bladeofgod in bladeofgod/flutter-ai-harness

适用:编写或审查 iOS Swift Native Module、Bridge Adapter、Host 接线、Info.plist/Entitlements、SwiftPM 和原生 UI。不适用:Kotlin/Android、Dart Client 或 Wire Contract…

MITAuto-check passedMobile

Install Swift iOS Standards

skills CLI
$ npx skills add bladeofgod/flutter-ai-harness --skill swift-ios-standards -a claude-code

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

GitHub CLI
$ gh skill install bladeofgod/flutter-ai-harness swift-ios-standards --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/bladeofgod/flutter-ai-harness.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/swift-ios-standards .claude/skills/swift-ios-standards && 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-ios-standards
GitHub stars
116
Token cost
~375 tokens
SKILL.md length
105 words
Files
1
Skills in repo
11
Repo updated
First seen
Licence
MIT

At a glance

适用:编写或审查 iOS Swift Native Module、Bridge Adapter、Host 接线、Info.plist/Entitlements、SwiftPM 和原生 UI。不适用:Kotlin/Android、Dart Client 或 Wire Contract…

  • Tasks that involve iOS development
  • SKILL.md covers API 与边界, 并发与生命周期, iOS 工程 and 验证
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Swift iOS Standards is an agent skill from bladeofgod/flutter-ai-harness. 适用:编写或审查 iOS Swift Native Module、Bridge Adapter、Host 接线、Info.plist/Entitlements、SwiftPM 和原生 UI。不适用:Kotlin/Android、Dart Client 或 Wire Contract 设计。触发词:Swift、iOS、Xcode、SwiftPM、Info.plist、Entitlements、actor、Sendable、AVFoundation。

Its SKILL.md is about 380 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 iOS, Swift, Xcode and Dart. The repository describes itself as: An AI-native engineering harness for production Flutter and hybrid mobile app repositories. The licence is MIT.

When your agent uses it

  • Tasks that involve iOS development

Example prompts

  • “/swift-ios-standards”

What it can do on your machine

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

    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 iOS Standards loads about 375 tokens when it runs. Until then it costs about 61 tokens; SKILL.md has 105 words of instructions outside code blocks.

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

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

The full file from bladeofgod/flutter-ai-harness at commit 9f1a1ca, republished under its MIT licence (© bladeofgod). 105 words, ~375 tokens.

Download SKILL.mdSave it as .claude/skills/swift-ios-standards/SKILL.md (or your agent's skills folder).
name
swift-ios-standards
description
适用:编写或审查 iOS Swift Native Module、Bridge Adapter、Host 接线、Info.plist/Entitlements、SwiftPM 和原生 UI。不适用:Kotlin/Android、Dart Client 或 Wire Contract 设计。触发词:Swift、iOS、Xcode、SwiftPM、Info.plist、Entitlements、actor、Sendable、AVFoundation。
paths
app/native/ios/**, app/apps/*/ios/**, app/packages/*/ios/**

Swift / iOS 编码规范

API 与边界

  • 遵守 Swift API Design Guidelines,使用清楚的调用点名称和最小 public 可见性。
  • 公共 API 使用稳定值类型、async/throws、AsyncSequence 和有类型错误;不暴露 Flutter、 Wire Dictionary、Host 类型或不必要的 Apple Framework 对象。
  • 通过 initializer 注入协作者、Clock、Executor/Scheduler 和 Framework Wrapper;不在实现内部 隐式查找全局依赖。
  • Native Module 不 import Flutter;Channel DTO、FlutterError 和线程回调只留在 Bridge Adapter。
  • 禁止强制解包、try! 和无依据类型转换;系统边界的 Optional 必须显式处理。

并发与生命周期

  • 跨并发域的值满足 Sendable,可变共享状态由 actor 或明确隔离域拥有。
  • 只有 UI、Flutter callback 或 Apple API 明确要求时使用 @MainActor;重工作不得占用主线程。
  • 使用结构化 Task,并保存需要跨作用域取消的句柄;不创建无法追踪的 detached work。
  • 取消使用 CancellationError 语义并继续传播,不映射成普通能力失败。
  • Delegate 默认弱引用以避免环,确需强所有权时记录生命周期并在 stop/deinit 时解除。
  • Session、Observer、Notification、Continuation 和文件资源必须由明确对象释放;stop/cancel 可重复。

iOS 工程

  • Info.plist、Entitlements 和隐私声明保持最小,并由真实 Host 产品流程接入。
  • Native Module 的依赖声明在 Swift Package;Bridge Adapter 只声明到 Package Product 的依赖。
  • Objective-C/Flutter 边界显式映射错误与值,不让弱类型字典进入 Module。
  • 公共错误保持稳定并保留内部诊断 cause,不暴露用户数据、绝对路径或私有 Framework 对象。

验证

运行 Swift 单元测试和受影响 Xcode/SwiftPM 构建。依赖相机、系统授权 UI 或真机硬件的行为必须 单独列为模拟器/真机验证,不能用 Framework Fake 结果代替。

© bladeofgod, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/swift-ios-standards of bladeofgod/flutter-ai-harness.

Open the folder on GitHubat commit 9f1a1ca

Compare with similar skills

Swift iOS Standards 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 iOS Standards compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Swift iOS Standards this skillbladeofgod/flutter-ai-harness116—~375Automated safety check: PassMIT
Platform Syncbrim-borium/spotify_sdk166—~456Automated safety check: PassApache-2.0
Compose Multiplatformericrisco/rsc-harness180—~2.7kAutomated safety check: PassMIT
Swift iOSericrisco/rsc-harness180—~3kAutomated 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

  • Platform Sync

    brim-borium/spotify_sdk

    Synchronize method channels and event streams across Dart, Android (Kotlin), iOS (Swift), and Web.

    166 GitHub stars~456 tokensUpdated yesterday
    MobileAuto-check passed
  • Compose Multiplatform

    ericrisco/rsc-harness

    A skill your agent uses when building one shared Compose UI in Kotlin across Android, iOS, and desktop — commonMain @Composables, expect/actual, source-set placement, native interop, multiplatform…

    180 GitHub stars~2.7k tokensUpdated yesterday
    MobileAuto-check passed
  • Swift iOS

    ericrisco/rsc-harness

    A skill your agent uses when building native iOS and Apple-platform apps in Swift with SwiftUI and modern Swift concurrency — observable view models, Swift 6 strict data-race diagnostics…

    180 GitHub stars~3k tokensUpdated yesterday
    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 11 days ago
    MobileAuto-check passed
  • Inspector MCP

    ipedro/Inspector

    A skill your agent uses when an agent needs to inspect a live iOS app through the Inspector MCP bridge, register or troubleshoot InspectorMCPServer for a consumer Xcode project, or query, resolve…

    170 GitHub stars~3.4k tokensUpdated 5 mo ago
    MobileAuto-check passed

More from bladeofgod/flutter-ai-harness

All 11 skills in this repo
  • Getx Patterns

    bladeofgod/flutter-ai-harness

    适用:代码使用 GetxController、GetxService、Rx、Obx、GetBuilder、Get.find、Bindings 或 Worker。不适用:GetX 路由、Dialog、Snackbar,或 Controller 内隐式查找 API。触发词:GetX、Obx、.obs、Rx、Get.find、GetxService、Worker、Binding。

    116 GitHub stars~462 tokensUpdated 1 mo ago
    Auto-check passed
  • UI Behavior Spec

    bladeofgod/flutter-ai-harness

    适用:根据已批准任务、产品规则、原型或 Figma 输入生成、审计或执行 Version 1 UI 行为 Spec。不适用:替代产品决策、实现 UI、操作系统原生界面或探索未定义流程。触发词:UI Spec、行为契约、plan-spec、spec-writer、spec-auditor、app-operator、Marionette 验收。

    116 GitHub stars~1.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Flutter Debug Runtime

    bladeofgod/flutter-ai-harness

    适用:在 App Operator 或 Marionette 验证前,为 Android/iOS 构建、安装并启动 Flutter Debug App,获取 VM Service URI。不适用:Release 构建、签名配置、系统权限自动化、账号登录或测试数据准备。触发词:flutter run、Debug App、设备安装、VM Service URI、App Operator 前置环境。

    116 GitHub stars~274 tokensUpdated 1 mo ago
    Auto-check passed
  • Dart Coding Standards

    bladeofgod/flutter-ai-harness

    适用:编写或审查 Dart/Flutter 生产代码,尤其是 Controller、Service、Stream、异步任务和依赖注入。不适用:Kotlin、Swift 或生成代码规范。触发词:Dart、Controller、Service、StreamSubscription、unawaited、dynamic、DI、重构。

    116 GitHub stars~228 tokensUpdated 1 mo ago
    Auto-check passed
  • Figma To Flutter

    bladeofgod/flutter-ai-harness

    适用:读取 Figma 或根据节点实现 Flutter UI,包括 Token 反查、Auto Layout、组件 Variant、Asset 和视觉验证。不适用:替代产品决策,或从像素推断设计稿不可见的数据行为。触发词:Figma URL、node-id、design-to-code、视觉还原、Auto Layout、design token。

    116 GitHub stars~270 tokensUpdated 1 mo ago
    Auto-check passed
  • Go Router

    bladeofgod/flutter-ai-harness

    适用:新增 Route、Redirect、ShellRoute/StatefulShellRoute、DeepLink、路由参数、Observer 或 Route 级 Controller 装配。不适用:GetX 导航或没有明确兼容边界的任意 Navigator Stack。触发词:GoRouter、GoRoute、redirect、deep link、shell…

    116 GitHub stars~295 tokensUpdated 1 mo ago
    Auto-check passed

Categories

Questions about Swift iOS Standards

What does Swift iOS Standards do?

适用:编写或审查 iOS Swift Native Module、Bridge Adapter、Host 接线、Info.plist/Entitlements、SwiftPM 和原生 UI。不适用:Kotlin/Android、Dart Client 或 Wire Contract…. Swift iOS Standards is an agent skill from bladeofgod/flutter-ai-harness.

When should I use Swift iOS Standards?

Swift iOS Standards fits situations like: tasks that involve iOS development.

How do I install Swift iOS Standards in Claude Code?

Run `npx skills add bladeofgod/flutter-ai-harness --skill swift-ios-standards -a claude-code`. Or copy the skill folder (.claude/skills/swift-ios-standards in bladeofgod/flutter-ai-harness) into .claude/skills/swift-ios-standards in your project. Claude Code loads it when a task matches its description.

How do I install Swift iOS Standards in Codex?

Run `npx skills add bladeofgod/flutter-ai-harness --skill swift-ios-standards -a codex`. Or copy the skill folder (.claude/skills/swift-ios-standards in bladeofgod/flutter-ai-harness) into .agents/skills/swift-ios-standards in your project. Codex loads it when a task matches its description.

Can I use Swift iOS Standards 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 bladeofgod/flutter-ai-harness --skill swift-ios-standards -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-ios-standards, .gemini/skills/swift-ios-standards, .github/skills/swift-ios-standards and .opencode/skills/swift-ios-standards in your project.

What does Swift iOS Standards need to run?

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

Does Swift iOS Standards 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 iOS Standards 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 iOS Standards use?

Swift iOS Standards is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Swift iOS Standards use?

About 375 tokens (SKILL.md is roughly 1.5k 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 iOS Standards?

Skills that share tags, products or a category with Swift iOS Standards: Platform Sync (brim-borium/spotify_sdk, 166 stars), Compose Multiplatform (ericrisco/rsc-harness, 180 stars), Swift iOS (ericrisco/rsc-harness, 180 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 iOS Standards?

bladeofgod (a GitHub user) maintains it in bladeofgod/flutter-ai-harness, which has 116 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on September 7, 2026.

Source: bladeofgod/flutter-ai-harness on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.