Skip to content
cognitedata avatar

Migrate App To Flows

Step-by-step migration of a legacy Dune app to Flows app hosting, with auth, manifest, and deploy updates.

CCM score
64 of 100
skills.sh installs
1.7K
GitHub stars
6
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full migration path: audit, app.json update, auth setup, manifest.json network permissions, and deploy script changes
  • Includes a legacy fix that renames deployment to deployments as an array, then sets "infra": "appsApi"
  • Enforces a Content Security Policy through manifest.json, listing external origins used by fetch, axios, or XMLHttpRequest calls
  • Designed for teams moving existing Dune apps to Flows, triggered by requests like "migrate to Flows"

Install

$ npx -y skills add cognitedata/builder-skills --skill migrate-app-to-flows -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Migrate App to Flows Infrastructure

Orchestrates the full migration of a legacy Dune app to the new Flows app hosting (appsApi). Works through each area in order, skipping any already in the correct state.

Step 1 — Audit current state

Read app.json, package.json, vite.config.ts, and manifest.json (if present).

Report a concise summary before making any changes:

Migration audit:
✗ app.json: missing infra field → will add "infra": "appsApi"
✗ Auth: DuneAuthProvider in use → will run setup-flows-auth
✗ manifest.json: missing → will create
✓ Deploy script: already uses @cognite/cli

Then proceed through Steps 2–5.


Step 2 — Update app.json

If infra is already "appsApi", skip this step. Otherwise:

Fix legacy deployment key format first. Many POC apps use "deployment" (singular, plain object). The CLI requires "deployments" (plural, array). If the file has the old format, rename the key and wrap the value in an array before proceeding:

// Before (legacy)
{
  "deployment": { "org": "...", "project": "...", ... }
}

// After (correct)
{
  "deployments": [{ "org": "...", "project": "...", ... }]
}

Details

Repository
github.com/cognitedata/builder-skills
Categories
DevOps & Cloud, Backend & APIs
First seen
Jul 14, 2026

Questions

What does the migrate-app-to-flows skill do?

It migrates a legacy Dune app to the new Flows app hosting infrastructure. It audits the current state, updates app.json to appsApi infra, wires up auth through setup-flows-auth, creates or updates manifest.json network permissions, and switches deploy scripts to @cognite/cli.

How do I install the migrate-app-to-flows skill?

Run npx -y skills add cognitedata/builder-skills --skill migrate-app-to-flows -y in your project. The skill then guides the agent through migrating your legacy Dune app step by step.

Which skills lead the DevOps & Cloud category this skill belongs to?

Within DevOps & Cloud, this skill sits alongside azure-diagnostics, azure-prepare, azure-deploy, azure-validate and azure-storage. It focuses on moving Dune apps to Flows hosting rather than Azure resources.

Who should use the migrate-app-to-flows skill?

It is for developers with an existing legacy Dune app who want to move it to Flows Custom App infrastructure. It applies when you ask to migrate to Flows, move from Dune to Flows, or migrate a legacy app.

More from cognitedata/builder-skills

All 25

Similar to Migrate App To Flows

More DevOps & Cloud