Token导航 LogoToken导航

Agent Skill · 开发

app-clips(应用剪辑)

app-clips 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

app-clips 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有提醒项,按安装量在开发类的 21,746 个 Skill 里排第 1,544。

总安装 27,192周安装 1,064GitHub Stars 531下载 8,536核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:app-clips(应用剪辑)
来源仓库:https://github.com/dpearson2699/swift-ios-skills
仓库路径:skills/app-clips
安装命令:
npx skills add https://github.com/dpearson2699/swift-ios-skills --skill app-clips
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/dpearson2699/swift-ios-skills --skill app-clips

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

app-clips 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。

通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。当前功能聚焦于 App Clip 相关开发支持,适用于 iOS 26+ / Swift 6.3 项目。

来源仓库内路径:skills/app-clips

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/dpearson2699/swift-ios-skills --skill app-clip…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

app-clips 怎么安装?

在终端执行 npx skills add https://github.com/dpearson2699/swift-ios-skills --skill app-clips。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

app-clips 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

app-clips 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

app-clips 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

app-clips 用的人多吗?

公开数据是累计安装 27,192 次,近一周安装 1,064 次,下载 8,536 次,GitHub 531 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

app-clips 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
app-clips

应用剪辑 · 本页

27,192531需要联网未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

App Clips

Lightweight, instantly-available versions of your iOS app for in-the-moment experiences or demos. Targets iOS 26+ / Swift 6.3 unless noted.

Contents

App Clip Target Setup

An App Clip is a separate target in the same Xcode project as your full app:

  1. File → New → Target → App Clip — Xcode creates the target with the com.apple.developer.on-demand-install-capable entitlement and a Parent Application Identifiers entitlement linking back to the full app.
  2. The App Clip bundle ID must be a suffix of the full app's: com.example.MyApp.Clip.
  3. Xcode adds an Embed App Clip build phase to the full app target automatically.

Share code between targets

Use Swift packages or shared source files. Add files to both targets, or use the APPCLIP active compilation condition:

// In App Clip target Build Settings → Active Compilation Conditions: APPCLIP

#if !APPCLIP
// Full-app-only code (e.g., background tasks, App Intents)
#else
// App Clip specific code
#endif

Prefer local Swift packages for shared modules — add the package as a dependency of both targets.

Shared asset catalogs

Create a shared asset catalog included in both targets to avoid duplicating images and colors.

Invocation URL Handling

App Clips receive an NSUserActivity of type NSUserActivityTypeBrowsingWeb on launch. Handle it with onContinueUserActivity:

@main
struct DonutShopClip: App {
    var body: some Scene {
        WindowGroup {
            ContentView()
                .onContinueUserActivity(
                    NSUserActivityTypeBrowsingWeb
                ) { activity in
                    handleInvocation(activity)
                }
        }
    }

    private func handleInvocation(_ activity: NSUserActivity) {
        guard let url = activity.webpageURL,
              let components = URLComponents(url: url, resolvingAgainstBaseURL: true)
        else { return }

        // Extract path/query to determine context
        let locationID = components.queryItems?
            .first(where: { $0.name == "location" })?.value

        // Update UI for this location
    }
}

For UIKit scene-based apps, implement scene(_:willConnectTo:options:) for cold launch and scene(_:continue:) for warm launch.

Key rule: The full app must handle all invocation URLs identically — when a user installs the full app, it replaces the App Clip and receives all future invocations.

App Clip Experience Configuration

Configure experiences in App Store Connect after uploading a build containing the App Clip.

Default App Clip experience (required)

  • Provide: header image, subtitle (≤56 chars), call-to-action verb
  • App Store Connect generates a default App Clip link: https://appclip.apple.com/id?=<bundle_id>&key=value
  • Supports: QR codes, NFC tags, Messages, Spotlight, other apps

Demo App Clip link

  • Auto-generated by App Store Connect for demo versions of your app
  • Supports all invocations including physical (App Clip Codes, NFC, QR)
  • Allows larger binary size (up to 100 MB uncompressed)
  • Cannot contain URL parameters

Advanced App Clip experiences (optional)

  • Required for: Maps integration, location association, App Clip Codes, per-location card imagery
  • Each experience has its own invocation URL, header image, and metadata
  • URL prefix matching lets one registered URL cover many sub-paths
  • Use the App Store Connect API to manage large numbers of experiences programmatically

Associated domains

For custom URLs (not the default Apple-generated link), add entries to the Associated Domains entitlement and host an AASA file:

appclips:example.com

Size Limits

App Clip binaries must stay within strict uncompressed size limits (measured via App Thinning Size Report):

iOS VersionMaximum Uncompressed Size
iOS 15 and earlier10 MB
iOS 1615 MB
iOS 17+ (digital invocations only)100 MB
iOS 17+ (via demo link, all invocations)100 MB

The 100 MB limit on iOS 17+ for non-demo links requires: digital-only invocations, no physical invocation support (no App Clip Codes / NFC / QR), and the App Clip must not support iOS 16 or earlier.

Measure size: Archive the app → Distribute → Export as Ad Hoc/Development with App Thinning → check App Thinning Size Report.txt.

Use Background Assets to download additional content post-launch (e.g., game levels) if needed. App Clip downloads cannot use isEssential.

Invocation Methods

MethodRequirements
App Clip CodesAdvanced experience or demo link; NFC-integrated or scan-only
NFC tagsEncode invocation URL in NDEF payload
QR codesEncode invocation URL; works with default or advanced experience
Safari Smart BannersAssociate App Clip with website; add <meta> tag
MapsAdvanced experience with place association
MessagesShare invocation URL as text; limited preview with demo links
Siri SuggestionsLocation-based; requires advanced experience for location suggestions
Other appsiOS 17+; use Link Presentation or UIApplication.open(_:)

Safari Smart App Banner

Add this meta tag to your website to show the App Clip banner:

<meta name="apple-itunes-app"
      content="app-id=YOUR_APP_ID, app-clip-bundle-id=com.example.MyApp.Clip,
               app-clip-display=card">

Data Migration to Full App

When a user installs the full app, it replaces the App Clip. Use a shared App Group container to migrate data:

// In both targets: add App Groups capability with the same group ID

// App Clip — write data
func saveOrderHistory(_ orders: [Order]) throws {
    guard let containerURL = FileManager.default.containerURL(
        forSecurityApplicationGroupIdentifier: "group.com.example.myapp.shared"
    ) else { return }

    let data = try JSONEncoder().encode(orders)
    let fileURL = containerURL.appendingPathComponent("orders.json")
    try data.write(to: fileURL)
}

// Full app — read migrated data
func loadMigratedOrders() throws -> [Order] {
    guard let containerURL = FileManager.default.containerURL(
        forSecurityApplicationGroupIdentifier: "group.com.example.myapp.shared"
    ) else { return [] }

    let fileURL = containerURL.appendingPathComponent("orders.json")
    guard FileManager.default.fileExists(atPath: fileURL.path) else { return [] }
    let data = try Data(contentsOf: fileURL)
    return try JSONDecoder().decode([Order].self, from: data)
}

Shared UserDefaults

// Write (App Clip)
let shared = UserDefaults(suiteName: "group.com.example.myapp.shared")
shared?.set(userToken, forKey: "authToken")

// Read (Full app)
let shared = UserDefaults(suiteName: "group.com.example.myapp.shared")
let token = shared?.string(forKey: "authToken")

Keychain sharing

Starting iOS 15.4, App Clip keychain items are accessible to the corresponding full app via the parent-application-identifiers and associated-appclip-app-identifiers entitlements. Use distinct kSecAttrLabel values to distinguish App Clip vs. full app entries.

Sign in with Apple

Store the ASAuthorizationAppleIDCredential.user in the shared container so the full app can silently verify without re-prompting login.

SKOverlay for Full App Promotion

Display an overlay recommending the full app from within the App Clip:

SwiftUI

struct OrderCompleteView: View {
    @State private var showOverlay = false

    var body: some View {
        VStack {
            Text("Order placed!")
            Button("Get the full app") { showOverlay = true }
        }
        .appStoreOverlay(isPresented: $showOverlay) {
            SKOverlay.AppClipConfiguration(position: .bottom)
        }
    }
}

UIKit

func displayOverlay() {
    guard let scene = view.window?.windowScene else { return }

    let config = SKOverlay.AppClipConfiguration(position: .bottom)
    let overlay = SKOverlay(configuration: config)
    overlay.delegate = self
    overlay.present(in: scene)
}

SKOverlay.AppClipConfiguration automatically resolves to the parent app. Available iOS 14.0+.

Never block the user's task to force installation — show the overlay after task completion.

Location Confirmation

Use APActivationPayload to verify a user's physical location without requesting full location access:

import AppClip
import CoreLocation

func verifyLocation(from activity: NSUserActivity) {
    guard let payload = activity.appClipActivationPayload,
          let url = activity.webpageURL
    else { return }

    // Build the expected region (up to 500m radius)
    let center = CLLocationCoordinate2D(latitude: 37.334722, longitude: -122.008889)
    let region = CLCircularRegion(center: center, radius: 100, identifier: "store-42")

    payload.confirmAcquired(in: region) { inRegion, error in
        if let error = error as? APActivationPayloadError {
            switch error.code {
            case .doesNotMatch:
                // URL doesn't match registered App Clip URL
                break
            case .disallowed:
                // User denied location, or invocation wasn't NFC/visual code
                break
            @unknown default:
                break
            }
            return
        }

        if inRegion {
            // Confirmed — user is at the expected location
        } else {
            // User is not at expected location (e.g., NFC tag was moved)
        }
    }
}

Enable location confirmation in Info.plist:

<key>NSAppClip</key>
<dict>
    <key>NSAppClipRequestLocationConfirmation</key>
    <true/>
</dict>

This is lightweight — the system verifies location without granting your App Clip continuous access. The App Clip card shows a note that the clip can verify location. Available iOS 14.0+.

Lifecycle and Ephemeral Nature

  • No Home Screen icon — App Clips appear in the App Library and recent apps
  • Automatic removal — the system deletes the App Clip and its data after a period of inactivity (typically ~30 days, system-determined)
  • No persistent state guarantee — treat App Clip storage as ephemeral; migrate important data to the shared container or a server
  • Relaunching — returning to a previously launched App Clip from the App Library uses the last invocation URL; returning from the App Switcher launches without an invocation URL (restore saved state)
  • Notifications — App Clips can request ephemeral notification permission (up to 8 hours) via Info.plist; set NSAppClipRequestEphemeralUserNotification to true
  • Location access — requestWhenInUseAuthorization() only; resets daily at 4:00 AM

Capabilities and Limitations

Available to App Clips

SwiftUI, UIKit, Core Location (when-in-use), Sign in with Apple, Apple Pay, CloudKit (public database read-only, iOS 16+), Background Assets, StoreKit (SKOverlay), Keychain, App Groups, Push Notifications (ephemeral), Live Activities (iOS 16.1+)

Not available / no-op at runtime

App Intents, Background Tasks, CallKit, Contacts, CoreMotion, EventKit, HealthKit, HomeKit, MediaPlayer, Messages, NearbyInteraction, PhotoKit, SensorKit, Speech, SKAdNetwork, App Tracking Transparency

Additional restrictions

  • No background URL sessions
  • No background Bluetooth
  • No multiple scenes on iPad
  • No on-demand resources
  • No custom URL schemes
  • No in-app purchases (reserve for full app)
  • UIDevice.name and identifierForVendor return empty strings

Common Mistakes

Exceeding App Clip size limit

// ❌ DON'T: Include large frameworks or bundled assets
// Importing heavyweight frameworks like RealityKit or large ML models
// pushes the App Clip well over 10–15 MB.

// ✅ DO: Use Asset Catalog thinning, exclude unused architectures,
// strip debug symbols, and split shared code into lean Swift packages.
// Measure with App Thinning Size Report after every change.

Not testing invocation URLs locally

// ❌ DON'T: Only test App Clip with a direct Xcode launch
// This skips invocation URL handling and misses bugs.

// ✅ DO: Use the _XCAppClipURL environment variable in the scheme,
// or register a Local Experience in Settings → Developer → Local Experiences
// to test with realistic invocation URLs and App Clip cards.

Not handling the full app replacing the App Clip

// ❌ DON'T: Assume only the App Clip receives invocations
// When the user installs the full app, ALL invocations go to it.

// ✅ DO: Share invocation-handling code between both targets.
// The full app must handle every invocation URL the App Clip supports.
#if !APPCLIP
// Full app can additionally show richer features for the same URL
#endif

Storing critical data only in App Clip storage

// ❌ DON'T: Store important data in the App Clip's sandboxed container
let fileURL = documentsDirectory.appendingPathComponent("userData.json")
// This data is DELETED when the system removes the App Clip.

// ✅ DO: Write to the shared App Group container or sync to a server
guard let shared = FileManager.default.containerURL(
    forSecurityApplicationGroupIdentifier: "group.com.example.shared"
) else { return }
let fileURL = shared.appendingPathComponent("userData.json")

Missing associated domains configuration

// ❌ DON'T: Configure App Clip experiences in App Store Connect
// without setting up associated domains and the AASA file.
// Invocations from your website and advanced experiences will fail.

// ✅ DO: Add the Associated Domains entitlement with:
//   appclips:example.com
// AND host /.well-known/apple-app-site-association on your server:
// {
//   "appclips": {
//     "apps": ["TEAMID.com.example.MyApp.Clip"]
//   }
// }

Review Checklist

  • App Clip target bundle ID is a suffix of the full app's bundle ID
  • Parent Application Identifiers entitlement is set correctly
  • Shared code uses Swift packages or compilation conditions (APPCLIP)
  • onContinueUserActivity(NSUserActivityTypeBrowsingWeb) handles invocation URLs
  • Full app handles all invocation URLs the App Clip supports
  • App Thinning Size Report confirms binary is within size limits for target iOS
  • Associated Domains entitlement includes appclips:yourdomain.com (if using custom URLs)
  • AASA file hosted at /.well-known/apple-app-site-association (if using custom URLs)
  • Default App Clip experience configured in App Store Connect
  • Shared App Group container used for data the full app needs
  • SKOverlay / appStoreOverlay shown after task completion, never blocking
  • NSAppClipRequestLocationConfirmation set in Info.plist if using location verification
  • No reliance on background processing, restricted frameworks, or persistent local storage
  • Tested with Local Experiences (Settings → Developer) and _XCAppClipURL env var
  • Handles launch without invocation URL (App Switcher / notification re-entry)

References

平台分布

Codex

37.28%
按下载量换算3,182

Claude

28.95%
按下载量换算2,471

Cursor

18.26%
按下载量换算1,559

Gemini CLI

10.45%
按下载量换算892

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills