/glean-connector-builder:connector-builderfrom glean-connector-builder
Build Glean Indexing SDK connectors from source-system documentation. Guides planning, API exploration, validation, generation, and evaluation.
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 as the top-level workflow for building Glean Indexing SDK connectors with an AI coding agent. It coordinates source documentation confirmation, API exploration, user-confirmed planning, local validation, generation, and evaluation.
Use this skill when the user wants to build, evaluate, or iterate on a connector for a third-party datasource.
Follow this loop: ask scope -> plan -> run pre-implementation validation -> implement -> test with the connector-testing skill after one user confirmation -> deploy if requested -> inspect real deployed logs -> fix and re-run testing if needed.
A full crawl is complete, self-contained replacement of the indexed state. One successful run must bring Glean to the correct end state on its own: fetch and index every document that currently falls within the confirmed source scope, then use full-crawl stale-document deletion to remove previously indexed documents that are absent from the run. This includes documents deleted at the source and documents that have aged out of a configured coverage window. Pagination and streaming may bound memory usage, but the completed run must still cover the entire confirmed scope. Never finalize a partial or failed fetch as a full crawl, because doing so can delete valid documents as stale.
An incremental crawl processes only changes since a durable checkpoint, including a reliable source-side deletion signal or equivalent reconciliation mechanism. It is an optimization over a correct full-crawl implementation, not the default connector mode. The AI-building workflow supports full crawl only; record incremental crawl as developer-owned follow-up work after full crawl works end-to-end.
.glean/ directory, not only in the chat. Connector artifacts must live under <connector-folder>/.glean/, not a repo-level .glean/.glean-idx validate passes.connector-testing skill and ask once whether to proceed to the testing step.claude plugin list) against the latest in the open-source repo (the version in package.json on main in gleanwork/glean-indexing-sdk). If they differ, tell the user an update is available and give them the exact commands from the README's "Updating the plugin" section (git pull && npm run build:plugins && claude plugin marketplace update glean-indexing-sdk-agent-plugin && claude plugin update glean-connector-builder@glean-indexing-sdk-agent-plugin). These commands are for Claude Code; for other AI tools, tell the user the equivalent plugin-update commands for their environment. If the versions match or the check fails, continue without interrupting the user..glean/ directory.connector-api-exploration skill to inspect docs and, when credentials are available, run read-only API probes. Fill <connector-folder>/.glean/source_investigation.md, <connector-folder>/.glean/api_inventory.md, <connector-folder>/.glean/api_endpoints.json, and <connector-folder>/.glean/api_calls_log.md.<connector-folder>/.glean/connector_plan.md and ask the user to confirm scope before technical work. This plan is user-facing and must not include internal implementation mechanics such as SDK class names, Python file layout, validation commands, or unit-test commands. Capture:
connector-push skillconnector-observability skillconnector-deployment skill, including whether customer-hosted deployment is in scopeStatus: confirmed.glean-idx validate <connector-folder>
If the SDK is not installed in the current environment, run it without installing:
uvx --from glean-indexing-sdk glean-idx validate <connector-folder>
The command exits 0 when the artifacts are complete and confirmed, and 5 when
they are not, listing every problem it found. Use --output json to read the
findings as a list.
connector-pull before writing the data client. Read connector-push before writing document transforms or upload logic. Read connector-observability before wiring logging or metrics. Read connector-auth if source authentication is non-trivial. Read connector-deployment if deployment artifacts are in scope. Do not write implementation code for a layer until its skill has been read. When deployment is in scope, add a module-level zero-argument create_connector() factory that builds the configured connector from environment-backed source credentials; keep the connector constructor dependency-injectable for tests. Post-validation code generation is handled by the agent following the skills, not by the local validator.<connector-folder>/.glean/source_docs.json: confirmed source-of-truth docs.<connector-folder>/.glean/connector_plan.md: user-confirmed product scope and constraints.<connector-folder>/.glean/source_investigation.md: auth, source model, sync, permission, and unknowns.<connector-folder>/.glean/api_inventory.md: cited endpoint catalog and API behavior summary.<connector-folder>/.glean/api_endpoints.json: structured endpoint list with name, method, path, and purpose.<connector-folder>/.glean/api_calls_log.md: redacted read-only probe log when live API calls are used.<connector-folder>/.glean/connector_plan.md must include observability choices: provider, lifecycle logs, metrics, and evaluation status/debug checks.<connector-folder>/.glean/connector_plan.md must include deployment scope: out of scope, customer-hosted GCP/AWS via glean-idx deploy, or follow-up.connector-api-exploration: source API docs, endpoint inventory, and optional read-only probes.connector-auth: test/API-exploration auth and production source auth.connector-pull: source-side full-crawl fetching from confirmed endpoints.connector-push: Glean-side upload, status, and debug method choices.connector-observability: logging, metrics, upload visibility, and evaluation checks.connector-deployment: customer-hosted deployment artifacts and glean-idx deploy operations.connector-testing: TestHarness validation with full mock, integration/cache, and confirmed E2E modes.Evaluate connector quality by checking:
What SKILL.md sets; muted values are Claude Code's defaults
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-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-observabilityPlan and implement logging, metrics, and evaluation visibility for Glean Indexing SDK connectors. Use when wiring connector runtime observability or deciding what to verify after a connector run./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