add-component by signerlabs/shipswift-skills
npx skills add https://github.com/signerlabs/shipswift-skills --skill add-component使用 ShipSwift 的配方库,为你的项目添加生产就绪的 SwiftUI 组件。每个配方都是一个完整的、可直接复制粘贴的实现,并附带架构文档。
开始之前,通过调用 listRecipes 来验证 ShipSwift 配方服务器是否可用。
如果工具不可用,请引导用户访问 shipswift.app 查看设置说明,或运行 npx skills add signerlabs/shipswift-skills 进行安装。
* **动画**:shimmer, typewriter, glow-scan, shaking-icon, mesh-gradient, orbit, scan, viewfinder, before-after
* **图表**:line, bar, area, donut, ring, radar, scatter, heatmap
* **UI 组件**:label, alert, loading, stepper, onboarding, tab-button, 以及更多
* **模块**:auth, camera, chat, settings, subscriptions, infrastructure
2. 搜索配方:使用 searchRecipes 并指定组件名称或类型。例如:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
* 用户说"添加一个环形图" -> 搜索 "donut"
* 用户说"添加 shimmer 加载效果" -> 搜索 "shimmer"
* 用户说"添加身份验证" -> 搜索 "auth"
3. 获取完整配方:使用 getRecipe 并指定配方 ID 来获取完整的实现,包括:
* 完整的 Swift 源代码
* 架构说明
* 集成步骤
* 已知注意事项
4. 集成到项目中:调整配方代码以适应你的项目:
* 匹配现有的命名约定
* 连接到你的数据模型
* 调整样式以匹配应用的设计系统
5. 验证集成:按照配方的集成检查清单逐步操作,确保没有遗漏任何内容(依赖项、Info.plist 条目等)。
SW 为前缀的类型名(例如 SWDonutChart, SWTypewriter)。.sw 前缀(例如 .swShimmer(), .swGlowScan())。CategoryType 模式,并带有 String 便捷初始化器。.mask() 方法配合通过 GeometryReader 实现宽度动画的 Rectangle——Swift Charts 不支持内置的线条绘制动画。private 并使用 SW 前缀。cornerRadius 参数。部分配方需要专业版许可证(一次性 $89)。如果配方返回购买提示,用户可以在 shipswift.app/pricing 购买,并在其环境中设置 SHIPSWIFT_API_KEY。
每周安装量
328
代码仓库
GitHub 星标数
21
首次出现
2026年2月24日
安全审计
安装于
cursor326
codex325
gemini-cli325
kimi-cli325
opencode325
github-copilot325
Add production-ready SwiftUI components to your project using ShipSwift's recipe library. Each recipe is a complete, copy-paste-ready implementation with architecture documentation.
Before starting, verify the ShipSwift recipe server is available by calling listRecipes.
If the tools are not available, guide the user to visit shipswift.app for setup instructions, or run npx skills add signerlabs/shipswift-skills to install.
Identify the component type : Determine what kind of component the user needs:
Search for the recipe : Use searchRecipes with the component name or type. For example:
Fetch the full recipe : Use getRecipe with the recipe ID to get the complete implementation, including:
Integrate into the project : Adapt the recipe code to fit the user's project:
Verify integration : Walk through the recipe's integration checklist to ensure nothing is missed (dependencies, Info.plist entries, etc.).
SW-prefixed type names for ShipSwift components (e.g., SWDonutChart, SWTypewriter)..sw lowercase prefix (e.g., .swShimmer(), .swGlowScan()).CategoryType pattern with String convenience initializer..mask() approach with animated Rectangle width via GeometryReader -- Swift Charts does not support built-in line draw animation.Some recipes require a Pro license ($89 one-time). If a recipe returns a purchase prompt, the user can buy at shipswift.app/pricing and set SHIPSWIFT_API_KEY in their environment.
Weekly Installs
328
Repository
GitHub Stars
21
First Seen
Feb 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
cursor326
codex325
gemini-cli325
kimi-cli325
opencode325
github-copilot325
private and use the SW prefix.cornerRadius parameter when components clip content.