preview-build — SwiftUI preview-build, XcodePreviews, community, SwiftUI, ide skills, construcción automatizada, captura de vista previa, habilidad de agente de IA, preview-build AI agent skill, preview-build for Claude Code

v1.0.0

Acerca de este Skill

Perfect for iOS Development Agents needing automated SwiftUI view previews and screenshot analysis. La habilidad de construcción de vista previa de Xcode es una capacidad para automatizar la construcción y captura de vistas previas de SwiftUI

Características

Automatizar la construcción y captura de vistas previas de SwiftUI
Soporta proyectos de Xcode y paquetes de Swift
Puede personalizar la ruta de salida

# Core Topics

Iron-Ham Iron-Ham
[134]
[4]
Updated: 4/19/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 10/11

This page remains useful for operators, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution Quality floor passed for review
Review Score
10/11
Quality Score
64
Canonical Locale
en
Detected Body Locale
en

Perfect for iOS Development Agents needing automated SwiftUI view previews and screenshot analysis. La habilidad de construcción de vista previa de Xcode es una capacidad para automatizar la construcción y captura de vistas previas de SwiftUI

¿Por qué usar esta habilidad?

Empowers agents to streamline iOS development by automating SwiftUI view previews, capturing screenshots, and analyzing visual elements using Xcode build scripts and Swift Package Manager (SPM), with support for Xcode projects, SPM packages, and standalone Swift files.

Mejor para

Perfect for iOS Development Agents needing automated SwiftUI view previews and screenshot analysis.

Casos de uso accionables for preview-build

Automating SwiftUI view previews for visual analysis
Capturing and analyzing screenshots of rendered views
Debugging iOS app layouts and visual elements

! Seguridad y limitaciones

  • Requires Xcode installation and configuration
  • Limited to macOS environments
  • Dependent on simulator availability and state

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

After The Review

Decide The Next Action Before You Keep Reading Repository Material

Killer-Skills should not stop at opening repository instructions. It should help you decide whether to install this skill, when to cross-check against trusted collections, and when to move into workflow rollout.

Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is preview-build?

Perfect for iOS Development Agents needing automated SwiftUI view previews and screenshot analysis. La habilidad de construcción de vista previa de Xcode es una capacidad para automatizar la construcción y captura de vistas previas de SwiftUI

How do I install preview-build?

Run the command: npx killer-skills add Iron-Ham/XcodePreviews. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for preview-build?

Key use cases include: Automating SwiftUI view previews for visual analysis, Capturing and analyzing screenshots of rendered views, Debugging iOS app layouts and visual elements.

Which IDEs are compatible with preview-build?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for preview-build?

Requires Xcode installation and configuration. Limited to macOS environments. Dependent on simulator availability and state.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add Iron-Ham/XcodePreviews. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use preview-build immediately in the current project.

! Reference-Only Mode

This page remains useful for installation and reference, but Killer-Skills no longer treats it as a primary indexable landing page. Read the review above before relying on the upstream repository instructions.

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

preview-build

Automatice la construcción y captura de vistas previas de SwiftUI con la habilidad de construcción de vista previa de Xcode

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

Xcode Preview Capture Skill

Build SwiftUI views and capture screenshots of their rendered output for visual analysis.

Installation Path

Scripts are located at ${PREVIEW_BUILD_PATH:-$HOME/XcodePreviews}/scripts/

Compatibility: If ~/XcodePreviews doesn't exist, fall back to ~/Claude-XcodePreviews (legacy name). The PREVIEW_BUILD_PATH environment variable overrides both.

Available Commands

Auto-detects project type and uses the best approach:

bash
1"${PREVIEW_BUILD_PATH:-$HOME/XcodePreviews}"/scripts/preview \ 2 <path-to-file.swift> \ 3 --output /tmp/preview.png

Quick Capture (Current Simulator)

bash
1"${PREVIEW_BUILD_PATH:-$HOME/XcodePreviews}"/scripts/capture-simulator.sh \ 2 --output /tmp/preview-capture.png

Xcode Project with #Preview

Fast builds by injecting a minimal PreviewHost target (handled automatically by the unified script):

bash
1"${PREVIEW_BUILD_PATH:-$HOME/XcodePreviews}"/scripts/preview \ 2 <path-to-file.swift> \ 3 --project <path.xcodeproj> \ 4 --output /tmp/preview.png

SPM Package Preview

Auto-detected from Package.swift in parent directories:

bash
1"${PREVIEW_BUILD_PATH:-$HOME/XcodePreviews}"/scripts/preview \ 2 <path-to-file.swift> \ 3 --output /tmp/preview.png

Standalone Swift File

Build a standalone Swift file with system frameworks only:

bash
1"${PREVIEW_BUILD_PATH:-$HOME/XcodePreviews}"/scripts/preview \ 2 <path-to-file.swift> \ 3 --output /tmp/preview.png

Workflow

When the user asks to preview a SwiftUI view:

  1. Identify the target: Determine what needs to be previewed (Swift file, project scheme, or current simulator state)

  2. Build and capture: Run the appropriate script

  3. Read and analyze: Use the Read tool to view the captured PNG at /tmp/preview.png

  4. Report findings:

    • Layout: Structure and arrangement
    • Visual elements: Buttons, text, images
    • Styling: Colors, fonts, spacing
    • Issues: Alignment, overflow, accessibility
    • Suggestions: Improvements

Parameters

OptionDescription
--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
--verboseShow detailed build output

Error Handling

  • No simulator booted: Run sim-manager.sh boot "iPhone 17 Pro"
  • Build failure: Show error, suggest fixes, offer to retry
  • Resource bundle crash: The dynamic script auto-includes Tuist and common bundle patterns
  • Missing imports: Check if the target module needs to be added to imports

Habilidades relacionadas

Looking for an alternative to preview-build or another community skill for your workflow? Explore these related open-source skills.

Ver todo

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

333.8k
0
Inteligencia Artificial

widget-generator

Logo of f
f

Generar complementos de widgets personalizables para el sistema de feeds de prompts.chat

149.6k
0
Inteligencia Artificial

flags

Logo of vercel
vercel

El Marco de React

138.4k
0
Navegador

pr-review

Logo of pytorch
pytorch

Tensores y redes neuronales dinámicas en Python con fuerte aceleración de GPU

98.6k
0
Desarrollador