[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F16SZ1B0TKRR6W5TKVPBFE":3,"skill-same:01M7F16SZ1B0TKRR6W5TKVPBFE":54},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7F16SZ1B0TKRR6W5TKVPBFE","ios-media-and-inputs",null,"Route, implement, or review iOS camera, audio, playback, image and video processing, NFC, MusicKit, and ShazamKit features — capture and session lifecycle, bounded input, provenance, and measured physical-device performance. Use when a feature captures or imports media, plays audio or video, reads NFC tags, accesses Apple Music, or identifies audio.","shotcowboystyle\u002Fag-skills","shotcowboystyle","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F62471?v=4","01M7EZTCFCZJ6K3MYW8BPM4X6R","Curtis Blanton","01M7EZTCG1S5M04J90A931X9BX",0,"MIT","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fios-ops\u002Fskills\u002Fios-media-and-inputs\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: ios-media-and-inputs\ndescription: Route, implement, or review iOS camera, audio, playback, image and video processing, NFC, MusicKit, and ShazamKit features — capture and session lifecycle, bounded input, provenance, and measured physical-device performance. Use when a feature captures or imports media, plays audio or video, reads NFC tags, accesses Apple Music, or identifies audio.\nallowed-tools: Read, Grep, Glob, Edit, Write, Bash\nlast_verified: 2026-08-19\n---\n\n# iOS Media and Physical Inputs\n\n## Overview\n\nUse this skill to turn a camera frame, audio stream, imported asset, model, NFC tag, music catalog request, or acoustic match into a bounded, reviewable product flow. Keep this pipeline explicit:\n\n`authorized source -> bounded input -> cancellable processing -> observation\u002Fprediction\u002Fmatch -> provenance\u002Freview -> durable result or user-confirmed side effect`\n\n## Read before acting\n\n- Inspect the actual Xcode targets, deployment target, device family, scene\u002Flifecycle model, capabilities, entitlements, `Info.plist` usage descriptions, model assets, media formats, persistence, and existing capture\u002Fplayback adapters.\n- Read the [knowledge-base map](..\u002Fios-knowledge-base\u002Freferences\u002FREADME.md), [media\u002Fcamera\u002Fsensor route](..\u002Fios-knowledge-base\u002Freferences\u002F40-framework-routes\u002F02-media-camera-and-sensors.md), [media and ML deep dive](..\u002Fios-knowledge-base\u002Freferences\u002F42-framework-deep-dives\u002F07-media-vision-ml-and-nfc.md), and [media\u002FML recipes](..\u002Fios-knowledge-base\u002Freferences\u002F70-code-recipes\u002F21-media-vision-ml-and-nfc-recipes.md).\n- For AI availability and fallback, read [privacy, availability, safety, and fallback](..\u002Fios-knowledge-base\u002Freferences\u002F30-on-device-ai\u002F06-privacy-availability-and-fallback.md). For proof levels, read the [build\u002Fdevice\u002Frelease checklist](..\u002Fios-knowledge-base\u002Freferences\u002F60-verification\u002F01-build-device-and-release-checklist.md) and [permission\u002Fentitlement\u002Fprivacy checklist](..\u002Fios-knowledge-base\u002Freferences\u002F60-verification\u002F04-permission-entitlement-and-privacy-checklist.md).\n- Refresh the official pages listed in `references\u002Fdetails.md` before relying on an API spelling, availability annotation, entitlement, codec, model runtime, music access rule, NFC behavior, or iOS 26 claim.\n\n## Route workflow\n\n1. State the user outcome and source ownership: live camera\u002Fmicrophone, imported file, app-owned media, model asset, external NFC tag, Apple Music catalog\u002Faccount, or ambient audio.\n2. Choose the narrowest route. Use AVKit\u002FAVFoundation for playback\u002Fcapture\u002Fsession state; Core Image for image recipes\u002Frendering; VideoToolbox only for low-level codec control; Core NFC for a foreground tag-reader session; MusicKit for Apple Music authorization\u002Fcatalog\u002Fplayback; ShazamKit for acoustic matching. When frames or audio feed Vision, Core ML, Speech, or Natural Language, this skill owns capture and backpressure and [ios-on-device-intelligence](..\u002Fios-on-device-intelligence\u002FSKILL.md) owns the model and its output.\n3. Record target configuration before implementation: permission and usage description, capability\u002Fentitlement, supported formats, model availability, locale, account\u002Fsubscription state, and physical-device requirement. Mark unverified items as `to-verify`.\n4. Draw the state machine. Keep permission, source\u002Fsession readiness, model\u002Fasset readiness, processing, result review, persistence, and cleanup as separate states. Include denial, unavailable hardware, malformed input, interruption, timeout, cancellation, no match, no subscription, and retry.\n5. Bound the work. Coalesce or drop stale live frames; limit image\u002Faudio duration and dimensions; limit NFC payload length; use cancellation checks; avoid one unbounded task per frame; stop capture and release resources when the feature ends.\n6. Attach provenance to every result: source identifier, capture\u002Fimport time, orientation and preprocessing, request\u002Fmodel\u002Frevision, locale, confidence or quality when provided, and user review\u002Fedit state. Keep an observation, prediction, match, catalog response, or tag payload distinct from domain truth.\n7. Define privacy and retention before logging or persistence. Prefer local processing, redact media\u002Ftext\u002Faudio\u002Fmodel outputs from diagnostics, delete raw inputs when no longer needed, and do not add analytics, upload, account access, or telemetry without a product reason and authorization.\n8. Verify in layers: compile against the actual SDK, test deterministic fixtures, test denied\u002Finterrupted\u002Funavailable states, then exercise the real camera\u002Fmicrophone\u002Faudio route\u002FNFC tag\u002FApple account on representative physical devices. Record device, OS, model, fixture, latency, dropped inputs, memory, battery, and thermal observations instead of claiming generic “real-time” or “on-device” behavior.\n\n## Fast path\n\nProve the bounded lifecycle with a fixture source before live capture: one input -> one validated output -> cancellation and teardown. Add only the permission and physical route required by that slice, and measure queue, memory, and backpressure behavior rather than recording a successful frame as completion.\n\n## Non-negotiable safety and evidence rules\n\n- Never present model output, OCR, object\u002Fface\u002Fpose observation, Natural Language result, NFC payload, MusicKit catalog response, or ShazamKit match as identity, authenticity, medical truth, legal truth, guaranteed accuracy, or authorization without a separate validated domain workflow.\n- Never claim camera\u002Fmicrophone\u002FNFC\u002Fcodec\u002Fmodel support, Apple Music availability, audio\u002Fvideo synchronization, “real time,” “on-device,” battery life, or thermal safety from a preview, simulator, fixture, successful compile, or single device.\n- Keep source authorization separate from output validity. Permission granted does not mean a usable session; a ready player does not mean rendered output; a loaded model does not mean a valid prediction; a detected tag does not mean trusted data; MusicKit authorization does not mean a subscription; a match does not mean legal or user identity.\n- Treat every external or user-controlled input as untrusted. Bound data size and duration, validate types\u002Fschemes\u002Fcommands\u002Fshapes, reject malformed payloads, and require confirmation before consequential side effects.\n- Stop and clean up capture, playback, reader sessions, model tasks, signatures, and codec sessions on cancellation, view disappearance, interruption, session invalidation, and task expiration. Keep task ownership explicit so stale results cannot overwrite newer state.\n\n## Deliverable\n\nProduce a compact route note or implementation change containing:\n\n- selected framework and rejected alternatives;\n- target\u002Fdevice, permission, usage-description, capability, entitlement, model\u002Fmedia-format, account\u002Fsubscription, and privacy matrix;\n- session\u002Fmodel\u002Fprocessing\u002Fresult state machine with cancellation, backpressure, cleanup, retry, and fallback;\n- provenance and review policy for every generated observation\u002Fprediction\u002Fmatch;\n- source links and exact compile, fixture, physical-device, performance, privacy, signing, and release evidence plan;\n- remaining `to-verify` gaps and any claims deliberately not made.\n\nFor implementation, change only the requested target and directly related adapters\u002Fconfiguration. Do not add a model download, cloud upload, account, Apple Music access, microphone\u002FNFC permission, background mode, analytics, logging of sensitive inputs, or entitlement without a stated user-facing need and authorization.\n\nFurther sections — read when the above is not enough: `references\u002Fdetails.md`.\n","# iOS Media and Physical Inputs\n\n## Overview\n\nUse this skill to turn a camera frame, audio stream, imported asset, model, NFC tag, music catalog request, or acoustic match into a bounded, reviewable product flow. Keep this pipeline explicit:\n\n`authorized source -> bounded input -> cancellable processing -> observation\u002Fprediction\u002Fmatch -> provenance\u002Freview -> durable result or user-confirmed side effect`\n\n## Read before acting\n\n- Inspect the actual Xcode targets, deployment target, device family, scene\u002Flifecycle model, capabilities, entitlements, `Info.plist` usage descriptions, model assets, media formats, persistence, and existing capture\u002Fplayback adapters.\n- Read the [knowledge-base map](..\u002Fios-knowledge-base\u002Freferences\u002FREADME.md), [media\u002Fcamera\u002Fsensor route](..\u002Fios-knowledge-base\u002Freferences\u002F40-framework-routes\u002F02-media-camera-and-sensors.md), [media and ML deep dive](..\u002Fios-knowledge-base\u002Freferences\u002F42-framework-deep-dives\u002F07-media-vision-ml-and-nfc.md), and [media\u002FML recipes](..\u002Fios-knowledge-base\u002Freferences\u002F70-code-recipes\u002F21-media-vision-ml-and-nfc-recipes.md).\n- For AI availability and fallback, read [privacy, availability, safety, and fallback](..\u002Fios-knowledge-base\u002Freferences\u002F30-on-device-ai\u002F06-privacy-availability-and-fallback.md). For proof levels, read the [build\u002Fdevice\u002Frelease checklist](..\u002Fios-knowledge-base\u002Freferences\u002F60-verification\u002F01-build-device-and-release-checklist.md) and [permission\u002Fentitlement\u002Fprivacy checklist](..\u002Fios-knowledge-base\u002Freferences\u002F60-verification\u002F04-permission-entitlement-and-privacy-checklist.md).\n- Refresh the official pages listed in `references\u002Fdetails.md` before relying on an API spelling, availability annotation, entitlement, codec, model runtime, music access rule, NFC behavior, or iOS 26 claim.\n\n## Route workflow\n\n1. State the user outcome and source ownership: live camera\u002Fmicrophone, imported file, app-owned media, model asset, external NFC tag, Apple Music catalog\u002Faccount, or ambient audio.\n2. Choose the narrowest route. Use AVKit\u002FAVFoundation for playback\u002Fcapture\u002Fsession state; Core Image for image recipes\u002Frendering; VideoToolbox only for low-level codec control; Core NFC for a foreground tag-reader session; MusicKit for Apple Music authorization\u002Fcatalog\u002Fplayback; ShazamKit for acoustic matching. When frames or audio feed Vision, Core ML, Speech, or Natural Language, this skill owns capture and backpressure and [ios-on-device-intelligence](..\u002Fios-on-device-intelligence\u002FSKILL.md) owns the model and its output.\n3. Record target configuration before implementation: permission and usage description, capability\u002Fentitlement, supported formats, model availability, locale, account\u002Fsubscription state, and physical-device requirement. Mark unverified items as `to-verify`.\n4. Draw the state machine. Keep permission, source\u002Fsession readiness, model\u002Fasset readiness, processing, result review, persistence, and cleanup as separate states. Include denial, unavailable hardware, malformed input, interruption, timeout, cancellation, no match, no subscription, and retry.\n5. Bound the work. Coalesce or drop stale live frames; limit image\u002Faudio duration and dimensions; limit NFC payload length; use cancellation checks; avoid one unbounded task per frame; stop capture and release resources when the feature ends.\n6. Attach provenance to every result: source identifier, capture\u002Fimport time, orientation and preprocessing, request\u002Fmodel\u002Frevision, locale, confidence or quality when provided, and user review\u002Fedit state. Keep an observation, prediction, match, catalog response, or tag payload distinct from domain truth.\n7. Define privacy and retention before logging or persistence. Prefer local processing, redact media\u002Ftext\u002Faudio\u002Fmodel outputs from diagnostics, delete raw inputs when no longer needed, and do not add analytics, upload, account access, or telemetry without a product reason and authorization.\n8. Verify in layers: compile against the actual SDK, test deterministic fixtures, test denied\u002Finterrupted\u002Funavailable states, then exercise the real camera\u002Fmicrophone\u002Faudio route\u002FNFC tag\u002FApple account on representative physical devices. Record device, OS, model, fixture, latency, dropped inputs, memory, battery, and thermal observations instead of claiming generic “real-time” or “on-device” behavior.\n\n## Fast path\n\nProve the bounded lifecycle with a fixture source before live capture: one input -> one validated output -> cancellation and teardown. Add only the permission and physical route required by that slice, and measure queue, memory, and backpressure behavior rather than recording a successful frame as completion.\n\n## Non-negotiable safety and evidence rules\n\n- Never present model output, OCR, object\u002Fface\u002Fpose observation, Natural Language result, NFC payload, MusicKit catalog response, or ShazamKit match as identity, authenticity, medical truth, legal truth, guaranteed accuracy, or authorization without a separate validated domain workflow.\n- Never claim camera\u002Fmicrophone\u002FNFC\u002Fcodec\u002Fmodel support, Apple Music availability, audio\u002Fvideo synchronization, “real time,” “on-device,” battery life, or thermal safety from a preview, simulator, fixture, successful compile, or single device.\n- Keep source authorization separate from output validity. Permission granted does not mean a usable session; a ready player does not mean rendered output; a loaded model does not mean a valid prediction; a detected tag does not mean trusted data; MusicKit authorization does not mean a subscription; a match does not mean legal or user identity.\n- Treat every external or user-controlled input as untrusted. Bound data size and duration, validate types\u002Fschemes\u002Fcommands\u002Fshapes, reject malformed payloads, and require confirmation before consequential side effects.\n- Stop and clean up capture, playback, reader sessions, model tasks, signatures, and codec sessions on cancellation, view disappearance, interruption, session invalidation, and task expiration. Keep task ownership explicit so stale results cannot overwrite newer state.\n\n## Deliverable\n\nProduce a compact route note or implementation change containing:\n\n- selected framework and rejected alternatives;\n- target\u002Fdevice, permission, usage-description, capability, entitlement, model\u002Fmedia-format, account\u002Fsubscription, and privacy matrix;\n- session\u002Fmodel\u002Fprocessing\u002Fresult state machine with cancellation, backpressure, cleanup, retry, and fallback;\n- provenance and review policy for every generated observation\u002Fprediction\u002Fmatch;\n- source links and exact compile, fixture, physical-device, performance, privacy, signing, and release evidence plan;\n- remaining `to-verify` gaps and any claims deliberately not made.\n\nFor implementation, change only the requested target and directly related adapters\u002Fconfiguration. Do not add a model download, cloud upload, account, Apple Music access, microphone\u002FNFC permission, background mode, analytics, logging of sensitive inputs, or entitlement without a stated user-facing need and authorization.\n\nFurther sections — read when the above is not enough: `references\u002Fdetails.md`.\n",{"name":5,"description":7,"allowed-tools":24,"last_verified":25},"Read, Grep, Glob, Edit, Write, Bash",1787097600000,"main","f846d9a97082ff30d613b55a085cef425d822473","plugins\u002Fios-ops\u002Fskills\u002Fios-media-and-inputs","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle","https:\u002F\u002Fshotcowboystyle.github.io","Building smarter with AI, automation & modern tools. Exploring how far one person can go without a big team using today’s AI.","2026-11-10 04:58:27",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add shotcowboystyle\u002Fag-skills --skill ios-media-and-inputs",{"tool":40,"command":41},"bunx","bunx skills add shotcowboystyle\u002Fag-skills --skill ios-media-and-inputs",{"tool":43,"command":44},"pnpm","pnpm dlx skills add shotcowboystyle\u002Fag-skills --skill ios-media-and-inputs","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fios-ops\u002Fskills\u002Fios-media-and-inputs\u002FSKILL.md",true,[48],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fdetails.md","REFERENCE","参考文档",5235,"https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fios-ops\u002Fskills\u002Fios-media-and-inputs\u002Freferences\u002Fdetails.md",[55,61,68,75,82,89],{"skillNo":56,"name":57,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7F1YRY5S5QRJ1V0BJS130QX","no-description","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fno-description\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7F1Y9BV2FJNQJ3NB32JS5CM","good-skill","Fixture skill that satisfies every rule.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgood-skill\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7F1XXBQ3NQRXZSS0KAGAR9V","broken-link","Links to a reference file that does not exist.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbroken-link\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7F1XBX4R46NR9W0HXQ7XCDX","Bad_Name","Name violates the kebab-case rule and does not match the directory.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbad-name\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7F1WNAF8WNEQ7S5HKT5VK0D","skill-authoring","Write, review, and validate portable agent skills in SKILL.md format. Use when creating a new skill, editing an existing one, or asked whether a skill follows the Agent Skills spec.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fskills\u002Fskill-authoring\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7F1W30TC0XFNSF7YBRGETK2","weigh-bags","Record scale readings for each bag — empty (tare), outbound, current, final — and reconcile them against the itemised inventory to find unaccounted weight. Use when the user gives a bag weight, says how heavy something is, weighs their luggage, or asks how close to the limit they are. Appends to bags.yaml and runs scripts\u002Freconcile.py.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Ftravel-packing-assistant\u002Fskills\u002Fweigh-bags\u002FSKILL.md",[],[]]