Who it is forA developer maintaining a photo or video app that needs to work correctly on iPhone Duo's front cameras.
The problemThe two front cameras and the question of which way a camera faces are AVFoundation-level details that the default camera code may not handle.
The outcomeA capture flow that chooses between the virtual front camera and individual cameras, uses the direction coordinator correctly and handles mirroring and preview.
What you need first
- An AI coding agent such as Claude Code, Cursor or Gemini
- Node.js with npx, since the README install uses npx
- An existing app or design to work on, native iOS or a supported cross-platform stack
- For native work, Xcode with the iOS 27.1 SDK, which the README calls the gate for edge-to-edge content, vertical bars, reserved regions and arrangements
Steps
- Run
npx skills add mirzaaghazadeh/iphone-duo-skills --skill iphone-duo-camera(inferred, check the README) - Restart your agent session.
- Ask the agent to review your AVFoundation capture setup against the skill.
- Confirm the direction coordinator handler uses the direction map arrays for forward and backward descriptors.
- Test capture on a physical iPhone Duo and check the preview and mirroring in each pose.
Prompt for your agent
Using the iphone-duo-camera skill from mirzaaghazadeh/iphone-duo-skills, review <path-to-capture-code> for virtual front camera use, individual camera selection, direction coordinator handling and mirroring. Output the changes needed with reasons, and verify that the change handler is written against AVCaptureDeviceDirectionMap as the README describes.
Caveat. The README notes its signatures were checked against Apple's API reference, so behavior on real hardware still needs testing on an actual iPhone Duo.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for mirzaaghazadeh/iphone-duo-skills and "Make a capture app handle iPhone Duo's two front cameras"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer