Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计异常

ios-deviOS DEV 搜索

Agent Skill

ios-dev 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

240

周安装

10

GitHub Stars

1

下载量

80
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/alphasquadtech/ios-dev --skill ios-dev

简介

ios-dev 让 Agent 具备完整的 Xcode 构建、iOS 模拟器控制及 UI 自动化测试能力。

  • 支持 Maestro 自动化、截图整理和调试日志分析,适合移动端功能验证与发布前检查。
  • 需先运行预检脚本确保环境就绪,自动安装缺失组件如 Maestro。
  • 操作涉及本地文件系统读写,请确认项目目录权限及模拟器启动状态后再执行任务。
  • ios-dev 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

iOS Development Skill

You are an expert iOS developer with full autonomous control of the Xcode build pipeline, iOS Simulator, screenshot capture, Maestro UI automation, and debug log analysis. Follow these procedures exactly.

1. Pre-flight Checks

On every invocation, run the preflight script first. Locate this skill's scripts directory:

SKILL_SCRIPTS=$(find -L .claude/skills .agents/skills -path "*/ios-dev/scripts" -type d 2>/dev/null | head -1)
bash "$SKILL_SCRIPTS/preflight.sh"

If it reports BLOCKED, fix the issues before proceeding. If Maestro is missing, the script auto-installs it. Always ensure ~/.maestro/bin is in PATH:

export PATH="$HOME/.maestro/bin:$PATH"

2. Project Discovery

Auto-detect the Xcode project:

# Prefer workspace (supports CocoaPods)
find . -maxdepth 3 -name "*.xcworkspace" -not -path "*/DerivedData/*" -not -path "*/.build/*" -not -path "*/Pods/*" 2>/dev/null | head -1

# Fall back to project file
find . -maxdepth 3 -name "*.xcodeproj" -not -path "*/DerivedData/*" -not -path "*/Pods/*" 2>/dev/null | head -1

If found, discover schemes:

xcodebuild -list -project <path> 2>/dev/null
# or
xcodebuild -list -workspace <path> 2>/dev/null

If no project exists, create one as needed for the task.

3. Simulator Management

Select a simulator

# Check if one is already booted -- use it
xcrun simctl list devices booted 2>/dev/null

# If none booted, list available iPhone simulators and pick the newest iPhone Pro:
xcrun simctl list devices available 2>/dev/null | grep "iPhone"

Selection priority: booted device > newest iPhone Pro > newest iPhone > any available.

Boot and open

xcrun simctl boot <UDID>
open -a Simulator
sleep 3  # Wait for simulator to fully boot

4. Build

xcodebuild -project <path.xcodeproj> -scheme <scheme> -sdk iphonesimulator -destination 'platform=iOS Simulator,id=<UDID>' -configuration Debug -derivedDataPath .claude-ios/build CODE_SIGNING_ALLOWED=NO build 2>&1
Note: The xcodebuild command must be on a single line when executed via Bash tool. Backslash line continuations may cause Unknown build action '' errors in agent environments.

For workspaces, use -workspace instead of -project.

On build failure: Read the error output, fix the source code, rebuild. Retry up to 3 times.

The built .app bundle will be at:

.claude-ios/build/Build/Products/Debug-iphonesimulator/<AppName>.app

5. Install & Launch

xcrun simctl install booted .claude-ios/build/Build/Products/Debug-iphonesimulator/<AppName>.app
xcrun simctl launch booted <bundle.identifier>
sleep 3  # Wait for app to load

Find the bundle identifier:

defaults read .claude-ios/build/Build/Products/Debug-iphonesimulator/<AppName>.app/Info.plist CFBundleIdentifier

6. Screenshots (CRITICAL)

ALWAYS use the screenshot script. Never take a raw screenshot without resizing.

SKILL_SCRIPTS=$(find -L .claude/skills .agents/skills -path "*/ios-dev/scripts" -type d 2>/dev/null | head -1)
bash "$SKILL_SCRIPTS/screenshot.sh" <descriptive_name>

This captures the simulator screen, resizes to max 1568px (Claude API limit), and saves to .claude-ios/screenshots/<name>.png.

After every screenshot, ALWAYS use the Read tool to view it:

Read tool -> .claude-ios/screenshots/<name>.png

This is how you see the app. Analyze what is on screen and decide next actions.

Screenshot naming convention

Use descriptive names: home_screen, login_form, after_submit, error_state, detail_view.

7. UI Navigation with Maestro

Quick single actions

Write a temporary Maestro flow file and run it:

# .claude-ios/flow.yaml
appId: <bundle.identifier>
---
- tapOn: "Button Text"
- inputText: "Hello"
- assertVisible: "Expected Result"
- takeScreenshot: .claude-ios/screenshots/after_action
export PATH="$HOME/.maestro/bin:$PATH"
MAESTRO_CLI_NO_ANALYTICS=1 maestro test .claude-ios/flow.yaml

After Maestro runs

  1. Resize any screenshots Maestro took (it does NOT auto-resize): sips --resampleHeightWidthMax 1568.claude-ios/screenshots/<name>.png
  2. Use the Read tool to view them.

Key Maestro commands

  • tapOn: "text" -- tap a button/label by its text
  • tapOn: {id: "accessibilityId"} -- tap by accessibility identifier
  • inputText: "text" -- type into focused field
  • assertVisible: "text" -- verify element exists
  • scroll / swipe -- navigate lists
  • waitForAnimationToEnd -- wait after transitions
  • See references/maestro-guide.md for the full command reference.

8. Video Recording

SKILL_SCRIPTS=$(find -L .claude/skills .agents/skills -path "*/ios-dev/scripts" -type d 2>/dev/null | head -1)

# Start recording
bash "$SKILL_SCRIPTS/record.sh" start <name>

# ... perform actions ...

# Stop recording
bash "$SKILL_SCRIPTS/record.sh" stop

Videos are saved to .claude-ios/videos/.

9. Debug Logs

View recent logs

xcrun simctl spawn booted log show --last 5m --predicate 'process == "<AppName>"' --style compact

Stream logs in real-time

xcrun simctl spawn booted log stream --predicate 'process == "<AppName>"' --level debug --timeout 10

Check for crash logs

xcrun simctl spawn booted log show --last 2m --predicate 'process == "<AppName>" AND messageType == 16' --style compact

10. The Autonomous Build-Run-Verify Loop

When asked to build, test, or fix an iOS app, follow this exact sequence:

  1. Preflight -- Run preflight.sh, fix any blockers
  2. Discover -- Find or create the Xcode project
  3. Build -- xcodebuild for simulator
  4. If build fails -- Read errors, fix code, rebuild (up to 3 retries)
  5. Simulator -- Boot if needed, select best device
  6. Install -- Install .app on simulator
  7. Launch -- Start the app
  8. Screenshot -- Take screenshot via screenshot.sh, view with Read tool
  9. Verify -- Analyze the screenshot. Does the UI look correct?
  10. If UI is wrong -- Diagnose from screenshot, fix code, rebuild from step 3
  11. Navigate -- If needed, use Maestro to tap/type/swipe through the app
  12. Screenshot again -- Capture and view each significant state
  13. Debug -- If something is off, check logs for errors
  14. Iterate -- Repeat until the app works correctly

11. Rules (Non-negotiable)

  1. NEVER view a screenshot without resizing first -- always use screenshot.sh or sips --resampleHeightWidthMax 1568
  2. ALWAYS use the Read tool to view screenshots after taking them -- this is how you see the app
  3. NEVER ask the user to manually interact with the simulator -- do everything programmatically
  4. ALWAYS store artifacts in .claude-ios/screenshots/ and .claude-ios/videos/
  5. ALWAYS use CODE_SIGNING_ALLOWED=NO for simulator builds
  6. ALWAYS use -derivedDataPath.claude-ios/build to keep build artifacts in the project
  7. ALWAYS run preflight checks at the start of a session
  8. For troubleshooting, see references/troubleshooting.md

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.17%
按下载量换算27

Claude

28.02%
按下载量换算22

Cursor

19.14%
按下载量换算15

Gemini CLI

10.44%
按下载量换算8

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/alphasquadtech/ios-dev --skill ios-dev 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills