open-metadata/openmetadata/connector-building
Claude Code and agent skill by open-metadata/openmetadata
- community
Checking that the SKILL.md file is still in the repository.
Build a new OpenMetadata connector from scratch — scaffold JSON Schema, Python boilerplate, and AI context using schema-first architecture with code generation across Python, Java, TypeScript, and auto-rendered UI forms.
Install
npx vskill@latest install open-metadata/openmetadata/connector-buildingSKILL.md
The same SKILL.md was published earlier as open-metadata/openmetadata/connector-building.
OpenMetadata Connector Building Skill
When to Activate
When a user asks to build, create, add, or scaffold a new connector, source, or integration for OpenMetadata.
Core Insight
One JSON Schema definition cascades through 6 layers: Python Pydantic models, Java models, UI forms (RJSF auto-render), API validation, test fixtures, and documentation. Define the schema once — everything else is generated or guided.
Workflow: 7 Phases
Phase 0: ENVIRONMENT — Set Up Python Dev Environment
Before any make or python commands, set up the environment from the repo root:
Always activate before running commands: source env/bin/activate
Phase 1: SCAFFOLD — Generate Boilerplate
Run the scaffold CLI to collect inputs and generate files:
Interactive mode collects: connector name, service type, connection type, auth types, capabilities, docs URL, SDK package, API endpoints, implementation notes, Docker image, container port.
Non-interactive mode:
Output: JSON Schema + test connection JSON + Python files + CONNECTOR_CONTEXT.md as an AI working document. SQLAlchemy database connectors get concrete code templates; all others get skeleton files with pointers to reference connectors.
CONNECTOR_CONTEXT.md handling: The scaffold generates CONNECTOR_CONTEXT.md in the connector directory as a working document for any AI tool (Claude Code, Cursor, Codex, Copilot, Windsurf). It is gitignored — it stays local and is never committed to the repo. No cleanup needed.
Phase 2: CLASSIFY — Understand the Source
The scaffold classifies along 3 dimensions. Verify the choices:
Dimension 1 — Service Type (determines directory + base class):
| Service Type | Base Class | Reference | |
|---|---|---|---|
database | CommonDbSourceService | mysql/ | |
dashboard | DashboardServiceSource | metabase/ | |
pipeline | PipelineServiceSource | airflow/ | |
messaging | MessagingServiceSource | kafka/ | |
mlmodel | MlModelServiceSource | mlflow/ | |
storage | StorageServiceSource | s3/ | |
search | SearchServiceSource | elasticsearch/ | |
api | ApiServiceSource | rest/ |
Dimension 2 — Connection Type (database only):
sqlalchemy→BaseConnection[Config, Engine]+ SQLAlchemy dialectrest_api→get_connection()+ custom REST client (ref:salesforce/)sdk_client→get_connection()+ vendor SDK wrapper
Dimension 3 — Capabilities (determines extra files): metadata (always), lineage, usage, profiler, stored_procedures, data_diff
Read the source-type-specific standard at ${CLAUDE_SKILL_DIR}/standards/source_types/{service_type}.md for detailed patterns.
Phase 3: RESEARCH — API/SDK Discovery
Read the CONNECTOR_CONTEXT.md generated by the scaffold. Then research the source's API/SDK.
If you can dispatch sub-agents (Claude Code): Launch a connector-researcher agent:
If you cannot dispatch sub-agents: Perform the research yourself using WebSearch and WebFetch.
Phase 4: IMPLEMENT — Fill in the TODO Items
The scaffold generates files with # TODO markers. Read the relevant standards before implementing:
${CLAUDE_SKILL_DIR}/standards/connection.md— Connection patterns${CLAUDE_SKILL_DIR}/standards/patterns.md— Error handling, pagination, auth${CLAUDE_SKILL_DIR}/standards/performance.md— Pagination, lookup optimization, anti-patterns${CLAUDE_SKILL_DIR}/standards/memory.md— Memory management, streaming, OOM prevention${CLAUDE_SKILL_DIR}/standards/source_types/{service_type}.md— Service-specific patterns
SQLAlchemy database: Templates are mostly complete. Customize _get_client() if needed. Non-SQLAlchemy: Study the reference connector, then implement each skeleton file.
Critical for JSON Schema:
- Make auth fields (
username,password,token) required when the service needs authentication by default. If omitting a field means an opaque 401 at runtime, make it required so the UI validates upfront. - Include SSL/TLS config (
verifySSL+sslConfig$ref) for any connector that communicates over HTTPS — enterprise deployments use internal CAs. - SSL must be wired end-to-end: schema →
connection.py(resolve withget_verify_ssl_fn) →client.py(session.verify = verify_ssl). Missing wiring triggers SonarQube Security Review failure. - See
${CLAUDE_SKILL_DIR}/standards/schema.mdfor the$refpatterns and required fields guidance.
Critical for Pydantic API models (models.py):
- Always set
model_config = ConfigDict(populate_by_name=True)when usingField(alias=...)— without this, constructing instances with Python attribute names raisesValidationError. - See
${CLAUDE_SKILL_DIR}/standards/code_style.mdfor the full pattern.
Critical for non-database connectors (client.py):
- Every list endpoint MUST implement pagination if the API supports it. Check the API docs.
- Missing pagination causes silent data loss — only the first page is ingested.
- Build dicts for repeated lookups (e.g., folder path → folder name) instead of iterating lists.
- See
${CLAUDE_SKILL_DIR}/standards/performance.mdfor correct patterns and anti-patterns.
Critical for storage connectors and any connector that reads files:
- Never
.read()entire files without a size check — causes OOM on production instances. - Use framework streaming readers (
metadata/readers/dataframe/) for data files. dellarge objects after processing and callgc.collect().- See
${CLAUDE_SKILL_DIR}/standards/memory.mdfor correct patterns.
Critical for lineage:
- Never use wildcard
table_name="*"in search queries — this links every table in a database to each entity, producing incorrect lineage. - If the source doesn't provide table-level info, skip lineage and document the limitation.
- See
${CLAUDE_SKILL_DIR}/standards/lineage.mdfor correct patterns.
Phase 5: REGISTER — Integration Points
Read ${CLAUDE_SKILL_DIR}/standards/registration.md for detailed instructions. Summary:
| Step | File | Change | |
|---|---|---|---|
| 1 | openmetadata-spec/.../entity/services/{serviceType}Service.json | Add to type enum + connection oneOf | |
| 2 | ingestion/setup.py | Add connector pip extras block | |
| 3 | ingestion/src/metadata/examples/workflows/{name}.yaml | Runnable CLI workflow example (metadata ingest -c) | |
| 4 | openmetadata-ui/.../utils/{ServiceType}ServiceUtils.tsx | Import schema + add switch case | |
| 5 | openmetadata-ui/.../assets/img/service-icon-{name}.png | Add service logo asset | |
| 6 | openmetadata-ui/.../utils/ServiceIconUtils.ts | Import asset + register in SERVICE_ICON_LOADERS | |
| 7 | openmetadata-ui/.../public/locales/en-US/{ServiceType}/{Name}.md | Field-level docs rendered in the Add Service form | |
| 8 | openmetadata-ui/.../constants/ServiceType.constant.ts | Append to BETA_SERVICES — new connectors always ship as Beta |
i18n locale files do not need edits — display names come from the generated service type enum.Services.constant.tsis deprecated (re-export shim only); register icons inServiceIconUtils.ts.
Phase 6: GENERATE & FORMAT — Run Code Generation and Formatting
This step is mandatory — always run it before committing. Ensure the Python environment is set up:
If `make py_format` fails: The most common cause is missing dev dependencies. Run make install_dev first, then retry.
Never skip formatting — unformatted code will fail CI.
Phase 7: VALIDATE — Run Static Analysis and Checklist
Run the static analyzer as a self-check before submitting:
Fix any issues it reports. Then verify the full checklist:
Phase 8: TEST LOCALLY — Deploy and Test in the UI
Build everything and bring up a full local OpenMetadata stack with Docker:
Full build (first time or after Java/UI changes):
Fast rebuild (ingestion-only changes, ~2-3 minutes):
Once services are up (~3-5 minutes):
- Open http://localhost:8585
- Go to Settings → Services → {Your Service Type}
- Click Add New Service and select your connector
- Configure connection details and click Test Connection
- If test passes, run metadata ingestion to verify entities are created
Other service URLs:
- Airflow: http://localhost:8080 (admin / admin)
- Elasticsearch: http://localhost:9200
Tear down: cd docker/development && docker compose down -v
Troubleshooting:
- Connector not in dropdown → check service schema registration, rebuild without
-s true - Test connection fails → check
test_fnkeys match test connection JSON step names - Container logs:
docker compose -f docker/development/docker-compose.yml logs ingestion
Phase 9: CREATE PR — Submit with Quality Summary
When creating a PR for the connector, include the review summary in the PR description so reviewers see the quality assessment upfront:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/connector-building/SKILL.md
Popularity
- Repository stars
- 15,335
- Repository forks
- 2,410
- 7-day trend score
- 48
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/open-metadata/openmetadata/connector-building)