microsoft/power-platform-skills/add-native
Claude Code and agent skill by microsoft/power-platform-skills
- vendor
Checking that the SKILL.md file is still in the repository.
Public entry point for native device capabilities and native controls — camera, image picker, barcode/QR scanner, document picker, file picker, secure storage, file system, sharing, haptic feedback, PDF generation/viewing, pen/signature capture, background GPS/geolocation tracking, or supported local file workflows — in a Power Apps mobile app. Also owns routing to internal camera/PDF/pen/geolocation implementation helpers and the guidance boundary between native wrappers and Dataverse File/Ima…
Install
npx vskill@latest install microsoft/power-platform-skills/add-nativeSKILL.md
The same SKILL.md was published earlier as microsoft/power-platform-skills/add-native.
Plugin check: Runnode "${PLUGIN_ROOT}/scripts/check-version.js"- if it outputs a message, show it to the user before proceeding.
📋 Shared instructions: [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md) — read first.
Working directory: before any project read or command, execute native-artifact-compatibility.md Step 0. Resolve --working-dir / owner context there; use the resolved absolute root for every shell call and file tool, not a previous shell's cwd.
Add Native Capability
Entry routing: use the shared App feature entry points preflight before the workflow below.
Generate a typed wrapper under src/native/ using the app's release or unverified local context. Screens import the wrapper instead of touching native packages directly. Read native controls for conditional aggregate adoption, legacy imports, permission boundaries, and location ownership.
Hard rules — do NOT cross these lines
- Never run `npx expo install`, `npm install`, or `yarn add` for a native module. Native support is fixed by the app-matched verified release and selected player/base, not the newest bundled template or the customer's manifest.
- Never edit `app.config.js` — plugins,
ios.infoPlist,android.permissions, or anything else. Native config belongs to the verified fixed-capability base; arbitrary additions cannot be honored at rewrap time. - Never edit `package.json` `dependencies` for native modules. Native means the package ships platform source/projects, a podspec, codegen, an Expo module/config plugin, or
react-native.config.js; a package-name prefix alone is not proof. Pure-JavaScript dependencies are out of scope for/add-nativeand are installed from an approvedJavaScript Dependenciesplan by/create-mobile-appor/edit-app. - Do not claim Player/base support from package presence. Follow the shared local-development policy for approved wrappers against installed APIs; missing packages/APIs still block that capability, not trying the rest of the app. Do not install the controls aggregate or newer leaf to repair an older binary.
- Keep inclusion, declarations, grants, and usage separate. The base owns OS declarations. Dependency/config toggles do not remove unused default Android permissions; different declarations require another verified base. Optional permission wrapping is deferred.
Routing — /add-native is the public entry point
Some capabilities have a dedicated implementation helper that does more than a plain wrapper (camera writes scanner/upload helpers; PDF report/viewer helpers enforce local-vs-HTTPS boundaries; pen has native-control-specific validation). Users should still call /add-native <capability> for native controls. When a dedicated implementation exists, run it internally and do not ask the user to run that helper directly.
Lookup convention: after normalizing the capability, first check the internal-helper map below. For camera, image-picker, barcode-scanner, and qr-scanner, read and execute ${PLUGIN_ROOT}/skills/add-native/add-camera/SKILL.md inside this /add-native invocation. For pdf-report, read and execute ${PLUGIN_ROOT}/skills/add-native/add-pdf-report/SKILL.md. For pdf-viewer, read and execute ${PLUGIN_ROOT}/skills/add-native/add-pdf-viewer/SKILL.md. For pen-input, read and execute ${PLUGIN_ROOT}/skills/add-native/add-pen-input/SKILL.md. For geolocation, read and execute ${PLUGIN_ROOT}/skills/add-native/add-geolocation/SKILL.md. If no helper exists, fall through to this skill's inline wrapper flow.
Current dedicated implementations:
| Capability | Dedicated skill | Why dedicated | |
|---|---|---|---|
camera, take-photo, photo, expo-camera, image-picker, gallery, expo-image-picker, barcode-scanner, qr-scanner, scanner | `add-camera` internal helper | Owns photo capture, gallery image picking, and barcode/QR scanner controls backed by expo-camera / expo-image-picker | |
pdf-report, pdf-export, generate-pdf, print-report, evidence-packet | `add-pdf-report` internal helper | Generates app-owned local PDFs with expo-print and shares them only when expo-sharing is present | |
pdf-viewer, native-pdf-viewer, pdf-control, open-pdf, @microsoft/power-apps-native-pdf-viewer | `add-pdf-viewer` internal helper | Enforces https:// / file:// viewer inputs and native viewer result handling | |
pen-input, signature, ink, draw, @microsoft/power-apps-native-pen-input | `add-pen-input` internal helper | Captures PNG data URI and documents Dataverse Image/File persistence | |
location, geolocation, location-tracking, background-location, gps-tracking, geo-tracking, @microsoft/power-apps-native-bglocation | `add-geolocation` internal helper | Separate one-shot coordinate reads from continuous tracking and durable Dataverse sync |
For every other capability listed below, this skill writes the wrapper directly.
Native capability gate
Before adding any native control or wrapper, verify the project and run the package-contract resolver in Step 1.
Pass its sanitized context to helpers/planners/builders. Apply one branch:
- Strict context: require the exact installed package/version in the resolved
published inventory with compatible native support.
- Local context (
validationScope: "local-development-only"): no published
inventory is required. Inspect the exact installed version, public exports, docs and types for the requested API, and preserve native compatibility as unverified. For example, installed expo-haptics APIs can support an approved local wrapper without claiming Player/base support.
In both branches, confirm the package is not runtime-banned and verify input/output/storage constraints. Every “present” requirement below follows this branch policy; manifest presence alone is insufficient. The newest bundled template is never a runtime allowlist.
For controls, select aggregate subpaths or legacy leaves using the version-conditional import contract. enableNativeControls is permitted only on a verified supporting host release; published host 0.4.0 lacks it. No root barrel or barcode subpath is available.
| User intent | Add/use | Required package or control | Do not use / fallback | |
|---|---|---|---|---|
| Form field bound to a Dataverse File column | Host <FilePicker> in screen JSX | @microsoft/power-apps-native-host host control | Do not generate document-picker/file-system/sharing wrappers for this field | |
| Form field bound to a Dataverse Image column | Host <ImagePicker> in screen JSX | @microsoft/power-apps-native-host host control | Do not use camera/image-picker wrappers for normal form-bound image fields | |
| Dedicated photo/gallery/scanner workflow | /add-native camera, image-picker, or barcode-scanner | expo-image-picker for photo/gallery; expo-camera for scanner; both for combined requests | If packages are absent, stop with missing-package guidance | |
| Pick/import/upload a user-selected PDF/document | /add-native document-picker, or host <FilePicker> for Dataverse File fields | expo-document-picker present, or host File control | Do not treat this as pdf-report or native PDF viewer | |
| Generate/export/print an app-owned report PDF | /add-native pdf-report | expo-print present | If expo-print is absent, do not add PDF report capability | |
| Share a generated local PDF | pdfReport.ts share helper | expo-sharing present | If expo-sharing is absent, do not render sharing UI | |
| Open/preview an HTTPS or local file PDF | /add-native pdf-viewer | Resolved controls /pdf or matching legacy PDF leaf with file URI support (0.2.9+) | Do not pass content://, blob:, or http:// URIs to the viewer | |
| Capture signature, ink, drawing, or sign-off | /add-native pen-input | Resolved controls /pen or matching legacy pen leaf | If persisted, plan Dataverse Image/File/child Evidence target first | |
| One-shot foreground coordinate | /add-native location | Resolved controls /geolocation or matching background-location leaf; expo-location only if independently verified | No app_id, data source, target table, or startTracking for BgLocationClient.getCurrentLocation() | |
| Continuous/background GPS tracking with durable Dataverse upload | /add-native geolocation | Resolved controls /geolocation or matching legacy background-location leaf | Do not use a one-shot read for tracking; background-location 0.2.3 tracking uses background permissions even with trackInBackground: false | |
| Tactile feedback for presses, selections, and operation results | /add-native haptics | expo-haptics present | Use the typed wrapper and pair every haptic with visible UI feedback | |
| Store generated PDF/signature artifact | Generated Dataverse services after parent row exists | File/Image column or child Evidence/Attachment table exists | Never put File bytes in create/update JSON | |
| Native capability not listed in this table | Apply the strict/local branch above, then add an inline wrapper only when installed and not runtime-banned | Exact installed package/version and requested API; published inventory in strict context | If no relevant package exists, or the package is runtime-banned, add a transparency note and stop |
Handle multi-part requests row-by-row. Example: "capture signature and attach signed report PDF" requires pen-input, pdf-report, Dataverse artifact storage, and possibly sharing; do not add only the native capability while leaving storage or screen states undefined. The map is not closed: for new shipped packages, resolve by capability semantics, use the directly matching package when safe, and ask once only if multiple installed packages plausibly match.
File/Image Picker Ownership
This skill owns native file capability mechanics. Screen builders own only the final JSX placement.
There are two different cases:
| Case | Correct implementation | Owner | |
|---|---|---|---|
Dataverse File column | Use <FilePicker> from @microsoft/power-apps-native-host | screen-builder JSX rule, documented here | |
Dataverse Image column | Use <ImagePicker> from @microsoft/power-apps-native-host | screen-builder JSX rule, documented here | |
| Local device document/file workflow not bound to a Dataverse column | Generate/use src/native/documentPicker.ts, src/native/fileSystem.ts, and/or src/native/sharing.ts wrappers | /add-native | |
| App-generated PDF report workflow | /add-native routes internally to add-pdf-report; uses expo-print and optionally expo-sharing only if present | /add-native | |
| Camera capture, gallery image selection, barcode scanner, or QR scanner workflow | /add-native routes internally to add-camera | /add-native |
Dataverse File/Image columns use host controls, not raw Expo modules and not app-specific native wrappers. When a form field binds to a Dataverse File column (FileAttributeMetadata), render <FilePicker> from @microsoft/power-apps-native-host. When it binds to a Dataverse Image column (ImageAttributeMetadata), render <ImagePicker> from @microsoft/power-apps-native-host. These controls read accent, surface, and text colors from PowerAppsProvider / ThemeProvider and produce Dataverse-compatible payloads.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 25 Nov 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/mobile-apps/skills/add-native/SKILL.md
Popularity
- Repository stars
- 947
- Repository forks
- 190
- 7-day trend score
- 34
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microsoft/power-platform-skills/add-native)