/goldsky-compose:compose-doctorfrom Goldsky Compose
Diagnose an existing Goldsky Compose app with failing tasks, crashloops, missed events, cron not firing, HTTP 500s, wallet or gas sponsorship failures, missing secrets, bundler errors, manifest validation failures, or esbuild failures. Use when an app is named alongside a problem involving goldsky compose, including 'No bundler provider available', named wallets without a private key in local dev, and 'Transaction Receipt failed with status'. Load /compose first; inspect status, logs, secrets, and wallets to find the cause. New apps belong in /compose; reference-only lookups use skills/compose/references/. Use /secrets for secret management and /auth-setup for login. Turbo, Mirror, Subgraph, and Edge issues have separate skills.
Ships in Goldsky Compose. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Diagnose and fix broken Compose apps. Workflow-oriented: we walk through auth → app identification → status → logs → secrets → wallets → manifest → diagnosis → fix. Part of the Compose skill family: /compose is the entry point, skills/compose/references/ is the lookup layer, and this skill is the debugger.
/compose for that.skills/compose/references/./secrets. But DO check whether required secrets exist as part of diagnosis./turbo-doctor, /mirror-doctor, or /subgraph-doctor.Before running any commands, check if you have the Bash tool available:
When the user has the app's source and the symptom is that goldsky compose start fails, or the app was never deployed, debug it locally first. No login or cloud app is needed, so skip Steps 1 to 3 until the problem is a deployed app.
goldsky compose --version prints compose CLI is not installed, install it (goldsky compose install, or /auth-setup's installer with compose) and continue. Do not stop at "the CLI is missing" and fix by reading alone.compose.yaml and every task file against skills/compose/references/manifest.md (trigger fields, env, secrets, import rule).goldsky compose start from the app directory to see the real first error (Manifest validation failed, Local secret validation failed, bundling errors), then fix errors one at a time and re-run. Reading against the reference in step 2 finds suspects; start confirms them. start does not watch files and does not exit on its own: run it with a timeout or in the background, and restart it after each fix.start reports Startup complete!. For a task you changed, also run goldsky compose callTask <task> '{}' --env local against the running server and show the result.goldsky project list 2>&1. If not logged in, use /auth-setup.
goldsky compose list. Confirm the app exists and note its current status.
goldsky compose status -n <app> or goldsky compose status -n <app> --json.
Statuses the CLI renders: RUNNING, PAUSED, STARTING, STOPPING, ERROR, NOT_FOUND (the value comes from the API, so treat the list as non-exhaustive). Decision tree:
goldsky compose resume -n <app> if not..updated_at from --json output to compute how long.)goldsky compose logs -n <app> --tail 200 --json 2>&1 (add -f to stream, --level error,warn to filter, --since 1h for a window, --search <term> for text match, --timeout <duration> for a bounded non-interactive tail).
How to match errors: scan the full log text (NDJSON .message field when --json is set) for an exact substring against the first column of the error table below. CLI log lines carry only {timestamp, level, message}, there is no dashboard_url or run_id in them. To get a run link, run goldsky compose runs --status error --since 1h --json, take the runId, and build https://app.goldsky.com/<project_id>/dashboard/compose/<app-name>/runs/<run_id>.
--json failures: every command run with --json writes failures to stderr as {"error":true,"code":"<CODE>","message":"..."} and exits 1. An agent parsing stdout only sees empty output and mis-diagnoses. Codes (non-exhaustive): VALIDATION_FAILED, SECRET_MISSING, DEPLOY_FAILED, DEPLOY_CONTRACT_FAILED, ALREADY_DEPLOYED, WRITE_CONTRACT_FAILED, WALLET_CREATE_FAILED, WALLET_LIST_FAILED, NOT_FOUND, TASK_NOT_FOUND, CONNECTION_REFUSED, INVALID_ENV, INVALID_FLAGS, INVALID_PAYLOAD, INVALID_RESPONSE, INVALID_FILTER, UNKNOWN. Note callTask used to exit 0 on connection-refused and on a 404 and now exits 1, so old runbooks that ignore its exit code are wrong.
goldsky compose runs -n <app> --status error --since 1h --json
goldsky compose runs -n <app> --task <name> --limit 20 --json
goldsky compose runs <runId> # one run: task, status, statusMessage, per-invocation detail
--status is success|error|pending. --since / --until take 1h|30m|7d. --limit / --offset page. This is more direct than log grepping when the question is which invocation failed and why.
For a stateful app, collections is the way to check whether a task actually persisted what it claimed:
goldsky compose collections list -n <app>
goldsky compose collections query <collectionName> -n <app> --filter '<json>' --limit N
--limit defaults to 100 and the CLI rejects --limit > 1000 with "Limit cannot exceed 1000 (the backend maximum)."; a non-object --filter gives INVALID_FILTER / "Filter must be a JSON object".
If logs show missing-secret or auth errors:
goldsky compose secret list -n <app>
Cross-reference against the manifest's secrets: array. Use /secrets or goldsky compose secret set to fix.
A secret's value can never be retrieved: secrets are end-to-end encrypted and secret list returns names only. There is no secret reveal. If a value looks wrong, set a new one and redeploy. Relatedly, values appearing redacted in the dashboard run UI is the secret scanner working as intended, not a bug to chase.
If logs show wallet or transaction errors:
goldsky compose wallet list -n <app>
Check whether the error is:
sponsorGas: false and fund the EOA manually.compose start --fork-chains or use a BYO EOA wallet locally.goldsky compose runs --status error --since 1h, then open .../dashboard/compose/<app>/runs/<run_id>, the run trace includes the decoded revert reason.If logs show Invalid manifest: …, the manifest was rejected at deploy time (compose start prefixes these with x Manifest validation failed:; deploy does not). Common causes are in the error table below.
goldsky compose source -n <app> # file list of the deployed tree
goldsky compose source -n <app> <taskName> # that task's deployed source
goldsky compose download -n <app> # <app>.zip; refuses to overwrite, use -o
Use this when the symptom is "I fixed it and redeployed but the behaviour did not change". Full-fidelity source only exists for deploys made after source capture shipped; older deploys fall back to compiled per-task .js with a banner.
Present findings in this format:
## Diagnosis
**App:** <name>
**Status:** <status>
**Root cause:** <one-line explanation>
**Fix:** <one-line action, with exact command if possible>
**Verify:** <how to confirm it worked>
If the fix is mechanical (secret set, manifest edit, redeploy), execute it and re-run Steps 3–4 to verify. If the fix requires user input (contract revert reason, funding decision, API key rotation), surface the diagnosis and stop.
| Log / error message | Cause | Fix |
|---|---|---|
Invalid manifest: api_version is required for deployment. | Older Compose CLI; current CLIs deploy a manifest without api_version on stable | Upgrade the Compose CLI, or add api_version: stable |
Invalid manifest: api_version "<v>" is not valid. | Bad version value | Use stable, preview, canary, or semver |
Project name must start and end with a letter or number | Manifest name fails /^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$/ | Start and end with a letter or number; letters, numbers, underscores, hyphens. Uppercase and leading digits are fine |
403 Compose requires a Scale plan. Visit https://app.goldsky.com/dashboard/settings to upgrade, or reach out to [email protected]. | Account is on Starter; Compose deploy and cloud features need Scale | Upgrade at https://app.goldsky.com/dashboard/settings by adding a card (or contact [email protected]), then retry the deploy |
409 / name conflict on deploy | Another app in the project canonicalizes to the same name (lowercase, [-_]+->-), e.g. my-app vs My_App vs my__app | Pick a name that is distinct after canonicalization |
<task>.name must start with a letter or number, and contain only letters, numbers, underscores, hyphens, and dots | Task name regex fail | match /^[a-zA-Z0-9][a-zA-Z0-9_.\-]*$/. Hyphens, dots, and leading digits are now allowed; a leading underscore is not (rename _internal_task) |
<task>.triggers[N].authentication must be either 'auth_token' or 'none' | HTTP trigger auth wrong | set to one of the two values |
<task>.triggers[N].network must be in snake_case format | onchain_event network name wrong case | polygon_amoy, ethereum_mainnet (snake_case) |
<task>.triggers[N].contract must be a valid EVM address | bad 0x address | check checksum + 40 hex chars |
<task>.triggers[N].ip_whitelist[N] must be a valid IP or CIDR | malformed IP | fix format |
Secret names must be in SCREAMING_SNAKE_CASE format | bad secret name | MY_SECRET, not my-secret |
Secret name "<X>" in .env is reserved for the app's postgres database | secret clashes with hosted DB name (uppercased app name) | rename the secret |
The following secrets are referenced in the manifest but are not set in your local .env file | local dev missing secret | add to .env or goldsky compose secret set --env local |
Deploy blocked: required secrets are missing from cloud | cloud secret missing | goldsky compose secret set or deploy --sync-env |
Task bundling failed: <msg> | esbuild compile error | fix the TS error in the task |
esbuild native binary crashed… architecture mismatch… | arm/amd64 mismatch | rebuild image; rm -rf ~/.cache/esbuild |
You cannot use a named wallet without a private key in local dev. | Smart wallet in plain compose start | compose start --fork-chains or switch to a BYO EOA |
No bundler provider available for chain <id>. | chain not supported by any bundler | change chains, or set sponsorGas: false |
is not supported by + (forced via BUNDLER_PROVIDER) | forced Alchemy on wrong chain | unset BUNDLER_PROVIDER env override |
BUNDLER_PROVIDER is set to "<p>" but required keys are missing | Forced provider without its keys (ALCHEMY_API_KEY+ALCHEMY_GAS_POLICY_ID, PIMLICO_API_KEY) | Unset BUNDLER_PROVIDER and let the Alchemy -> Pimlico fallback pick |
Transaction Receipt failed with status reverted | onchain revert | find the run via compose runs --status error, open its dashboard run page for the decoded revert reason |
Cannot deserialize params: chain <id> not found | reorg replay for a chain missing in viem/chains | update the CLI / switch chains |
[Warning] onReorg is not supported for gas-sponsored transactions. | non-fatal warning | if reorg matters, switch to non-sponsored |
[Warning] The 'nonce' parameter is being ignored for gas-sponsored transactions. | passing nonce to sponsored send | remove the nonce override |
error: Unknown command "deployContract". Did you mean command "deploy"? (exit 2; prints generic help) | CLI older than 0.8.0 — deployContract was added in 0.8.0 | OFFER to run goldsky compose update, then retry |
--constructor-args parse/encoding error with multiple or array args | CLI is 0.8.0 — the forge-style multi-arg/array grammar needs ≥ 0.8.1 | OFFER goldsky compose update to ≥ 0.8.1, then retry |
Please run goldsky login, set GOLDSKY_API_TOKEN, or pass --token to the command. | No token from any of the three sources | goldsky login, or export GOLDSKY_API_TOKEN, or pass -t. Precedence: --token > GOLDSKY_API_TOKEN > ~/.goldsky/auth_token |
Could not connect to compose server on port <port>. Start it with 'compose start'. (CONNECTION_REFUSED) | callTask --env local against a dead server, or a stale .compose/.port | Start the server, or pass -p <port>. start walks 4000-4009, so the live port may not be 4000; .compose/.port holds {port, pid, startedAt} |
Task '<name>' not found. (TASK_NOT_FOUND) | Task name does not match compose.yaml, or you are talking to the wrong port or app | Check the manifest task name; run from the app directory for automatic port detection |
--port only applies to --env local (INVALID_FLAGS) | -p passed with an explicit --env cloud | Drop one of the two |
No available port found between 4000 and 4009 | All ten ports occupied | Kill the stale servers, or compose start -p <port> (binds exactly, fails fast, no walking) |
This contract has already been deployed with this app. (HTTP 400 CONTRACT_ALREADY_DEPLOYED; --json code ALREADY_DEPLOYED) | CREATE2 collision: same contract source + constructor args + app | Change the source or a constructor arg, or use a different app name. Not a failure to retry |
! Verification failed: <reason> after a successful deployContract --verify | Explorer verification is best-effort and never changes the exit code | The contract is deployed; re-verify out of band if it matters |
Project name is required in non-interactive mode: goldsky compose init <name> | compose init with no name in a non-TTY | Pass the name argument: goldsky compose init <name> |
Refusing to deploy with a major api_version mismatch in non-interactive mode. Pass --force to override. | deploy with a major api_version mismatch in a non-TTY | Add --force |
Use --force for non-interactive cleanup. | compose clean without -f in a non-TTY | Add -f |
Any of: fork-mode revert with delegatecall to address(0); code evaluation error running a downloaded app; runs stuck pending after a pod restart | Bugs fixed in 0.6.0 to 0.7.0 | goldsky compose --version, then OFFER goldsky compose update before investigating further |
Trap: A user reporting "my local task returns the old behaviour" may simply have run callTask without --env local and hit the deployed app.
Every app has a dashboard page: https://app.goldsky.com/<project_id>/dashboard/compose/<app-name>. Every run has …/runs/<run_id>. When diagnosing, surface both links to the user.
If you don't have the Bash tool, output the diagnostic commands for the user to run, but structure them clearly:
This is the fallback path — always prefer running commands directly when Bash is available.
goldsky compose pause stops task execution without tearing down state.--delete-database on compose delete is irreversible — triple-check before running./compose — Build a new Compose app or explain what Compose is.skills/compose/references/ — Manifest / CLI / TaskContext / codegen lookups./secrets — Generic secret management./auth-setup — Fix authentication.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub goldsky-io/goldsky-compose-agent --plugin goldsky-compose3 skills in this plugin
/composeAlways load this skill whenever the conversation is about Goldsky Compose (the offchain-to-onchain TypeScript framework for oracles, keepers, circuit breakers, and cross-chain automation) — no matter what the user wants to do with it. That includes: asking what Compose is, its docs, pricing, functionality, or limits; building, deploying, or iterating on an app; wiring cron / HTTP / onchain-event triggers, smart wallets, gas sponsorship, secrets, or collections; deploying a worked example (bitcoin price oracle, VRF/drand, compliance-gated payments, dividend distribution); or debugging an existing app. This is the entry point — load it FIRST. Before writing any compose.yaml or task file, read skills/compose/references/manifest.md (then cli.md, task-context.md, wallets-and-gas.md as needed). For a worked example, read skills/compose/references/examples/. For a broken app, use /compose-doctor. Do NOT load for Goldsky Turbo, Mirror, Subgraphs, Edge, Boost, or Datasets — those have their own skills./onchain-automationRoute event-driven onchain automation that detects activity, applies logic, and submits a transaction in response. Use for 'when X happens onchain, do Y', monitor-and-execute workflows, smart contract calls triggered by events, keepers, protocol automation, auto-claiming or compounding rewards, liquidations, rebalancing, and settlement automation. Combine Turbo/Subgraphs/Mirror for detection with Compose for decisions and execution, including wallets, gas sponsorship, and writeContract. Load /compose for execution and /turbo-builder when detection needs dataset scale. Pure indexing or streaming without an onchain action belongs in /turbo-builder, /subgraph-builder, or /mirror. For a single app already identified as Compose, use /compose directly.