/swiftui-skills
Apple-authored SwiftUI and Apple platform guidance, packaged as skills for AI coding agents.
What is this?
SwiftUI is opinionated. Most AI agents do not know those opinions.
/swiftui-skills extracts internal Apple documentation shipped inside Xcode and turns it into reusable skills that help AI agents write idiomatic, Apple-native SwiftUI code.
- Uses Apple-written guidance from inside Xcode
- Reduces hallucinated or non-idiomatic SwiftUI
- Works with Claude Code, Cursor, Codex, OpenClaw, and similar tools
- Ships native plugin manifests for Claude Code, Cursor, and Codex
- Open source and local-first
Installation
Installation differs a bit by harness. If you use more than one, keep the
shared payload the same and choose the install surface that fits that tool.
Direct install (Recommended)
curl -fsSL https://swiftui-skills.ameyalambat.com/install | bash
The installer extracts local Xcode docs and installs the skill into detected runtimes, including OpenClaw shared installs at ~/.openclaw/skills/swiftui-skills.
You can also use the skills TUI:
npx skills add ameyalambat128/swiftui-skills
Choose the install scope in the skills TUI and keep Symlink (Recommended) selected.
Shared agent install
~/.agents/skills/swiftui-skills/setup.sh
Project-local agent install
./.agents/skills/swiftui-skills/setup.sh
Claude Code
This repo ships a native Claude Code plugin manifest at ./.claude-plugin/plugin.json.
For local plugin testing, symlink the repo into a Claude skills directory and start a new session:
ln -s /absolute/path/to/swiftui-skills ~/.claude/skills/swiftui-skills-plugin
Cursor
This repo ships a native Cursor plugin manifest at ./.cursor-plugin/plugin.json.
For local plugin testing, symlink the repo into Cursor's local plugins directory and reload the window:
mkdir -p ~/.cursor/plugins/local
ln -s /absolute/path/to/swiftui-skills ~/.cursor/plugins/local/swiftui-skills
Codex
This repo ships a native Codex plugin manifest at ./.codex-plugin/plugin.json.
Codex plugin packaging is included here so the repo is plugin-ready, but marketplace distribution is still optional. The direct skill install remains the simpler path today.
OpenClaw manual install
OpenClaw can load the same canonical skill package from any of these paths:
~/.agents/skills/swiftui-skills
~/.openclaw/skills/swiftui-skills
<workspace>/skills/swiftui-skills
For a shared OpenClaw install:
mkdir -p ~/.openclaw/skills
cp -R skills/swiftui-skills ~/.openclaw/skills/swiftui-skills
~/.openclaw/skills/swiftui-skills/setup.sh
For a workspace-local OpenClaw install:
mkdir -p ./skills
cp -R skills/swiftui-skills ./skills/swiftui-skills
./skills/swiftui-skills/setup.sh
After setup, start a new OpenClaw session or restart the gateway.
Requirements
Custom paths
If Xcode is installed in a non-standard location:
# Custom Xcode location
bash src/scripts/install.sh --xcode-path /Applications/Xcode-beta.app
# Direct path to docs folder
bash src/scripts/install.sh --docs-path /path/to/AdditionalDocumentation
How it works
- The installer extracts Apple documentation from your local Xcode install.
- The skill tells the agent how to use that documentation during generation and review.
- Your agent uses the extracted docs as source of truth when writing SwiftUI code.
No Apple documentation is redistributed. Everything is extracted locally during setup.
What "supports OpenClaw" means
This project is still a developer-focused SwiftUI skill.
OpenClaw support means:
- The canonical
SKILL.md is compatible with OpenClaw skill loading.
- The same skill package can live in OpenClaw-visible paths like
~/.agents/skills, ~/.openclaw/skills, or <workspace>/skills.
- OpenClaw users get the same local-docs workflow after running
setup.sh.
- OpenClaw users can verify the skill with native commands like
openclaw skills list.
This does not add a plugin, split the package, or change the product into an OpenClaw-only tool.
What's included
Documentation extracted from Xcode covers:
- SwiftUI patterns and composition
- App Intents and system integrations
- AlarmKit integration
- StoreKit updates
- WebKit + SwiftUI integration
- SwiftData inheritance
- Swift Concurrency updates
- Liquid Glass design (SwiftUI, UIKit, AppKit, WidgetKit)
- Widgets for visionOS
- Low-level Swift performance primitives (InlineArray, Span)
Usage
Claude Code and similar agents
The installer can place the skill directly into detected agent paths like ~/.claude/skills, ~/.codex/skills, and related runtimes.
The repo root also carries native plugin manifests for Claude Code, Cursor, and Codex, while the canonical skill payload now lives at skills/swiftui-skills/.
OpenClaw