Microsoft 应用列表查询
list-apps
通过 `ms app list --json` 以及可选的 `ms app show --json` 发现活动环境中的受管理应用。在列出或定位应用时使用。
- License 许可
- MIT
- 最近更新
- 2026-11-06
- Stars
- ★ 36
- Forks
- 12
01 前言 Front Matter
- name
- list-apps
- description
- Discovers managed apps in the active environment via `ms app list --json` and optional `ms app show --json`. Use when listing or locating apps.
- allowed-tools
- Read Grep Bash AskUserQuestion
03 SKILL.md 正文
? Shared Instructions: shared-instructions.md — Cross-cutting concerns.
List Apps
Lists apps the active CLI account can see in the active environment, or shows full metadata for a single app.
Workflow
- Memory Bank → 2. Verify Env → 3. Mode (list / show) → 4. Output
Step 1: Check Memory Bank
If a project memory bank exists, read it for the app's environment, if recorded, to know which environment the app was created in. Otherwise prompt the user for the environment they want to query (or accept "current default"). Note: ms app list reports apps for the signed-in account's resolved environment and has no environment-targeting flag, so the memory bank here is for context/verification — it does not scope the listing.
Step 2: Verify Env
BIN=ms
$BIN auth status # confirm the right account
The listing scopes to the active environment (the auto-routed Developer environment unless a specific one was targeted at create time).
Step 3: Mode
Ask (or infer from the user's prompt):
- list — enumerate all apps the account can see.
- show <app-id> — full metadata for one app (display name, GUID, environment, version, build info, share count, creation/modification dates).
Step 4: Output
List:
$BIN app list --json
Pretty-print the JSON. Default columns when summarizing for the user: displayName | appId | environmentId | version | lastModified.
If the list is long (>20 entries), ask the user whether they want to filter (by display-name substring) before printing. The CLI itself returns everything; the filtering happens in this skill.
Show:
$BIN app show --app "$APP_ID" --json
Pretty-print the full envelope. Highlight: appId, displayName, environmentId, version, lastDeployedCommit, shareCount, and any status fields surfaced by the service.
Useful as a Subroutine
Other skills (/delete-app, /share, /deploy) can invoke this skill to resolve an app GUID from a display-name substring. When invoked as a subroutine, take the search term as $ARG1 and return only the matching appId / displayName pairs — skip the interactive prompts.
Drift Check
After listing, if the user is currently in a project workspace with ms.config.json, cross-check the appId there against the list:
- Match found: confirm the local app exists and surface its current service-side state.
- No match: warn the user —
ms.config.jsonreferences an app that doesn't exist (or isn't visible) in the active environment. Likely causes: wrong target environment, the app was deleted, or auth is on the wrong tenant.
04 同仓库更多 Skills
Microsoft 托管应用状态与附件管理
state
使用 `ms project state` CLI schema 命令和生成的 TypeScript 客户端,存储与查询 Microsoft 托管应用的内置状态和文件附件。首先,在用户登录 CLI 后运行 `ms feature status --name state --json`;如果 `feature.enabled` 不为 `true`,则推荐替代的连接器或数据源。
Microsoft 应用共享与访问控制
share
通过 `ms app share` / `ms app unshare` 与用户共享(或取消共享)Microsoft 应用。在需要更新应用访问控制时使用。
Microsoft App 共享链接管理
share-link
通过 `ms app share link create`、`ms app share link list` 和 `ms app share link revoke` 管理 Microsoft App 的租户级共享链接。适用于希望通过 URL(而非指定主体)来分发应用访问权限的场景。
Microsoft App 浏览器预览
play
通过 `ms app play` 在浏览器中打开 Microsoft App。适用于打开已部署的线上版本或云端托管的预览版本(主分支或特定提交 SHA),而无需启动本地开发服务器。
可用连接器列表查询
list-connectors
列出当前活动环境中可用的连接器——包括每个连接器是被组织策略允许还是阻止——以及已接入 Microsoft App 的连接绑定数据源。适用于在添加数据源之前发现可用的连接器及其操作。
Microsoft 应用本地运行
dev
通过 `ms app dev` 在本地运行 Microsoft 应用并支持热重载。在开始或重启本地开发、展示 App Player URL 时使用。