/glean-connector-builder:connector-observabilityfrom glean-connector-builder
Plans and implements logging, metrics, and evaluation visibility for Glean Indexing SDK connectors. Useful for wiring runtime observability and post-run verification.
Ships in glean-connector-builder. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when adding runtime visibility to an AI-built connector or when planning the eval/reporting portion of a connector build.
<connector-folder>/.glean/connector_plan.md<connector-folder>/.glean/source_investigation.md<connector-folder>/.glean/api_endpoints.json<connector-folder>/.glean/connector_plan.md before implementation.Use these exports from glean.indexing.observability:
ConnectorObservability: central runtime object for common fields, lifecycle logs, phase logs, upload logs, and metrics.setup_connector_logging: configures structured logging for a connector logger.StructuredFormatter and CompactStructuredFormatter: structured console/log formatting.ConsoleLoggerProvider: default local logging provider.MetricsProvider and MetricType: custom metrics backend interface.NoOpMetricsProvider: default no-op metrics provider.InMemoryMetricsProvider: test/development metrics provider.with_observability: decorator for method-level observability when appropriate.track_crawl_progress: decorator/helper for crawl progress logging when appropriate.PerformanceTracker: timing helper for local performance tracking.If the connector uses PushUploader, pass a ConnectorObservability instance through its observability parameter so upload/batch events are logged and metrics are emitted by the SDK wrapper.
Plan and implement visibility for:
Use connector-push for the allowed status/debug surface. The observability plan should say which of these will run after a test upload:
StatusClient.get_datasource_statusStatusClient.get_documents_statusStatusClient.check_document_accessPushUploader.get_document_lifecycle_eventsPushUploader.debug_userDo not call undocumented status or debug endpoints directly.
Before implementation, ensure <connector-folder>/.glean/connector_plan.md includes:
For a credential-free planning eval, the plan should describe the observability that will be wired later. Do not require live metrics backends.
For an implementation eval with credentials, verify:
.glean/ artifacts.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub gleanwork/glean-indexing-sdk --plugin glean-connector-builder8 skills in this plugin
/connector-api-explorationExplore third-party datasource API docs and read-only endpoints for a Glean Indexing SDK connector. Use before connector planning or generation to produce a cited API inventory and source investigation./connector-authPlan source API authentication for Glean Indexing SDK connectors. Use during connector planning and implementation to separate API-exploration credentials from production connector auth./connector-builderBuild Glean Indexing SDK connectors from source-system documentation. Use when planning, generating, validating, or evaluating a custom connector built with the Glean Indexing SDK./connector-deploymentPlan and operate customer-hosted deployment for Glean Indexing SDK connectors using glean-idx deploy. Use when the user wants deployment artifacts, cloud secrets, Kubernetes CronJobs, logs, status, or teardown for a generated connector./connector-pullImplement source-side pull logic for Glean Indexing SDK connectors. Use after API exploration when writing data clients that fetch from third-party APIs./connector-pushImplement Glean-side push/upload logic for Glean Indexing SDK connectors. Use when mapping source entities to Glean documents, identities, groups, memberships, and status checks.Other plugins' skills for the same job