Borrowing it
Nothing to install: this file belongs to divinevideo/divine-mobile. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/divinevideo/divine-mobile/main/.agents/skills/flutter-macos-duplicate-camera-plugin/SKILL.mdgit clone --depth 1 https://github.com/divinevideo/divine-mobileWrote 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/divinevideo/divine-mobile/flutter-macos-duplicate-camera-plugin)<a href="https://agentmods.dev/skills/divinevideo/divine-mobile/flutter-macos-duplicate-camera-plugin"><img src="https://agentmods.dev/badge/skills/divinevideo/divine-mobile/flutter-macos-duplicate-camera-plugin.svg" alt="Measured on agentmods" 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.00091 | $0.00877 |
| Opus 5 | $0.00046 | $0.00439 |
| Sonnet 5 | $0.00018 | $0.00175 |
| Haiku 4.5 | $0.00009 | $0.00088 |
Grade C, and why
flutter-macos-duplicate-camera-plugin scanned grade C with 1 finding 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 7d 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
rm -rf build/ How it starts
The opening of the file, as written. The whole thing — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Flutter macOS Duplicate Camera Plugin Fix
Problem
Flutter macOS builds fail when both camera_macos and camera_macos_plus packages are present
in pubspec.yaml. Both packages define the same CameraMacosPlugin class, causing Swift
registration ambiguity.
Context / Trigger Conditions
Error message:
Ambiguous use of 'CameraMacosPlugin.register(with:)'
Symptoms:
- macOS build fails during Swift compilation
- iOS build may still succeed (different plugin implementations)
- Error occurs in the generated plugin registration code
- May be accompanied by Xcode build system crashes or "stat cache file not found" errors
Common scenarios:
- Project has
camera_macosfor basic camera support - Added
camera_macos_plusfor additional features - Transitive dependency pulled in duplicate plugin
- Copied pubspec.yaml from another project with different camera requirements
Solution
-
Identify the duplicates - Check pubspec.yaml for both packages:
# Look for these: camera_macos: ^0.0.9 camera_macos_plus: ^0.0.3 -
Choose one to keep -
camera_macos_plusis generally preferred as it's a more feature-complete fork ofcamera_macos -
Remove the duplicate from pubspec.yaml:
# Keep only one: camera_macos_plus: ^0.0.3 # macOS camera support -
Clean thoroughly - The Xcode build system may be in a corrupted state:
flutter clean rm -rf build/ rm -rf macos/Pods/ rm -f macos/Podfile.lock rm -rf ~/Library/Developer/Xcode/DerivedData/Runner-* flutter pub get -
Rebuild:
flutter build macos
Verification
After the fix:
flutter build macoscompletes successfully- No "Ambiguous use" errors in build output
- The macOS app launches and camera functionality works
Example
Before (broken):
dependencies:
camera_macos_plus: ^0.0.3
divine_camera:
path: packages/divine_camera
camera_macos: ^0.0.9 # DUPLICATE - causes conflict
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.
- 7d ago First seen · 113 lines · 91 tokens per session scan C 1d816eb64df6
flutter-macos-duplicate-camera-plugin is a skill published in the GitHub repository divinevideo/divine-mobile (265 stars, last pushed today), licensed MPL-2.0. It adds 91 tokens to every session and 877 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
ios-fix
Autonomous iOS bug fixer. (gstack).
google-mobile-ads-validate
Validates a project's Google Mobile Ads (GMA) SDK integration for iOS, Android, or Unity projects. Use when conducting a full pre-launch audit of an app that integrates GMA SDK or when validating any individual GMA SDK integration checks, such as when validating ad unit IDs and ad formats, SKAdNetwork IDs, mediation…
competition-ios-runtime
Internal downstream skill for ctf-sandbox-orchestrator. CTF-sandbox workflow for IPA runtime analysis, Frida hooks, Objective-C or Swift method tracing, Keychain inspection, SSL pinning bypass, URL scheme handling, and iOS request-signing recovery. Use when the user asks to hook an IPA, trace Objective-C or Swift…
swiftui-performance-audit
SwiftUI performance: render, scroll, CPU/memory, updates, layout, Instruments.
android-tombstone-symbolication
Symbolicate the .NET runtime frames in an Android tombstone file. Extracts BuildIds and PC offsets from the native backtrace, downloads debug symbols from the Microsoft symbol server, and runs llvm-symbolizer to produce function names with source file and line numbers. USE FOR triaging a .NET MAUI or Mono Android app…
node-connect
Diagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps. Use when QR/setup code/manual connect fails, local Wi-Fi works but VPS/tailnet does not, or errors mention pairing required, unauthorized, bootstrap token invalid or expired, gateway.bind, gateway.remote.url, Tailscale…