Skip to content

microsoft/code-apps-preview

v1.3.0MIT

Build and deploy Power Apps code apps using React, Vite, and Power Platform connectors.

Code Apps Plugin

Build Power Apps code apps with React and Vite. The package includes an Agent Plugins 1.0.0 manifest and retains the GitHub Copilot and Claude Code manifests.

Preview: This plugin is currently in preview and may change before general availability.

Prerequisites

  • Node.js v22+
  • An agent client that supports plugins, such as GitHub Copilot CLI, Claude Code, Codex, or Cursor

Install

The plugin is published in the microsoft/power-platform-skills marketplace.

Open GitHub Copilot CLI or Claude Code in any folder and run the following commands:

  1. Add the marketplace:

    /plugin marketplace add microsoft/power-platform-skills
    
  2. Install the plugin:

    /plugin install code-apps-preview@power-platform-skills
    

Codex

Use the repository's Codex catalog:

codex plugin marketplace add microsoft/power-platform-skills
codex plugin add code-apps-preview@power-platform-skills

This catalog lists Code Apps only. The existing Copilot and Claude marketplace entries remain unchanged.

Cursor and Other Agent Plugins Clients

Load plugins/code-apps with the client's documented local plugin option. For Cursor CLI versions that support it:

cursor-agent --plugin-dir <checkout>/plugins/code-apps

Client versions can differ in plugin installation and update support. The portable manifest alone does not establish client runtime support.

Package Components

ComponentLocationPurpose
Portable manifestplugin.jsonAgent Plugins 1.0.0 package metadata
Legacy manifests.plugin/plugin.json, .claude-plugin/plugin.jsonExisting installations and updates
Shared skillsskillsThe same 15 workflows for all clients
Legacy architectagents/code-app-architect.mdArchitecture guidance in legacy clients
Native Copilot architectcom.github.copilot/agents/code-app-architect.agent.mdCopilot-specific agent discovery
Native Copilot hookscom.github.copilot/hooks/hooks.jsonExisting CLI attribution in portable clients

Skills retain their existing tool declarations, model preferences, and invocation settings. Client-specific metadata support varies. These settings do not establish strict Agent Skills conformance. Resource links resolve relative to each document, so they do not require client-specific variable expansion. The architect agent is client-specific, not a portable Agent Plugins component. The package retains the existing Code Apps attribution hooks. It does not include MCP servers.

Available Skills

CommandDescription
/create-code-appScaffold, build, and deploy a new Power Apps code app
/add-dataverseAdd Dataverse tables with generated TypeScript services
/add-sharepointAdd SharePoint Online connector
/add-excelAdd Excel Online (Business) connector
/add-onedriveAdd OneDrive for Business connector
/add-teamsAdd Teams messaging connector
/add-office365Add Office 365 Outlook connector (calendar, email, contacts)
/add-azuredevopsAdd Azure DevOps connector
/add-connectorAdd any other Power Platform connector
/add-datasourceAsk your copilot to recommend the right data source
/add-mcscopilotAdd a Microsoft Copilot Studio agent connector
/add-workiqAdd Microsoft 365 search and chat through Work IQ
/list-connectionsFind Power Platform connection IDs
/deployBuild and deploy an existing code app
/report-issuePrepare a public bug report for user approval

Start with /create-code-app — it walks you through everything.

Skill invocation syntax depends on the client. If the client has no skill tool, read the matching skills/<name>/SKILL.md and follow its workflow. All approval and confirmation requirements still apply.

Connections

Connectors other than Dataverse use a connection: the saved sign-in a connector uses to call its service. New projects get Power Apps CLI 1.3.0 or later installed automatically, so the plugin can reuse your existing connection or create one for you:

  • One connection for the connector: the plugin uses it.
  • Several connections: the plugin asks which one to use.
  • No connection, and the connector signs in only with your Microsoft account (single sign-on): the CLI creates one with your account while adding the connector. The plugin tells you before it starts the add.
  • No connection otherwise: the plugin asks for your OK before it creates one, either with single sign-on (--use-sso) or by running pa connection create. If the connector needs a browser sign-in, it may ask you to run pa connection create in your own terminal.

Projects on an older CLI keep working: the plugin looks up the connection ID first.

Update Existing Installations

The plugin identity remains code-apps-preview. Existing Copilot and Claude installations do not require removal or reinstallation:

/plugin marketplace update power-platform-skills
/plugin update code-apps-preview@power-platform-skills

For Codex, refresh the Git-backed marketplace:

codex plugin marketplace upgrade power-platform-skills

Start a new client session after updating. Use the documented update action for other clients.

CLI attribution

Before recognized Power Apps CLI shell commands, the plugin supplies PA_CLI_ORIGIN=plugin/<host-agent> (claude-code, copilot-cli, or unknown). It supports Bash and PowerShell, both npx --no-install pa and the npx --no-install power-apps fallback, direct binaries, and the resolved $PA prefix, plus simple Bash and PowerShell output captures. Detection is limited to leading invocations on a single line (optionally after a simple cd); complex scripts and PowerShell using preambles are left unchanged. Existing parent-environment values and inline assignments take precedence. Unrelated commands are not rewritten; no model information is collected.

CLI versions that support PA_CLI_ORIGIN record the complete value in the existing cliSource telemetry common property (queried as customDimensions.cliSource), not a new cliOrigin column. This plugin does not send its own telemetry or change the CLI's telemetry consent settings. Older CLI versions ignore the variable. See hook behavior and limitations.

Uninstall

/plugin uninstall code-apps-preview

Documentation