/glean-connector-builder:connector-pushfrom glean-connector-builder
Implements Glean-side push/upload logic for Indexing SDK connectors, mapping source entities to documents, identities, groups, memberships, and status checks.
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 implementing the Glean-side upload, validation, and status-check portions of a connector.
<connector-folder>/.glean/connector_plan.md<connector-folder>/.glean/source_investigation.md<connector-folder>/.glean/api_endpoints.jsonobject_type or container_object_type emitted by a DocumentDefinition must have a matching ObjectDefinition.name in CustomDatasourceConfig.object_definitions, and every configured object definition must be used by the connector. Configure the datasource with the complete set before uploading documents; otherwise Glean rejects undeclared object types.<connector-folder>/.glean/connector_plan.md.Use PushUploader from glean.indexing.push:
configure_datasource: configures the datasource via the indexing datasource add API.index_documents: adds or updates a batch of documents (/api/index/v1/indexdocuments).bulk_index_documents: full-crawl document replacement using bulk document upload.bulk_index_single_batch_upload: uploads one pre-batched bulk document page.delete_document: deletes one document when explicitly required.index_user: adds or updates one datasource user.bulk_index_users: full-crawl datasource user replacement.index_group: adds or updates one datasource group.bulk_index_groups: full-crawl datasource group replacement.index_membership: adds or updates one datasource membership.bulk_index_memberships: full-crawl datasource membership replacement.delete_user, delete_group, delete_membership: delete identity records only when explicitly required.bulk_index_employees: uploads people/employee records when building a people connector.Use StatusClient from glean.indexing.push:
get_datasource_status: checks overall datasource upload/processing status.get_documents_status: checks upload, indexing, and permission status for specific documents.check_document_access: checks whether a user has access to a document.When interpreting get_documents_status, keep permissionIdentityStatus separate from the document upload/processing status. permissionIdentityStatus only reports whether permission identities were uploaded and has the values UPLOADED, NOT_UPLOADED, or UNKNOWN; it never returns INDEXED. INDEXED belongs to the document upload/processing status.
Use these debug helpers only through PushUploader:
get_document_lifecycle_events: gets lifecycle events for a datasource document.debug_user: gets debug information for a datasource user.Do not use any other Glean-side endpoints in generated connector code.
The surface above is what generated connector code may call. To inspect what an
upload did, use glean-idx rather than writing a throwaway script; each command
wraps one of the methods listed above.
| Command | Answers |
|---|---|
glean-idx datasource status --datasource <name> | How many documents are uploaded, and how many actually indexed. |
glean-idx document status --datasource <name> --document <type> <id> | Did this document finish indexing. Add --poll to wait. |
glean-idx document access --datasource <name> --object-type <type> --id <id> --user <email> | Can this user see it. An upload with a correct-looking ACL is still wrong if the identity graph is incomplete. |
glean-idx document events --datasource <name> --object-type <type> --id <id> | Where the document went, when it uploaded but never became searchable. |
glean-idx datasource process --datasource <name> | Requests processing now, instead of waiting for the next scheduled run. |
glean-idx datasource configure | Registers the connector's own configuration, so the datasource cannot drift from what the connector uploads to. |
These need only GLEAN_SERVER_URL and GLEAN_INDEXING_API_TOKEN, except
datasource configure, which imports the connector and so runs inside the
project. Add --output json when the result needs to be parsed.
In <connector-folder>/.glean/connector_plan.md, include:
bulk_index_documents, bulk_index_users, bulk_index_groups, and/or bulk_index_memberships.index_documents or focused bulk upload.GLEAN_SERVER_URL and GLEAN_INDEXING_API_TOKEN.Use <connector-folder>/.glean/connector_plan.md for expected document count, average document size, freshness requirement, source API limits, hosting owner, and recommended full-crawl frequency. If the plan is missing those decisions, return to the top-level connector-builder planning step instead of asking again here.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
glean, indexing-sdk, connector, document-upload, identity-sync
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-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.Other plugins' skills for the same job