App clips

From moasq/nanowave · View interactive version

App clips is an AI agent skill from the GitHub repository moasq/nanowave. App Clips: lightweight instant experiences, URL/NFC/QR invocation, SKOverlay for full app promotion, 15MB size constraint. Use when creating an App Clip experience, handling invocation URLs, or promoting the full app. Triggers: App Clip, AppClip, SKOverlay, invocation URL, lightweight experience.

How to use this skill

Skill file

App Clips

APP CLIPS:

SETUP: Requires separate App Clip target (kind: "app_clip" in plan extensions array).

App Clips are a lightweight version of your app for quick, focused tasks.

INFO.PLIST (auto-configured on App Clip target in project.yml):

NSAppClip dict with NSAppClipRequestEphemeralUserNotification and NSAppClipRequestLocationConfirmation is set automatically. No manual configuration needed.

ASSOCIATED DOMAINS (auto-configured in project.yml entitlements):

appclips:{bundleID} and parent-application-identifiers are set automatically.

APP CLIP EXPERIENCE URL: Configure in App Store Connect. Users launch App Clip via NFC, QR code, Maps, etc.

APP CLIP INVOCATION (receive URL):

struct AppClipApp: App {

var body: some Scene {

WindowGroup {

ContentView()

.onContinueUserActivity(NSUserActivityTypeBrowsingWeb) { activity in

guard let url = activity.webpageURL else { return }

// Handle URL: extract parameters, show relevant content

}

}

}

}

SKOverlay (promote full app from within App Clip):

import StoreKit

@Environment(\.requestAppStoreOverlay) var requestOverlay

Button("Get Full App") {

requestOverlay(AppStoreOverlay.AppClipCompletion(appIdentifier: "YOUR_APP_ID"))

}

CONSTRAINTS:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.