list-connections · microsoft, mobile-apps — скилл для Claude Code: что делает и как установить
Скилл list-connections находит или создаёт подключения Power Platform для мобильных приложений на Expo и React Native. Пригодится при настройке источников данных через CLI.
MIT ★ 1 167 обновлён 2026-10-29
/plugin marketplace add microsoft/power-platform-skills
/plugin install mobile-app@power-platform-skillsЧто делает list-connections
Скилл автоматизирует получение идентификаторов подключений (Connection ID) и ссылок на них (Connection Reference) для команд вроде pa app add data-source. При запуске агент определяет рабочий каталог проекта, проверяет переданные параметры и запрашивает нужный ресурс через установленный локально Power Apps CLI ($PA connection create или $PA connection list-references).
Инструмент требует установленного локального CLI проекта через npx --no-install pa; без него запуск блокируется. Создание подключений через браузер по умолчанию отключено. Если коннектор не поддерживает SSO, придётся либо включить переменную POWERAPPS_CLI_ENABLE_BROWSER_CONNECTION=true, либо создать подключение руками на портале make.powerapps.com.
Какие задачи решает
- получить Connection ID для добавления источника данных в проект
- создать подключение к коннектору Power Platform через CLI
- найти имена connection reference для решений Power Platform
- сформировать прямую ссылку на портал при отсутствии нужного коннектора
Примеры запросов агенту
- /list-connections shared_sharepointonline
- Найди connection reference для решения solution-123 в текущем проекте
- Создай подключение к коннектору shared_office365 с отображаемым именем MyOffice
Как установить list-connections
1Через маркетплейс плагинов
/plugin marketplace add microsoft/power-platform-skills/plugin install mobile-app@power-platform-skillsКоманда ставит плагин mobile-app целиком, со всеми его скиллами
2Через Skills CLI (Vercel)
npx skills add microsoft/power-platform-skills --skill list-connections -a claude-code3Вручную: положить файлы
~/.claude/skills/list-connections/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/list-connections/
1Через Skills CLI (Vercel)
npx skills add microsoft/power-platform-skills --skill list-connections -a codex2Вручную: положить файлы
.agents/skills/list-connections/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add microsoft/power-platform-skills --skill list-connections -a cursor2Вручную: положить файлы
.cursor/skills/list-connections/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install microsoft/power-platform-skills plugins/mobile-apps/skills/list-connections2Вручную: положить файлы
.github/skills/list-connections/SKILL.md1Через Skills CLI (Vercel)
npx skills add microsoft/power-platform-skills --skill list-connections -a gemini-cli2Командой платформы
gemini skills install https://github.com/microsoft/power-platform-skills --path plugins/mobile-apps/skills/list-connectionsВручную: положить файлы
.devin/skills/list-connections/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о list-connections
Как установить list-connections в Claude Code?
Подключите каталог и поставьте плагин двумя командами: /plugin marketplace add microsoft/power-platform-skills, затем /plugin install mobile-app@power-platform-skills.
Что делает скилл list-connections?
Он запрашивает или создаёт подключения Power Platform через Power Apps CLI и возвращает идентификаторы, необходимые для связывания мобильного приложения с источниками данных.
Что делать, если коннектор требует вход через браузер?
Задайте переменную среды POWERAPPS_CLI_ENABLE_BROWSER_CONNECTION=true перед вызовом или создайте подключение вручную в портале Power Apps Maker.
Исходный текст
SKILL.md · MIT
---
name: list-connections
description: Use to find or create a Power Platform connection ID or reference for an Expo/React Native Power Apps mobile app.
user-invocable: true
allowed-tools: Read, 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)** — read first for cross-cutting concerns (Windows CLI compatibility, memory bank, etc.).
# List Connections
**App root:** before any project read or command, execute
[app-working-directory.md](${PLUGIN_ROOT}/shared/references/app-working-directory.md).
Reuse the resolved absolute `working_dir` for every shell call and
file tool, including auth retries and the environment read used for portal URLs.
Forwarded owner context is required for child calls; do not fall back to the
launch directory. Reapply the guard and arguments in each fresh call.
Finds or creates a Power Platform connection with the Power Apps CLI. Returns the **Connection ID** or **Connection Reference** that callers feed into `pa app add data-source`.
## Workflow
1. Get Connection → 2. Present Results
---
### Step 1 — Get Connection
**Telemetry checkpoint: `resolve_power_platform_connection`**
Use one of the supported paths below.
If the caller already provided a connection ID, validate the connector/API ID from context and return it as-is for `--connection-id`.
Preserve any supplied connection reference as well; do not create a replacement.
Creation requires current approval for the selected environment and connector.
For `--plan-only` or a planning-phase handoff, perform only permitted read-only
lookup and return missing access/identity to the owner; never create a connection
to unblock discovery. The invocation marker does not grant creation consent.
If the caller provided a connector API ID and needs a new connection, create it from the app root:
> Resolve the CLI first (see [cli-binary.md](${PLUGIN_ROOT}/shared/cli-binary.md)): run as `$PA connection create …` (`npx --no-install pa …`), never a bare `pa`. On `power-apps`-only projects, translate to `power-apps create-connection --api-id …`.
```bash
cd -- '<working_dir>' || { echo "BLOCKED: cannot enter working_dir" >&2; exit 1; }
$PA connection create --connector <api-id> --json
```
Use the returned `connectionId` for `--connection-id <connectionId>`. Optional display names are supported:
```bash
cd -- '<working_dir>' || { echo "BLOCKED: cannot enter working_dir" >&2; exit 1; }
$PA connection create --connector <api-id> --display-name '<display-name>' --json
```
Browser-based connection creation is disabled by default. If the connector is not SSO-eligible and the command reports that browser creation is disabled, tell the user to either set `POWERAPPS_CLI_ENABLE_BROWSER_CONNECTION=true` and rerun the command, or create the connection in the maker portal.
### Step 1b — Fetch Connection References When Solution-Aware
If the caller provided a solution ID and needs a connection reference name, list connection references from the app root:
```bash
cd -- '<working_dir>' || { echo "BLOCKED: cannot enter working_dir" >&2; exit 1; }
$PA connection list-references --solution-id <solution-id> --json
```
If a matching connection reference exists, return its reference name for `--connection-ref <connection-ref>`.
If `pa connection create` or `pa connection list-references` fails because of auth, wrong user, multiple accounts, no output, or timeout, follow shared-instructions command-failure handling and retry once from the same guarded root. A missing app-local CLI is a blocker, not permission to retry without `--no-install` or install another version.
**Other failures:**
- Non-zero exit for any reason other than auth: report the exact output. STOP.
### Step 2 — Present Results
Show the supported add path. A **Connection ID** goes into `--connection-id <connection-id>` when adding a data source. When Step 1b was requested, also show matching connection references; a **Connection Reference** goes into `--connection-ref <connection-ref>`.
**If the needed connector is missing:**
1. Share the direct Connections URL using the active environment ID from context (read from `<working_dir>/power.config.json` `environmentId`):
`https://make.powerapps.com/environments/<environment-id>/connections` → **+ New connection**
2. Search for and create the connector, then complete the sign-in / consent flow
3. Rerun `/list-connections <api-id>` or provide the portal connection ID so the data-source skill can continue
© Microsoft · MIT · microsoft/power-platform-skills
Похожие скиллы
Все скиллы по теме «Мобильная разработка» →Сначала — list-connections от других авторов.