[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6X07STRW6TS3JEFCQNSPT0V":3,"skill-same:01M6X07STRW6TS3JEFCQNSPT0V":64},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":35,"linkOnly":36,"markdownContent":37,"markdownBody":38,"frontMatter":39,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":47,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M6X07STRW6TS3JEFCQNSPT0V","dev",null,"Runs a Microsoft App locally with hot reload via `ms app dev`. Use when starting or restarting local development and surfacing the App Player URL.","microsoft\u002FCopilot-Managed-Runtime","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M6X05E4HRJ1306KAFJJ9MASV",10,"MIT","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FCopilot-Managed-Runtime\u002Fblob\u002Fmain\u002Fplugins\u002Fcopilot-managed-runtime\u002Fskills\u002Fdev\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,9,28,29,30,31,32,33,34],"app","hot reload","when","app dev","player","URL","with","local development","via","local","ms","use","read","grep","Bash","development","2026-11-10 10:12:30",false,"---\nname: dev\ndescription: Runs a Microsoft App locally with hot reload via `ms app dev`. Use when starting or restarting local development and surfacing the App Player URL.\nallowed-tools: Read Grep Bash AskUserQuestion\n---\n\n**? Shared Instructions: [shared-instructions.md](..\u002F..\u002Fshared\u002Fshared-instructions.md)** — Cross-cutting concerns.\n\n# Local Dev\n\nStarts `ms app dev` in the project's working directory. The CLI runs two servers — a dev script (Vite or equivalent, default port 8080) and a config server — and prints the App Player URL the user opens in their browser.\n\nThis skill does NOT deploy to the cloud. For that, use `\u002Fdeploy`.\n\n## Workflow\n\n1. Memory Bank → 2. Verify Project + Env → 3. Start Dev Server → 4. Hand Off URL\n\n---\n\n### Step 1: Check Memory Bank\n\nRead `memory-bank.md` from the project root (the project the user has `cd`'d into, or the path captured from a prior skill invocation) for context — the app slug\u002FGUID and which environment this project targets — so you can confirm you're starting the right app.\n\n`ms app dev` does **not** need `environmentId` or `appId` passed to it: it runs in the project working directory and reads `ms.config.json` itself. The memory bank is only for orienting yourself; if it's missing, that's fine — skip straight to Step 2.\n\n### Step 2: Verify Project + Env\n\n```bash\ntest -f ms.config.json || { echo \"Not in a Microsoft App workspace (no ms.config.json).\"; exit 1; }\n```\n\nProbe the CLI binary and confirm auth:\n\n```bash\nBIN=ms\n$BIN auth status\n```\n\nIf auth status reports the wrong UPN or is signed out, prompt the user to fix it before continuing (`ms auth login`). Don't try to repair auth silently — wrong-account dev sessions waste time downstream.\n\n### Step 3: Start the Dev Server\n\nDefault invocation:\n\n```bash\n$BIN app dev\n```\n\nFlags worth surfacing (only when the user mentions a need):\n\n| Flag                       | When to use                                                                 |\n| -------------------------- | --------------------------------------------------------------------------- |\n| `--port \u003Cn>` (`-p`)        | Port 8080 is busy. Pick another (e.g., `--port 8081`).                      |\n| `--local-app-url \u003Curl>` (`-l`) | The user's Vite\u002Fdev script is on a non-default URL (default `http:\u002F\u002Flocalhost:3000`). |\n| `--config-only` (`-C`)     | Only run the config server. Useful when the user runs `npm run dev` separately. |\n\nIf the user invoked `\u002Fdev` without arguments, run plain `$BIN app dev` first; surface flags only if the run fails.\n\n**Run in the background** (`run_in_background: true`) so the session can continue. Stream stdout via `Monitor` until the line `Ready. You can play your app locally at: \u003CURL>` appears — that's the App Player URL.\n\n### Step 4: Open the Browser and Hand Off the URL\n\n**Open the browser automatically** — run `Start-Process \"\u003Ccaptured URL>\"` (Windows) or `open \"\u003Ccaptured URL>\"` (macOS) \u002F `xdg-open \"\u003Ccaptured URL>\"` (Linux) so the user sees their app immediately without copy-pasting. If the open command fails, fall back to printing the URL.\n\nPrint the App Player URL as a **markdown link** so it stays clickable even in narrow terminals. **Also show the URL on its own line** — markdown links can render as plain label text in some environments (e.g. tables), hiding the actual URL from the user.\n\n```\nLocal dev running — opened the app in your default browser.\n\nLocal URL: [Open app in browser](\u003Ccaptured URL>)\n           \u003Ccaptured URL>\nStop:      Ctrl+C in the dev terminal (or kill the background task).\nRestart:   \u002Fdev (from this project folder)\n```\n\nDo **not** show the git remote URL in the dev summary — it's an internal detail that confuses users who expect a browser-openable link. The only URL to surface is the App Player URL printed by `ms app dev` (the domain varies by cloud\u002Fregion — always use the exact URL the CLI outputs, never hardcode the host).\n\nThen add a one-liner reminder of the iterate → preview → deploy loop:\n\n> \"The browser tab hot-reloads as I edit code — tell me what to change. When you're happy with it, I'll commit + push your changes, run `ms app play --mode preview` for a cloud preview URL in your environment, and then ask if you want me to `\u002Fdeploy`.\"\n\nWhen the user signals readiness, follow the **Ready-to-Ship Gate** in [shared-instructions.md](..\u002F..\u002Fshared\u002Fshared-instructions.md) — commit, push, preview, then ask about `\u002Fdeploy`.\n\nIf the dev server prints an error during startup (port conflict, missing `ms.config.json`, expired auth), stop the background task, surface the error verbatim, and propose the targeted fix:\n\n| Error                                                | Fix                                                                                         |\n| ---------------------------------------------------- | ------------------------------------------------------------------------------------------- |\n| `EADDRINUSE` on 8080                                  | Re-run with `$BIN app dev --port 8081` (or kill whatever's on 8080).                        |\n| `ms.config.json not found`                         | The user is in the wrong directory, or this isn't a Microsoft App workspace. Verify and stop. |\n| `Authentication failed` (token expired)               | Run `$BIN auth login` (interactive) and retry.                                              |\n| `Failed to fetch app metadata for \u003Capp-id>`           | App was deleted in the service. Confirm with `$BIN app list --json` and restore or recreate.|\n\nDo NOT push or deploy from this skill, even if the user mentions it mid-session — bounce them to `\u002Fdeploy` (which requires explicit confirmation).\n\n> **Sharing a cloud preview:** The App Player URL from `ms app dev` is local-only. Once code is pushed to main, use `\u002Fplay` (`ms app play --mode preview`) to open a cloud-hosted preview URL that works for others without a deploy.","**? Shared Instructions: [shared-instructions.md](..\u002F..\u002Fshared\u002Fshared-instructions.md)** — Cross-cutting concerns.\n\n# Local Dev\n\nStarts `ms app dev` in the project's working directory. The CLI runs two servers — a dev script (Vite or equivalent, default port 8080) and a config server — and prints the App Player URL the user opens in their browser.\n\nThis skill does NOT deploy to the cloud. For that, use `\u002Fdeploy`.\n\n## Workflow\n\n1. Memory Bank → 2. Verify Project + Env → 3. Start Dev Server → 4. Hand Off URL\n\n---\n\n### Step 1: Check Memory Bank\n\nRead `memory-bank.md` from the project root (the project the user has `cd`'d into, or the path captured from a prior skill invocation) for context — the app slug\u002FGUID and which environment this project targets — so you can confirm you're starting the right app.\n\n`ms app dev` does **not** need `environmentId` or `appId` passed to it: it runs in the project working directory and reads `ms.config.json` itself. The memory bank is only for orienting yourself; if it's missing, that's fine — skip straight to Step 2.\n\n### Step 2: Verify Project + Env\n\n```bash\ntest -f ms.config.json || { echo \"Not in a Microsoft App workspace (no ms.config.json).\"; exit 1; }\n```\n\nProbe the CLI binary and confirm auth:\n\n```bash\nBIN=ms\n$BIN auth status\n```\n\nIf auth status reports the wrong UPN or is signed out, prompt the user to fix it before continuing (`ms auth login`). Don't try to repair auth silently — wrong-account dev sessions waste time downstream.\n\n### Step 3: Start the Dev Server\n\nDefault invocation:\n\n```bash\n$BIN app dev\n```\n\nFlags worth surfacing (only when the user mentions a need):\n\n| Flag                       | When to use                                                                 |\n| -------------------------- | --------------------------------------------------------------------------- |\n| `--port \u003Cn>` (`-p`)        | Port 8080 is busy. Pick another (e.g., `--port 8081`).                      |\n| `--local-app-url \u003Curl>` (`-l`) | The user's Vite\u002Fdev script is on a non-default URL (default `http:\u002F\u002Flocalhost:3000`). |\n| `--config-only` (`-C`)     | Only run the config server. Useful when the user runs `npm run dev` separately. |\n\nIf the user invoked `\u002Fdev` without arguments, run plain `$BIN app dev` first; surface flags only if the run fails.\n\n**Run in the background** (`run_in_background: true`) so the session can continue. Stream stdout via `Monitor` until the line `Ready. You can play your app locally at: \u003CURL>` appears — that's the App Player URL.\n\n### Step 4: Open the Browser and Hand Off the URL\n\n**Open the browser automatically** — run `Start-Process \"\u003Ccaptured URL>\"` (Windows) or `open \"\u003Ccaptured URL>\"` (macOS) \u002F `xdg-open \"\u003Ccaptured URL>\"` (Linux) so the user sees their app immediately without copy-pasting. If the open command fails, fall back to printing the URL.\n\nPrint the App Player URL as a **markdown link** so it stays clickable even in narrow terminals. **Also show the URL on its own line** — markdown links can render as plain label text in some environments (e.g. tables), hiding the actual URL from the user.\n\n```\nLocal dev running — opened the app in your default browser.\n\nLocal URL: [Open app in browser](\u003Ccaptured URL>)\n           \u003Ccaptured URL>\nStop:      Ctrl+C in the dev terminal (or kill the background task).\nRestart:   \u002Fdev (from this project folder)\n```\n\nDo **not** show the git remote URL in the dev summary — it's an internal detail that confuses users who expect a browser-openable link. The only URL to surface is the App Player URL printed by `ms app dev` (the domain varies by cloud\u002Fregion — always use the exact URL the CLI outputs, never hardcode the host).\n\nThen add a one-liner reminder of the iterate → preview → deploy loop:\n\n> \"The browser tab hot-reloads as I edit code — tell me what to change. When you're happy with it, I'll commit + push your changes, run `ms app play --mode preview` for a cloud preview URL in your environment, and then ask if you want me to `\u002Fdeploy`.\"\n\nWhen the user signals readiness, follow the **Ready-to-Ship Gate** in [shared-instructions.md](..\u002F..\u002Fshared\u002Fshared-instructions.md) — commit, push, preview, then ask about `\u002Fdeploy`.\n\nIf the dev server prints an error during startup (port conflict, missing `ms.config.json`, expired auth), stop the background task, surface the error verbatim, and propose the targeted fix:\n\n| Error                                                | Fix                                                                                         |\n| ---------------------------------------------------- | ------------------------------------------------------------------------------------------- |\n| `EADDRINUSE` on 8080                                  | Re-run with `$BIN app dev --port 8081` (or kill whatever's on 8080).                        |\n| `ms.config.json not found`                         | The user is in the wrong directory, or this isn't a Microsoft App workspace. Verify and stop. |\n| `Authentication failed` (token expired)               | Run `$BIN auth login` (interactive) and retry.                                              |\n| `Failed to fetch app metadata for \u003Capp-id>`           | App was deleted in the service. Confirm with `$BIN app list --json` and restore or recreate.|\n\nDo NOT push or deploy from this skill, even if the user mentions it mid-session — bounce them to `\u002Fdeploy` (which requires explicit confirmation).\n\n> **Sharing a cloud preview:** The App Player URL from `ms app dev` is local-only. Once code is pushed to main, use `\u002Fplay` (`ms app play --mode preview`) to open a cloud-hosted preview URL that works for others without a deploy.",{"name":5,"description":7,"allowed-tools":40},"Read Grep Bash AskUserQuestion","main","7c7ee71b1937858ba4ab6ca265967958c602d5ea","plugins\u002Fcopilot-managed-runtime\u002Fskills\u002Fdev",0,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FCopilot-Managed-Runtime","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 03:29:15",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add microsoft\u002FCopilot-Managed-Runtime --skill dev",{"tool":56,"command":57},"bunx","bunx skills add microsoft\u002FCopilot-Managed-Runtime --skill dev",{"tool":59,"command":60},"pnpm","pnpm dlx skills add microsoft\u002FCopilot-Managed-Runtime --skill dev","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FCopilot-Managed-Runtime\u002Fblob\u002Fmain\u002Fplugins\u002Fcopilot-managed-runtime\u002Fskills\u002Fdev\u002FSKILL.md",true,[],[65,88,121,126,133,153],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":35},"01M6X0AET142GRSQ2EJ6M25MZK","setup-taskmanager","Sets up the Task Manager template for a new owner - copies the sample into its own folder, signs in to the `ms` CLI, creates the app and its platform-managed git repository on Copilot Managed Runtime, adds the Azure DevOps, Teams and Office 365 Users connectors, writes .env.local and admins.json, verifies with npm run check-setup, and commits and pushes to the app's repository. Use when someone has just cloned this template, when `npm run dev` or `npm run build` stops at check-setup, or when ms.config.json is missing.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FCopilot-Managed-Runtime\u002Fblob\u002Fmain\u002Fsamples\u002FTaskManager\u002F.github\u002Fskills\u002Fsetup-taskmanager\u002FSKILL.md",[],[72,73,74,75,76,77,78,79,80,81,29,82,83,28,84,19,85,86,87,21],"setup","setup taskmanager","cli","azure devops","config","copilot","run","git","repository","template","up","run build","sample","manager","at","managed",{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":104,"publishedAt":35},"01M6X0A8B189RCJYK3NWQSVEMD","add-data-source","Moves this app's data from browser-local storage to a shared backend (SharePoint lists, Dataverse tables, a REST API, or any other store) by adding a storage provider. Use when the user wants app data shared between people or devices, kept outside the browser, or stored in a specific system.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FCopilot-Managed-Runtime\u002Fblob\u002Fmain\u002Fsamples\u002FTaskManager\u002F.github\u002Fskills\u002Fadd-data-source\u002FSKILL.md",[94,99],{"categoryNo":95,"categoryName":96,"taxonomyType":97,"taxonomyTypeDesc":98},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",{"categoryNo":100,"categoryName":101,"taxonomyType":102,"taxonomyTypeDesc":103},"01JBSEEDCAT000000000000033","数据分析师","PROFESSION","适用职业",[105,106,107,108,109,110,111,112,113,114,30,115,116,28,117,118,19,119,120,21],"add data source","data","add","source","dataverse","browser","REST","devices","api","system","backend","provider","shared","rest api","store","people",{"skillNo":122,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":35},"01M6X0A13K1CXG92DXMZZ2NWXK","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FCopilot-Managed-Runtime\u002Fblob\u002Fmain\u002Fsamples\u002FTaskManager\u002F.claude\u002Fskills\u002Fsetup-taskmanager\u002FSKILL.md",[],[72,73,74,75,76,77,78,79,80,81,29,82,83,28,84,19,85,86,87,21],{"skillNo":127,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":132,"publishedAt":35},"01M6X09W1D8XCY20N6H9QS9WCH","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FCopilot-Managed-Runtime\u002Fblob\u002Fmain\u002Fsamples\u002FTaskManager\u002F.claude\u002Fskills\u002Fadd-data-source\u002FSKILL.md",[130,131],{"categoryNo":95,"categoryName":96,"taxonomyType":97,"taxonomyTypeDesc":98},{"categoryNo":100,"categoryName":101,"taxonomyType":102,"taxonomyTypeDesc":103},[105,106,107,108,109,110,111,112,113,114,30,115,116,28,117,118,19,119,120,21],{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":142,"publishedAt":35},"01M6X09PVHY12C6WBP0KVEJ6NZ","setup-learninghub","Set up the Learning Hub sample after cloning it - copy it into its own folder, install dependencies, sign in with the ms CLI, create the app and its platform-managed git repository with ms app init (writes ms.config.json), hide the host header, add the Office 365 Users connector, configure .env.local, verify with check-setup, start local development, and commit and push to the app's repository. Use when someone asks to set up, configure, run or deploy this app for the first time, or when `npm run dev`\u002F`npm run build` stops with \"Learning Hub is not set up yet\".","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FCopilot-Managed-Runtime\u002Fblob\u002Fmain\u002Fsamples\u002FLearningHub\u002F.github\u002Fskills\u002Fsetup-learninghub\u002FSKILL.md",[139],{"categoryNo":140,"categoryName":141,"taxonomyType":97,"taxonomyTypeDesc":98},"01JBSEEDCAT000000000000011","运维与部署",[72,143,74,144,145,146,147,148,149,29,82,150,83,151,28,84,19,152,87,21],"setup learninghub","init","commit","create","SET","configure","commit and push","Connector","time","host",{"skillNo":154,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":159,"publishedAt":35},"01M6X09JNRAH0SKYXGM3JTMP2M","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FCopilot-Managed-Runtime\u002Fblob\u002Fmain\u002Fsamples\u002FLearningHub\u002F.github\u002Fskills\u002Fadd-data-source\u002FSKILL.md",[157,158],{"categoryNo":95,"categoryName":96,"taxonomyType":97,"taxonomyTypeDesc":98},{"categoryNo":100,"categoryName":101,"taxonomyType":102,"taxonomyTypeDesc":103},[105,106,107,108,109,110,111,112,113,114,30,115,116,28,117,118,19,119,120,21]]