Code engine create

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

Code engine create is an AI agent skill from the GitHub repository stahura/domo-ai-vibe-rules. 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 functi

How to use this skill

Skill file

Code Engine Package Create (CLI)

Use this skill for package creation workflows, payload generation, and post-create mapping sync.

Intent

This skill covers lifecycle operations that are out of scope for app-runtime invocation skills:

For in-app function invocation patterns, use ~/.agents/skills/code-engine/SKILL.md.

Primary Execution Path

Prefer community-domo-cli:

community-domo-cli --instance <instance> code-engine create-package --body-file payload.json

Fallback endpoint when CLI path is unavailable:

POST /api/codeengine/v2/packages

Release Safety Rule

Hard rule: never call any Code Engine release endpoint unless the user explicitly says "release".

Required Payload Shape

{
  "name": "My Package",
  "description": "Optional",
  "code": "// JS source",
  "environment": "LAMBDA",
  "language": "JAVASCRIPT",
  "manifest": {
    "functions": [
      {
        "name": "myFunction",
        "displayName": "My Function",
        "description": "",
        "inputs": [],
        "parameters": [],
        "output": {}
      }
    ],
    "configuration": {
      "accountsMapping": []
    }
  }
}

Create semantics:

Datatype Mapping Rules (Auto-Map)

When generating manifest.functions[].inputs/parameters/output, apply these defaults:

Use the same type value for type and dataType when both fields are present.

Post-Create Manifest Follow-up

After successful create, update app manifest.json packagesMapping:

If package ID/version changes, treat existing mapping as drift and sync immediately unless user requests otherwise.

Post-Create Verification (Required)

After create, verify target package/version before declaring success:

  1. GET /api/codeengine/v2/packages/{packageId}
  2. Confirm target version exists and includes expected function names.
  3. Confirm function inputs/outputs have expected datatypes and nullability.

If create returns an incomplete version shell (for example missing function contracts), hand off to update flow:

Checklist

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.