AGENT SKILL

add-backend

Add an app backend with `ms app add backend --provider rayfin`. Currently covers database entities and client integration. Use only when the user explicitly requests a database, /add-backend, or Rayfin.

使用场景后端与接口
License 许可
MIT
最近更新
2026-11-11
Stars
★ 5
Forks
0

01 前言 Front Matter

name
add-backend
description
Add an app backend with `ms app add backend --provider rayfin`. Currently covers database entities and client integration. Use only when the user explicitly requests a database, /add-backend, or Rayfin.

02 资源文件 2

03 SKILL.md 正文

Shared instructions: shared-instructions.md

Add an app backend

Required first: pass the Rayfin feature gate.

1. Set up the database

If rayfin/rayfin.yml exists, use the existing configuration. Otherwise, run:

ms app add backend --provider rayfin --json

This creates the backend configuration, TypeScript configuration and rayfin/data/. Keep the existing app layout and exclude rayfin/.temp/ from version control.

This prepares the app's backend definitions; it does not provision a database. Rayfin is the app backend, not an existing database to select or connect to.

2. Install dependencies

Run from the app root before continuing so the declared dependencies and their version-matched docs are available in node_modules:

npm install

Use the app's existing package manager and lockfile if it does not use npm. Report installation or peer-dependency errors; do not force-install or downgrade the app to bypass them. Add missing direct dependencies only as required by the implementation described in the references.

3. Implement and check the app

Read the installed package docs identified in these references, then follow them in order:

When invoked from /create-app, complete data modeling in Step 9 and return the entity/client paths; that workflow handles UI implementation and checks in Steps 10-11. Standalone use continues through both references.

4. Follow the app lifecycle

Use the normal app build and deploy workflow, not a separate Rayfin provisioning workflow.

04 同仓库更多 Skills

microsoft
microsoft/Copilot-Managed-Runtime

setup-taskmanager

Sets up the Task Manager template for a new owner - copies the sample into its own folder, signs in to the `ms` CLI, creates the app and its platform-managed git repository on Copilot Managed Runtime, adds the Azure DevOps, Teams and Office 365 Users connectors, writes .env.local and admins.json, verifies with npm run check-setup, and commits and pushes to the app's repository. Use when someone has just cloned this template, when `npm run dev` or `npm run build` stops at check-setup, or when ms.config.json is missing.

★ 5
microsoft
microsoft/Copilot-Managed-Runtime

add-data-source

Moves this app's data from browser-local storage to a shared backend (SharePoint lists, Dataverse tables, a REST API, or any other store) by adding a storage provider. Use when the user wants app data shared between people or devices, kept outside the browser, or stored in a specific system.

数据分析师后端与接口
★ 5
microsoft
microsoft/Copilot-Managed-Runtime

setup-taskmanager

Sets up the Task Manager template for a new owner - copies the sample into its own folder, signs in to the `ms` CLI, creates the app and its platform-managed git repository on Copilot Managed Runtime, adds the Azure DevOps, Teams and Office 365 Users connectors, writes .env.local and admins.json, verifies with npm run check-setup, and commits and pushes to the app's repository. Use when someone has just cloned this template, when `npm run dev` or `npm run build` stops at check-setup, or when ms.config.json is missing.

★ 5
microsoft
microsoft/Copilot-Managed-Runtime

add-data-source

Moves this app's data from browser-local storage to a shared backend (SharePoint lists, Dataverse tables, a REST API, or any other store) by adding a storage provider. Use when the user wants app data shared between people or devices, kept outside the browser, or stored in a specific system.

数据分析师后端与接口
★ 5
microsoft
microsoft/Copilot-Managed-Runtime

setup-learninghub

Set up the Learning Hub sample after cloning it - copy it into its own folder, install dependencies, sign in with the ms CLI, create the app and its platform-managed git repository with ms app init (writes ms.config.json), hide the host header, add the Office 365 Users connector, configure .env.local, verify with check-setup, start local development, and commit and push to the app's repository. Use when someone asks to set up, configure, run or deploy this app for the first time, or when `npm run dev`/`npm run build` stops with "Learning Hub is not set up yet".

运维与部署
★ 5
microsoft
microsoft/Copilot-Managed-Runtime

add-data-source

Moves this app's data from browser-local storage to a shared backend (SharePoint lists, Dataverse tables, a REST API, or any other store) by adding a storage provider. Use when the user wants app data shared between people or devices, kept outside the browser, or stored in a specific system.

数据分析师后端与接口
★ 5