SkillsReviewed · microsoft

Add Pen Input for Power Apps Mobile Apps

Add Pen Input is an internal coding-assistant skill for developers adding handwriting or signature capture to Power Apps mobile apps, but it requires a compatible native release and the surrounding /add-native tooling. It guides creation or reuse of a React Native wrapper that returns a PNG image, handles cancellation and supports optional Dataverse storage integration.

Researched 17 Nov 2026

In short.

Add Pen Input is a coding-assistant skill for Power Apps mobile developers adding pen or signature capture, but it depends on an existing app, a verified native release and supporting plugin files. Its instructions cover a typed capture wrapper, normal cancellation, missing native modules, screen integration and optional Dataverse Image/File storage. The supplied material includes the skill and repository license; its referenced shared instructions, release resolver and package contracts are unavailable here. Nothing was executed, and device behavior and package compatibility remain unverified.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage is limited to the selected folder plugins/mobile-apps/skills/add-native/add-pen-input, whose supplied contents consist of SKILL.md, plus the repository-root MIT LICENSE. Referenced shared instructions, compatibility rules, release lifecycle documentation, native-controls documentation, resolver scripts, native packages and application files are outside the supplied evidence. No commands, type checks, builds, device capture or Dataverse operations were executed. Runtime compatibility, output format and end-to-end behavior remain unverified.

The overview

Identity

The resource is the add-pen-input skill in Microsoft's power-platform-skills repository, under plugins/mobile-apps/skills/add-native/add-pen-input. It supplies instructions and example code for an assistant working on Power Apps native mobile apps.

Its metadata marks it as an internal helper with user-invocable set to false and disable-model-invocation set to true. The documented entry points are /add-native pen-input, /add-native signature and /add-native @microsoft/power-apps-native-pen-input.

Assessment

The skill offers a concrete implementation pattern for projects already using the surrounding mobile-apps tooling. It requires checking the app's release, preserving compatible existing code and distinguishing user cancellation from failures.

Adoption depends on material outside the supplied folder: shared instructions, artifact compatibility rules, release documentation, a resolver script and installed package types. The instructions are detailed, but successful integration cannot be established from this file alone.

Users

The intended users are developers using a coding assistant to add signatures, freehand drawings, ink or handwritten marks to an existing Power Apps mobile project. Beginners receive a wrapper and screen usage pattern; experienced developers receive release, error-handling and storage constraints.

The developer responsible for the app must still connect the wrapper to screens and implement any requested save operation. Handwriting recognition, identity verification and signature authenticity are not described.

Capabilities

The skill directs an assistant to create, verify or make an approved update to src/native/penInput.ts. Its captureSignature function accepts background color, stroke color and stroke width. The intended successful output is a PNG data URI, which contains image data directly in a string.

The result type separates success from UNSUPPORTED_PLATFORM, USER_CANCELLED, NATIVE_MODULE_MISSING and CAPTURE_FAILED. A stripDataUriPrefix helper supports storage interfaces that expect raw base64. The file also shows image display and Dataverse Image/File storage patterns.

Using it

Requirements

The documented project checks require app.config.js, power.config.json, package.json and a src directory. The process also uses Node.js, TypeScript, a plugin-root release resolver and several shared reference files. Supported versions of these tools are not specified in the supplied evidence.

The installed JavaScript package, its public types and the native build must match a verified app release. The example uses @microsoft/power-apps-native-controls/pen only when that release includes it; verified legacy releases may use @microsoft/power-apps-native-pen-input. The wrapper supports capture on iOS and Android. The skill declares the model label sonnet, without an exact model or assistant-host version.

Mechanism

The example wrapper first checks the platform, then dynamically imports the selected pen package and calls PenInputNative.capturePenInput. It translates returned statuses into a discriminated union: callers inspect ok before accessing either the image or a failure reason.

Cancellation returns USER_CANCELLED, allowing screens to preserve their current state without showing an error. The sample recognizes an absent capture method and an explicit NativeModuleMissing result. Exceptions, including import exceptions, fall through to CAPTURE_FAILED, so failure labels depend partly on how the installed package reports problems.

Setup

The documented sequence starts through /add-native, binds operations to the resolved app directory, verifies project files and resolves the installed mobile release. It then calls for checking the shared compatibility rules and existing wrapper before creating or changing code. A project that fails initialization checks is directed to /create-mobile-app.

This helper does not install packages, edit native configuration, change screens or perform native builds. It requests a TypeScript check with npx --no-install tsc --noEmit and additional behavior checks. The source explains that Metro JavaScript updates cannot add missing native modules; a package change requires a separate verified-release migration.

Example

A screen can call captureSignature with a white background, blue strokes and width 2. On success, it stores result.dataUri in screen state and displays it through React Native Image. If the user cancels, the example leaves the current state unchanged.

For a requested Dataverse Image save, the example removes the PNG data URI prefix when the generated service expects raw base64, then updates the image and timestamp fields. Its service and column names are illustrative. For a File column, it requires saving the parent row first and uploading through the generated helper; file bytes must not go into the row's create/update JSON body.

Assessment & evidence

Limitations

The skill's shared instructions, release resolver, compatibility contract, native-controls reference and installed native package implementation were not supplied. Exact supported releases, operating-system versions and generated Dataverse service signatures therefore remain unknown.

The example returns the native success value as dataUri without checking its format at runtime. Its PNG output requirement depends on the verified native API contract. Likewise, stripDataUriPrefix removes only the exact PNG prefix shown. Device capture, cancellation, missing-module handling and storage behavior were not tested; TypeScript success alone would not establish those behaviors.

Design reasoning

Putting capture behind one typed wrapper gives screens a consistent interface for images, cancellation and failures. Selecting one release-compatible import aims to avoid mixing native APIs. Requiring inspection before reuse or edits helps preserve existing application code.

The storage instructions distinguish Image payloads from File uploads and require generated services. These are useful design constraints, but their effectiveness depends on the actual installed contracts and implementation. No comparative results or measured reliability gains are supplied.

Alternatives

Within the documented ecosystem, the two release-dependent API choices are the controls package's /pen entry point and the legacy pen-input package. The choice requires verifying the app's release and native inventory.

The source identifies HostingSDK/PCF as a different integration route and explicitly excludes it from this native React Native approach. Other pen-capture libraries, signature services and competing implementations are not described or assessed.

Evidence

The implementation guidance comes from the complete supplied SKILL.md at revision 05b634df9272cffe9f8c4256dbe1950d097a5d91. Its original source is [https://raw.githubusercontent.com/microsoft/power-platform-skills/05b634df9272cffe9f8c4256dbe1950d097a5d91/plugins/mobile-apps/skills/add-native/add-pen-input/SKILL.md]. It establishes intended behavior and examples, without execution results.

The accompanying rights evidence is the repository-root license at the same revision: [https://raw.githubusercontent.com/microsoft/power-platform-skills/05b634df9272cffe9f8c4256dbe1950d097a5d91/LICENSE]. No application source, native package contents, generated services or device results were supplied.

Access & freshness

Costs

The supplied material contains no pricing or usage estimates. Costs for assistant/model usage, Power Apps access, Dataverse storage, native dependencies and build infrastructure are unknown. No implementation time, capture latency or resource-consumption measurements are provided.

Rights

The supplied repository-root LICENSE is the MIT License and identifies Microsoft Corporation as the copyright holder. It permits use, copying, modification, publication, distribution, sublicensing and sale, provided the copyright and permission notice accompany copies or substantial portions.

The license disclaims warranties and liability. Rights and terms for native packages, Power Apps services, Dataverse and other external dependencies are not established by the supplied repository notice.

Freshness

The supplied files were captured on 17 November 2026 at 10:35:43.805 UTC from revision 05b634df9272cffe9f8c4256dbe1950d097a5d91. That identifies the snapshot described here; it does not establish the file's last modification date or the repository's current contents.

The skill deliberately leaves package selection to the installed app's release record. No exact native package version is established by this snapshot, so compatibility must be resolved for each project.

Next steps

Developers considering this skill should obtain its surrounding mobile-apps plugin files, enter through /add-native and verify the project's installed release, public types and native modules. Inspect any existing penInput.ts and callers before approving changes.

For adoption, establish whether capture alone or Dataverse retention is required, confirm generated storage payloads and complete screen integration. Validate successful capture, cancellation, missing native modules, capture failures and any requested storage on target devices. A type check and working wrapper alone would leave the complete app journey unverified.

Evidence for this report

LICENSEnotice · checked 2026-11-17