Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问许可证需确认审计通过

ios-swiftiOS Swift 搜索

Agent Skill

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

总安装

392

周安装

16

GitHub Stars

4

下载量

125
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/alphaonedev/openclaw-graph --skill ios-swift

简介

该技能用于协助 iOS Swift 开发,涵盖 UIKit、SwiftUI 基础及 Xcode 项目管理。

  • 适用于生成 iOS UI 组件代码、处理异步操作或调试 Swift 编译问题等场景。
  • 通过 GitHub 仓库安装,可在 Codex、Claude、Cursor、Gemini CLI 中调用。
  • 使用前需确认是否涉及文件读写、命令执行或网络访问权限。
  • 建议结合原始 README 核对具体功能边界和适用条件。

SKILL.md

ios-swift

Purpose

This skill equips the AI to assist with Swift-based iOS development, focusing on UIKit and SwiftUI fundamentals, concurrency patterns, and Xcode project management for efficient app building.

When to Use

  • When generating code for iOS UI components, such as creating views in UIKit or SwiftUI.
  • For handling asynchronous operations in iOS apps, like network requests or timers.
  • When structuring or modifying Xcode projects, including targets and schemes for multi-app configurations.
  • In debugging scenarios involving Swift errors or Xcode build issues.

Key Capabilities

  • Generate UIKit code for basic views: e.g., creating a UIViewController subclass with lifecycle methods.
  • Build SwiftUI interfaces: e.g., defining structs that conform to the View protocol for declarative layouts.
  • Implement Swift concurrency: using async/await for tasks like API calls, ensuring thread safety.
  • Manage Xcode structures: defining targets for app extensions, schemes for build configurations, and handling project files like.xcodeproj.

Usage Patterns

  • Start by importing necessary frameworks: always begin Swift files with import UIKit or import SwiftUI.
  • For concurrency, wrap blocking operations in async functions: define a function as func fetchData() async -> Data {...} and call it via Task {await fetchData()}.
  • When working with Xcode, reference project files directly: use paths like ./MyApp.xcodeproj and specify targets in commands.
  • Integrate patterns sequentially: first set up a project structure, then add UI elements, and finally handle concurrency to avoid deadlocks.

Common Commands/API

  • Xcode CLI: Use xcodebuild -workspace MyWorkspace.xcworkspace -scheme MyScheme -configuration Debug build to compile a project; add -sdk iphonesimulator for simulator testing.
  • SwiftUI API: Create a basic view with struct MyView: View {var body: some View {Text("Hello").padding()}}; render it in an app entry point.
  • UIKit API: Initialize a view controller like let vc = UIViewController(); vc.view.backgroundColor =.white; present(vc, animated: true).
  • Code snippet for concurrency: func loadImage() async throws -> UIImage {let data = try await URLSession.shared.data(from: URL(string: "https://example.com/image")!) return UIImage(data: data.0)?? UIImage()}
  • Config formats: Edit Xcode schemes via the GUI or.pbxproj files; for example, add a build setting in the scheme editor like "GCC_PREPROCESSOR_DEFINITIONS = DEBUG=1".

Integration Notes

  • Require Xcode installation; check for it via xcode-select -p and set $XCODE_PATH environment variable if custom (e.g., export XCODE_PATH=/Applications/Xcode.app).
  • For Apple services like App Store Connect, use $APPLE_API_KEY for authentication in scripts: e.g., pass it to tools via altool --upload-app -f myapp.ipa -u user@email.com -p $APPLE_API_KEY.
  • Integrate with other tools: Use Swift Package Manager by adding dependencies in Package.swift, like .package(url: "https://github.com/apple/swift-algorithms", from: "1.0.0").
  • For testing, link to iOS simulators: Specify device in commands like xcodebuild test -scheme MyScheme -destination 'platform=iOS Simulator,name=iPhone 14'.

Error Handling

  • In Swift, use try-catch for throwable errors: do {let data = try await fetchData()} catch let error {print("Error: \(error.localizedDescription)")} to handle async failures.
  • For Xcode builds, parse output from xcodebuild for common errors: e.g., if "Code Sign error: No matching provisioning profile found", ensure profiles are set via xcodebuild -exportArchive -archivePath build/MyApp.xcarchive -exportPath output -exportOptionsPlist ExportOptions.plist.
  • Check concurrency errors: Use Task with cancellation, like let task = Task {try await function()}; task.cancel() to avoid leaks.
  • Debug UI issues: In UIKit, override viewDidLoad to log errors; in SwiftUI, use .onAppear {print("View appeared")} to trace lifecycle problems.

Concrete Usage Examples

  1. Create a simple SwiftUI view for an iOS app: First, generate a new Swift file with struct ContentView: View {var body: some View {VStack {Text("Welcome").font(.title) Button("Tap") {print("Tapped")}}}}; then integrate it into an Xcode project by adding it to the main App struct and building with xcodebuild -scheme MyApp build.
  2. Set up a new target in an existing Xcode project: Use the Xcode GUI to add a target (e.g., App Extension), or script it by editing.xcodeproj/project.pbxproj to add a new PBXNativeTarget entry; then build specifically for that target with xcodebuild -target MyExtensionTarget -configuration Release.

Graph Relationships

  • Related to cluster: mobile (e.g., shares iOS ecosystem knowledge).
  • Links to: mobile-android (for cross-platform mobile development), general-swift (for broader Swift language features), ios-testing (for XCTest integration).

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33%
按下载量换算41

Claude

29.32%
按下载量换算37

Cursor

18.02%
按下载量换算23

Gemini CLI

9.7%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills