What problem does it solve?
Writing the native iOS (Objective-C) and Android (Kotlin) module scaffolding for a third-party Power Apps Mobile (PAM) control by hand is slow and error-prone, especially keeping the dispatch contract in sync between the native code, the manifest, and the companion PCF control. This Skill reads an approved PRD.md and generates substantially complete native sources plus the committed manifest.json dispatch contract in one pass.
Core Features & Use Cases
- Native module generation: Emits an iOS Objective-C RCT<Pascal>Module (header + implementation with RCT_EXPORT_METHOD methods, safe-area UI boilerplate, error/success JSON helpers) and an Android Kotlin <Pascal>Module with build.gradle, AndroidManifest.xml, themes, and ReactPackage.
- Dispatch contract authoring: Writes the committed ./manifest.json (name, abi, receivers, entrypoints) that the companion PCF and the .ppmplugin build stage both read, preventing contract drift.
- Supporting repo files: Generates .gitignore, a dev-only private package.json pinning react/react-native devDependencies, an optional system-frameworks podspec, README.md, CHANGELOG.md, and LICENSE.
- Use Case: After running /design-native-extension-feature to produce a PRD for a pen-input capture control, run this Skill to scaffold the full ios/ and android/ native module tree and manifest, ready for compilation by /build-android-binary and /build-ios-binary.
Quick Start
Ask the agent to run /generate-native-extension in the directory containing your approved PRD.md to scaffold the native iOS and Android extension sources and manifest.