Skip to content

About

Agent skills for adapting Capacitor and Ionic apps to iPhone Duo and Android foldables: crease-aware layout, hinge angle, posture, size classes, Device Posture and Viewport Segments polyfill.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

iPhone Duo skills for Capacitor and Ionic

Agent skills for adapting Capacitor apps to iPhone Duo and Android foldables: laying out around the crease, reading the hinge angle and posture, window size classes, the Device Posture and Viewport Segments polyfill, the outer display, and moving an Ionic tab bar to the edge iOS puts native bars on.

The other iPhone Duo skills cover SwiftUI, UIKit and AVFoundation. This one covers the web view: Capacitor, Ionic, Angular, React and Vue.

Works with Claude Code, and with any agent that reads SKILL.md files.

Install

npx skills add erkamyaman/iphone-duo-capacitor-skills@capacitor-foldable
npx skills add erkamyaman/iphone-duo-capacitor-skills@iphone-duo-capacitor-optimized

Or copy the folders under skills/ into your project's skills directory.

What it covers

Reference What it answers
SKILL.md Install, the API at a glance, which platform reports what
css-layout.md Keeping content out of the crease with --fold-*, two-pane layouts, safe areas
api.md Every method and event, and what each platform actually returns
ionic.md Ionic specifics, including the vertical tab bar
iphone-duo.md Measured geometry, vertical bars, the keyboard, what iOS reports when
android.md androidx.window, rear display, dual screen
testing.md The iPhone Duo simulator and Android foldable emulators

iphone-duo-capacitor-optimized audits an app against what Apple calls optimized for iPhone Duo (the iOS 27.1 SDK locally and in CI, layout that survives resizing, bars on the vertical edge, every pose in the simulator) and sends each fix to capacitor-foldable.

Status

Beta. Everything was checked against the plugin source and measured on the iPhone Duo simulator, not on hardware, since the device ships on 23 October 2026. Report anything that misleads you.

The skill documents @erkamyaman/capacitor-foldable, which is what supplies the fold state to a Capacitor web view.

Licence

MIT.

About

Agent skills for adapting Capacitor and Ionic apps to iPhone Duo and Android foldables: crease-aware layout, hinge angle, posture, size classes, Device Posture and Viewport Segments polyfill.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors