App clips

From moasq/nanowave · View interactive version

App clips is an AI agent skill from the GitHub repository moasq/nanowave. App Clip implementation with separate lightweight target, associated domains, NSUserActivity URL handling, SKOverlay full-app promotion, and size/API constraints. Use when adding an App Clip experience to an iOS app.

How to use this skill

Skill file

App Clips

Overview

App Clips are lightweight versions of an app for quick, focused tasks. Users launch them via NFC tags, QR codes, Maps, Safari banners, or Messages links — no App Store install required.

Setup

Requires a separate App Clip target configured as kind: "app_clip" in the plan extensions array.

Automatic Configuration

URL Handling

Receive the invocation URL via NSUserActivity:

struct AppClipApp: App {
    var body: some Scene {
        WindowGroup {
            ContentView()
                .onContinueUserActivity(NSUserActivityTypeBrowsingWeb) { activity in
                    guard let url = activity.webpageURL else { return }
                    // Extract parameters from URL to show relevant content
                }
        }
    }
}

Full App Promotion

Use SKOverlay to prompt users to download the full app:

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.