cognitedata avatar

Migrate App To Flows

This orchestrates the full migration from legacy Dune app hosting to the new Flows infrastructure. It audits your current setup, fixes the old deployment key format if needed, adds the appsApi infra flag, delegates all auth wiring to setup-flows-auth, generates or updates manifest.json with network permissions scraped from your source, and swaps deploy scripts to @cognite/cli. The manifest step is the real value here since it scans for fetch and axios calls to populate the CSP automatically. Use it whenever you're moving an existing app off the old infrastructure. It's thorough and opinionated, which means less decision fatigue during what's usually a tedious process.

skills.sh installs
1.7K
GitHub stars
6
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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": "...", ... }]
}

Sponsors

Details

Repository
github.com/cognitedata/builder-skills
Categories
Backend & APIs, DevOps & CI/CD, Release Management, Cloud & Infrastructure, CLI & Terminal
First seen
Jul 14, 2026

More from cognitedata/builder-skills

All 26
1nexscope-ai avataramazon-keyword-researchnexscope-ai/amazon-skillsAmazon keyword research and market opportunity analysis for sellers. Retrieve autocomplete suggestions (long-tail keywords), analyze competitor landscape, and a1.7Kskills.sh installs
2patternsdev avatarcompressionpatternsdev/skillsTeaches JavaScript compression techniques including Gzip and Brotli. Use when optimizing network transfer times or configuring server-side compression for produ1.7Kskills.sh installs
3adobe avatarcode-reviewadobe/skillsUse this when reviewing AEM Edge Delivery Services (EDS, Franklin, Helix) code, either self-review at the end of development before opening a PR, or reviewing a1.7Kskills.sh installs
4adobe avatardocs-searchadobe/skillsUse this when you need more information about an AEM Edge Delivery Services (EDS, Franklin, Helix) feature or guidance on how to implement one, and your existin1.7Kskills.sh installs
5practicalswan avatarpowerpoint-pptpracticalswan/agent-skillsPowerPoint (.pptx) manipulation via MCP server. Use for creating slides, formatting presentations, managing placeholders, adding images, applying templates, or 1.7Kskills.sh installs
6adobe avatarblock-inventoryadobe/skillsUse this when the page-import pipeline needs to survey the block palette available from a local AEM Edge Delivery Services project and the Block Collection to i1.6Kskills.sh installs