site-to-ios-app Skill
Suede Labs 工作流,把网站、PWA、仪表盘或市场转化为 iOS 应用。当用户已有上线站点或 Web 应用,要求上架 App Store、包一层壳、发布 iOS 版本或把 PWA 转为原生时使用。涵盖 URL 审计、壳方案与原生方案策略、App Store 4.2 壳应用风险、原生价值要求、截图、元数据、隐私问答和发布门禁。不适用于:从零构建无现成站点的原生 iOS 应用(Suede Labs 私有配套,不在本包内:ios-swiftui-product);修复或发布已有的 Capacitor 壳应用(Suede Labs 私有
安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。
技能指令原文(SKILL.md)
Suede AI Site to iOS App Skills
Read the worked delivery contract for a concrete
input, expected artifact, failure response and validation example.
Compatibility
Agent with web/browser and repo access; macOS with the required Xcode/SDK and project toolchain for iOS builds; signing/account access only for separately authorized release actions.
Gate policy
Every check and verdict here is advice to the user, not a control on the agent.
Run the checks, report results honestly, and complete what the user asked. A
failed gate changes the report, never the work. The one exception: a finding
that risks data loss, credential exposure, a legal or rights violation, a
payment mistake, or irreversible public damage. Pause, name the risk, give the
options, and let the user choose.
Principle
A site becomes an iOS app when the app adds native value, behaves like iOS, and
the store listing describes what the build actually does. A web page in a frame
is a Guideline 4.2 rejection waiting to happen.
Start here
- Read
references/site-to-ios-runbook.mdbefore scaffolding or touching an
existing wrapper.
- Read
references/app-store-requirements.mdand re-check each dated item
against Apple's live pages. Record what you checked and when in the plan.
- If a URL is reachable, write
SITE_TO_IOS_AUDIT.mdfrom live evidence:
URL checked and date, route map with auth needs, iPhone-width behavior, PWA
signals, legal/support/account-deletion links, payment and sensitive flows,
auth and session behavior, performance risks, native value opportunities,
and the 4.2 verdict.
- Write
SITE_TO_IOS_PLAN.md: chosen strategy and why, native value to ship
before release, build commands, bundle ID and signing notes, QA matrix,
store asset and privacy work, blockers, and the release gate.
references/worked-example.md shows a full audit excerpt, plan excerpt, and
the verdict message. Read it when you need the expected depth.
Strategy
Pick one route and write down why:
- Capacitor remote shell: the live site stays the product; web deploys
change app behavior.
- Capacitor bundled shell: static or SPA assets ship in the binary; changes
need a new App Store build unless backed by live APIs.
- Native SwiftUI shell with WebView: native navigation, settings, auth,
push, share, error, and account screens around a site view.
- Full native rebuild: the site is mostly content, its mobile UX is weak,
or wrapper risk is high.
App Store 4.2 gate
Halt when the app would be a bookmark, content mirror, or unmodified website.
Name the exact 4.2 exposure from the audit, offer the options (add native value
from the list below, rebuild natively, ship as a web app, or submit with the
rejection risk on record), and wait for the user's pick. Native value that
counts:
- iOS-native onboarding, empty states, errors, offline, and retry.
- Native settings with support, privacy, terms, account deletion, restore, and
notification controls where they apply.
- Universal links or deep links that work from a cold start.
- Share sheet, widgets, push, camera/media/file pickers, Wallet, StoreKit, or
other native capabilities, only where they serve the product.
- Safe-area, keyboard, navigation, dark/light mode, and Dynamic Type handling.
Push, a native settings screen, and working universal links together are the
smallest bundle that reliably reads as an app rather than a bookmark.
Kids and family apps
If the app is for children (a StoryBeam-style reading or story app, a beginner
lesson app) or lands in the Kids Category, the plan must hold to these before
anything else:
- Collect no personal data from children. No accounts for kids, no free-text
fields that could capture names or locations, no photos, voice, or contact
uploads, no precise location.
- No third-party analytics or advertising SDKs in a Kids Category app, and a
parental gate in front of external links, purchases, and settings.
- Content stays age-appropriate for the declared age band, including
AI-generated stories, images, and audio. Generated output needs a review or
filtering step before a child sees it.
- Answer the age rating questionnaire for the real content and features.
Details and sources are in references/app-store-requirements.md. A rule
conflict here is an extreme-risk finding: pause and put it to the user.
Conversion flow
- Audit the URL: responsive behavior, PWA assets, auth, payments, privacy,
support, route depth, mobile performance.
- Pick the strategy and write
SITE_TO_IOS_PLAN.md. - Scaffold or adapt the project with the repo's package manager and iOS
conventions.
- Configure bundle ID, display name, icon, launch screen, associated domains,
Info.plist usage strings, privacy manifest, and entitlements.
- Build native value and failure states before visual polish.
- For Capacitor shells, run the web build, then
cap sync ios. - Test on a named simulator or device: first launch, auth, deep links, tabs,
keyboard, payments, offline, backgrounding, account flows.
- Produce screenshots, metadata, privacy answers, age rating answers, and
review notes. Hand listing copy, keywords, and screenshot sequencing to
suede-aso so the listing is built for search, not just for review.
- Run the release gate. Submit only when the user explicitly delegates public
release and confirms the app, bundle ID, version, build, and account.
Completion bar
Do not call the app release-ready until:
- the project builds with the current required Xcode and SDK on a named target
(`xcodebuild -scheme -destination 'generic/platform=iOS Simulator'
build` exits 0, or a named device or CI run);
- every native plugin, permission string, and entitlement maps to real
behavior;
- the privacy manifest covers the app and every bundled SDK that needs one;
- the web route or bundle strategy is written down;
- the 4.2 risk has a mitigation;
- screenshots and metadata match shipped features;
- privacy answers match the real SDKs, cookies, analytics, and account flows;
- no secrets, signing material, or private account identifiers are committed
(git status --short clean; git grep -nE 'PRIVATE KEY|AuthKey_' empty).
Routing
- Android version of the same product →
android-app-factory, then
suede-play-release for delivery.
- App Store listing, keywords, screenshots, and ratings strategy →
suede-aso.
- Constants that must match across iOS, Android, and web →
suede-parity-contract.
- A native iOS app with no website behind it, or repair of an existing
Capacitor shell, is outside this pack (private Suede AI companions, not in
this pack).