agentleFS
MicrosoftKnown publishermicrosoft/managed-apps/plugins/microsoft-managed-apps/skills/add-backend/SKILL.md

add-backend

Skill34 starsChanged 4 months agoMITView on GitHub

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, and the CLI reports the rayfin feature as enabled.

  • Installs packages

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If rayfin/rayfin.yml exists, use the existing configuration.

    line 15
  2. Very specific:

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

    line 27
  3. Distinctive:

    Use the app's existing package manager and lockfile if it does not use npm.

    line 34
  4. Distinctive:

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

    line 41

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
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/, and declares the runtime client dependency. Keep the existing app layout and exclude rayfin/.temp/ from version control.

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:

  • Data modeling: entities, permissions and runtime client.
  • CRUD UI: lists, forms, mutations and persistence checks.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.