test-on-staging
/test-on-staging
Test a change on a branch's staging server without a browser — inspect or patch a chart's config remotely, pick the right preview link to share, and know why /search 404s there. Use when testing on staging-site-<branch>, reading or changing a chart config on a remote server, or pointing someone at a chart on staging.
- Author
- owid ↗
- Repository
- owid-grapher ↗
- Licence
- MIT
- Last repository change
- 23.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 1
No signals detected. Repository changed on 23.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Test a change on a branch's staging server without a browser — inspect or patch a chart's config remotely, pick the right preview link to share, and know why /search 404s there. Use when testing on staging-site-<branch>, reading or changing a chart config on a remote server, or pointing someone at a chart on staging.
Original author description
Test a change on a branch's staging server without a browser — inspect or patch a chart's config remotely, pick the right preview link to share, and know why /search 404s there. Use when testing on staging-site-<branch>, reading or changing a chart config on a remote server, or pointing someone at a chart on staging.
How it works
SKILL.md has no level-two headings · 11 lines, 387 words
SKILL.md preview
---
name: test-on-staging
description: Test a change on a branch's staging server without a browser — inspect or patch a chart's config remotely, pick the right preview link to share, and know why /search 404s there. Use when testing on staging-site-<branch>, reading or changing a chart config on a remote server, or pointing someone at a chart on staging.
metadata:
internal: true
---
# Testing on staging
- `yarn tsx devTools/callAdminApi.ts get <chartId> --branch <branch>` / `set <chartId> '<jsonPatch>' --branch <branch>` / `unset <chartId> <field> --branch <branch>`: inspect or change a chart's config on any `staging-site-<branch>` (or `--host` for local/prod) without the browser.
- Auth is `ADMIN_API_KEY` in `.env` — one shared key works against **every** staging server (not per-branch), since `admin_api_keys` ships in the private data dump every staging build restores from (see `db/exportMetadataTables.ts`). It's the same key etl already uses; no need to mint a new one.
- `STAGING=1 yarn startAdminDevServer` runs the admin **locally against the current branch's staging database** (`STAGING=<branch>` for another branch's), so you see a code change on save instead of after a deploy and a bake. Staging MySQL listens on Tailscale, so it needs no tunnel and no extra credentials. Two things to keep in mind: it is read-write on a database other people may be testing against, and every query pays the round trip (~10x the local latency), so it is somewhere to check behaviour, not to measure performance. `STAGING` works for any server-side entry point, not just the admin.
- During the post-push rebake the staging box is saturated — load average ~250 on 16 cores — so anything timed in that window measures the bake, not the code. Check `pgrep -f buildLocalBake` over ssh before believing a slow number.
- Don't wait for the static-site rebake (~10-13 min) to check or share a chart — `http://staging-site-<branch>/admin/charts/<id>/preview` reflects both chart-config edits and pushed code changes within ~1-3 min. Default to this link (not the public `/grapher/<slug>` page) whenever pointing someone at a chart on staging.
- A branch's `/search` and `/api/search` 404/500 with "index does not exist" unless the PR carries the `staging-algolia` label (like `staging-typesense`/`staging-bake`) — that label is what triggers the per-branch Algolia reindex during bake, and it isn't applied by default. Staging and production Algolia data also live in **separate Algolia applications**, so don't probe a staging index with production's `appId`/key to check whether it exists; test through the deployed `/search` or `/api/search`, which uses whatever env that deployment is configured with.
- `/search` deep links and screenshots: add `&resultType=all` (a bare URL can open on the Data tab and hide Data Insights/Writing), and dismiss the cookie banner first — it's fixed-position and lands mid-page in full-page shots.
Versions
The database has no other skills named test-on-staging.
Database snapshot: 13.11.2026 · package version 1e96d4ce4832 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100chart-js-config-creator
Create chart js config creator operations. Auto-activating skill for Visual Content. Triggers on: chart js config creator, chart js config creator Part of the Visual Content skill category. Use when configuring systems or services. Trigger with phrases like "chart js config… - 100workflow-babysit
Takes the current branch to production in one unattended run: finishes and proves the change, commits and opens the PR if needed, waits for Claude Code, Codex and Cursor Bugbot reviews, fixes or triages every finding, merges, promotes staging to production when the repo uses a… - 100rails-cto-pull-request
Create a pull request targeting the staging branch using the gh CLI. Use this skill whenever the user asks to create a PR, open a pull request, submit for review, or says things like "create a PR", "open a pull request", "submit this for review", "PR this", or "send this to… - 90ui-regression
This skill should be used when the user asks to "verify UI changes", "test every screen and action", "run regression QA", "check a deployed UI", or "validate an extension release". Test known web and browser-extension workflows on localhost, staging, or production with action…