К основному содержанию
скилл CX Codex

setup · microsoft, process-intelligence — скилл для Claude Code: подключение Process Intelligence

Скилл setup ведёт агента через настройку Process Intelligence: проверяет зависимости, выбирает облако и окружение, привязывает сессию az login и активирует профиль.

MIT ★ 1 167 обновлён 2026-10-29

Установить в Claude Code · Через маркетплейс плагинов Все способы и платформы ↓
/plugin marketplace add microsoft/power-platform-skills
/plugin install process-intelligence@power-platform-skills
Открыть на GitHub

Что делает setup

Скилл проводит агента по шагам настройки Process Intelligence: проверка Node.js 22/24 LTS и Azure CLI 2.54+, выбор облака и environment ID, привязка уже открытой сессии az login, затем активация профиля work вызовом pi_activate_profile и подтверждение через pi_connection_status.

Работа идёт из установленного каталога плагина, скрипты лежат в server/mcp.mjs: resolve-environment, config, login, diagnostics. До подключения скилл показывает уведомление о приватности и требует явного указания пользователя, что выбранное окружение можно связать с выбранным хостом. Профили хранятся обычным JSON, без шифрования на уровне приложения.

GCC, GCC High, DoD и Mooncake пока не поддерживаются, а Public — коммерческая конфигурация; подставлять её вместо другого облака скилл запрещает. Без Node.js 22/24 LTS и Azure CLI 2.54+ первый шаг просто не пройдёт, так что ставить их нужно заранее. Команду az login --allow-no-subscriptions пользователь выполняет сам: Azure CLI держит общие учётные данные, и вход затронет другие инструменты.

Какие задачи решает

  • привязать существующую сессию az login к профилю плагина
  • найти tenant GUID и environment ID для облака Public
  • разобрать ошибку входа после политики Conditional Access
  • сверить версии Node.js и Azure CLI перед первым запуском
  • восстановить профиль после смены аккаунта или окружения

Примеры запросов агенту

  • Настрой Process Intelligence для облака Public с тем environment ID, который я подтвердил.
  • Проверь подключение к Process Intelligence и покажи статус профиля work.
  • Вход в Azure отвалился с ошибкой аутентификации, восстанови профиль work в текущей сессии.

Как установить setup

1Через маркетплейс плагинов

/plugin marketplace add microsoft/power-platform-skills
/plugin install process-intelligence@power-platform-skills

Команда ставит плагин process-intelligence целиком, со всеми его скиллами

2Через Skills CLI (Vercel)

npx skills add microsoft/power-platform-skills --skill setup -a claude-code

3Вручную: положить файлы

~/.claude/skills/setup/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/setup/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о setup

Как установить setup в Claude Code?

Добавьте маркетплейс командой /plugin marketplace add microsoft/power-platform-skills, потом поставьте плагин: /plugin install process-intelligence@power-platform-skills. MCP-сервер плагина подхватится ещё до запуска скилла.

Что делает скилл setup?

Проводит агента через настройку Process Intelligence: проверка зависимостей, выбор облака и окружения, привязка сессии az login, диагностика и активация профиля work.

С какими облаками он работает?

Public — коммерческая конфигурация, для неё есть автоматический поиск окружения через resolve-environment. GCC, GCC High, DoD и Mooncake не поддерживаются, и подменять их на Public скилл не станет.

Исходный текст

SKILL.md · MIT
---
name: setup
description: Use when Process Intelligence needs building, explicit cloud/account/environment configuration, sign-in, connection diagnostics, or recovery from an authentication error.
allowed-tools: Read, Bash, AskUserQuestion
---

# Set up Process Intelligence

Read the bundled [README](../../README.md) first. Use the absolute installed plugin directory
containing this skill for shell commands; host-provided `PLUGIN_ROOT`/`CLAUDE_PLUGIN_ROOT` can
identify it. Do not assume the agent shell starts there. All scripts are inside this plugin.

**GCC, GCC High, DoD and Mooncake are not supported yet.**
`Public` is the commercial cloud configuration.
The CLI accepts five cloud values; configuration support does
not make an unsupported cloud available.

Confirm the user-approved cloud and environment ID. Do not ask for a tenant GUID up front for Public.
Resolve it from the selected environment; never infer it from `Default-<guid>`, access private
credential caches or guess the working environment.
Use `node server/mcp.mjs --help` for exact syntax and
[connection patterns](../../references/connection-patterns.md) for cloud/claims details.
Stop if the cloud is not one of the listed values; do not substitute Public or an arbitrary audience.

**Before connection or analytical use, show this privacy notice:** analytical results may contain
personal and business data, forwarded unredacted to the customer-selected host. Model routing,
history, retention, possible training use and geography depend on the customer's host/provider
settings and contracts. Review those settings and organizational requirements; do not certify
an arbitrary host/provider. Optional installation is not permission to disclose data.

Use AskUserQuestion to obtain explicit instruction or confirmation naming the selected environment
and host: "Do you instruct me to connect this selected environment to this selected host after
reviewing its data-handling settings?" Substitute the actual selections. Do not proceed to binding,
remote diagnostics or analytics until the user gives an explicit instruction covering both.
Environment-ID confirmation alone is insufficient. This is user-level integration instruction,
not tenant-admin consent or a plugin-enforced per-request gateway; existing authorization still applies.

1. Check Node.js 22/24 LTS and Azure CLI 2.54+ (`az version`).
   Use official installation guidance in the README; never install or change global settings automatically.
   The bundle is ready to run; source development uses `npm ci` then `npm run build`
   from this directory in a repository checkout, never during MCP launch.
   Profiles use `ProcessIntelligenceBridgeAzureCli` under the platform's per-user data directory.
2. Check the intended Azure CLI cloud and organizational account using supported read-only CLI commands.
   If sign-in is needed, have them run `az login --allow-no-subscriptions` themselves.
   Azure CLI owns shared credentials; login may affect other CLI consumers. The bridge never switches clouds/accounts.
3. For Public, run `node server/mcp.mjs resolve-environment --cloud Public --environment <environment-id>`.
   This explicit discovery step acquires a directory token and reads environment metadata. It needs
   directory-read access, creates no profile/cache, and returns a small JSON result on stderr.
   Confirm the returned target and the host-aware instruction above, then pass its `tenantId` and `environmentId` into
   `config --profile work --cloud Public --tenant <resolved-tenant-guid> --environment <environment-id>`.
   The config command remains offline. Discovery is Public-only: for another cloud or a lookup failure,
   preserve the error and use the manual path with an explicitly confirmed tenant GUID and selected cloud.
   Do not cycle tenants/resources, request extra consent or substitute the active CLI tenant.
   No `select`, custom client-id, browser/redirect flags, secrets or service-principal sessions.
4. The agent must run `node server/mcp.mjs login --profile work` using the absolute installed bundle
   path to bind the existing CLI session. This works without a TTY and opens no UI.
   Only `--sign-in true` requires a normal terminal; use direct terminal `az login` if device-code
   interaction is needed.
   Never collect tokens or raw auth output.
5. Run `diagnostics --profile work` for read-only CLI version/cloud/tenant/user-shape checks.
   Cold local diagnostics cannot verify the saved OID and report `boundAccountVerified: false`.
   Only with target authorization, use `--remote true` for token acquisition and MCP discovery.
   Confirm MCP discovery succeeds, not only token acquisition. No business tools are needed.
6. Call the discovered local `pi_activate_profile` with `{ "profile": "work", "remember": true }`.
   Confirm `pi_connection_status` is active, rediscover the analytical tools and use their actual
   schemas. Local activation notifies the host to refresh tools in this same session; do not restart
   Copilot, edit registrations or ask the user to set environment variables.
   The explicit choice is remembered for this client/installation, not machine-wide. Fresh server
   processes reuse it if the binding and Azure CLI session remain valid. Other active sessions keep
   their own selection. Explicit launch selection wins over the preference.

For repeated setup, check `pi_connection_status` first. If the intended profile is already active
and the integration instruction still applies, do not redo sign-in or config. Unchanged config and
silent binding preserve the revision. A stale/missing preference never selects another profile;
complete the indicated recovery and explicitly activate the intended name.
Marketplace loading supplies the MCP server before setup. Source development and `--plugin-dir`
examples are separate in the README; they are not steps for an already installed marketplace plugin.

Serve never opens UI. For a Conditional Access / CAE claims challenge, explain the policy failure
and ask the user to run `login --profile work --sign-in true` in a normal terminal, then call
`pi_activate_profile` in the existing session.
Do not store, decode or forward claims-challenge payloads. If the problem persists, ask the user's
administrator to review the policy; normal sign-in may not satisfy policies requiring specific claims.
Never change the client, resource or tenant as authentication recovery.
Account changes require explicit `login --profile work --switch-account true`; tenant/environment changes
require config, login and explicit activation. Revision/account changes cancel the stale remote
context but retain local recovery tools. Never replay interrupted business calls.
Logout invalidates only the plugin profile, never `az logout`.
Profiles are plaintext JSON without application-level encryption.
Account binding persists only the tenant-local OID alongside the tenant; usernames stay in RAM.
Use a non-personal profile label. Names can still contain identifying information.
For their exact fields, lifecycle and local export/removal, use connection patterns.

Preserve the safe error. Do not request admin consent, edit identity registrations or imply every AADSTS
failure is licensing. Direct access or consent problems to the user's administrator.

© Microsoft · MIT · microsoft/power-platform-skills

Похожие скиллы

Все скиллы по теме «Настройка агента: память, контекст, субагенты» →

Сначала — setup от других авторов.

setup официальный anthropics Скилл setup проверяет, какие инструменты подключены, учит ваш стиль письма по отправленной почте и сразу строит стартовый дашборд без анкеты. Нужен при первом запуске. CX Codex +1 371установок setup Alireza Rezvani Скилл setup для Claude Code. Собирает настройки эксперимента autoresearch: цель, файл, команду оценки, метрику и направление улучшения. Запускает цикл оптимизации файла. CX Codex +1 1 480установок setup aws Скилл setup для Claude Code запускает настройку подключений к AWS DevOps Agent и AWS Security Agent. Запускает настройку при недоступности MCP-инструментов и начале работы с тулкитом. CX Codex +1 1 600установок setup marketcalls Скилл setup разворачивает виртуальное окружение Python для тестирования торговых стратегий на VectorBT и OpenAlgo. Настраивает зависимости, папки и файл .env. CX Codex +1 2 100установок setup assistant-ui Скилл setup для Claude Code устанавливает и настраивает assistant-ui через CLI. Он помогает создать приложение, добавить assistant-ui в Next.js-проект или обновить установку. CX Codex +1 6 400установок auth-setup goldsky-io Скилл auth-setup настраивает авторизацию Goldsky CLI и выбор проекта для пайплайнов и сабграфов. Разбирает статусы «not logged in» и «unauthorized». CX Codex +1 5 100установок gcp-setup Google Скилл gcp-setup для Claude Code проверяет и синхронизирует identities в gcloud, ADC и kubectl в начале сессии. Сверяет, чтобы все три системы видели одного пользователя. CX Codex +1 ★ 151звёзд репо clerk-setup clerk Скилл clerk-setup для Claude Code, Codex, Cursor и других агентов, который подключает Clerk-аутентификацию к проекту через Clerk CLI. CX Codex +1 59 700установок azure-identity-rust Microsoft Скилл azure-identity-rust подсказывает агенту, как подключить Microsoft Entra ID к Rust-приложению: какой credential взять для локальной разработки, а какой для продакшена. CX Codex +1 5установок azure-identity-py Microsoft Скилл azure-identity-py помогает подключать Python-приложения к Azure через Microsoft Entra ID. Он пригодится для DefaultAzureCredential, managed identity и service principal. CX Codex +1 3установок cyrus-setup-claude-auth cyrusagents Скилл cyrus-setup-claude-auth прописывает учётные данные Claude в ~/.cyrus/.env, чтобы Cyrus запускал ИИ-сессии. Пригодится при первом запуске или смене аккаунта. CX Codex +1 1 100установок

Из того же набора157

Весь набор →
add-datasource Скилл add-datasource выясняет, какие данные нужны мобильному приложению на Expo/React Native, и направляет запрос к подходящему скиллу Power Platform. CX Codex +1 ★ 1 167звёзд репо canvas-create-discovery Субагент canvas-create-discovery для Claude Code проверяет доступные в Power Apps элементы управления, источники данных и API, фиксируя решения и ограничения. Оценивает осуществимость замысла холст-приложения. CX Codex ★ 1 167звёзд репо check-updates Скилл check-updates для Claude Code пошагово проверяет и обновляет прямые зависимости мобильных проектов Power Apps, проверяя сборки и автоматически откатывая изменения при ошибках. CX Codex +1 ★ 1 167звёзд репо report-issue Скилл report-issue для Claude Code собирает контекст проекта и диагностику, чтобы подготовить текст GitHub issue для плагина mobile-app при сбое или запросе к документации. CX Codex +1 ★ 1 167звёзд репо debug-flow Скилл debug-flow разбирает ошибки в запусках Power Automate. Находит сбойные действия, выявляет причину по цепочке зависимостей и помогает внести точечный фикс. CX Codex +1 ★ 1 167звёзд репо configure-canvas-mcp Скилл configure-canvas-mcp подключает Canvas Authoring MCP к текущей сессии совместной работы в Power Apps. Запустите его перед редактированием canvas-приложения, если сервер ещё не подключён. CX Codex +1 ★ 1 167звёзд репо add-sharepoint Скилл add-sharepoint подключает SharePoint Online к Power Apps code app: читает списки, управляет документами, создаёт новые списки через Graph API. CX Codex +1 ★ 1 167звёзд репо preview-offline-scope Скилл preview-offline-scope оценивает объём загрузки и частоту синхронизации офлайн-профиля Power Platform до отправки пользователям. Работает только в режиме чтения. CX Codex +1 ★ 1 167звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой