Skip to content
Mobile
Skill

/add-component

Add a SwiftUI component from ShipSwift. Use when the user says "add component", "add a view", "add X view", "I need a chart", "add animation", or wants a specific UI element.

BOOST
From plugin
shipswift
3.2k3 skills
Install
$ npx -y skills add signerlabs/shipswift --skill add-component --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/add-component

Context preview

The summary Claude sees to decide when to auto-load this skill.

Add a SwiftUI component from ShipSwift. Use when the user says "add component", "add a view", "add X view", "I need a chart", "add animation", or wants a specific UI element.

SKILL.md

add-component.SKILL.md
name: add-component
description: >
  Add a SwiftUI component from ShipSwift. Use when the user says "add component",
  "add a view", "add X view", "I need a chart", "add animation", or wants a specific UI element.

Add Component from ShipSwift

Add production-ready SwiftUI components to your project from ShipSwift's local source library.

Workflow

1. **Identify the component**: Read `skills/catalog.md` to find the right component. Common mappings:

  • "shimmer" / "loading skeleton" → `SWAnimation/SWShimmer.swift`
  • "donut chart" / "pie chart" → `SWChart/SWDonutChart.swift`
  • "alert" / "popup" → `SWComponent/Feedback/SWAlert.swift`
  • "auth" / "login" → `SWModule/SWAuth/` (all files)
  • "camera" → `SWModule/SWCamera/` (all files)

2. **Read the source file**: Read the Swift file from `ShipSwift/SWPackage/<path>`. The file contains the complete implementation.

3. **Integrate into the project**:

  • Copy the file(s) into the user's project
  • Also copy `SWUtil/` if not already present
  • Adapt naming, colors, and data models to match the project
  • For `+iOS`/`+macOS` files, set the platform filter in Xcode Build Phases

4. **Verify**: Walk through any dependencies or setup steps needed.

Guidelines

  • Types use `SW` prefix (`SWDonutChart`, `SWTypewriter`).
  • View modifiers use `.sw` prefix (`.swShimmer()`, `.swGlowScan()`).
  • Chart components use a generic `CategoryType` pattern with `String` convenience initializer.
  • Internal helper types should be `private` with `SW` prefix.
  • Components in `SWAnimation/`, `SWChart/`, and `SWComponent/` are each self-contained (single file + SWUtil).
  • Modules in `SWModule/` are multi-file — copy the entire folder.
Read more
Ships withshipswift

AI-native SwiftUI component library — production-ready code that LLMs can use to build real apps. Quick Start · Components · Custom Dev — $5K, 4 weeks · Recipes

Get the whole plugin
Stats
3,235
Stars
185
Forks
Maintained
Maintenance
Swift
Language
MIT
License
1mo ago
Last commit
9mo ago
Created
21h ago
Added

Repo: signerlabs/shipswift

Other skills on shipswift.