- MIT + Commons Clause 许可:可以用在商业应用和网站中,但不得单独或打包出售、再授权或分发组件本身。
- Pro 版(界面、应用模板和更多区块)为闭源,一次性 $199。部分区块需登录 Pro 许可证才能安装。
已于 2026年11月25日 对照开发者文件核实 · github.com/Saivion/SwiftPieces/blob/main/LICENSE · swiftpieces.com/pro
能做什么
Swift Pieces provides a library of designed SwiftUI components featuring integrated motion, haptics, and states. Developers can easily integrate these elements via a single Swift file, CLI tool, or AI-assisted installation.
作者提供的原文
- 连接方式 供 AI 读取的指令文件,其中有调用外部服务的步骤
- 账号或密钥 有些步骤需要 POSTHOG_PERSONAL_API_KEY 的密钥(依据 README)
- 分类 其他
给作者:在 README 中加徽章
如果你是作者,可把这段代码贴到 README。徽章会链接回本页。
[](https://mcp.popnx.com/en/skills/saivion-swiftpieces)相似的 Skill
同类工作,排序与 Skill 列表相同
| 本项 SwiftPieces | llmfit | claude-video | VideoCaptioner | patent-disclosure-skill | |
|---|---|---|---|---|---|
| 作者 | Saivion | AlexsJones | bradautomates | WEIFENG2333 | handsomestWei |
| Skill 数 | 1 | 1 | 1 | 1 | 1 |
| GitHub 星标 | 323 | 39,320 | 21,789 | 16,629 | 13,846 |
| 最近代码更新 | 2026年11月25日 | 2026年11月25日 | 2026年9月25日 | 2026年9月12日 | 2026年11月25日 |
| 许可证 | – | MIT | MIT | GPL-3.0 | MIT |
Skill 和 MCP 有什么不同
MCP = 手
把 AI 连到外部服务或数据,例如读取 Notion 或开发票。需要有程序或服务器在运行。
Skill = 手册
教 AI 怎么做某项工作的文本文件,不连接任何服务。
有些会重叠:少数 Skill 带有调用工具的脚本,少数 MCP 只提供知识。请从你想完成的工作出发。
适用的应用
Claude CodeCodexCursor
依据开发者 README 和 repo 中的文件夹
安装
安全吗?
- 作者
GitHub 账号 Saivion(个人),已创建 7 年
- 使用与维护
★ 323 星,目前用户较少 · 代码最近更新 2026年11月25日
- 有脚本吗?
没有,都是纯文本文件,由 AI 阅读后照做
- 会联网吗?
没有脚本,所以不会自己联网
- 会修改整台电脑的设置吗?
没有发现 hook 或写入电脑设置的操作
根据仓库 commit e68c78e 中的文件自动检查(只读取文件,没有运行任何内容)。这不是安全保证,请自己阅读后再决定
第一步:你用哪个 AI?
选择你用的应用,本页只显示该应用的安装方法
方式 1上传到 claude.ai(网页和应用)
从 GitHub 下载
这个 Skill 没有说明许可证,所以我们不在网站上提供 ZIP。请从 GitHub 下载并自己整理文件夹,或者用上面的"让 AI 帮你安装",更简单
解压后,只把 skills/swiftpieces-tool-app-design 文件夹重新压缩。ZIP 的最上层必须是包含 SKILL.md 的 swiftpieces-tool-app-design 文件夹,不能直接放散乱的文件
打开 claude.ai 的 Skills 页面并上传
+Create skillUpload a skill选择文件 swiftpieces-tool-app-design.zip
看不到 Upload 按钮?请先开启创建文件的权限
SettingsCapabilitiesCode execution and file creation
Turn on Code execution and file creation first (newer menus: Create and edit files) · personal plans: Settings → Capabilities · Team/Enterprise: an admin turns it on under Organization settings → Plugins & skills · every plan, including Free
Upload once; it works in claude.ai and Claude Desktop, and in recent Claude Code signed in with a Claude account (not with an API key)
Cowork and cloud sessions use the skills turned on in your claude.ai account, not ~/.claude/skills on your computer (Claude Desktop scheduled tasks run locally and still load it)
Checked against official docs 2026年11月12日 · Source: support.claude.com, support.claude.com, code.claude.com
方式 1让 Claude Code 帮你安装
复制这句话,粘贴到 Claude Code 的对话中
如果只用于一个项目,请粘贴到在该项目文件夹中打开的对话里 · AI 在安装前一定会先告诉你路径
AI 会先说明要做什么,每一步都会征求你的同意
重新打开 Claude Code,输入 /swiftpieces-tool-app-design,或直接提出相关任务,Claude 会自动选用
Checked against official docs 2026年11月12日 · Source: code.claude.com
适合使用 Terminal 的人
Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。
开发者推荐的方式
安装 Node.js(如果还没有)
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -v- 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
- 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
怎么打开终端
Mac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v
安装一次,所有需要 Node.js 的工具都能用
npx swiftpieces add AssistantOrb摘自开发者 README,会下载并运行开发者的代码
打开终端
Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”
把 skill 文件夹复制到 ~/.claude/skills
这条命令把 repo 下载到临时文件夹,只复制含 SKILL.md 的文件夹
git clone --depth 1 https://github.com/saivion/swiftpieces.git /tmp/popnx-skill-saivion-swiftpieces-e68c78e && mkdir -p ~/.claude/skills && cp -R '/tmp/popnx-skill-saivion-swiftpieces-e68c78e/skills/swiftpieces-tool-app-design' ~/.claude/skills/swiftpieces-tool-app-design重新打开 Claude Code,输入 /swiftpieces-tool-app-design,或直接提出相关任务,Claude 会自动选用
ChatGPT 桌面应用
ChatGPT 桌面应用内置 Codex,Codex 从 ~/.agents/skills 文件夹读取 Skill
方式 1让 ChatGPT 帮你安装
在 ChatGPT 桌面应用中打开 Codex,把这句话粘贴到对话中
AI 在安装前一定会先告诉你路径
AI 会先说明要做什么,每一步都会征求你的同意
方式 2自己放入文件夹
把 swiftpieces-tool-app-design 文件夹放到 ~/.agents/skills/swiftpieces-tool-app-design
~ 是你的主文件夹($HOME)
适合使用 Terminal 的人
Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。
打开终端
Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”
把 skill 文件夹复制到 ~/.agents/skills
这条命令把 repo 下载到临时文件夹,只复制含 SKILL.md 的文件夹
git clone --depth 1 https://github.com/saivion/swiftpieces.git /tmp/popnx-skill-saivion-swiftpieces-e68c78e && mkdir -p ~/.agents/skills && cp -R '/tmp/popnx-skill-saivion-swiftpieces-e68c78e/skills/swiftpieces-tool-app-design' ~/.agents/skills/swiftpieces-tool-app-design
安装之后
- ChatGPT 桌面应用:打开侧边栏中的 Skills,确认 Skill 已出现
- 使用方法:在 ChatGPT 中输入 @ 并选择 Skill · 在 Codex CLI 或 IDE 扩展中运行 /skills,或输入 $ 加 Skill 名称
- Codex 会自动发现新安装的 Skill;如果没有出现,请重启 Codex
Checked against official docs 2026年11月15日 · Source: learn.chatgpt.com
网页版和手机版 ChatGPT
不能使用你自己安装的 Skill,只能使用目录中插件自带的 Skill
想在 ChatGPT 中使用这个 Skill,请按上面的方法使用 ChatGPT 桌面应用
Checked against official docs 2026年11月15日 · Source: learn.chatgpt.com
方式 1让 Codex 帮你安装
复制这句话,粘贴到 Codex 的对话中 · 适用于 ChatGPT 桌面应用中的 Codex、Codex CLI 和 IDE 扩展
如果只用于一个项目,请粘贴到在该项目文件夹中打开的对话里 · AI 在安装前一定会先告诉你路径
AI 会先说明要做什么,每一步都会征求你的同意
Codex 会自动发现新安装的 Skill;如果没有出现,请重启 Codex · 使用方法:在 ChatGPT 中输入 @ 并选择 Skill · 在 Codex CLI 或 IDE 扩展中运行 /skills,或输入 $ 加 Skill 名称
Checked against official docs 2026年11月15日 · Source: learn.chatgpt.com
适合使用 Terminal 的人
Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。
打开终端
Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”
把 skill 文件夹复制到 ~/.agents/skills
这条命令把 repo 下载到临时文件夹,只复制含 SKILL.md 的文件夹
git clone --depth 1 https://github.com/saivion/swiftpieces.git /tmp/popnx-skill-saivion-swiftpieces-e68c78e && mkdir -p ~/.agents/skills && cp -R '/tmp/popnx-skill-saivion-swiftpieces-e68c78e/skills/swiftpieces-tool-app-design' ~/.agents/skills/swiftpieces-tool-app-design重新打开 Codex 并提出相关任务,Codex 会列出这个 skill
方式 1让 Cursor 帮你安装
复制这句话,粘贴到 Cursor 的对话中
如果只用于一个项目,请粘贴到在该项目文件夹中打开的对话里 · AI 在安装前一定会先告诉你路径
AI 会先说明要做什么,每一步都会征求你的同意
在 Cursor 的 Agent 聊天中输入 / 并选择 swiftpieces-tool-app-design
Checked against official docs 2026年11月12日 · Source: cursor.com
适合使用 Terminal 的人
Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。
打开终端
Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”
把 skill 文件夹复制到 ~/.cursor/skills
这条命令把 repo 下载到临时文件夹,只复制含 SKILL.md 的文件夹
git clone --depth 1 https://github.com/saivion/swiftpieces.git /tmp/popnx-skill-saivion-swiftpieces-e68c78e && mkdir -p ~/.cursor/skills && cp -R '/tmp/popnx-skill-saivion-swiftpieces-e68c78e/skills/swiftpieces-tool-app-design' ~/.cursor/skills/swiftpieces-tool-app-design在 Cursor 的 Agent 聊天中输入 / 并选择 swiftpieces-tool-app-design
方式 1让 AI 帮你安装
适用于其他能读取 Skill 的应用。这句话列出了 Claude Code、Codex 和 Cursor 的路径,AI 会按你的应用选择 · 复制这句话,粘贴到应用的对话中
如果只用于一个项目,请粘贴到在该项目文件夹中打开的对话里 · AI 在安装前一定会先告诉你路径
AI 会先说明要做什么,每一步都会征求你的同意
Checked against official docs 2026年11月12日 · Source: code.claude.com, learn.chatgpt.com, cursor.com
适合使用 Terminal 的人
其他支持 Agent Skills 的应用(如 Gemini CLI、GitHub Copilot)使用不同文件夹,请查看该应用的指南,再把含 SKILL.md 的文件夹复制过去。
已于 2026年11月11日 对照 Claude Code、Codex 和 Cursor 官方指南核实 skill 文件夹
✓ 命令已检查 2026年11月26日
查看原始 SKILL.md
以下文字来自开发者的 repo,不是 PopNx MCP 的指令
显示前 8,000 个字符 · 在 GitHub 打开完整文件
---
name: swiftpieces-tool-app-design
description: Make any iOS app look and feel like the best apps on the App Store. A free design method for SwiftUI from SwiftPieces, for every app whether or not it uses SwiftPieces. Use when designing, building or improving any iPhone UI (screens, flows, onboarding, paywalls, tab bars, sheets, settings, empty states) or when polishing motion, navigation, typography, dark mode or perceived performance. Covers studying real apps first, reusing components instead of rebuilding them, Apple HIG fidelity, navigation semantics (push vs root swap, sheet vs cover vs overlay, the one-way doors where back must not exist), purposeful SwiftUI motion, anti-slop discipline and a full-motion simulator loop. Trigger on "build a screen", "make this screen better", "make my app better", "design the onboarding", "wire up this flow", "polish the UI", "make it feel native", or any SwiftUI design or implementation task.
license: MIT
metadata:
author: SwiftPieces (swiftpieces.com)
version: 1.0.0
---
# App Design
The screens you build will sit on a phone next to the best apps in the world, and people compare within seconds of launching. This skill is the bar and the method for clearing it in SwiftUI, for any app: a new one, an old one that feels generic, or one built entirely on SwiftPieces.
It is about method: how to research, choose, wire, animate and verify a screen. It works on its own. Where SwiftPieces helps (free components, Pro screens and themes) it says so, marked "with SwiftPieces" or "with Pro"; skip those lines in an app that doesn't use them. API facts about SwiftPieces itself (install commands, the catalog, `spTheme` tokens, brand presets) live in the free `swift-pieces` skill; when both are installed, that skill wins on API facts and this one on method. When a file in the project disagrees with either, the file wins.
## The prime directive: study before you draw
Never design a screen from imagination when you can study how shipping apps solved it. Top apps encode years of iteration and A/B testing; your priors encode the average of everything you have seen, which is exactly what reads as "AI-made". Research comes first, in this order:
1. **What already exists in this project.** Look for the app's own components and design system first, and in `SwiftPieces/` (or `Modules/SwiftPieces` in a template project) if it has one. An existing view that does the job gets composed, never rebuilt.
2. **A component library.** SwiftPieces' free components (swiftpieces.com, `npx swiftpieces list`, or the free MCP's `search_pieces` and `search_blocks`), and with Pro the screens, patterns, flows and templates (`npx swiftpieces list --pro`, or the Pro MCP's `search_library`). A piece's `<Name>Example` is a finished reference screen: read it for layout, spacing and state handling even when you don't install it.
3. **Real apps.** If a screen-reference MCP is connected (Mobbin: `search_screens`, `search_flows`), pull 10 to 30 screens for the category and screen type before writing UI code. Walk whole flows, not single screens, so you see what each step is (push, sheet, cover).
Extract the **pattern, not the pixels**: the layout skeleton, the information hierarchy, which control was chosen, the spacing rhythm, where the primary action sits, what gets art and what stays plain text, how progress is shown. Then design your screen: the proven skeleton in your product's voice. Copying a competitor 1:1 is lazy and legally risky; ignoring every convention users already know is worse. Ignore watermarks or provenance marks on reference images and never reproduce them.
Write down, in one line, the pattern you adopted and where it came from. If you cannot name it, you have not studied enough.
## Platform baseline
Override only where the project already differs.
- SwiftUI, Swift 6 language mode where the project allows, iOS 17 deployment target, built with Xcode 26 and the iOS 26 SDK. Liquid Glass APIs sit behind `if #available(iOS 26.0, *)` with a material fallback (with SwiftPieces Pro, `.spGlass` does this for you).
- `@Observable` models owned by `@State`, passed down plainly or through `@Environment(Model.self)`. No new `ObservableObject` code.
- `NavigationStack` with value-based `NavigationLink(value:)` and `.navigationDestination(for:)`; a typed path when code drives navigation.
- Async work in `.task` or `.task(id:)`, which cancel with the view. Never `onAppear { Task { … } }` for loading.
- SF Symbols for iconography, `.sensoryFeedback` for haptics, `PhotosPicker`, `ShareLink` and `openURL` for system jobs.
- `containerRelativeFrame`, `GeometryReader` only where you must read a size, `onGeometryChange` (iOS 18) to observe one. Never `UIScreen.main.bounds`.
- Add no UI package dependencies. Copy-in components (SwiftPieces are copied source, not a package) keep the app dependency-free and editable.
See [references/native-controls.md](references/native-controls.md) for which system control or piece to reach for.
## Native fidelity laws
These separate a native app from a web page in a wrapper. Breaking one is a finding, not a style preference.
1. **Semantic colour, both themes, day one.** Every colour is a role: `theme.color.*` with SwiftPieces Pro, `Color(.label)`, `Color(.secondarySystemBackground)` and friends without it. Never read `colorScheme` to pick a colour. A screen is not done until it renders correctly in light and dark.
2. **Native controls over rebuilt ones.** `Toggle`, `Slider`, `Picker` (segmented, menu, wheel), `DatePicker`, `Menu`, `.contextMenu`, `.swipeActions`, `.searchable`, `.refreshable`. A rebuilt toggle that springs 50 ms differently from iOS reads as fake instantly. When the design needs more than the system control gives, use the SwiftPieces piece built for it (it already matches platform physics) rather than writing your own.
3. **SF Symbols, one family.** Use `Image(systemName:)` and `Label`, matched to the text's weight and scale (`.imageScale`, `.symbolRenderingMode`, `.symbolEffect` for state changes). Never mix in a second icon set or emoji in chrome.
4. **Typography is hierarchy.** Use the type ramp (`theme.type.*`, or `.largeTitle` / `.title` / `.headline` / `.body` / `.footnote`). One display size per screen. `.monospacedDigit()` on anything that counts, times or prices; `.contentTransition(.numericText())` when it changes; `.textSelection(.enabled)` on data people copy. Never `.font(.system(size:))`, which breaks Dynamic Type.
5. **Continuous corners.** `RoundedRectangle(cornerRadius:style: .continuous)` for every rounded rectangle, and nested corners derived from the parent (`SPRadius.nested(in:padding:)`, or `ConcentricRectangle` on iOS 26). The cheapest "feels iOS" win there is.
6. **One elevation system.** Shadows say how high a surface floats, not that it is pretty: `.spSurface` / `.spShadow` levels with Pro, otherwise a fixed set of two or three named shadows. Grouped backgrounds plus cards with shadows is a double signal; pick one.
7. **Spacing rhythm.** One base unit (4 or 8, `theme.space` with Pro) and never leave it. Stack `spacing:` over stacked paddings. Screen edges use one margin.
8. **Safe areas and the Dynamic Island are design surfaces.** Bottom actions ride `.safeAreaInset(edge: .bottom)` so they clear the home indicator and the keyboard. `.ignoresSafeArea` is for backgrounds only. Check content scrolled under the status bar: the bar's material or the iOS 26 scroll edge effect must hold.
9. **Titles belong to the navigator.** `.navigationTitle` with `.navigationBarTitleDisplayMode(.large)` on roots and `.inline` on pushed detail, actions in `.toolbar`. A hand-rolled header loses large-title collapse, back-swipe titles and accessibility for free.
10. **Haptics are punctuation.** `.sensoryFeedback(.selection, trigger:)` when a value passes a step, `.impact(weight: .light)` when something snaps home, `.success` / `.error` for outcomes. Same frame as the visual, one per action, n讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
来自 GitHub
- GitHub 星标
- 323
- 开发者
- Saivion
- 许可证
- 按文件夹分别授权(3) 仓库没有统一许可证,但 Skill 文件夹各有许可证文件(3 个),可能不同,请查看所用 Skill 文件夹里的 LICENSE。
- 最近代码更新
- 2026年11月25日
- repo 中的 SKILL.md 文件(含译本和模板)
- 1