microsoft/power-platform-skills/add-native

Claude Code and agent skill by microsoft/power-platform-skills

Trust tier 4
  • vendor
Source check pending

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-native

SKILL.md

The same SKILL.md was published earlier as microsoft/power-platform-skills/add-native.

Plugin check: Run node "${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

  1. 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.
  2. 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.
  3. 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-native and are installed from an approved JavaScript Dependencies plan by /create-mobile-app or /edit-app.
  4. 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.
  5. 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:

CapabilityDedicated skillWhy dedicated
camera, take-photo, photo, expo-camera, image-picker, gallery, expo-image-picker, barcode-scanner, qr-scanner, scanner`add-camera` internal helperOwns 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 helperGenerates 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 helperEnforces https:// / file:// viewer inputs and native viewer result handling
pen-input, signature, ink, draw, @microsoft/power-apps-native-pen-input`add-pen-input` internal helperCaptures 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 helperSeparate 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 intentAdd/useRequired package or controlDo not use / fallback
Form field bound to a Dataverse File columnHost <FilePicker> in screen JSX@microsoft/power-apps-native-host host controlDo not generate document-picker/file-system/sharing wrappers for this field
Form field bound to a Dataverse Image columnHost <ImagePicker> in screen JSX@microsoft/power-apps-native-host host controlDo not use camera/image-picker wrappers for normal form-bound image fields
Dedicated photo/gallery/scanner workflow/add-native camera, image-picker, or barcode-scannerexpo-image-picker for photo/gallery; expo-camera for scanner; both for combined requestsIf 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 fieldsexpo-document-picker present, or host File controlDo not treat this as pdf-report or native PDF viewer
Generate/export/print an app-owned report PDF/add-native pdf-reportexpo-print presentIf expo-print is absent, do not add PDF report capability
Share a generated local PDFpdfReport.ts share helperexpo-sharing presentIf expo-sharing is absent, do not render sharing UI
Open/preview an HTTPS or local file PDF/add-native pdf-viewerResolved 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-inputResolved controls /pen or matching legacy pen leafIf persisted, plan Dataverse Image/File/child Evidence target first
One-shot foreground coordinate/add-native locationResolved controls /geolocation or matching background-location leaf; expo-location only if independently verifiedNo app_id, data source, target table, or startTracking for BgLocationClient.getCurrentLocation()
Continuous/background GPS tracking with durable Dataverse upload/add-native geolocationResolved controls /geolocation or matching legacy background-location leafDo 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 hapticsexpo-haptics presentUse the typed wrapper and pair every haptic with visible UI feedback
Store generated PDF/signature artifactGenerated Dataverse services after parent row existsFile/Image column or child Evidence/Attachment table existsNever put File bytes in create/update JSON
Native capability not listed in this tableApply the strict/local branch above, then add an inline wrapper only when installed and not runtime-bannedExact installed package/version and requested API; published inventory in strict contextIf 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:

CaseCorrect implementationOwner
Dataverse File columnUse <FilePicker> from @microsoft/power-apps-native-hostscreen-builder JSX rule, documented here
Dataverse Image columnUse <ImagePicker> from @microsoft/power-apps-native-hostscreen-builder JSX rule, documented here
Local device document/file workflow not bound to a Dataverse columnGenerate/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

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
vskill CERTIFIED badge
[![vskill CERTIFIED](https://verified-skill.com/api/v1/skills/microsoft/power-platform-skills/add-native/badge)](https://verified-skill.com/skills/microsoft/power-platform-skills/add-native)

Something wrong with this skill or its page? Tell us.