sdk-testbed
Skill by Openpanel-dev
Verifies changes to the Openpanel JavaScript SDKs by driving apps/testbed in a real browser and checking the rows stored in ClickHouse. Built for developers working on the SDKs in this repository.
Install sdk-testbed
Built from the published package, never by AI.
git clone --depth 1 https://github.com/Openpanel-dev/openpanel /tmp/openpanel && mkdir -p ~/.claude/skills && cp -r /tmp/openpanel/.claude/skills/sdk-testbed ~/.claude/skills/sdk-testbedRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/Openpanel-dev/openpanel /tmp/openpanel && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/openpanel/.claude/skills/sdk-testbed ~/.gemini/antigravity-cli/skills/sdk-testbedAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
sdk-testbed checks a change to the JavaScript SDKs in packages/sdks, including the web SDK and the wrappers built on it, the way a customer site would use them. It drives apps/testbed, a small React shop, in a real browser against a local API. Screen views, custom track calls, identify, groups and clicks on a data-track button or outgoing link send events through POST /track, Kafka and a worker.
The skill then polls ClickHouse to confirm the rows were stored with the expected name, path, origin, properties and session. Unit tests only prove what the SDK sends, so this skill checks what is stored. It is for developers working on the Openpanel SDKs who want to run the testbed after an SDK change or confirm that an event is tracked and stored correctly.
Written from the project's SKILL.md and checked against it.
What it can do
- Preflight checksConfirms the API runs with the worker role and that a seeded website client exists in .seed.json.
- End-to-end journey specRuns apps/testbed/e2e/sdk.spec.ts, which clicks through the shop and checks the stored rows.
- ClickHouse inspectionQueries the events table filtered by the testbed origin to read names, paths and properties.
- Spec extensionAdds new fixtures, clicks and stored-row assertions when a change is not covered by the journey.
- Failure diagnosisLists the rows that were stored when an expected row is missing, and points to traces in test-results.
What you need
- Bun runtime
- A running Openpanel API with the worker role (ROLE=all)
- A seeded project from .seed.json or bun run seed
- A ClickHouse instance reachable from the shell
Try asking
- Run the sdk testbed after my change to packages/sdks/web.
- Check whether the page view event is tracked and stored correctly.
- Extend the sdk spec to assert a new data-track click.
Good to know
- Covers only the JavaScript SDKs and the testbed app in this repository.
- Revenue events from the testbed are refused for the seeded web client because it has no secret in the browser.
- The script tag build op1.js is not what the testbed runs; the IIFE must be built and loaded manually.
Security check
B- Allowed to use Bash, Edit, Write without limitsIn
SKILL.md
Checked automatically: .claude/skills/sdk-testbed/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: BashReadEditWriteGrepGlob
-
SKILL.md6 KB
Alternatives to sdk-testbed
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
sdk-testbed: common questions
Does sdk-testbed need the SDK to be built first?
No. Vite resolves @openpanel/web from the package source, so an SDK edit is live on the next reload.
Why do revenue events not show up in the testbed?
The seeded web client has no client secret in the browser, so op.revenue() is refused by design. Revenue needs a verified secret or the project's allowUnsafeRevenueTracking setting.
Why are some events missing from the ClickHouse results?
An event without __path is stored with empty path and origin, so it will not match the origin filter. The page may have been missing rather than the event itself.
How do I install sdk-testbed?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is sdk-testbed free?
The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.
Is sdk-testbed safe to use?
It scores 83 of 100. Grades: maintenance A, licence C, quality A. Security check: grade B (allowed to use bash, edit, write without limits). Review the code before you install. How grades work.
What are alternatives to sdk-testbed?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
