بنقرة واحدة
migrate-googleai
Convert Google AI Studio-origin apps to static Domo deployment contract.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Convert Google AI Studio-origin apps to static Domo deployment contract.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Step-by-step orchestrator for building Domo App Studio apps with native KPI cards via community-domo-cli. Sequences app creation, pages, theme, hero metrics, native charts, filter cards, layout assembly, and navigation. CLI-first — no raw API calls.
Domo KPI card CRUD via community-domo-cli — body schema, column mapping, beast modes, chart type index with on-demand reference files, and gotchas.
**Generating sample data for Domo** -- invoke when a user needs to create realistic sample datasets and upload them to a Domo instance. Primary signals: requests for sample data, demo data, test data, fake data for Domo; mentions of Salesforce, Google Analytics, QuickBooks, NetSuite, Google Ads, Facebook Ads, HubSpot, Marketo, or Health Portal sample data; questions about the datagen CLI or domo_data_generator. Covers: generating datasets, uploading to Domo, creating datasets in Domo, rolling dates, entity pools, connector icons, catalog management, and adding new dataset definitions. Skip for: real connector setup, production data pipelines, data transformations (Magic ETL), or Domo App Platform.
Create AppDB collections via CLI-first workflows where collection creation also provisions the required datastore, then returns collection identifiers for manifest wiring and document-write follow-up. Use when an agent must initialize new AppDB storage for a Domo app, not just list/get collections or create documents.
Create Domo Code Engine packages from CLI workflows with deterministic payload contracts, automatic function parameter datatype mapping, and manifest packagesMapping follow-up guidance. Use when an agent must create a new package/versioned package container rather than only invoke an existing function from app runtime code.
Update Domo Code Engine packages through CLI-driven versioned lifecycle workflows with compatibility checks, datatype contract safeguards, and manifest mapping drift synchronization. Use when an agent must update package code or create a new package version and keep app mappings aligned.
| name | migrate-googleai |
| description | Convert Google AI Studio-origin apps to static Domo deployment contract. |
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:
npm run build must produce a self-contained dist/ foldercd dist && domo publish must work (Domo serves the app from a subpath, not from site root)Treat the project as "AI Studio-origin" if you see any of:
process.env.GEMINI_API_KEY or placeholders described as "provided by AI Studio"If detected, apply the steps below.
Make the project a conventional front-end that:
npm run devnpm run build into dist/Open package.json and ensure scripts exist and are correct for the chosen toolchain:
If it is Vite:
dev: vitebuild: vite buildpreview: vite previewdist/If it is CRA:
build outputs build/ by default (NOT acceptable for our contract)Default to Vite if uncertain.
Acceptance criteria:
npm install succeedsnpm run build creates dist/ with index.html and assets/*Domo App Platform does NOT host your app at /. It’s under a nested path.
Therefore asset paths MUST be relative or explicitly configured.
If Vite: set base to relative
vite.config.*: base: './'If other bundler: ensure the equivalent "public path" is relative.
Acceptance criteria:
dist/index.html from a nested path still loads JS/CSS assets (no 404s)./assets/... unless you know the host root.If the app uses React Router (or any client router):
Default action:
HashRouter.Acceptance criteria:
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:
process.env.* patterns with toolchain-native env usage:
import.meta.env.VITE_*.env.example documenting required variables (non-secret only).Acceptance criteria:
Ensure the final developer workflow is:
npm run buildcd distdomo publishIf 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:
dist/ as part of build (postbuild script)Default:
postbuild script to copy required app platform files into dist/ if they are missing there.Acceptance criteria:
dist/ contains everything needed to publish and run.domo publish from inside dist/ works without manual file copying.After applying changes, provide:
dist/Be decisive; implement changes rather than asking follow-up questions unless blocked by missing files.