Migrate googleai

From stahura/domo-ai-vibe-rules · View interactive version

Migrate googleai is an AI agent skill from the GitHub repository stahura/domo-ai-vibe-rules. Convert Google AI Studio-origin apps to static Domo deployment contract.

How to use this skill

Skill file

Rule: Migrate Google AI Studio prototype to Domo App Platform Custom App (static dist deploy)

You are converting a project that began in Google AI Studio (often Cloud Run / preview oriented) into a Domo App Platform Custom App deployed as static assets via the Domo CLI.

The required deployment contract is:

1) npm run build must produce a self-contained dist/ folder

2) cd dist && domo publish must work (Domo serves the app from a subpath, not from site root)

3) The app must load assets correctly and not break on refresh/navigation

Detect AI Studio origin

Treat the project as "AI Studio-origin" if you see any of:

If detected, apply the steps below.


Primary objective

Make the project a conventional front-end that:


Step 1 — Ensure a standard build pipeline exists

Open package.json and ensure scripts exist and are correct for the chosen toolchain:

A) migrate to Vite (preferred for App Platform), OR

B) update Domo publish docs/commands accordingly (only if user explicitly wants CRA)

Default to Vite if uncertain.

Acceptance criteria:


Step 2 — Fix base path so assets work in Domo (subpath hosting)

Domo App Platform does NOT host your app at /. It’s under a nested path.

Therefore asset paths MUST be relative or explicitly configured.

Acceptance criteria:


Step 3 — Make routing robust for static hosting

If the app uses React Router (or any client router):

Default action:

Acceptance criteria:


Step 4 — Environment variables and secrets: remove AI Studio-only assumptions

AI Studio can "magically" provide placeholders (e.g., Gemini API key) during its hosted run.

In Domo App Platform, the browser cannot safely hold secrets.

Rules:

Acceptance criteria:


Step 5 — Domo deploy contract

Ensure the final developer workflow is:

If a Domo manifest/config file is required by the App Platform project (e.g., manifest.json), ensure it is located where Domo expects it OR copied into dist/ during build.

If the platform expects the manifest in the root but publishes dist/, implement one of:

Default:

Acceptance criteria:


Output requirements (what you must deliver as the assistant)

After applying changes, provide:

1) A short list of files changed

2) The exact commands to run locally

3) A "done checklist" confirming:

Be decisive; implement changes rather than asking follow-up questions unless blocked by missing files.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.