Skip to content

A plugin marketplace for GitHub Copilot and other AI agents that provides Power Platform development plugins, including reusable skills, agents, and commands for building and deploying solutions.

mobile-apps: notify users about plugin updates (#638)

Shubham Agarwal5c7c7cf4d161
diff --git a/plugins/mobile-apps/.claude-plugin/plugin.json b/plugins/mobile-apps/.claude-plugin/plugin.json
index 897275d70..0780b1b71 100644
--- a/plugins/mobile-apps/.claude-plugin/plugin.json
+++ b/plugins/mobile-apps/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "mobile-app",
- "version": "0.3.3",
+ "version": "0.3.4",
"description": "Build and deploy Power Apps code apps for mobile using Expo (React Native), with native device functionality and Power Platform connectors",
"author": {
"name": "Microsoft",
diff --git a/plugins/mobile-apps/.plugin/plugin.json b/plugins/mobile-apps/.plugin/plugin.json
index 897275d70..0780b1b71 100644
--- a/plugins/mobile-apps/.plugin/plugin.json
+++ b/plugins/mobile-apps/.plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "mobile-app",
- "version": "0.3.3",
+ "version": "0.3.4",
"description": "Build and deploy Power Apps code apps for mobile using Expo (React Native), with native device functionality and Power Platform connectors",
"author": {
"name": "Microsoft",
diff --git a/plugins/mobile-apps/AGENTS.md b/plugins/mobile-apps/AGENTS.md
index 21e29abd0..e2c7ca95e 100644
--- a/plugins/mobile-apps/AGENTS.md
+++ b/plugins/mobile-apps/AGENTS.md
@@ -81,6 +81,7 @@ Do not add preparation rewrites for `scheme`, `package`, `bundleIdentifier`, `sr
13. **Metro lifecycle is project-local** — template `metro.config.js` delegates to `createPowerAppsMetroConfig`, whose host implementation writes sanitized `.powernative/metro-logs/` output during normal `npm run dev`; `/debug-app` locates and tails those files directly, with its cursor, health, and audit state under `.powernative/debug-app/`. Do not restore required `BashOutput`/terminal-ID behavior or host-specific project state directories. Host terminal APIs may be optional conveniences only. Never write unsanitized Metro output to disk, and never diagnose a log unless the logged PID/port still look live.
14. **First-party native package defects are reported, not patched in customer projects** — a `node_modules/@microsoft/power-apps-native-*` frame alone is not proof of package ownership; first rule out invalid app usage against the package's public contract. Once a defect is confirmed inside one of these packages, do not edit `node_modules/`, generate `patch-package` or postinstall rewrites, vendor or fork the package, replace it with a git/tarball/local dependency, or shadow it through resolver aliases. Capture sanitized reproduction evidence and route to `/report-issue`.
15. **Custom events are Application Insights-specific and opt-in** — Each generated app targets one customer-owned, workspace-based Application Insights resource. `app.json` → `expo.extra.appInsightsConfig` defaults to disabled and stores its connection string, matching the Power Apps canvas-app model. Treat the value as sensitive project configuration: do not print it, write it to `memory-bank.md`, or include it in summaries. Keep `includeUserId` false unless explicitly approved.
+16. **Plugin update notification** — Immediately after the frontmatter of every `user-invocable: true` skill except `/check-updates`, run `node "${PLUGIN_ROOT}/scripts/check-version.js"` and show any output before proceeding. The check is best-effort and must never block the requested workflow. `/check-updates` owns its explicit plugin-version check in Step 1 and must not run a duplicate startup check.
## Telemetry
diff --git a/plugins/mobile-apps/scripts/check-version.js b/plugins/mobile-apps/scripts/check-version.js
new file mode 100644
index 000000000..b3bcc6882
--- /dev/null
+++ b/plugins/mobile-apps/scripts/check-version.js
@@ -0,0 +1,189 @@
+#!/usr/bin/env node
+'use strict';
+
+/**
+ * Compare the installed plugin version with the public marketplace manifest and
+ * return an update notice when a newer version is available.
+ *
+ * The command-line entry point is intentionally best-effort: update discovery
+ * must never block the skill the user actually invoked.
+ */
+
+const fs = require('node:fs');
+const path = require('node:path');
+
+const DEFAULT_MARKETPLACE_NAME = 'power-platform-skills';
+const REMOTE_PLUGIN_MANIFEST_URL =
+ 'https://raw.githubusercontent.com/microsoft/power-platform-skills/main/plugins/mobile-apps/.plugin/plugin.json';
+const PLUGIN_MANIFEST_PATHS = [
+ '.plugin/plugin.json',
+ '.claude-plugin/plugin.json',
+];
+const STABLE_SEMVER_PATTERN = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$/;
+
+function isStableSemver(version) {
+ return typeof version === 'string' && STABLE_SEMVER_PATTERN.test(version);
+}
+
+function compareSemver(localVersion, remoteVersion) {
+ const localParts = localVersion.split('.').map(Number);
+ const remoteParts = remoteVersion.split('.').map(Number);
+ for (let index = 0; index < 3; index++) {
+ if ((remoteParts[index] || 0) > (localParts[index] || 0)) return 1;
+ if ((remoteParts[index] || 0) < (localParts[index] || 0)) return -1;
+ }
+ return 0;
+}
+
+function isTruthyEnv(value) {
+ if (typeof value !== 'string') return false;
+ const normalized = value.trim().toLowerCase();
+ return normalized !== '' && normalized !== '0' && normalized !== 'false';
+}
+
+function detectHost(env = process.env) {
+ if (isTruthyEnv(env.COPILOT_CLI)) return 'copilot';
+ if (isTruthyEnv(env.CLAUDECODE) || isTruthyEnv(env.CLAUDE_CODE_EXECPATH)) return 'claude';
+ if (
+ isTruthyEnv(env.VSCODE_PID) ||
+ isTruthyEnv(env.VSCODE_CWD) ||
+ String(env.TERM_PROGRAM || '').toLowerCase() === 'vscode'
+ ) {
+ return 'vscode';
+ }
+ return 'ui';
+}
+
+function detectInstallation(pluginRoot) {
+ let current = fs.realpathSync(pluginRoot);
+ while (true) {
+ if (fs.existsSync(path.join(current, '.git'))) return 'checkout';
+ const parent = path.dirname(current);
+ if (parent === current) return 'marketplace';
+ current = parent;
+ }
+}
+
+function formatUpdateMessage(
+ pluginName,
+ localVersion,
+ remoteVersion,
+ marketplaceName,
+ host = detectHost(),
+ installation = 'marketplace'
+) {
+ let message = `\nPlugin update available: ${pluginName} ${localVersion} -> ${remoteVersion}.\n`;
+
+ if (installation === 'checkout') {
+ return (
+ message +
+ 'This plugin is loaded from a local checkout. Update that checkout, restart or reload the host, and rerun this skill.'
+ );
+ }
+
+ if (host === 'vscode') {
+ return (
+ message +
+ `Update ${pluginName} in the Agent Plugins/Extensions view, reload VS Code, and rerun this skill.`
+ );
+ }
+
+ if (host !== 'copilot' && host !== 'claude') {
+ return (
+ message +
+ `Update ${pluginName} from your host's plugin or extensions UI, restart or reload the host, and rerun this skill.`
+ );
+ }
+
+ const qualifiedName = marketplaceName ? `${pluginName}@${marketplaceName}` : pluginName;
+ if (marketplaceName) {
+ message += `Run:\n ${host} plugin marketplace update ${marketplaceName}\n ${host} plugin update ${qualifiedName}`;
+ } else {
+ message += `Run: ${host} plugin update ${qualifiedName}`;
+ }
+ return message;
+}
+
+function firstExistingPath(root, relativePaths) {
+ for (const relativePath of relativePaths) {
+ const filePath = path.join(root, relativePath);
+ if (fs.existsSync(filePath)) return filePath;
+ }
+ return null;
+}
+
+async function fetchRemotePluginManifest({
+ fetchImpl = globalThis.fetch,
+ timeoutMs = 5000,
+} = {}) {
+ if (typeof fetchImpl !== 'function') return null;
+
+ const controller = new AbortController();
+ const timeout = setTimeout(() => controller.abort(), timeoutMs);
+ try {
+ // The response is treated only as data. Use the fixed first-party endpoint
+ // shared with /check-updates and consume only its semantic version field.
+ const response = await fetchImpl(REMOTE_PLUGIN_MANIFEST_URL, {
+ headers: { Accept: 'application/json' },
+ redirect: 'error',
+ signal: controller.signal,
+ });
+ if (!response.ok) return null;
+
+ const manifest = await response.json();
+ return manifest && isStableSemver(manifest.version) ? manifest : null;
+ } catch {
+ return null;
+ } finally {
+ clearTimeout(timeout);
+ }
+}
+
+async function checkForUpdate({
+ pluginRoot = path.resolve(__dirname, '..'),
+ env = process.env,
+ fetchRemotePlugin = fetchRemotePluginManifest,
+ marketplaceName = DEFAULT_MARKETPLACE_NAME,
+} = {}) {
+ const resolvedPluginRoot = fs.realpathSync(pluginRoot);
+ const pluginJsonPath = firstExistingPath(resolvedPluginRoot, PLUGIN_MANIFEST_PATHS);
+ if (!pluginJsonPath) return null;
+
+ const localPlugin = JSON.parse(fs.readFileSync(pluginJsonPath, 'utf8'));
+ if (!isStableSemver(localPlugin.version)) return null;
+
+ // Marketplace installs contain only the plugin directory, so remote manifest
+ // discovery must not depend on a parent Git checkout or an origin/main ref.
+ const remotePlugin = await fetchRemotePlugin();
+ if (!isStableSemver(remotePlugin?.version)) return null;
+ if (compareSemver(localPlugin.version, remotePlugin.version) <= 0) return null;
+
+ return formatUpdateMessage(
+ localPlugin.name === 'mobile-app' ? localPlugin.name : 'mobile-app',
+ localPlugin.version,
+ remotePlugin.version,
+ marketplaceName,
+ detectHost(env),
+ detectInstallation(resolvedPluginRoot)
+ );
+}
+
+module.exports = {
+ checkForUpdate,
+ compareSemver,
+ detectHost,
+ detectInstallation,
+ fetchRemotePluginManifest,
+ formatUpdateMessage,
+ isStableSemver,
+};
+
+if (require.main === module) {
+ checkForUpdate()
+ .then((message) => {
+ if (message) console.log(message);
+ })
+ .catch(() => {
+ // Version checks must never block skill execution.
+ });
+}
diff --git a/plugins/mobile-apps/scripts/tests/check-version.test.js b/plugins/mobile-apps/scripts/tests/check-version.test.js
new file mode 100644
index 000000000..ed30ab0e2
--- /dev/null
+++ b/plugins/mobile-apps/scripts/tests/check-version.test.js
@@ -0,0 +1,307 @@
+'use strict';
+
+const assert = require('node:assert/strict');
+const fs = require('node:fs');
+const os = require('node:os');
+const path = require('node:path');
+const test = require('node:test');
+
+const {
+ checkForUpdate,
+ compareSemver,
+ detectHost,
+ detectInstallation,
+ fetchRemotePluginManifest,
+ formatUpdateMessage,
+ isStableSemver,
+} = require('../check-version');
+
+const pluginRoot = path.resolve(__dirname, '..', '..');
+const pluginCheckInstruction =
+ '> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` - if it outputs a message, show it to the user before proceeding.';
+
+function createInstalledPlugin(t, localVersion) {
+ const root = fs.mkdtempSync(path.join(os.tmpdir(), 'mobile-app-version-'));
+ t.after(() => fs.rmSync(root, { recursive: true, force: true }));
+
+ const installedPluginRoot = path.join(root, 'mobile-app');
+ fs.mkdirSync(path.join(installedPluginRoot, '.plugin'), { recursive: true });
+ fs.writeFileSync(
+ path.join(installedPluginRoot, '.plugin', 'plugin.json'),
+ JSON.stringify({ name: 'mobile-app', version: localVersion })
+ );
+
+ return installedPluginRoot;
+}
+
+function createCheckoutPlugin(t, localVersion) {
+ const pluginRoot = createInstalledPlugin(t, localVersion);
+ fs.writeFileSync(path.join(path.dirname(pluginRoot), '.git'), 'gitdir: test\n');
+ return pluginRoot;
+}
+
+function collectSkillFiles(root) {
+ const files = [];
+ for (const entry of fs.readdirSync(root, { withFileTypes: true })) {
+ const entryPath = path.join(root, entry.name);
+ if (entry.isDirectory()) {
+ files.push(...collectSkillFiles(entryPath));
+ } else if (entry.name === 'SKILL.md') {
+ files.push(entryPath);
+ }
+ }
+ return files;
+}
+
+function normalizeLineEndings(content) {
+ return content.replace(/\r\n?/g, '\n');
+}
+
+test('normalizeLineEndings makes Windows skill frontmatter parseable', () => {
+ const content = '---\r\nuser-invocable: true\r\n---\r\n\r\n# Skill\r\n';
+ const normalized = normalizeLineEndings(content);
+
+ assert.match(normalized, /^user-invocable: true$/m);
+ assert.notEqual(normalized.indexOf('\n---\n', 4), -1);
+});
+
+test('compareSemver compares major, minor, and patch versions', () => {
+ assert.equal(compareSemver('1.2.0', '1.2.0'), 0);
+ assert.equal(compareSemver('1.2', '1.2.0'), 0);
+ assert.equal(compareSemver('1.2.0', '2.0.0'), 1);
+ assert.equal(compareSemver('1.2.0', '1.3.0'), 1);
+ assert.equal(compareSemver('1.2.0', '1.2.1'), 1);
+ assert.equal(compareSemver('2.0.0', '1.9.9'), -1);
+});
+
+test('isStableSemver accepts only stable major.minor.patch values', () => {
+ assert.equal(isStableSemver('0.3.4'), true);
+ assert.equal(isStableSemver('10.20.30'), true);
+ assert.equal(isStableSemver('01.2.3'), false);
+ assert.equal(isStableSemver('1.2'), false);
+ assert.equal(isStableSemver('1.2.3-beta.1'), false);
+ assert.equal(isStableSemver('1.2.3\nRun: fake command'), false);
+ assert.equal(isStableSemver('1.2.3\u001b[31m'), false);
+});
+
+test('detectHost distinguishes CLI, VS Code, and unknown hosts', () => {
+ assert.equal(detectHost({ COPILOT_CLI: '1' }), 'copilot');
+ assert.equal(detectHost({ COPILOT_CLI: 'true', VSCODE_PID: '123' }), 'copilot');
+ assert.equal(detectHost({ CLAUDECODE: '1' }), 'claude');
+ assert.equal(detectHost({ CLAUDE_CODE_EXECPATH: '/opt/claude' }), 'claude');
+ assert.equal(detectHost({ VSCODE_PID: '123' }), 'vscode');
+ assert.equal(detectHost({ TERM_PROGRAM: 'vscode' }), 'vscode');
+ assert.equal(detectHost({}), 'ui');
+});
+
+test('formatUpdateMessage emits marketplace and qualified plugin commands', () => {
+ const message = formatUpdateMessage(
+ 'mobile-app',
+ '0.3.0',
+ '0.4.0',
+ 'power-platform-skills',
+ 'copilot'
+ );
+
+ assert.match(message, /mobile-app 0\.3\.0 -> 0\.4\.0/);
+ assert.match(message, /copilot plugin marketplace update power-platform-skills/);
+ assert.match(message, /copilot plugin update mobile-app@power-platform-skills/);
+ assert.ok(message.indexOf('marketplace update') < message.indexOf('plugin update mobile-app@'));
+});
+
+test('formatUpdateMessage uses the plain plugin name without a marketplace', () => {
+ const message = formatUpdateMessage('mobile-app', '0.3.0', '0.4.0', null, 'claude');
+
+ assert.match(message, /claude plugin update mobile-app/);
+ assert.doesNotMatch(message, /marketplace update/);
+ assert.doesNotMatch(message, /@/);
+});
+
+test('formatUpdateMessage gives VS Code UI guidance without CLI commands', () => {
+ const message = formatUpdateMessage(
+ 'mobile-app',
+ '0.3.0',
+ '0.4.0',
+ 'power-platform-skills',
+ 'vscode'
+ );
+
+ assert.match(message, /Agent Plugins\/Extensions view/);
+ assert.match(message, /reload VS Code/);
+ assert.doesNotMatch(message, /claude plugin|copilot plugin/);
+});
+
+test('formatUpdateMessage gives unknown hosts neutral UI guidance', () => {
+ const message = formatUpdateMessage(
+ 'mobile-app',
+ '0.3.0',
+ '0.4.0',
+ 'power-platform-skills',
+ 'ui'
+ );
+
+ assert.match(message, /host's plugin or extensions UI/);
+ assert.doesNotMatch(message, /claude plugin|copilot plugin/);
+});
+
+test('formatUpdateMessage gives local checkouts source-specific guidance', () => {
+ const message = formatUpdateMessage(
+ 'mobile-app',
+ '0.3.0',
+ '0.4.0',
+ 'power-platform-skills',
+ 'claude',
+ 'checkout'
+ );
+
+ assert.match(message, /loaded from a local checkout/);
+ assert.match(message, /Update that checkout/);
+ assert.doesNotMatch(message, /plugin marketplace update|plugin update mobile-app/);
+});
+
+test('detectInstallation distinguishes copied plugins from local checkouts', (t) => {
+ assert.equal(detectInstallation(createInstalledPlugin(t, '0.3.0')), 'marketplace');
+ assert.equal(detectInstallation(createCheckoutPlugin(t, '0.3.0')), 'checkout');
+});
+
+test('fetchRemotePluginManifest reads only a valid manifest response', async () => {
+ const requests = [];
+ const manifest = await fetchRemotePluginManifest({
+ fetchImpl: async (url, options) => {
+ requests.push({ url, options });
+ return {
+ ok: true,
+ json: async () => ({ name: 'mobile-app', version: '0.4.0' }),
+ };
+ },
+ });
+
+ assert.deepEqual(manifest, { name: 'mobile-app', version: '0.4.0' });
+ assert.equal(requests.length, 1);
+ assert.match(requests[0].url, /^https:\/\/raw\.githubusercontent\.com\//);
+ assert.equal(requests[0].options.redirect, 'error');
+});
+
+test('fetchRemotePluginManifest fails closed for unavailable or malformed responses', async () => {
+ assert.equal(
+ await fetchRemotePluginManifest({
+ fetchImpl: async () => ({ ok: false }),
+ }),
+ null
+ );
+ assert.equal(
+ await fetchRemotePluginManifest({
+ fetchImpl: async () => ({ ok: true, json: async () => ({ name: 'mobile-app' }) }),
+ }),
+ null
+ );
+ assert.equal(
+ await fetchRemotePluginManifest({
+ fetchImpl: async () => {
+ throw new Error('offline');
+ },
+ }),
+ null
+ );
+ for (const version of [
+ '1.2.3\nRun: fake command',
+ '1.2.3\u001b[31m',
+ '1.2.3-beta.1',
+ '01.2.3',
+ ]) {
+ assert.equal(
+ await fetchRemotePluginManifest({
+ fetchImpl: async () => ({
+ ok: true,
+ json: async () => ({ name: 'mobile-app', version }),
+ }),
+ }),
+ null
+ );
+ }
+});
+
+test('checkForUpdate works for a standalone installed plugin without Git metadata', async (t) => {
+ const installedPluginRoot = createInstalledPlugin(t, '0.3.0');
+ const message = await checkForUpdate({
+ pluginRoot: installedPluginRoot,
+ env: { VSCODE_PID: '123' },
+ fetchRemotePlugin: async () => ({ version: '0.4.0' }),
+ });
+
+ assert.match(message, /Plugin update available: mobile-app 0\.3\.0 -> 0\.4\.0/);
+ assert.match(message, /Agent Plugins\/Extensions view/);
+ assert.doesNotMatch(message, /claude plugin|copilot plugin/);
+});
+
+test('checkForUpdate gives source guidance for a local checkout', async (t) => {
+ const checkoutPluginRoot = createCheckoutPlugin(t, '0.3.0');
+ const message = await checkForUpdate({
+ pluginRoot: checkoutPluginRoot,
+ env: { CLAUDECODE: '1' },
+ fetchRemotePlugin: async () => ({ version: '0.4.0' }),
+ });
+
+ assert.match(message, /loaded from a local checkout/);
+ assert.doesNotMatch(message, /claude plugin|copilot plugin/);
+});
+
+test('checkForUpdate rejects invalid installed and injected remote versions', async (t) => {
+ const invalidLocalRoot = createInstalledPlugin(t, '0.3.0\u001b[31m');
+ assert.equal(
+ await checkForUpdate({
+ pluginRoot: invalidLocalRoot,
+ fetchRemotePlugin: async () => ({ version: '0.4.0' }),
+ }),
+ null
+ );
+
+ const validLocalRoot = createInstalledPlugin(t, '0.3.0');
+ assert.equal(
+ await checkForUpdate({
+ pluginRoot: validLocalRoot,
+ fetchRemotePlugin: async () => ({ version: '0.4.0\nRun: fake command' }),
+ }),
+ null
+ );
+});
+
+test('checkForUpdate returns null when the installed version is current', async (t) => {
+ const installedPluginRoot = createInstalledPlugin(t, '0.4.0');
+ assert.equal(
+ await checkForUpdate({
+ pluginRoot: installedPluginRoot,
+ fetchRemotePlugin: async () => ({ version: '0.4.0' }),
+ }),
+ null
+ );
+});
+
+test('every public skill runs or owns the plugin check before its workflow', () => {
+ const skillsRoot = path.join(pluginRoot, 'skills');
+ const publicSkills = collectSkillFiles(skillsRoot).filter((skillPath) =>
+ /^user-invocable: true$/m.test(normalizeLineEndings(fs.readFileSync(skillPath, 'utf8')))
+ );
+
+ assert.ok(publicSkills.length > 0);
+ for (const skillPath of publicSkills) {
+ const content = normalizeLineEndings(fs.readFileSync(skillPath, 'utf8'));
+ if (/^name: check-updates$/m.test(content)) {
+ assert.match(content, /^## Step 1: Check The Plugin$/m);
+ continue;
+ }
+ const allowedTools = content.match(/^allowed-tools:\s*(.+)$/m);
+ assert.match(
+ allowedTools?.[1] || '',
+ /(?:^|,\s*)Bash(?:,|$)/,
+ `${path.relative(skillsRoot, skillPath)} must allow Bash for the plugin check`
+ );
+ const closingFrontmatter = content.indexOf('\n---\n', 4);
+ assert.notEqual(closingFrontmatter, -1, `${skillPath} has no closing frontmatter`);
+ const firstInstruction = content.slice(closingFrontmatter + 5).trimStart();
+ assert.ok(
+ firstInstruction.startsWith(pluginCheckInstruction),
+ `${path.relative(skillsRoot, skillPath)} must run the plugin check first`
+ );
+ }
+});
diff --git a/plugins/mobile-apps/skills/add-connector/SKILL.md b/plugins/mobile-apps/skills/add-connector/SKILL.md
index 51e92aa93..51f3bd5ac 100644
--- a/plugins/mobile-apps/skills/add-connector/SKILL.md
+++ b/plugins/mobile-apps/skills/add-connector/SKILL.md
@@ -6,6 +6,8 @@ allowed-tools: Read, Edit, Write, Grep, Glob, Bash, AskUserQuestion, Skill
model: sonnet
---
+> **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)** | **Connector reference: [connector-reference.md](${PLUGIN_ROOT}/shared/connector-reference.md)** — read both first.
# Add Connector (Generic)
diff --git a/plugins/mobile-apps/skills/add-datasource/SKILL.md b/plugins/mobile-apps/skills/add-datasource/SKILL.md
index 6ae939146..4ea366752 100644
--- a/plugins/mobile-apps/skills/add-datasource/SKILL.md
+++ b/plugins/mobile-apps/skills/add-datasource/SKILL.md
@@ -2,10 +2,12 @@
name: add-datasource
description: Use when adding an unspecified data source to an Expo/React Native Power Apps mobile app; routes to Dataverse, SharePoint, or another connector.
user-invocable: true
-allowed-tools: Read, Grep, Glob, AskUserQuestion, Skill
+allowed-tools: Read, Grep, Glob, Bash, AskUserQuestion, Skill
model: sonnet
---
+> **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.
# Add Data Source
diff --git a/plugins/mobile-apps/skills/add-dataverse/SKILL.md b/plugins/mobile-apps/skills/add-dataverse/SKILL.md
index 158541a4c..8b0fe6d52 100644
--- a/plugins/mobile-apps/skills/add-dataverse/SKILL.md
+++ b/plugins/mobile-apps/skills/add-dataverse/SKILL.md
@@ -6,6 +6,8 @@ allowed-tools: Read, Edit, Write, Grep, Glob, Bash, AskUserQuestion, EnterPlanMo
model: opus
---
+> **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.
# Add Dataverse
diff --git a/plugins/mobile-apps/skills/add-native/SKILL.md b/plugins/mobile-apps/skills/add-native/SKILL.md
index 1345c6b7c..a3a6636be 100644
--- a/plugins/mobile-apps/skills/add-native/SKILL.md
+++ b/plugins/mobile-apps/skills/add-native/SKILL.md
@@ -6,6 +6,8 @@ allowed-tools: Read, Edit, Write, Grep, Glob, Bash, AskUserQuestion
model: sonnet
---
+> **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.
# Add Native Capability
diff --git a/plugins/mobile-apps/skills/add-sample-data/SKILL.md b/plugins/mobile-apps/skills/add-sample-data/SKILL.md
index 34c3b7bf6..509a00b4f 100644
--- a/plugins/mobile-apps/skills/add-sample-data/SKILL.md
+++ b/plugins/mobile-apps/skills/add-sample-data/SKILL.md
@@ -6,6 +6,8 @@ allowed-tools: Read, Edit, Write, Grep, Glob, Bash, AskUserQuestion
model: sonnet
---
+> **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.
# Add Sample Data
diff --git a/plugins/mobile-apps/skills/add-sharepoint/SKILL.md b/plugins/mobile-apps/skills/add-sharepoint/SKILL.md
index 045ff1df7..f6fd17f6b 100644
--- a/plugins/mobile-apps/skills/add-sharepoint/SKILL.md
+++ b/plugins/mobile-apps/skills/add-sharepoint/SKILL.md
@@ -6,6 +6,8 @@ allowed-tools: Read, Edit, Write, Grep, Glob, Bash, AskUserQuestion, EnterPlanMo
model: sonnet
---
+> **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.
**References:**
diff --git a/plugins/mobile-apps/skills/create-mobile-app/SKILL.md b/plugins/mobile-apps/skills/create-mobile-app/SKILL.md
index 8e667a291..b613fbaef 100644
--- a/plugins/mobile-apps/skills/create-mobile-app/SKILL.md
+++ b/plugins/mobile-apps/skills/create-mobile-app/SKILL.md
@@ -6,6 +6,8 @@ allowed-tools: Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion, Skill, Task
model: opus
---
+> **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. Covers safety guardrails, memory bank usage, preferred-environment policy, connector-first rule, Windows CLI compat, command-failure handling.
# Create Power Apps Code App (Native)
diff --git a/plugins/mobile-apps/skills/debug-app/SKILL.md b/plugins/mobile-apps/skills/debug-app/SKILL.md
index 7396aab35..a17d0bf45 100644
--- a/plugins/mobile-apps/skills/debug-app/SKILL.md
+++ b/plugins/mobile-apps/skills/debug-app/SKILL.md
@@ -6,6 +6,8 @@ allowed-tools: Read, Edit, Write, Grep, Glob, Bash, AskUserQuestion, WebFetch, m
model: sonnet
---
+> **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.
# Debug App — Monitor & Fix
diff --git a/plugins/mobile-apps/skills/deploy/SKILL.md b/plugins/mobile-apps/skills/deploy/SKILL.md
index 144e7ac37..ce8d344b4 100644
--- a/plugins/mobile-apps/skills/deploy/SKILL.md
+++ b/plugins/mobile-apps/skills/deploy/SKILL.md
@@ -6,6 +6,8 @@ allowed-tools: Read, Glob, Bash, AskUserQuestion, Skill
model: sonnet
---
+> **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.
# Deploy
diff --git a/plugins/mobile-apps/skills/design-system/SKILL.md b/plugins/mobile-apps/skills/design-system/SKILL.md
index 9b7bfc342..e57e1b77a 100644
--- a/plugins/mobile-apps/skills/design-system/SKILL.md
+++ b/plugins/mobile-apps/skills/design-system/SKILL.md
@@ -6,6 +6,8 @@ allowed-tools: Read, Write, Edit, Glob, Grep, Bash, AskUserQuestion, Task, WebFe
model: opus
---
+> **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](../../shared/shared-instructions.md)** — read first.
# Design System
diff --git a/plugins/mobile-apps/skills/edit-app/SKILL.md b/plugins/mobile-apps/skills/edit-app/SKILL.md
index fd29bc34c..1a8e79659 100644
--- a/plugins/mobile-apps/skills/edit-app/SKILL.md
+++ b/plugins/mobile-apps/skills/edit-app/SKILL.md
@@ -6,6 +6,8 @@ allowed-tools: Read, Write, Edit, Glob, Grep, Bash, AskUserQuestion, Task, Skill
model: opus
---
+> **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](../../shared/shared-instructions.md)** — read first.
# Edit App (`/edit-app`)
diff --git a/plugins/mobile-apps/skills/list-connections/SKILL.md b/plugins/mobile-apps/skills/list-connections/SKILL.md
index dcf0c3e4b..a09989097 100644
--- a/plugins/mobile-apps/skills/list-connections/SKILL.md
+++ b/plugins/mobile-apps/skills/list-connections/SKILL.md
@@ -6,6 +6,8 @@ allowed-tools: Bash
model: haiku
---
+> **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)** — cross-cutting concerns (Windows CLI compatibility, memory bank, etc.).
# List Connections
diff --git a/plugins/mobile-apps/skills/open-wrap-url/SKILL.md b/plugins/mobile-apps/skills/open-wrap-url/SKILL.md
index 231484e1b..9fb99916a 100644
--- a/plugins/mobile-apps/skills/open-wrap-url/SKILL.md
+++ b/plugins/mobile-apps/skills/open-wrap-url/SKILL.md
@@ -6,6 +6,8 @@ allowed-tools: Bash
model: haiku
---
+> **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](../../shared/shared-instructions.md)** — read first.
# Open Wrap URL
diff --git a/plugins/mobile-apps/skills/preview-screens/SKILL.md b/plugins/mobile-apps/skills/preview-screens/SKILL.md
index caf02ad10..ceead0bc5 100644
--- a/plugins/mobile-apps/skills/preview-screens/SKILL.md
+++ b/plugins/mobile-apps/skills/preview-screens/SKILL.md
@@ -6,6 +6,8 @@ allowed-tools: Read, Write, Glob, Grep, Bash
model: sonnet
---
+> **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](../../shared/shared-instructions.md)** — read first.
# Preview Screens
diff --git a/plugins/mobile-apps/skills/report-issue/SKILL.md b/plugins/mobile-apps/skills/report-issue/SKILL.md
index fabb2d192..29642a49e 100644
--- a/plugins/mobile-apps/skills/report-issue/SKILL.md
+++ b/plugins/mobile-apps/skills/report-issue/SKILL.md
@@ -7,6 +7,8 @@ allowed-tools: Read, Bash, Glob, Grep, AskUserQuestion
model: haiku
---
+> **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 this first.
# Report Issue — mobile-app
diff --git a/plugins/mobile-apps/skills/set-app-registration-native/SKILL.md b/plugins/mobile-apps/skills/set-app-registration-native/SKILL.md
index b35d21ccf..5aeee6b87 100644
--- a/plugins/mobile-apps/skills/set-app-registration-native/SKILL.md
+++ b/plugins/mobile-apps/skills/set-app-registration-native/SKILL.md
@@ -6,6 +6,8 @@ allowed-tools: Read, Edit, Write, Grep, Glob, Bash, AskUserQuestion
model: sonnet
---
+> **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.
# Set App Registration Native
diff --git a/plugins/mobile-apps/skills/setup-app-insights/SKILL.md b/plugins/mobile-apps/skills/setup-app-insights/SKILL.md
index 0886e117f..b69de2d74 100644
--- a/plugins/mobile-apps/skills/setup-app-insights/SKILL.md
+++ b/plugins/mobile-apps/skills/setup-app-insights/SKILL.md
@@ -6,6 +6,8 @@ allowed-tools: Read, Write, Edit, Glob, Grep, Bash, AskUserQuestion, Skill
model: opus
---
+> **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](../../shared/shared-instructions.md)** — read first.
# Set up Application Insights
diff --git a/plugins/mobile-apps/skills/setup-datamodel/SKILL.md b/plugins/mobile-apps/skills/setup-datamodel/SKILL.md
index 9fec7d5da..3f2145a62 100644
--- a/plugins/mobile-apps/skills/setup-datamodel/SKILL.md
+++ b/plugins/mobile-apps/skills/setup-datamodel/SKILL.md
@@ -6,6 +6,8 @@ allowed-tools: Read, Edit, Write, Grep, Glob, Bash, AskUserQuestion, EnterPlanMo
model: opus
---
+> **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.
# Set Up Data Model + Connectors
diff --git a/plugins/mobile-apps/skills/setup-offline-profile/SKILL.md b/plugins/mobile-apps/skills/setup-offline-profile/SKILL.md
index f3f237085..de7d5331d 100644
--- a/plugins/mobile-apps/skills/setup-offline-profile/SKILL.md
+++ b/plugins/mobile-apps/skills/setup-offline-profile/SKILL.md
@@ -6,6 +6,8 @@ allowed-tools: Read, Edit, Write, Grep, Glob, Bash, AskUserQuestion, EnterPlanMo
model: opus
---
+> **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.
**References:**
diff --git a/plugins/mobile-apps/skills/telemetry/SKILL.md b/plugins/mobile-apps/skills/telemetry/SKILL.md
index 6e07b006e..1b54f9d69 100644
--- a/plugins/mobile-apps/skills/telemetry/SKILL.md
+++ b/plugins/mobile-apps/skills/telemetry/SKILL.md
@@ -11,4 +11,6 @@ allowed-tools: Bash
model: haiku
---
+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` - if it outputs a message, show it to the user before proceeding.
+
**Workflow: [telemetry-workflow.md](${PLUGIN_ROOT}/skills/telemetry/telemetry-workflow.md)** — Read and follow all steps defined in that bundled file.
\ No newline at end of file