code-review
Use to review code changes with a two-stage process - first checking spec/requirements…
Build and deploy a full local OpenMetadata stack with Docker to test your connector in the UI. Handles code generation, build optimization, health checks, and guided testing.
$ npx -y skills add open-metadata/OpenMetadata --skill test-locally --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/test-locallyContext preview
The summary Claude sees to decide when to auto-load this skill.
Build and deploy a full local OpenMetadata stack with Docker to test your connector in the UI. Handles code generation, build optimization, health checks, and guided testing.
name: test-locally description: Build and deploy a full local OpenMetadata stack with Docker to test your connector in the UI. Handles code generation, build optimization, health checks, and guided testing. user-invocable: true argument-hint: "[--skip-maven] [--rebuild] [--teardown]" allowed-tools: - Bash - Read - Glob - Grep
Build, deploy, and test a connector in a full local OpenMetadata stack with Docker.
When a user asks to "test locally", "start docker", "deploy locally", "test in the UI", "bring up the stack", or "run local docker".
If the user asked to tear down / stop:
cd docker/development && docker compose down -v
Report success and exit.
Verify the environment is ready:
# Check Docker is running docker info > /dev/null 2>&1 || echo "Docker is not running" # Check docker compose is available docker compose version > /dev/null 2>&1 || echo "docker compose not found" # Check we're in the repo root test -f docker/run_local_docker.sh || echo "Not in OpenMetadata repo root"
If any check fails, tell the user what to fix and stop.
source env/bin/activate
Always run code generation to ensure models are up to date:
make generate
If `make generate` fails, check if the venv is set up:
make install_dev generate
Decide whether to skip the Maven build. Check what files changed:
# Check for Java/schema/UI changes since last build git diff --name-only HEAD~5 | grep -E "^(openmetadata-spec|openmetadata-service|openmetadata-ui)" | head -5
**Skip Maven if**:
**Full build if**:
docker compose -f docker/development/docker-compose.yml ps --format json 2>/dev/null | head -5
If containers are already running:
**Full build**:
./docker/run_local_docker.sh -m ui -d mysql -s false -i true -r true
**Fast rebuild** (ingestion-only):
./docker/run_local_docker.sh -m ui -d mysql -s true -i true -r false
Tell the user which strategy was chosen and why. The build takes:
The `run_local_docker.sh` script handles waiting internally. After it completes, verify the services are up:
# Check OpenMetadata server is responding
curl -s -o /dev/null -w "%{http_code}" http://localhost:8585/api/v1/system/version
# Check Elasticsearch
curl -s -o /dev/null -w "%{http_code}" http://localhost:9200Once services are up, tell the user:
The local OpenMetadata stack is running.
Services:
- OpenMetadata UI: http://localhost:8585
- Airflow: http://localhost:8080 (admin / admin)
- Elasticsearch: http://localhost:9200
- MySQL: localhost:3306
To test your connector:
1. Open http://localhost:8585
2. Go to Settings -> Services -> {your service type}
3. Click "Add New Service"
4. Select your connector from the dropdown
5. Fill in connection details and click "Test Connection"
6. If test passes, run metadata ingestion
To tear down when done:
/test-locally --teardownIf the user reports issues, check these:
**Connector not in dropdown?**
# Check service schema registration grep -l "YourConnector" openmetadata-spec/src/main/resources/json/schema/entity/services/*Service.json # Need to rebuild without skip-maven ./docker/run_local_docker.sh -m ui -d mysql -s false -i true -r true
**Test connection fails?**
# Check ingestion container logs
docker compose -f docker/development/docker-compose.yml logs ingestion --tail 50
# Check test_fn keys match test connection JSON
cat openmetadata-service/src/main/resources/json/data/testConnections/{service_type}/{name}.json**Container won't start?**
# Check Docker resources (need at least 6GB memory) docker system info | grep "Total Memory" # Check port conflicts lsof -i :8585 -i :8080 -i :9200 -i :3306 | grep LISTEN # Full reset cd docker/development && docker compose down -v && docker system prune -f
**Build fails?**
# Format first, then rebuild make py_format mvn spotless:apply ./docker/run_local_docker.sh -m ui -d mysql -s false -i true -r true
The Open Context Layer for Data and AI , OpenMetadata is the open platform for building trusted data context and business semantics for humans, AI assistants, and agents.
Repo: open-metadata/OpenMetadata
Use to review code changes with a two-stage process - first checking spec/requirements…
Deep reliability audit for OpenMetadata connectors — runs 7 investigation prompts (metadata,…
Build a new OpenMetadata connector from scratch — scaffold JSON Schema, Python boilerplate,…
Review an OpenMetadata connector against golden standards. Runs multi-agent analysis covering…
Load all OpenMetadata connector development standards into context. Use before building or…
Set up, verify, or repair a local OpenMetadata development environment on macOS or Linux.…