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 03-coreml-visiongit 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/03-coreml-vision)<a href="https://agentmods.dev/skills/wangjianqi/appstore/03-coreml-vision"><img src="https://agentmods.dev/badge/skills/wangjianqi/appstore/03-coreml-vision/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/03-coreml-vision"><img src="https://agentmods.dev/badge/skills/wangjianqi/appstore/03-coreml-vision.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.00042 | $0.02626 |
| Opus 5 | $0.00021 | $0.01313 |
| Sonnet 5 | $0.00008 | $0.00525 |
| Haiku 4.5 | $0.00004 | $0.00263 |
Grade A, and why
coreml-vision 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 8d 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 — 314 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CoreML / Vision 本地推理
模型管理
目录结构
Resources/
└── Models/
├── YOLOv8n_v2.mlpackage # 版本号在文件名中
├── MobileNetV3.mlmodel
└── CLIP_Quantized.mlpackage # 量化版标注
加载规范
- 所有
.mlmodel/.mlpackage文件放在Resources/Models/目录 - 模型加载使用懒加载,禁止在 App 启动时同步加载
- 模型版本通过文件名区分(如
YOLOv8n_v2.mlpackage),禁止覆盖旧版本 - 启用 Metal 加速:
final class ModelManager {
static let shared = ModelManager()
private var yoloModel: VNCoreMLModel?
func loadYOLO() throws -> VNCoreMLModel {
if let model = yoloModel { return model }
let config = MLModelConfiguration()
config.computeUnits = .all // CPU + GPU + Neural Engine
let model = try YOLOv8n_v2(configuration: config)
yoloModel = try VNCoreMLModel(for: model.model)
yoloModel?.inputImageFeatureName = "image"
yoloModel?.outputFeatureName = "var_894"
return yoloModel!
}
func unloadAll() {
yoloModel = nil
}
}
Vision Pipeline — 静态图像
完整推理流程
final class ImageDetector {
private let model: VNCoreMLModel
init(model: VNCoreMLModel) {
self.model = model
}
func detect(in image: UIImage, confidenceThreshold: Float = 0.5) throws -> [Detection] {
guard let cgImage = image.cgImage else {
throw VisionError.invalidImage
}
let request = VNCoreMLRequest(model: model) { request, error in
// 结果在下方处理
}
request.imageCropAndScaleOption = .scaleFill
let handler = VNImageRequestHandler(cgImage: cgImage, options: [:])
try handler.perform([request])
guard let observations = request.results as? [VNRecognizedObjectObservation] else {
return []
}
return observations.compactMap { observation in
guard let label = observation.labels.first,
label.confidence >= confidenceThreshold else { return nil }
return Detection(
label: label.identifier,
confidence: label.confidence,
boundingBox: observation.boundingBox
)
}
}
}
struct Detection {
let label: String
let confidence: Float
let boundingBox: CGRect
}
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.
- 8d ago First seen · 314 lines · 42 tokens per session scan A 0d84359c3ca6
coreml-vision is a skill published in the GitHub repository wangjianqi/AppStore (11 stars, last pushed 3mo ago), licensed MIT. It adds 42 tokens to every session and 2,626 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
maui-essentials-ai
Adopt Microsoft.Maui.Essentials.AI for local/on-device MAUI AI. USE FOR: Apple Intelligence chat, IChatClient, iOS/macOS/Mac Catalyst 26+ checks, fallback UI, NLEmbeddingGenerator, local tool invocation, privacy/offline UX. DO NOT USE FOR: source-generated tools, cloud-only AI, UI debugging.
deploy-edge-ai-model
Deploy machine learning models to edge devices using Google AI Edge Gallery, TensorFlow Lite, ONNX Runtime, and MediaPipe. Covers model quantization (INT8/INT4), on-device inference with Gemma 4 models, Android/iOS deployment via AI Edge Gallery, hardware delegate selection (GPU/NPU/DSP), and performance benchmarking…
vision-framework
On-device image analysis for an iOS fintech app with Apple's Vision + VisionKit. Covers the modern Swift Vision API (iOS 18+: RecognizeTextRequest OCR, DetectFaceRectanglesRequest, DetectBarcodesRequest, DetectDocumentSegmentationRequest, GenerateForegroundInstanceMaskRequest, TrackObjectRequest, CoreMLRequest, all…
apple-on-device-ai
On-device generative AI on Apple platforms (iOS 26+) — the Foundation Models framework (SystemLanguageModel.availability, LanguageModelSession, respond(to:)/streamResponse, @Generable + @Guide guided generation, the Tool protocol for tool-calling, instructions, GenerationOptions, and Guardrails), plus choosing among…
coreml
On-device ML inference with Core ML on iOS/iPadOS 26. Covers model formats (.mlmodel/.mlpackage/.mlmodelc), the Xcode auto-generated model class + Input/Output, MLModel loading (async load / compileModel), MLFeatureProvider / MLFeatureValue, MLModelConfiguration.computeUnits…
ipaship-audit
Use when auditing iOS/Android app submissions for compliance with Apple App Store Review Guidelines or Google Play Developer Policies. Scan .ipa, .apk, or .zip files against official store policies, generate structured compliance reports, and identify violations with remediation steps.