Universal App 部署
app-deployment
通过已安装且版本匹配的 Rayfin CLI 验证并远程部署 Universal App。在部署前使用,用于运行本地检查、确认目标工作区、预览操作、执行部署并验证线上应用。本技能仅编排现有可执行文件,并不实现部署本身。
- License 许可
- MIT
- 所属仓库
- microsoft/rayfin
- 最近更新
- 2026-11-12
- Stars
- ★ 662
- Forks
- 77
01 前言 Front Matter
- name
- app-deployment
- description
- Validate and remotely deploy a Universal App through the installed, version-matched Rayfin CLI. Use before deploying to run local checks, confirm the target workspace, preview the operation, deploy, and validate the live app. This skill orchestrates existing executables; it does not implement deployment.
03 SKILL.md 正文
App Deployment
This skill orchestrates the installed Rayfin CLI lifecycle. It does not recreate the validation or deployment implementation.
Before a remote write
- Apply every capability pack the app needs.
- Read
app-validationand complete its static gates: typecheck, build, lint, tests, and pack-provided validators. Run pre-deploy browser or persistence checks only when the installed guide and current environment already support a local or deployed runtime. - Obtain the user's confirmation for the target Fabric workspace and remote deployment. Do not select or create a workspace the user did not approve.
Rayfin CLI deployment
- Read the installed package metadata for
@microsoft/rayfin-guide, then read its version-matched deployment guide. The current guide location isnode_modules/@microsoft/rayfin-guide/assets/docs/app-backend/deploy.md; if package metadata points elsewhere, follow that installed location. - Follow that guide's authentication and deployment workflow. For the current
version, preview the remote operation with
npx rayfin up -n, verify the confirmed target, and then runnpx rayfin up --json. JSON mode is non-interactive. On a first deployment with no recorded target, pass the confirmed target explicitly with--workspace-id <id>,--workspace <name>, or--workspace-uri <uri>. - Read the machine-readable deployment result before continuing.
Overall
status: "success"is not enough for a source-backed request. Inspectgeneratestatus first. For every connector declared inrayfin.yml, require one matchinggenerate[]result. A missing result or a result withstatus: "error"is blocking. Only when a result hasstatus: "skipped"should you inspect itsskipReason. Every connector required by the requested deployed experience must complete the generation/apply path its installed type contract requires. A Category Bnon-graphql-connectorskip is acceptable only when the installed type contract documents that path and the connector's deployed behavior was validated separately. Any other skip for a required connector is blocking.skippedConnectorssummarizes skipped results only; it excludes errors and cannot reveal a missinggenerate[]result. Do not useskippedConnectorsor warning wording to decide whether a connector succeeded. If a required connector is missing, errors, or has a blocking skip, report the blocker and stop. Do not continue to browser validation or claim the source-backed request succeeded. - Do not claim the CLI has validation guarantees that its installed guide does not document.
- Use the direct static-hosting link emitted by the CLI for standalone browser validation. Use the actual Fabric or external host when validating embedded capabilities.
- Determine
services.staticHosting.assetAccessbefore choosing the browser checks. LocalautoLogindoes not prove the deployed public signed-out experience.
Do not publish automatically.
Do not add --force unless the user explicitly requests it and the installed
guide documents the consequence for the exact operation.
Never put access tokens, credentials, or secret values in command arguments, chat, source, or logs. Use interactive authentication and masked secret prompts when the installed guide requires them.
Prove the deployed result
After deployment succeeds, read app-validation and validate the deployed app
at its direct hosting URL, confirming that signed-out users must authenticate before app content renders.
Run the browser checks and, for app-owned records, the persistence create,
reload, update, and delete checks against the deployed result.
For public hosting, also open the standalone hosting URL in a clean browser
session and verify signed-out then signed-in behavior. For protected hosting,
verify session restoration and stale-session replacement. For embedded apps,
validate through the actual Fabric or external host.
Do not report deployment complete from a build, dry run, hosting URL, or CLI
success alone.
Report the Fabric app link only after the deployed runtime checks pass, unless
the user explicitly defers runtime validation.
04 同仓库更多 Skills
Rayfin 应用创建与入门
rayfin-getting-started
在启动或创建新的 Rayfin 应用时使用,或在出现 Rayfin 任务但尚未进入 Rayfin 项目时使用。它会通过 Rayfin CLI 带你进入项目,然后移交给项目内权威的、版本锁定的 rayfin 技能/文档,由它们负责所有项目内工作。触发词:构建 Rayfin 应用、启动 Rayfin 项目、创建新的 Rayfin 应用、create-rayfin、npm create @microsoft/rayfin、rayfin init、scaffold rayfin、rayfin CLI、rayfin template、universal app、awesome-rayfin gallery、get started with Rayfin。
数据可视化图表实现
visuals
当用户想要在项目中加入图表、图形、数据网格或其他数据可视化表示时使用。使用 VegaVisual 和 DataGrid 组件创建这些可视化,利用共享的 DataTable 输入、格式设置、主题和交互性。涵盖宿主应用消费的 onInteraction 选择/点击事件、用于分层叠加和参考线的命名多表数据输入,以及 Vega-Lite 原生选择。触发词:chart、graph、plot、dashboard、KPI、metric、trend、scorecard、data grid、visualize。
Power BI 语义模型探查
schema-discovery
使用 DAX INFO 函数探索 Power BI 语义模型架构。包括渐进式元数据发现策略、范围估计,以及针对表、列、度量值和关系的缩小范围技巧。
Power BI 查询设计
query-design
将 DAX 数据获取与 TypeScript 呈现相分离。指导何时使用 DAX、TypeScript 或 Vega-Lite 来进行聚合、总计行、FORMAT()、SELECTCOLUMNS、BLANK 处理、筛选、多粒度查询、交叉筛选与交叉高亮的子集/覆盖查询,以及格式字符串。
Universal App 函数能力开发
functions-capability
应用并构建 Universal App 的函数能力。用于可信的服务器端逻辑、密钥(secrets)、外部 API、自定义模型端点、已发布的 Fabric 数据智能体、Webhook 或特权操作。
Fabric 语义模型 DAX 查询
fabric-sdk
如何通过运行中的应用里的 Rayfin connectors 客户端查询 Fabric 数据。使用 getRayfinClient().connectors.<name>.executeQuery 对语义模型执行 DAX 查询,并使用 toQueryResult 规范化响应。