Tooluck logoTooluck
SKILL.md

add-native

Agent skill frommicrosoft/power-platform-skills

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/Image host controls.

How to install add-native

install add-native
# install the power-platform-skills pack with the skills CLI
npx skills add microsoft/power-platform-skills

# or add only this skill to Claude Code: copy the folder

plugins/mobile-apps/skills/add-native/

# into

~/.claude/skills/add-native/ (all projects)

.claude/skills/add-native/ (one project)

plugins/mobile-apps/skills/add-native/SKILL.md

MITFull file
1> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` - if it outputs a message, show it to the user before proceeding.
2
3**📋 Shared instructions: [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md)** — read first.
4
5**Working directory:** before any project read or command, execute
6[native-artifact-compatibility.md Step 0](${PLUGIN_ROOT}/shared/references/native-artifact-compatibility.md#0-bind-every-operation-to-the-app-root).
7Resolve `--working-dir` / owner context there; use the resolved absolute root for
8every shell call and file tool, not a previous shell's cwd.
9
10# Add Native Capability
11
12**Entry routing:** use the shared [App feature entry points](../../shared/shared-instructions.md#app-feature-entry-points)
13preflight before the workflow below.
14
15The leaf generates typed wrappers under `src/native/` for native capabilities that
16the upstream template already ships. Screens import the wrapper instead of touching
17Expo modules directly, so the discriminated-union result contract stays consistent.
18
19## Hard rules — do NOT cross these lines
20
211. **Never run `npx expo install`, `npm install`, or `yarn add` for a native module.** The set of native modules in `package.json` is fixed by the upstream template. Adding a new one breaks the rewrap pipeline (the customer's binary is built from a pre-built base, not from their `package.json`).
22…

Excerpt shown under the repository's MIT license.

More skills in power-platform-skills

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates