[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69BVJWY37XC90DD39JBP3DS":3,"skill-same:01M69BVJWY37XC90DD39JBP3DS":72},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":42,"linkOnly":43,"markdownContent":44,"markdownBody":45,"frontMatter":46,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":53,"ownerHtmlUrl":54,"ownerBlogUrl":55,"ownerDescription":56,"updatedAt":57,"install":58,"resources":71},"01M69BVJWY37XC90DD39JBP3DS","delete-app","Microsoft 应用删除","Deletes a Microsoft App via `ms app delete`. Use when the user asks to delete an app; always require explicit confirmation.","通过 `ms app delete` 删除 Microsoft 应用。当用户要求删除应用时使用；务必要求明确确认。","microsoft\u002Fmanaged-apps","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69BTSR13CCGCPK40C03N7CN",36,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmanaged-apps\u002Fblob\u002Fmain\u002Fplugins\u002Fmicrosoft-managed-apps\u002Fskills\u002Fdelete-app\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C6RHQSB2BGY8CHB7AN49N9","Microsoft 应用生命周期管理","SCENARIO","使用场景",[31,32,33,10,34,35,36,37,38,39,40,41],"delete","delete app","app","Bash","grep","confirmation","read","user","use","ms","via","2026-11-10 10:12:30",false,"---\nname: delete-app\ndescription: Deletes a Microsoft App via `ms app delete`. Use when the user asks to delete an app; always require explicit confirmation.\nallowed-tools: Read Grep Glob Bash AskUserQuestion\n---\n\n**? Shared Instructions: [shared-instructions.md](..\u002F..\u002Fshared\u002Fshared-instructions.md)** — Cross-cutting concerns. **Two confirmations required; never auto-`--force`.**\n\n# Delete App\n\nRemoves the app from the service. The local workspace is NOT deleted by this skill — the user can clean it up afterward (this skill suggests the command but doesn't run it).\n\n## Workflow\n\n1. Memory Bank → 2. Resolve App ID → 3. Verify with Show → 4. First Confirmation → 5. Try Non-Force Delete → 6. If Service Says Force Required: Second Confirmation → 7. Suggest Local Cleanup → 8. Update Memory Bank\n\n---\n\n### Step 1: Check Memory Bank\n\nRead `memory-bank.md` for app slug + GUID + environment.\n\n### Step 2: Resolve App ID\n\n```bash\ntest -f ms.config.json && APP_ID=$(node -p \"require('.\u002Fms.config.json').appId\" 2>\u002Fdev\u002Fnull) || true\n```\n\nIf no `ms.config.json`, ask the user for the app slug or GUID. Optionally invoke `\u002Flist-apps` to discover.\n\n### Step 3: Verify with Show\n\nBefore the destructive call, fetch the app metadata so the user sees what they're about to delete:\n\n```bash\nBIN=ms\n$BIN app show --app \"$APP_ID\" --json\n```\n\nDisplay: display name, slug, app GUID, environment, version, creation date, last modified, share count if available.\n\n### Step 4: First Confirmation\n\n> \"About to delete the app `\u003Cdisplay-name>` (slug `\u003Cslug>`, GUID `\u003Cguid>`) from environment `\u003Cenv-name>`. This removes the app from the service for all users — playing the app stops working immediately. Continue?\"\n\nWait for explicit yes. If no, STOP — do not delete.\n\n### Step 5: Try Non-Force Delete\n\n```bash\n$BIN app delete --app \"$APP_ID\" --non-interactive\n```\n\n`ms app delete` is idempotent: if the app is already gone (HTTP 204) it emits a warning rather than erroring. Treat both `existed: true` and `existed: false` outcomes as success.\n\n### Step 6: If Service Says Force Required\n\nIf the service returns a non-2xx with a message like \"delete requires --force\" (the app has active shares, child resources, etc.), DO NOT auto-add `--force`. Instead, ask a **second** confirmation:\n\n> \"The service requires `--force` to delete this app. Reason from the service: `\u003Cverbatim message>`. Adding `--force` will remove the app and any associated state (shares, etc.) immediately. Are you sure?\"\n\nWait for an explicit second yes. Only then:\n\n```bash\n$BIN app delete --app \"$APP_ID\" --force --non-interactive\n```\n\nNever short-circuit the two confirmations into one. The service's `--force` requirement is the signal that downstream state will be affected.\n\n### Step 7: Suggest Local Cleanup\n\nAfter successful delete, surface (do NOT run automatically):\n\n```\nApp removed from service.\n\nTo clean up local workspace:\n  cd ..\n  rm -rf \u003Cproject-dir>\n\nOr keep the workspace if you intend to recreate \u002F re-link to a new app.\n```\n\n### Step 8: Update Memory Bank\n\nIf `memory-bank.md` exists, append a \"Deleted\" note with the timestamp and the app GUID, but do NOT delete the memory bank itself — the user may want the history.\n\n---\n\n## Failure Modes\n\n| Error                                              | Action                                                                                                  |\n| -------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |\n| `App '\u003Cid>' not found in environment '\u003Cenv>'`      | Idempotent path — the app is already gone. Emit a success note and update memory bank (mark deleted).   |\n| 403 not authorized                                 | The account doesn't have Owner permissions on the app. Surface the error; suggest `$BIN app share` review or a different account. |\n| 5xx from the service                               | Transient. Retry once after 5s; if still failing, STOP and surface verbatim — do not loop.              |\n","**? Shared Instructions: [shared-instructions.md](..\u002F..\u002Fshared\u002Fshared-instructions.md)** — Cross-cutting concerns. **Two confirmations required; never auto-`--force`.**\n\n# Delete App\n\nRemoves the app from the service. The local workspace is NOT deleted by this skill — the user can clean it up afterward (this skill suggests the command but doesn't run it).\n\n## Workflow\n\n1. Memory Bank → 2. Resolve App ID → 3. Verify with Show → 4. First Confirmation → 5. Try Non-Force Delete → 6. If Service Says Force Required: Second Confirmation → 7. Suggest Local Cleanup → 8. Update Memory Bank\n\n---\n\n### Step 1: Check Memory Bank\n\nRead `memory-bank.md` for app slug + GUID + environment.\n\n### Step 2: Resolve App ID\n\n```bash\ntest -f ms.config.json && APP_ID=$(node -p \"require('.\u002Fms.config.json').appId\" 2>\u002Fdev\u002Fnull) || true\n```\n\nIf no `ms.config.json`, ask the user for the app slug or GUID. Optionally invoke `\u002Flist-apps` to discover.\n\n### Step 3: Verify with Show\n\nBefore the destructive call, fetch the app metadata so the user sees what they're about to delete:\n\n```bash\nBIN=ms\n$BIN app show --app \"$APP_ID\" --json\n```\n\nDisplay: display name, slug, app GUID, environment, version, creation date, last modified, share count if available.\n\n### Step 4: First Confirmation\n\n> \"About to delete the app `\u003Cdisplay-name>` (slug `\u003Cslug>`, GUID `\u003Cguid>`) from environment `\u003Cenv-name>`. This removes the app from the service for all users — playing the app stops working immediately. Continue?\"\n\nWait for explicit yes. If no, STOP — do not delete.\n\n### Step 5: Try Non-Force Delete\n\n```bash\n$BIN app delete --app \"$APP_ID\" --non-interactive\n```\n\n`ms app delete` is idempotent: if the app is already gone (HTTP 204) it emits a warning rather than erroring. Treat both `existed: true` and `existed: false` outcomes as success.\n\n### Step 6: If Service Says Force Required\n\nIf the service returns a non-2xx with a message like \"delete requires --force\" (the app has active shares, child resources, etc.), DO NOT auto-add `--force`. Instead, ask a **second** confirmation:\n\n> \"The service requires `--force` to delete this app. Reason from the service: `\u003Cverbatim message>`. Adding `--force` will remove the app and any associated state (shares, etc.) immediately. Are you sure?\"\n\nWait for an explicit second yes. Only then:\n\n```bash\n$BIN app delete --app \"$APP_ID\" --force --non-interactive\n```\n\nNever short-circuit the two confirmations into one. The service's `--force` requirement is the signal that downstream state will be affected.\n\n### Step 7: Suggest Local Cleanup\n\nAfter successful delete, surface (do NOT run automatically):\n\n```\nApp removed from service.\n\nTo clean up local workspace:\n  cd ..\n  rm -rf \u003Cproject-dir>\n\nOr keep the workspace if you intend to recreate \u002F re-link to a new app.\n```\n\n### Step 8: Update Memory Bank\n\nIf `memory-bank.md` exists, append a \"Deleted\" note with the timestamp and the app GUID, but do NOT delete the memory bank itself — the user may want the history.\n\n---\n\n## Failure Modes\n\n| Error                                              | Action                                                                                                  |\n| -------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |\n| `App '\u003Cid>' not found in environment '\u003Cenv>'`      | Idempotent path — the app is already gone. Emit a success note and update memory bank (mark deleted).   |\n| 403 not authorized                                 | The account doesn't have Owner permissions on the app. Surface the error; suggest `$BIN app share` review or a different account. |\n| 5xx from the service                               | Transient. Retry once after 5s; if still failing, STOP and surface verbatim — do not loop.              |\n",{"name":5,"description":7,"allowed-tools":47},"Read Grep Glob Bash AskUserQuestion","main","5e4bd47de38c9ae0327efb7c0003d250afff31b6","plugins\u002Fmicrosoft-managed-apps\u002Fskills\u002Fdelete-app",12,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmanaged-apps","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-06 04:02:23",{"source":9,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add microsoft\u002Fmanaged-apps --skill delete-app",{"tool":64,"command":65},"bunx","bunx skills add microsoft\u002Fmanaged-apps --skill delete-app",{"tool":67,"command":68},"pnpm","pnpm dlx skills add microsoft\u002Fmanaged-apps --skill delete-app","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmanaged-apps\u002Fblob\u002Fmain\u002Fplugins\u002Fmicrosoft-managed-apps\u002Fskills\u002Fdelete-app\u002FSKILL.md",true,[],[73,101,121,142,165,187],{"skillNo":74,"name":75,"nameZh":76,"description":77,"descriptionZh":78,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":79,"categories":80,"keywords":85,"publishedAt":42},"01M69BW0D2HDW3YFJJX4QEYJF2","state","Microsoft 托管应用状态与附件管理","Store and query a Microsoft Managed App's built-in state and file attachments with `ms project state` CLI schema commands and generated TypeScript clients. First, with the user signed in to the CLI, run `ms feature status --name state --json`; if `feature.enabled` is not `true`, recommend an alternative connector or data source.","使用 `ms project state` CLI schema 命令和生成的 TypeScript 客户端，存储与查询 Microsoft 托管应用的内置状态和文件附件。首先，在用户登录 CLI 后运行 `ms feature status --name state --json`；如果 `feature.enabled` 不为 `true`，则推荐替代的连接器或数据源。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmanaged-apps\u002Fblob\u002Fmain\u002Fplugins\u002Fmicrosoft-managed-apps\u002Fskills\u002Fstate\u002FSKILL.md",[81,82],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":83,"categoryName":84,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BWKS60NTYJHFE9FQSXGDKS","低代码应用开发",[75,86,87,88,89,33,40,90,91,92,34,93,37,94,95,96,97,98,99,100],"status","cli","run","typescript","project","generated","query","Connector","write","edit","recommend","commands","data","source","feature",{"skillNo":102,"name":103,"nameZh":104,"description":105,"descriptionZh":106,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":107,"categories":108,"keywords":115,"publishedAt":42},"01M69BVYVZ0YYRMDY1WPVJ98VV","share","Microsoft 应用共享与访问控制","Shares (or unshares) a Microsoft App with users via `ms app share` \u002F `ms app unshare`. Use when updating app access control.","通过 `ms app share` \u002F `ms app unshare` 与用户共享（或取消共享）Microsoft 应用。在需要更新应用访问控制时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmanaged-apps\u002Fblob\u002Fmain\u002Fplugins\u002Fmicrosoft-managed-apps\u002Fskills\u002Fshare\u002FSKILL.md",[109,112],{"categoryNo":110,"categoryName":111,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BTFDX7M21YT75733H52N36","身份与访问管理",{"categoryNo":113,"categoryName":114,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C6RQ852C9AEJFCBGG1YA7S","IT 管理员",[103,10,33,116,40,39,117,34,118,119,120,41,37,35],"Access Control","access","users","with","control",{"skillNo":122,"name":123,"nameZh":124,"description":125,"descriptionZh":126,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":127,"categories":128,"keywords":131,"publishedAt":42},"01M69BVX6TTS1A17ZA2BDP13KP","share-link","Microsoft App 共享链接管理","Manages tenant-wide share links for a Microsoft App via `ms app share link create`, `ms app share link list`, and `ms app share link revoke`. Use when you want to distribute app access via a URL instead of named principals.","通过 `ms app share link create`、`ms app share link list` 和 `ms app share link revoke` 管理 Microsoft App 的租户级共享链接。适用于希望通过 URL（而非指定主体）来分发应用访问权限的场景。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmanaged-apps\u002Fblob\u002Fmain\u002Fplugins\u002Fmicrosoft-managed-apps\u002Fskills\u002Fshare-link\u002FSKILL.md",[129,130],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":110,"categoryName":111,"taxonomyType":28,"taxonomyTypeDesc":29},[132,103,133,134,10,33,135,40,136,39,117,137,138,34,41,139,37,35,140,141],"share link","link","create","links","for","URL","you","distribute","wide","list",{"skillNo":143,"name":144,"nameZh":145,"description":146,"descriptionZh":147,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":148,"categories":149,"keywords":154,"publishedAt":42},"01M69BVVFK3WFDMJW2R5CYCRD4","play","Microsoft App 浏览器预览","Opens a Microsoft App in the browser via `ms app play`. Use when opening the live deployed version or a cloud-hosted preview (main branch or specific commit SHA) without starting a local dev server.","通过 `ms app play` 在浏览器中打开 Microsoft App。适用于打开已部署的线上版本或云端托管的预览版本（主分支或特定提交 SHA），而无需启动本地开发服务器。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmanaged-apps\u002Fblob\u002Fmain\u002Fplugins\u002Fmicrosoft-managed-apps\u002Fskills\u002Fplay\u002FSKILL.md",[150,151],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":152,"categoryName":153,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理",[144,155,156,10,157,33,158,40,159,48,39,160,34,161,162,163,164,41,37,35],"dev","commit","local dev","branch","local","version","preview","local dev server","browser","server",{"skillNo":166,"name":167,"nameZh":168,"description":169,"descriptionZh":170,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":171,"categories":172,"keywords":177,"publishedAt":42},"01M69BVSSESTPDA4Z5WP8WEN01","list-connectors","可用连接器列表查询","Lists connectors available in the active environment — including whether each is allowed or blocked by your organization's policy — plus the connection-bound data sources already wired into a Microsoft App. Use when discovering connectors and their operations before adding data sources.","列出当前活动环境中可用的连接器——包括每个连接器是被组织策略允许还是阻止——以及已接入 Microsoft App 的连接绑定数据源。适用于在添加数据源之前发现可用的连接器及其操作。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmanaged-apps\u002Fblob\u002Fmain\u002Fplugins\u002Fmicrosoft-managed-apps\u002Fskills\u002Flist-connectors\u002FSKILL.md",[173,174],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":175,"categoryName":176,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BWDNFEHJCBZX47YY896K05","应用连接器集成",[178,179,141,10,180,33,181,182,39,34,183,184,185,37,98,186],"list connectors","connectors","policy","sources","environment","organization","operations","active","connection",{"skillNo":188,"name":189,"nameZh":190,"description":191,"descriptionZh":192,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":193,"categories":194,"keywords":197,"publishedAt":42},"01M69BVRDCYENNS8XXM1E5RBYQ","list-apps","Microsoft 应用列表查询","Discovers managed apps in the active environment via `ms app list --json` and optional `ms app show --json`. Use when listing or locating apps.","通过 `ms app list --json` 以及可选的 `ms app show --json` 发现活动环境中的受管理应用。在列出或定位应用时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmanaged-apps\u002Fblob\u002Fmain\u002Fplugins\u002Fmicrosoft-managed-apps\u002Fskills\u002Flist-apps\u002FSKILL.md",[195,196],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[198,199,141,33,200,40,182,39,34,41,185,201,37,35],"list apps","apps","show","json"]