Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add wangjianqi/AppStore --skill 19-swiftui-hybridgit clone --depth 1 https://github.com/wangjianqi/AppStoreWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/wangjianqi/appstore/19-swiftui-hybrid)<a href="https://agentmods.dev/skills/wangjianqi/appstore/19-swiftui-hybrid"><img src="https://agentmods.dev/badge/skills/wangjianqi/appstore/19-swiftui-hybrid/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/wangjianqi/appstore/19-swiftui-hybrid"><img src="https://agentmods.dev/badge/skills/wangjianqi/appstore/19-swiftui-hybrid.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00047 | $0.02292 |
| Opus 5 | $0.00023 | $0.01146 |
| Sonnet 5 | $0.00009 | $0.00458 |
| Haiku 4.5 | $0.00005 | $0.00229 |
Grade A, and why
swiftui-hybrid scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 299 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SwiftUI 混合开发
架构原则
本项目主框架为 UIKit,SwiftUI 仅在以下场景使用:
- Widget / Live Activity(必须 SwiftUI)
- 新页面快速原型(SwiftUI 开发效率更高)
- 复杂动画/声明式 UI(SwiftUI 更简洁)
- 系统新 API 仅提供 SwiftUI 接口
禁止:
- 禁止将已有 UIKit 页面重写为 SwiftUI(投入产出比低)
- 禁止在 SwiftUI View 中嵌入大量 UIKit 组件(失去 SwiftUI 优势)
- 禁止混合使用 UIKit 和 SwiftUI 的导航(选一种,页面内统一)
UIKit 嵌入 SwiftUI
UIHostingController(SwiftUI 页面嵌入 UIKit 导航)
let swiftUIView = SettingsSwiftUIView(viewModel: settingsViewModel)
let hostingController = UIHostingController(rootView: swiftUIView)
hostingController.title = "设置"
navigationController?.pushViewController(hostingController, animated: true)
present 方式
let swiftUIView = PaywallSwiftUIView()
let hostingController = UIHostingController(rootView: swiftUIView)
hostingController.modalPresentationStyle = .pageSheet
if let sheet = hostingController.sheetPresentationController {
sheet.detents = [.medium(), .large()]
sheet.prefersGrabberVisible = true
}
present(hostingController, animated: true)
规范
- 每个 SwiftUI 页面用独立的
UIHostingController包装 - 禁止在 UIHostingController 中覆盖
viewWillLayoutSubviews等 UIKit 生命周期,用 SwiftUI 的onAppear/onDisappear - UIHostingController 的
sizingOptions(iOS 16+)可控制尺寸更新行为 - 传递 ViewModel 时注意生命周期:SwiftUI View 是 struct,每次重建,ViewModel 必须由外部持有
SwiftUI 嵌入 UIKit 组件
UIViewRepresentable(UIKit View 嵌入 SwiftUI)
struct MapViewRepresentable: UIViewRepresentable {
let coordinate: CLLocationCoordinate2D
func makeUIView(context: Context) -> MKMapView {
let mapView = MKMapView()
mapView.delegate = context.coordinator
mapView.showsUserLocation = true
return mapView
}
func updateUIView(_ mapView: MKMapView, context: Context) {
let region = MKCoordinateRegion(
center: coordinate,
span: MKCoordinateSpan(latitudeDelta: 0.01, longitudeDelta: 0.01)
)
mapView.setRegion(region, animated: true)
}
func makeCoordinator() -> Coordinator {
Coordinator()
}
class Coordinator: NSObject, MKMapViewDelegate {
func mapView(_ mapView: MKMapView, didUpdate userLocation: MKUserLocation) {
// 处理位置更新
}
}
}
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 299 lines · 47 tokens per session scan A f1f083a14ad2
swiftui-hybrid is a skill published in the GitHub repository wangjianqi/AppStore (11 stars, last pushed 3mo ago), licensed MIT. It adds 47 tokens to every session and 2,292 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
project-structure
Directory layout, file responsibilities, and Xcode integration for meta-loop projects.
build-feature
Build an iOS feature using ShipSwift components. Use when the user says "build", "create", "add a feature", or describes an iOS feature they want to implement.
ios-slim-bindings
Create iOS slim bindings for MAUI. USE FOR: slim iOS binding, Native Library Interop, Swift/Objective-C wrappers, XcodeGen project.yml, Podfile, CocoaPods static linking, BUILDLIBRARYFORDISTRIBUTION, XcodeProject MSBuild, @objc/[Export] selector crashes, async completion handlers. DO NOT USE FOR: Android bindings…
compose-multiplatform
Use when building one shared Compose UI in Kotlin across Android, iOS, and desktop — commonMain @Composables, expect/actual, source-set placement, native interop, multiplatform ViewModel/navigation/Koin. NOT a single-platform native build (that is kotlin-android / swift-ios), and NOT Dart/Flutter cross-platform UI…
swift-expert
Expert-level Swift development for iOS, macOS with SwiftUI, Combine, and modern Swift 5.9+. Use when the user mentions iOS, macOS, SwiftUI, Combine, async await, or Apple platforms, or when the task involves Modern Swift Features, Basics and Optionals, Functions and Closures, or Structs and Classes.
ios-expert
Expert in iOS development with SwiftUI, UIKit, Combine, and Apple ecosystem integration. Use when the user mentions mobile, Swift, SwiftUI, UIKit, Apple platforms, or Xcode, or when the task involves iOS App Architecture, SwiftUI Fundamentals, UIKit Essentials, or Combine Framework.