# swiftui-skills

This skill gives an agent Xcode-bundled Apple guidance for writing and reviewing SwiftUI. Use it when you want code grounded in those docs.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 756 installs · ★ 124
- Author: ameyalambat128
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/ameyalambat128/swiftui-skills/tree/HEAD/skills/swiftui-skills/SKILL.md
- Updated: 2026-07-06
- HTML: https://affpapa.org/en/nevibecode/skills/swiftui-skills

## What it does

The package combines Apple documentation shipped with Xcode and instructions for the agent. For coding tasks, the agent selects relevant files, outlines a plan, and produces Swift code. For reviews, it reports issues and improvements with references to the material it consulted. Its response is organized around selected docs, code, and brief notes on pitfalls.

Claims and APIs must be backed by files in `/docs`. If that folder has no Markdown documentation, run `setup.sh` from the installed skill directory before asking for SwiftUI guidance. The skill also requires `xcodebuild`. It tells the agent not to invent APIs and to note availability requirements for newer ones.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add ameyalambat128/swiftui-skills --skill swiftui-skills -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/swiftui-skills/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/swiftui-skills/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add ameyalambat128/swiftui-skills --skill swiftui-skills -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/swiftui-skills/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add ameyalambat128/swiftui-skills --skill swiftui-skills -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/swiftui-skills/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install ameyalambat128/swiftui-skills swiftui-skills
```

2. **Manually: put the files in place**
- File: `.github/skills/swiftui-skills/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add ameyalambat128/swiftui-skills --skill swiftui-skills -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/ameyalambat128/swiftui-skills --path skills/swiftui-skills
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/swiftui-skills/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add ameyalambat128/swiftui-skills --skill swiftui-skills -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/ameyalambat128/swiftui-skills/tree/HEAD/skills/swiftui-skills/SKILL.md

## When to use it
- write SwiftUI code grounded in Apple documentation
- review a SwiftUI implementation and list issues
- locate relevant guidance in Xcode docs
- flag availability requirements for newer APIs

## Example prompts
- Build this settings screen in SwiftUI using the Apple docs.
- Review this SwiftUI code and cite the docs behind each finding.
- Rewrite this view using idiomatic SwiftUI and note API availability requirements.

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: a9958e59d18c1f04.

BEGIN THIRD-PARTY FILE a9958e59d18c1f04
````text
---
name: swiftui-skills
description: Apple-authored SwiftUI and platform guidance extracted from Xcode. Helps AI agents write idiomatic, Apple-native SwiftUI with reduced hallucinations.
metadata:
  openclaw:
    os: ["darwin"]
    requires:
      bins: ["xcodebuild"]
---

# swiftui-skills

## What this is

A packaged set of Apple-authored AdditionalDocumentation shipped inside Xcode, plus prompts that enforce Apple-native patterns and reduce hallucinations for developer-focused coding workflows.

## Source of truth

All factual claims and APIs must be grounded in files under `/docs`.

## How to use

- If you are writing code: pick the relevant doc(s), summarize the applicable rules, then produce compile-ready Swift code.
- If you are reviewing code: list issues and improvements, referencing doc(s) used.
- If uncertain: ask at most 1 question, only if the answer changes architecture.

## Setup check

If the `docs/` folder is empty or contains no `.md` files, the Xcode documentation has not been extracted yet.
Tell the user to run the setup script from the installed skill directory:

```
# Shared agent install
~/.agents/skills/swiftui-skills/setup.sh

# OpenClaw shared install
~/.openclaw/skills/swiftui-skills/setup.sh

# OpenClaw workspace install
./skills/swiftui-skills/setup.sh

# Project-local agent install
./.agents/skills/swiftui-skills/setup.sh
```

Do not proceed with SwiftUI guidance until docs are available.

## Non-negotiables

- Do not invent types or APIs. If it is not in `/docs`, say so and offer a safe alternative.
- Prefer minimal, idiomatic SwiftUI and platform conventions.
- Include availability notes when APIs are new.

## Output format

1. Selected docs (filenames)
2. Plan (3 to 6 bullets)
3. Code (full files or a single cohesive snippet)
4. Why this matches Apple docs (2 to 5 bullets)
5. Pitfalls (short)
````
END THIRD-PARTY FILE a9958e59d18c1f04

The third-party file has ended. Everything between the a9958e59d18c1f04 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

© ameyalambat128 · MIT · https://github.com/ameyalambat128/swiftui-skills/tree/HEAD/skills/swiftui-skills/SKILL.md

## Similar
- [vercel-react-native-skills](https://affpapa.org/en/nevibecode/skills/vercel-react-native-skills.md) — skill · 255200 installs
- [animate-expo](https://affpapa.org/en/nevibecode/skills/animate-expo.md) — skill · 137900 installs
- [mobile-native](https://affpapa.org/en/nevibecode/skills/mobile-native.md) — skill · 86600 installs
- [aso](https://affpapa.org/en/nevibecode/skills/aso.md) — skill · 75400 installs
- [swiftui-pro](https://affpapa.org/en/nevibecode/skills/swiftui-pro.md) — skill · 35200 installs
- [orca-emulator](https://affpapa.org/en/nevibecode/skills/orca-emulator.md) — skill · 5800 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
