Deploy Telemetry
Set up analytics infrastructure via the Skene CLI.
Agent behavior rules
- Autonomous. Run CLI commands, report results, suggest next step. No mid-flow questions except for genuine blockers.
- CLI is the source of truth. Do NOT fabricate migration schemas or client code if the CLI fails.
- User cannot type into agent terminals. Pipe safe defaults for routine prompts. Kill stuck terminals.
- Upstream push can be a genuine blocker. Ask the user in chat to confirm before running
uvx skene push— it POSTsskene-context/engine.yaml,{output_dir}/feature-registry.jsonwhen present, and the latest trigger migration to Skene Cloud (it does not generate SQL; runuvx skene buildfirst if artifacts are missing).
Steps
Discover CLI options Run
uvx skene push --helpto see available flags. Use only flags that appear in the output.Verify prerequisites
skene-context/engine.yamlmust exist; trigger SQL lives undersupabase/migrations/as*_skene_triggers.sqlafteruvx skene build(older projects may use legacy*skene_trigger*/*skene_telemetry*filenames).- Feature registry: default
skene-context/feature-registry.json(or{output_dir}from config; legacyskene/feature-registry.jsonauto-detected). If missing, push still runs but omits the registry untilbuildcreates it. - If engine or migrations are missing: tell the user to run
uvx skene buildfirst, then retry deploy. ls supabase/ 2>/dev/null— if missing: "No Supabase directory. Set up Supabase first."
Ask user to confirm Tell the user: "
uvx skene pushuploads engine, feature-registry.json (if present), and latest*_skene_triggers.sqlto upstream. Proceed?" Wait for confirmation.Run push After user confirms, run
uvx skene pushwith appropriate flags from --help output. Report which migration file was packaged (latest eligible undersupabase/migrations/) and that upstream received the deploy.Report result Engine path, registry path (if packaged), trigger migration path, next step: apply DB migrations locally if needed (
supabase db push), then "Run/skene-statusto verify."Privacy reminder (one line) "Remember GDPR/CCPA consent management before production tracking."
Error handling
- CLI failure: Report error, suggest fix.
- Permission errors: Give user the command for their terminal.
Output
Deploy result (or error), paths used, next step (/skene-status).