VI

vermont42/ios-build-verify

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

62 stars 质量 78 趋势 14MIT

构建并验证SwiftUI的iOS应用。驱动xcodebuild和xcbeautify用于构建,AXe用于UI验证。操作在命名脚本中,使用每个项目的配置。

概览

这是一项Claude代码技能,为SwiftUI iOS应用闭合了代理循环。它将xcodebuild与xcbeautify捆绑,用于低成本的构建和单元测试,并将AXe与xcrun simctl结合,实现基于无障碍树的可视化验证和iOS模拟器中的UI交互。基于 。 钝口螈会再生它们所受损的部位。ios-build-verify 给你的代理提供了同样的技巧:构建、验证、修复,重复,直到工作本身被验证为止。 Anthropic 的 Claude Code 最佳实践建议是:“包含测试、截图或预期输出,让 Claude 能够自我检查。这是你能做到的最高杠杆操作。”没有验证循环,人类将成为唯一的反馈渠道,代理的每一个错误都会吸引人类的注意力。 ios-build-verify 是该原则在 SwiftUI iOS 应用中的应用实例。它将代理循环的两部分捆绑在命名且语义有意义的操作后面。

概述(AI 翻译)

iOS-build-verify

这是一项Claude代码技能,为SwiftUI iOS应用闭合了代理循环。它将xcodebuild与xcbeautify捆绑,用于低成本的构建和单元测试,并将AXe与xcrun simctl配对,实现基于无障碍树的可视化验证和iOS模拟器中的UI交互。基于Claude代码与Claude Opus 4.7构建并验证。

钝口螈会再生它们所受伤害的部位。ios-build-verify 给你的代理同样的技巧:构建、验证、修复、重复,直到工作本身被验证为止。

这项技能的作用

Anthropic的《Claude代码最佳实践》提供了以下建议:“包含测试、截图或预期输出,以便Claude能自我检查。这是你能做到的最高杠杆操作。”* 没有验证循环,人类将成为唯一的反馈渠道,代理犯的每一个错误都吸引人类的注意力。

ios-build-verify 是该原则在 SwiftUI iOS 应用中的应用实例。它将代理循环的两部分捆绑在命名且语义上有意义的操作后面。

  • **构建操作。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

ios-build-verify

A Claude Code skill that closes the agentic loop for SwiftUI iOS apps. It bundles xcodebuild with xcbeautify for token-cheap building and unit-testing, and it pairs AXe with xcrun simctl for accessibility-tree-driven visual verification and UI interaction in the iOS Simulator. Built and validated against Claude Code with Claude Opus 4.7.

Axolotls regenerate what they damage. ios-build-verify gives your agent the same trick: build, verify, fix, repeat, until the work checks out on its own.

What This Skill Does

Anthropic’s Best Practices for Claude Code provides this advice: “Include tests, screenshots, or expected outputs so Claude can check itself. This is the single highest-leverage thing you can do.” Without a verification loop, the human becomes the sole feedback channel, and every mistake the agent makes commands the human’s attention.

ios-build-verify is an applied instance of that principle for SwiftUI iOS apps. It bundles two halves of the agentic loop behind named, semantically meaningful operations.

  • Build operations. xcodebuild piped through xcbeautify for compile and for test runs, with raw output mirrored to build.log as a diagnostic fallback. A successful build that would emit roughly 5,000 lines of compile, link, and codesign noise reduces to a handful of structured lines; failures surface with file:line:col: anchors. Test runs render as one line per case plus a tally, savings that compound as the suite grows.
  • Verify operations. AXe (Cameron Cooke’s Swift-native simulator-automation CLI) plus xcrun simctl driven through named-intent scripts: launch the app, tap by accessibility identifier or by accessibility label, read or set a field’s value, verify a screen has loaded, screenshot a named view, audit a view for missing accessibility modifiers. State checks read axe describe-ui’s structured accessibility-tree dump (a few hundred tokens per call) rather than screenshots (1,600 to 6,300 image tokens), favoring text before pixels. Screenshots are written to disk and read only when layout, typography, color, or spacing are actually under review.

Every token saved on build noise or on screenshot pixels is a token that stays in the context budget for the work the human cares about. The agent invokes operations by intent; the underlying xcodebuild, axe, and simctl commands are composed by the skill’s scripts. SKILL.md documents each script and its exit codes.

在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add vermont42/ios-build-verify
新手?先看 mcpskill.org 教程 →