Update Swiftui APIs
AvdLee/SwiftUI-Agent-Skill
Scan Apple's SwiftUI documentation for deprecated APIs and update the SwiftUI Expert Skill with modern replacements.
Build and capture SwiftUI previews for visual analysis. An agent skill from Iron-Ham/XcodePreviews.
$ npx skills add Iron-Ham/XcodePreviews --skill preview-build -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Iron-Ham/XcodePreviews preview-build --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/Iron-Ham/XcodePreviews.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/preview .claude/skills/preview-build && rm -rf skills-srcUse ~/.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/
Install the "preview-build" agent skill from https://github.com/Iron-Ham/XcodePreviews/tree/main/.cursor/skills/preview into .claude/skills/preview-build/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "preview-build", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Iron-Ham/XcodePreviews/tree/main/.cursor/skills/previewType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Iron-Ham/XcodePreviews --skill preview-build -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Iron-Ham/XcodePreviews preview-build --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Iron-Ham/XcodePreviews.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.cursor/skills/preview .agents/skills/preview-build && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "preview-build" agent skill from https://github.com/Iron-Ham/XcodePreviews/tree/main/.cursor/skills/preview into .agents/skills/preview-build/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "preview-build", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Iron-Ham/XcodePreviews --skill preview-build -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Iron-Ham/XcodePreviews preview-build --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Iron-Ham/XcodePreviews.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.cursor/skills/preview .cursor/skills/preview-build && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "preview-build" agent skill from https://github.com/Iron-Ham/XcodePreviews/tree/main/.cursor/skills/preview into .cursor/skills/preview-build/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "preview-build", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Iron-Ham/XcodePreviews.git --path .cursor/skills/preview--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Iron-Ham/XcodePreviews --skill preview-build -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Iron-Ham/XcodePreviews preview-build --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Iron-Ham/XcodePreviews.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.cursor/skills/preview .gemini/skills/preview-build && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "preview-build" agent skill from https://github.com/Iron-Ham/XcodePreviews/tree/main/.cursor/skills/preview into .gemini/skills/preview-build/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "preview-build", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Iron-Ham/XcodePreviews preview-buildInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Iron-Ham/XcodePreviews --skill preview-build -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Iron-Ham/XcodePreviews.git skills-src && mkdir -p .github/skills && cp -r skills-src/.cursor/skills/preview .github/skills/preview-build && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "preview-build" agent skill from https://github.com/Iron-Ham/XcodePreviews/tree/main/.cursor/skills/preview into .github/skills/preview-build/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "preview-build", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Iron-Ham/XcodePreviews --skill preview-build -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Iron-Ham/XcodePreviews preview-build --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Iron-Ham/XcodePreviews.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.cursor/skills/preview .opencode/skills/preview-build && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "preview-build" agent skill from https://github.com/Iron-Ham/XcodePreviews/tree/main/.cursor/skills/preview into .opencode/skills/preview-build/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "preview-build", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
preview-buildBuild and capture SwiftUI previews for visual analysis. An agent skill from Iron-Ham/XcodePreviews.
Preview Build is an agent skill from Iron-Ham/XcodePreviews. Build and capture SwiftUI previews for visual analysis. Use when the user asks to preview a SwiftUI view, capture a simulator screenshot, or visually inspect iOS UI components. Supports Xcode projects, SPM packages, and standalone Swift files.
Its SKILL.md is about 780 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, Xcode and iOS. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit a44a29c. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Preview Build loads about 782 tokens when it runs. Until then it costs about 64 tokens; SKILL.md has 256 words of instructions outside code blocks.
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.
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.
The full file from Iron-Ham/XcodePreviews at commit a44a29c, republished under its MIT licence (© Iron-Ham). 256 words, ~782 tokens.
.claude/skills/preview-build/SKILL.md (or your agent's skills folder).Build SwiftUI views and capture screenshots of their rendered output for visual analysis.
Scripts are located at ${PREVIEW_BUILD_PATH:-$HOME/XcodePreviews}/scripts/
Compatibility: If
~/XcodePreviewsdoesn't exist, fall back to~/Claude-XcodePreviews(legacy name). ThePREVIEW_BUILD_PATHenvironment variable overrides both.
Auto-detects project type and uses the best approach:
"${PREVIEW_BUILD_PATH:-$HOME/XcodePreviews}"/scripts/preview \
<path-to-file.swift> \
--output /tmp/preview.png"${PREVIEW_BUILD_PATH:-$HOME/XcodePreviews}"/scripts/capture-simulator.sh \
--output /tmp/preview-capture.pngFast builds by injecting a minimal PreviewHost target (handled automatically by the unified script):
"${PREVIEW_BUILD_PATH:-$HOME/XcodePreviews}"/scripts/preview \
<path-to-file.swift> \
--project <path.xcodeproj> \
--output /tmp/preview.pngAuto-detected from Package.swift in parent directories:
"${PREVIEW_BUILD_PATH:-$HOME/XcodePreviews}"/scripts/preview \
<path-to-file.swift> \
--output /tmp/preview.pngBuild a standalone Swift file with system frameworks only:
"${PREVIEW_BUILD_PATH:-$HOME/XcodePreviews}"/scripts/preview \
<path-to-file.swift> \
--output /tmp/preview.pngWhen the user asks to preview a SwiftUI view:
Identify the target: Determine what needs to be previewed (Swift file, project scheme, or current simulator state)
Build and capture: Run the appropriate script
Read and analyze: Use the Read tool to view the captured PNG at /tmp/preview.png
Report findings:
| Option | Description |
|---|---|
--project <path> | Xcode project file |
--workspace <path> | Xcode workspace file |
--package <path> | SPM Package.swift path |
--module <name> | Target module (auto-detected) |
--simulator <name> | Simulator name (default: iPhone 17 Pro) |
--output <path> | Output screenshot path |
--verbose | Show detailed build output |
sim-manager.sh boot "iPhone 17 Pro"© Iron-Ham, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .cursor/skills/preview of Iron-Ham/XcodePreviews.
Open the folder on GitHubat commit a44a29c
Preview Build 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Preview Build this skillIron-Ham/XcodePreviews | 152 | — | ~782 | Automated safety check: Pass | MIT | |
| Update Swiftui APIsAvdLee/SwiftUI-Agent-Skill | 3.7k | — | ~1.2k | Automated safety check: Pass | MIT | |
| SwiftUI Design SkillWholiver/swiftui-design-skill | 213 | — | ~2.8k | Automated safety check: Pass | MIT | |
| Swiftui Iphone DuoFloWritesCode/fwc-swiftui-skills | 388 | — | ~3.9k | Automated safety check: Pass | MIT | |
| Audit Xcode Security Settingssuperagents-lab/xcode27-skills | 339 | — | ~4.6k | Automated safety check: Pass | None | |
| iOS Marketing CaptureParthJadhav/ios-marketing-capture | 262 | — | ~6.1k | Automated safety check: Pass | MIT |
AvdLee/SwiftUI-Agent-Skill
Scan Apple's SwiftUI documentation for deprecated APIs and update the SwiftUI Expert Skill with modern replacements.
Wholiver/swiftui-design-skill
Guides the agent to design distinctive SwiftUI interfaces for iOS and macOS, with six anti-generic rules, a design direction workflow and a five-dimension review.
FloWritesCode/fwc-swiftui-skills
Adapts and reviews SwiftUI apps for iPhone Duo (Xcode 27.1 / iOS 27.1 SDK) and continuously changing window sizes.
superagents-lab/xcode27-skills
Audit and enable security-oriented Xcode build settings. An agent skill from superagents-lab/xcode27-skills.
ParthJadhav/ios-marketing-capture
A skill your agent uses when the user wants to automate capture of marketing screenshots for a SwiftUI iOS app across multiple locales, devices, or appearances.
samuelhe52/AniShelf
Create and maintain curated AniShelf docs-ai/ records for substantial features and non-trivial, decision-shaping fixes (numbered entries with 000-plan.md before implementation and 001-action.md…
Iron-Ham/XcodePreviews
Build and capture SwiftUI previews for visual analysis in Codex.
Categories
Build and capture SwiftUI previews for visual analysis. An agent skill from Iron-Ham/XcodePreviews. Preview Build is an agent skill from Iron-Ham/XcodePreviews. Build and capture SwiftUI previews for visual analysis.
Preview Build fits situations like: the user asks to preview a SwiftUI view; capture a simulator screenshot; visually inspect iOS UI components.
Run `npx skills add Iron-Ham/XcodePreviews --skill preview-build -a claude-code`. Or copy the skill folder (.cursor/skills/preview in Iron-Ham/XcodePreviews) into .claude/skills/preview-build in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Iron-Ham/XcodePreviews --skill preview-build -a codex`. Or copy the skill folder (.cursor/skills/preview in Iron-Ham/XcodePreviews) into .agents/skills/preview-build in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Iron-Ham/XcodePreviews --skill preview-build -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/preview-build, .gemini/skills/preview-build, .github/skills/preview-build and .opencode/skills/preview-build in your project.
SKILL.md names no scripts, command-line tools or credentials: Preview Build is instructions for the agent only.
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.
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.
Preview Build is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 782 tokens (SKILL.md is roughly 3.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Preview Build: Update Swiftui APIs (AvdLee/SwiftUI-Agent-Skill, 3.7k stars), SwiftUI Design Skill (Wholiver/swiftui-design-skill, 213 stars), Swiftui Iphone Duo (FloWritesCode/fwc-swiftui-skills, 388 stars) and Audit Xcode Security Settings (superagents-lab/xcode27-skills, 339 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Iron-Ham (a GitHub user) maintains it in Iron-Ham/XcodePreviews, which has 152 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on July 6, 2026.
Source: Iron-Ham/XcodePreviews on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.