Agent skill · data analytics · jeremylongshore

glean-data-handling

PII filtering: strip emails, phone numbers, SSNs from document body

Why this skill is useful

Provides specific PII filtering commands and integration patterns for Glean's document indexing process that the AI wouldn't reliably generate on its own.

What it needs

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

What this skill does

Glean Data Handling Overview Glean enterprise search ingests documents from dozens of connectors (Google Drive, Confluence, Slack, Jira, Salesforce, etc.) and builds a unified search index with permission-aware access control. Data types include indexed document content, connector metadata, user permission maps, query logs, and search analytics. All document content must be PII-filtered before indexing, permission boundaries must be preserved to prevent data leakage across teams, and retention policies must be enforced to comply with corporate governance and GDPR/CCPA obligations. Data Classification Data Type Sensitivity Retention Encryption ----------- ------------- ----------- ------------ Indexed document content High (may contain PII) Per source retention policy AES-256 at rest User permission maps High (access control) Sync lifecycle TLS + at rest Connector metadata Medium Until connector removed AES-256 at rest Search query logs Medium (reveals intent) 90 days default AES-256 at rest Search analytics/aggregates Low 1 year TLS in transit Data Import Data Export Data Validation Compliance [ ] PII stripped from document body before indexing (emails, phones, SSNs) [ ] Permission boundaries enforced: allowedUsers scope matches source system ACLs [ ] Connector credentials stored in secret manager, rotated quarterly [ ] Search query logs retained max 90 days, purged via automated job [ ] GDPR right-to-erasure: delete all indexed content referencing a specific user on request [ ] CCPA: honor do-not-sell signals for search analytics data [ ] SOC 2 Type II audit trail for all indexing and deletion operations Error Handling Issue Cause Fix ------- ------- ----- 403 on bulk index Expired or insufficient indexing token Rotate token, verify datasource permissions Permission mismatch in search Stale ACL sync from connector Force re-sync connector permissions via admin API PII detected in indexed content New PII pattern not in strip regex Add pattern to stripPII, re-index af …

How to use it

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

@skills jeremylongshore/glean-data-handling

View the source on GitHub

Browse the @skills marketplace