[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72T0XKXAG5WGQHPVNB968DS":3,"skill-same:01M72T0XKXAG5WGQHPVNB968DS":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M72T0XKXAG5WGQHPVNB968DS","connector-push",null,"Implement Glean-side push\u002Fupload logic for Glean Indexing SDK connectors. Use when mapping source entities to Glean documents, identities, groups, memberships, and status checks.","gleanwork\u002Fglean-indexing-sdk","gleanwork","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F100331376?v=4","01M72SZSP4ZSMMBB7EMJGZQ2FJ","Glean Technologies Inc","01M72SZSPTYKMJHZFSB7ZEXY0H",10,"MIT","https:\u002F\u002Fgithub.com\u002Fgleanwork\u002Fglean-indexing-sdk\u002Fblob\u002Fmain\u002Fskills\u002Fconnector-push\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: connector-push\ndescription: Implement Glean-side push\u002Fupload logic for Glean Indexing SDK connectors. Use when mapping source entities to Glean documents, identities, groups, memberships, and status checks.\n---\n\n# Connector Push\n\nUse this skill when implementing the Glean-side upload, validation, and status-check portions of a connector.\n\n## Inputs\n\n- `\u003Cconnector-folder>\u002F.glean\u002Fconnector_plan.md`\n- `\u003Cconnector-folder>\u002F.glean\u002Fsource_investigation.md`\n- `\u003Cconnector-folder>\u002F.glean\u002Fapi_endpoints.json`\n- Source data shapes from the pull\u002Fdata-client layer.\n\n## Rules\n\n- Use only the SDK push\u002Fstatus wrappers listed below. Do not call undocumented Glean APIs or generated-client methods directly from generated connector code.\n- Keep document object types and datasource configuration bidirectionally consistent: every non-empty `object_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.\n- Use full-crawl bulk operations for AI-built connectors. Incremental, partial-update, or delete-heavy behavior needs explicit developer attention after full crawl works.\n- Record which Glean-side methods are used in `\u003Cconnector-folder>\u002F.glean\u002Fconnector_plan.md`.\n- Use the load and crawl-frequency decisions from the confirmed connector plan.\n- Use compile checks and an end-to-end full-crawl smoke run first. Add unit tests only after the connector behavior is confirmed and worth regression testing.\n\n## Allowed SDK Push And Status Surface\n\nUse `PushUploader` from `glean.indexing.push`:\n\n- `configure_datasource`: configures the datasource via the indexing datasource add API.\n- `index_documents`: adds or updates a batch of documents (`\u002Fapi\u002Findex\u002Fv1\u002Findexdocuments`).\n- `bulk_index_documents`: full-crawl document replacement using bulk document upload.\n- `bulk_index_single_batch_upload`: uploads one pre-batched bulk document page.\n- `delete_document`: deletes one document when explicitly required.\n- `index_user`: adds or updates one datasource user.\n- `bulk_index_users`: full-crawl datasource user replacement.\n- `index_group`: adds or updates one datasource group.\n- `bulk_index_groups`: full-crawl datasource group replacement.\n- `index_membership`: adds or updates one datasource membership.\n- `bulk_index_memberships`: full-crawl datasource membership replacement.\n- `delete_user`, `delete_group`, `delete_membership`: delete identity records only when explicitly required.\n- `bulk_index_employees`: uploads people\u002Femployee records when building a people connector.\n\nUse `StatusClient` from `glean.indexing.push`:\n\n- `get_datasource_status`: checks overall datasource upload\u002Fprocessing status.\n- `get_documents_status`: checks upload, indexing, and permission status for specific documents.\n- `check_document_access`: checks whether a user has access to a document.\n\nWhen interpreting `get_documents_status`, keep `permissionIdentityStatus` separate from the document upload\u002Fprocessing 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\u002Fprocessing status.\n\nUse these debug helpers only through `PushUploader`:\n\n- `get_document_lifecycle_events`: gets lifecycle events for a datasource document.\n- `debug_user`: gets debug information for a datasource user.\n\nDo not use any other Glean-side endpoints in generated connector code.\n\n## Checking Uploads From The CLI\n\nThe surface above is what generated connector code may call. To *inspect* what an\nupload did, use `glean-idx` rather than writing a throwaway script; each command\nwraps one of the methods listed above.\n\n| Command | Answers |\n|---|---|\n| `glean-idx datasource status --datasource \u003Cname>` | How many documents are uploaded, and how many actually indexed. |\n| `glean-idx document status --datasource \u003Cname> --document \u003Ctype> \u003Cid>` | Did this document finish indexing. Add `--poll` to wait. |\n| `glean-idx document access --datasource \u003Cname> --object-type \u003Ctype> --id \u003Cid> --user \u003Cemail>` | Can this user see it. An upload with a correct-looking ACL is still wrong if the identity graph is incomplete. |\n| `glean-idx document events --datasource \u003Cname> --object-type \u003Ctype> --id \u003Cid>` | Where the document went, when it uploaded but never became searchable. |\n| `glean-idx datasource process --datasource \u003Cname>` | Requests processing now, instead of waiting for the next scheduled run. |\n| `glean-idx datasource configure` | Registers the connector's own `configuration`, so the datasource cannot drift from what the connector uploads to. |\n\nThese need only `GLEAN_SERVER_URL` and `GLEAN_INDEXING_API_TOKEN`, except\n`datasource configure`, which imports the connector and so runs inside the\nproject. Add `--output json` when the result needs to be parsed.\n\n## Planning Guidance\n\nIn `\u003Cconnector-folder>\u002F.glean\u002Fconnector_plan.md`, include:\n\n- Source entity to Glean entity mapping.\n- Glean object types and document IDs.\n- Full-crawl upload choice: `bulk_index_documents`, `bulk_index_users`, `bulk_index_groups`, and\u002For `bulk_index_memberships`.\n- Test upload choice: small `index_documents` or focused bulk upload.\n- Status\u002Fdebug checks to run after upload.\n- Auth used for Glean indexing: `GLEAN_SERVER_URL` and `GLEAN_INDEXING_API_TOKEN`.\n- Production source auth, which may differ from the token used during API exploration.\n\n## Crawl Frequency\n\nUse `\u003Cconnector-folder>\u002F.glean\u002Fconnector_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.\n","# Connector Push\n\nUse this skill when implementing the Glean-side upload, validation, and status-check portions of a connector.\n\n## Inputs\n\n- `\u003Cconnector-folder>\u002F.glean\u002Fconnector_plan.md`\n- `\u003Cconnector-folder>\u002F.glean\u002Fsource_investigation.md`\n- `\u003Cconnector-folder>\u002F.glean\u002Fapi_endpoints.json`\n- Source data shapes from the pull\u002Fdata-client layer.\n\n## Rules\n\n- Use only the SDK push\u002Fstatus wrappers listed below. Do not call undocumented Glean APIs or generated-client methods directly from generated connector code.\n- Keep document object types and datasource configuration bidirectionally consistent: every non-empty `object_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.\n- Use full-crawl bulk operations for AI-built connectors. Incremental, partial-update, or delete-heavy behavior needs explicit developer attention after full crawl works.\n- Record which Glean-side methods are used in `\u003Cconnector-folder>\u002F.glean\u002Fconnector_plan.md`.\n- Use the load and crawl-frequency decisions from the confirmed connector plan.\n- Use compile checks and an end-to-end full-crawl smoke run first. Add unit tests only after the connector behavior is confirmed and worth regression testing.\n\n## Allowed SDK Push And Status Surface\n\nUse `PushUploader` from `glean.indexing.push`:\n\n- `configure_datasource`: configures the datasource via the indexing datasource add API.\n- `index_documents`: adds or updates a batch of documents (`\u002Fapi\u002Findex\u002Fv1\u002Findexdocuments`).\n- `bulk_index_documents`: full-crawl document replacement using bulk document upload.\n- `bulk_index_single_batch_upload`: uploads one pre-batched bulk document page.\n- `delete_document`: deletes one document when explicitly required.\n- `index_user`: adds or updates one datasource user.\n- `bulk_index_users`: full-crawl datasource user replacement.\n- `index_group`: adds or updates one datasource group.\n- `bulk_index_groups`: full-crawl datasource group replacement.\n- `index_membership`: adds or updates one datasource membership.\n- `bulk_index_memberships`: full-crawl datasource membership replacement.\n- `delete_user`, `delete_group`, `delete_membership`: delete identity records only when explicitly required.\n- `bulk_index_employees`: uploads people\u002Femployee records when building a people connector.\n\nUse `StatusClient` from `glean.indexing.push`:\n\n- `get_datasource_status`: checks overall datasource upload\u002Fprocessing status.\n- `get_documents_status`: checks upload, indexing, and permission status for specific documents.\n- `check_document_access`: checks whether a user has access to a document.\n\nWhen interpreting `get_documents_status`, keep `permissionIdentityStatus` separate from the document upload\u002Fprocessing 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\u002Fprocessing status.\n\nUse these debug helpers only through `PushUploader`:\n\n- `get_document_lifecycle_events`: gets lifecycle events for a datasource document.\n- `debug_user`: gets debug information for a datasource user.\n\nDo not use any other Glean-side endpoints in generated connector code.\n\n## Checking Uploads From The CLI\n\nThe surface above is what generated connector code may call. To *inspect* what an\nupload did, use `glean-idx` rather than writing a throwaway script; each command\nwraps one of the methods listed above.\n\n| Command | Answers |\n|---|---|\n| `glean-idx datasource status --datasource \u003Cname>` | How many documents are uploaded, and how many actually indexed. |\n| `glean-idx document status --datasource \u003Cname> --document \u003Ctype> \u003Cid>` | Did this document finish indexing. Add `--poll` to wait. |\n| `glean-idx document access --datasource \u003Cname> --object-type \u003Ctype> --id \u003Cid> --user \u003Cemail>` | Can this user see it. An upload with a correct-looking ACL is still wrong if the identity graph is incomplete. |\n| `glean-idx document events --datasource \u003Cname> --object-type \u003Ctype> --id \u003Cid>` | Where the document went, when it uploaded but never became searchable. |\n| `glean-idx datasource process --datasource \u003Cname>` | Requests processing now, instead of waiting for the next scheduled run. |\n| `glean-idx datasource configure` | Registers the connector's own `configuration`, so the datasource cannot drift from what the connector uploads to. |\n\nThese need only `GLEAN_SERVER_URL` and `GLEAN_INDEXING_API_TOKEN`, except\n`datasource configure`, which imports the connector and so runs inside the\nproject. Add `--output json` when the result needs to be parsed.\n\n## Planning Guidance\n\nIn `\u003Cconnector-folder>\u002F.glean\u002Fconnector_plan.md`, include:\n\n- Source entity to Glean entity mapping.\n- Glean object types and document IDs.\n- Full-crawl upload choice: `bulk_index_documents`, `bulk_index_users`, `bulk_index_groups`, and\u002For `bulk_index_memberships`.\n- Test upload choice: small `index_documents` or focused bulk upload.\n- Status\u002Fdebug checks to run after upload.\n- Auth used for Glean indexing: `GLEAN_SERVER_URL` and `GLEAN_INDEXING_API_TOKEN`.\n- Production source auth, which may differ from the token used during API exploration.\n\n## Crawl Frequency\n\nUse `\u003Cconnector-folder>\u002F.glean\u002Fconnector_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.\n",{"name":5,"description":7},"main","ee846524264723549ef24dd32ef4324844268f9e","skills\u002Fconnector-push",2,"https:\u002F\u002Fgithub.com\u002Fgleanwork\u002Fglean-indexing-sdk","https:\u002F\u002Fgithub.com\u002Fgleanwork","https:\u002F\u002Fwww.glean.com\u002F","The AI-powered work assistant. Across all your company’s data.","2026-10-31 16:38:59",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add gleanwork\u002Fglean-indexing-sdk --skill connector-push",{"tool":39,"command":40},"bunx","bunx skills add gleanwork\u002Fglean-indexing-sdk --skill connector-push",{"tool":42,"command":43},"pnpm","pnpm dlx skills add gleanwork\u002Fglean-indexing-sdk --skill connector-push","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgleanwork\u002Fglean-indexing-sdk\u002Fblob\u002Fmain\u002Fskills\u002Fconnector-push\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M72T10FWW0B4Q0V55AXA9S8S","connector-testing","Test a generated connector through full-mock, integration\u002Fcache, and live end-to-end phases using the public utilities under glean.indexing.testing.","https:\u002F\u002Fgithub.com\u002Fgleanwork\u002Fglean-indexing-sdk\u002Fblob\u002Fmain\u002Fskills\u002Fconnector-testing\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M72T0ETD7GXZ7TTZ3MFYHBGS","connector-pull","Implement source-side pull logic for Glean Indexing SDK connectors. Use after API exploration when writing data clients that fetch from third-party APIs.","https:\u002F\u002Fgithub.com\u002Fgleanwork\u002Fglean-indexing-sdk\u002Fblob\u002Fmain\u002Fskills\u002Fconnector-pull\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M72T0C64RTR08AZ15JVYF30V","connector-observability","Plan 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.","https:\u002F\u002Fgithub.com\u002Fgleanwork\u002Fglean-indexing-sdk\u002Fblob\u002Fmain\u002Fskills\u002Fconnector-observability\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M72T09KTGEXN4BRQ4SK8D8XF","connector-deployment","Plan 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.","https:\u002F\u002Fgithub.com\u002Fgleanwork\u002Fglean-indexing-sdk\u002Fblob\u002Fmain\u002Fskills\u002Fconnector-deployment\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M72T071ZHBP6C83HW7S8D51D","connector-builder","Build Glean Indexing SDK connectors from source-system documentation. Use when planning, generating, validating, or evaluating a custom connector built with the Glean Indexing SDK.","https:\u002F\u002Fgithub.com\u002Fgleanwork\u002Fglean-indexing-sdk\u002Fblob\u002Fmain\u002Fskills\u002Fconnector-builder\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M72T03JN19YNA6SEMXDMB45C","connector-auth","Plan source API authentication for Glean Indexing SDK connectors. Use during connector planning and implementation to separate API-exploration credentials from production connector auth.","https:\u002F\u002Fgithub.com\u002Fgleanwork\u002Fglean-indexing-sdk\u002Fblob\u002Fmain\u002Fskills\u002Fconnector-auth\u002FSKILL.md",[],[]]