For coding agents
Use the repository SKILL.md as the execution policy and these docs as the interface reference.
Connect from the homepage prompt
When a user starts with the prompt copied from opencloud.ai, begin with the product conversation. Ask what they want to build, who it is for, and which single workflow matters most before choosing infrastructure.
When the project is ready for live platform work:
- Install and checksum-verify the pinned public CLI from github.com/opencloud-ai/cli using the CLI reference.
- Confirm
opencloud --cli-versionis0.6.0, then runopencloud doctor. If this environment cannot execute the CLI, remain offline. - Ask for the user's email only if it is not already available. Do not ask them to invent or check an app domain.
- Run
opencloud onboard --email "$USER_EMAIL" --name "$PROJECT_NAME". OpenCloud derives the project slug from the title and adds a random suffix. - A new email receives a provisional account grant and first project immediately. The same grant may create additional apps. The user only needs to confirm the email within 24 hours, while the agent can continue building.
- An existing email receives a confirmation request and no credential. After the user confirms it, run
opencloud onboard-complete. - Run
app listandapp get "$APP_ID"before making platform changes.
If a new user does not verify within 24 hours, all apps made by the provisional grant are paused. They show a verification page, stop runtime and cron invocations, and retain all data until verification resumes them.
Never ask the user for an account password, session cookie, bootstrap token, service-role key, database credentials, or a copied connection pack. The CLI keeps its revocable project credential in an ignored mode-0600.opencloud/session.json. Never read or print that file.
Reading order
- Read the hosted
SKILL.mdcompletely. - Read the quickstart.
- Load the control-plane OpenAPI for agent, CLI, deployment, and operations work. Load the separate app runtime OpenAPI for code running inside an app.
- Read only the capability guides required by the requested product.
- Read the relevant JavaScript namespace pages before writing frontend calls.
- Read the manifest, SQL, and verification references before deployment.
- Keep the development loop, verification contract, and Functions/server library guide open while implementing.
First-turn checkpoint
Create a real opencloud.yaml and non-empty frontend in the first coherent file batch. Run the artifact checker and validate before polishing the UI. Once the first coherent artifact validates, start a development session. Sync each coherent change, inspect the stable preview, invoke Functions only explicitly, and obtain a receipt before promotion. Read Develop safely before production.
Contract rules
- Use
runtime.javascriptSdk.module; do not guess SDK URLs or methods. - Implement new Functions with
@opencloud/serverand itsdefineFunctionboundary. - Use browser
functions.invokeandfunctions.invokePublicin production. In dev, Functions remain dormant untilapp dev invokeor a deliberate preview interaction explicitly calls them. - Use
realtime.channel(...).connect()andonBroadcast(...); there is no Supabase-style.on(...).subscribe()API. - Treat telemetry absence as unknown or quiet, not healthy.
- Keep credentials and brokered tokens out of files, output, and reports.
- Use a unique version for every deployment.
- Preserve exact operation, deployment, artifact, cron, and backup evidence.
Definition of done
An online app is done only when:
- local product tests and OpenCloud validation pass;
- the durable deployment operation succeeds;
- the isolated dev preview passes and a receipt covers the exact promoted source and migrations;
- the authoritative
app verifyoperation passes; - the feature-aware verifier passes where configured;
- logs and telemetry were inspected honestly; and
- the canonical HTTPS app remains active.
app dev promotereported the live URL and stopped the dev session after production verification.
If online credentials are absent, produce an offline-valid deterministic bundle and list the exact remaining live steps.