Agent skill · software engineering · jeremylongshore

glean-core-workflow-b

Execute Glean secondary workflow: bulk document indexing, custom datasource

Why this skill is useful

Adds executable scripts for bulk document indexing and custom datasource management that extend the AI's capabilities with Glean's API.

What it needs

Requires curl, npm installed locally. Requires glean account access. About 2k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.

What this skill does

Glean Core Workflow B: Indexing & Connectors Overview Build custom Glean connectors: set up datasources, bulk index documents, manage content lifecycle, and configure permissions. Instructions Step 1: Create Custom Datasource Step 2: Bulk Index Documents Step 3: Set Document Permissions Step 4: Delete Documents Error Handling Error Cause Solution ------- ------- ---------- uploadId already used Reusing bulk upload ID Generate unique uploadId per run document too large Content exceeds limit Truncate body to ~100KB invalid permissions Malformed user/group Use valid email addresses Prerequisites A named datasource owner, approved classification and retention policy, scoped indexing credential, and a sandbox source with fictitious documents. Opaque document IDs, an idempotency strategy, and two synthetic identities to test source ACL propagation. A delete/rollback plan that is limited to the staged test cohort and does not weaken source permissions. Output Return an indexing receipt with datasource, batch and accepted/quarantined counts, idempotency revision, source-to-index ACL comparison, allow/deny results, retention date, and rollback reference. Never include document bodies, titles, credentials, or user membership. Examples source=sandbox-onboarding; batch=25; accepted=24; quarantined=1; acl=match; allow=pass; deny=pass; rollback=batch-r6 is a safe connector result. Resources Bulk Indexing Document Permissions Custom Datasources Next Steps For common errors, see glean-common-errors.

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills jeremylongshore/glean-core-workflow-b

View the source on GitHub

Browse the @skills marketplace