mobile-camera-media
Use when the user asks about camera capture, CameraX, AVFoundation, photo or image picker, PhotosPicker, video recording, QR or barcode scanning, or…
от j4flmao★ 47 звёзд на GitHub
Установить mobile-camera-media в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Mobile Camera & Media
Purpose
Guide for implementing camera capture, media picker, image/video processing, and QR/barcode scanning in mobile apps.
Agent Protocol
Trigger
Phrases: "camera", "photo", "video", "image picker", "gallery", "photo library", "camera capture", "media picker", "QR code scanner", "barcode scanner", "video recording", "media upload"
Input Context
- Capture type (photo, video, or both)
- Image quality and size requirements
- QR/barcode scanning needs
- Upload target and format requirements
Output Artifact
Camera/media module: permission handling, capture flow, picker integration, image compression pipeline, QR scanner setup.
Response Format
No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output — why use many token when few do trick.
Completion Criteria
- Camera captures photo/video and returns asset URI
- Media picker selects from gallery with no blank entries
- Image compressed to <=1024px width, JPEG 0.8 quality
- EXIF data stripped from uploaded images
- QR scanner detects and parses code from camera preview
- All scenarios tested on real device
Max Response Length
6000 tokens
Architecture / Decision Trees
Capture vs Picker Decision
Source of media?
├── Take new photo/video → Camera capture
│ iOS: UIImagePickerController (simple) or AVFoundation (custom UI)
│ Android: CameraX (recommended) or Camera2 (manual control)
├── Select existing → Gallery picker
│ iOS 14+: PHPickerViewController (no full library permission needed)
│ Android: ActivityResultContracts.PickVisualMedia (API 19+ system picker)
├── Document or file → File picker
│ iOS: UIDocumentPickerViewController
│ Android: ActivityResultContracts.OpenDocument
└── QR/barcode → Camera preview with detection overlay
iOS: AVCaptureMetadataOutput
Android: ML Kit BarcodeScanning + CameraX
Image Quality Decision
Use case for the captured image?
├── Profile photo (small, fast upload) → 256px, JPEG 70, strip EXIF
├── List thumbnail → 512px, WebP (Android) or JPEG 80 (iOS)
├── Detail view → 1024px, JPEG 80, WebP on Android
├── Full resolution (printing, editing) → Original with EXIF preserved
└── Upload to server → 1920px max, JPEG 80, EXIF stripped
Workflow
Camera permissions — Three iOS permission keys:
NSCameraUsageDescription(camera access — required for all capture),NSPhotoLibraryUsageDescription(save to gallery — required if saving photos),NSMicrophoneUsageDescription(video recording — required for video capture). Android permission model changed with API 33:CAMERA(runtime permission),READ_MEDIA_IMAGES/READ_MEDIA_VIDEO(API 33+ granular media permissions, replacesREAD_EXTERNAL_STORAGE),RECORD_AUDIO(video with audio). Legacy Android (<33):READ_EXTERNAL_STORAGEandWRITE_EXTERNAL_STORAGE. Always request permissions at runtime in context (show rationale first), handle denial with explanation and settings redirect, never request on app launch without context.Camera capture — photo — iOS:
UIImagePickerController(legacy, simpler) orAVFoundationAVCapturePhotoOutput(full control over camera settings: flash, focus, exposure, white balance). UseAVFoundationfor custom camera UI (overlays, filters, manual controls).UIImagePickerControlleris simpler for quick capture with standard UI. Android: CameraX (recommended) provides lifecycle-aware camera APIs withImageCapturefor photos. ConfigureCaptureMode.MINIMIZE_LATENCY(fast shutter) orMAXIMIZE_QUALITY(better image). Camera2 API for full manual control (RAW capture, manual focus, exposure bracketing). After capture: show preview with accept/retry buttons, manage quality vs size tradeoff, save to app-internal storage (not gallery unless explicitly requested). Return content URI for further processing.Camera capture — video — iOS:
AVCaptureMovieFileOutputorUIImagePickerController.sourceType = .camerawithcameraCaptureMode = .video. Configure video quality:AVCaptureSession.Preset.high(highest quality the device supports),AVCaptureSessionPresetMedium(480p),AVCaptureSessionPresetLow(360p). Limit duration withmaxRecordedDuration. Android CameraX:VideoCapturewithVideoCaptureConfig— set bit rate (2-20 Mbps depending on resolution), frame rate (24/30/60fps), resolution (720p/1080p/4K). Enable audio withAudioConfig. Both platforms: microphone permission is required for video with audio. Show recording indicator (red dot + timer). Handle interruptions (phone call). After recording: show preview, allow retake or use.Media picker (gallery) — iOS 14+:
PHPickerViewController(modern, no read permission required for limited library access, search support, multi-select). Legacy:UIImagePickerController.sourceType = .photoLibrary. PHPicker advantages: doesn't require full photo library access, user can grant access to selected photos only, configurable
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/camera-apis.md
- references/camera-capture.md
- references/camera-document-scanning.md
- references/camera-media-advanced.md
- references/camera-media-capture.md
- references/camera-media-fundamentals.md
- references/camera-permissions.md
- references/media-processing.md
- references/video-recording.md
FAQ
Что делает скилл mobile-camera-media?
Use when the user asks about camera capture, CameraX, AVFoundation, photo or image picker, PhotosPicker, video recording, QR or barcode scanning, or compressing media before upload. Produces camera and media-picking code with permissions handled. Not for local file persistence (use mobile-storage).
Как установить скилл mobile-camera-media?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mobile-camera-media запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…