Agent skill · Audited from source
Glean Performance Tuning
skill · jeremylongshore/claude-code-plugins-plus-skillsMIT licenceAudited 8 Oct 2026 · source 4f83675ca38a
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 4f83675ca38a and found no filesystem, network or shell access and no hard-coded secrets. What it does: Optimize Glean search relevance and indexing throughput with batch sizing,
Cite
Cite this page
ModelsAtlas. “Glean Performance Tuning (jeremylongshore/claude-code-plugins-plus-skills)”. Retrieved 8 Oct 2026. https://modelsatlas.com/skills/jeremylongshore/glean-performance-tuning
Trust audit
Audit 0.4.1 · source read 8 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | PASS | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha 4f83675ca38a · 8 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherjeremylongshore GitHub userOwner of the repository this skill is read from
- Source folderjeremylongshore/claude-code-plugins-plus-skills/plugins/saas-packs/glean-pack/skills/glean-performance-tuningThe exact folder we audited
- LicenceMITAs the repository states it
- Commit pinned for this verdict4f83675ca38aA new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Optimize Glean search relevance and indexing throughput with batch sizing,
--- name: glean-performance-tuning description: 'Optimize Glean search relevance and indexing throughput with batch sizing, datasource configuration, and content quality improvements. Trigger: "glean performance", "glean search quality", "glean indexing speed". ' allowed-tools: Read, Write, Edit version: 1.8.0 license: MIT author: Jeremy Longshore <[email protected]> tags: - saas - enterprise-search - glean compatibility: Designed for Claude Code --- # Glean Performance Tuning ## Overview Glean's enterprise search API handles search queries across multiple connectors, bulk document indexing, and connector sync throughput. Search latency compounds when querying across dozens of datasources simultaneously. Large indexing jobs (10K+ documents) require careful batching to avoid rate limits and maintain connector sync schedules. Optimizing batch sizes, caching frequent search results, and tuning connector configurations reduces search P95 latency and keeps indexing pipelines within SLA windows. ## Caching Strategy ```typescript const cache = new Map<string, { data: any; expiry: number }>(); const TTL = { search: 60_000, suggestions: 30_000, datasources: 600_000 }; async function cached(key: string, ttlKey: keyof typeof TTL, fn: () => Promise<any>) { const entry = cache.get(key); if (entry && entry.expiry > Date.now()) return entry.data; const data = await fn(); cache.set(key, { data, expiry: Date.now() + TTL[ttlKey] }); return data; } // Search results expire fast (1 min). Datasource metadata is stable (10 min). ``` ## Batch Operations ```typescript import PQueue from 'p-queue'; const BATCH_SIZE = 100; async function indexDocsBatched(glean: any, dsName: string, docs: any[]) { const batches = []; for (let i = 0; i < docs.length; i += BATCH_SIZE) batches.push(docs.slice(i, i + BATCH_SIZE)); const queue = new PQueue({ concurrency: 3, interval: 500 }); await Promise.all(batches.map(batch => queue.add(() => glean.indexDocuments(dsName, batch)) )); } ``` ## Connection Pooling ```typescript import { Agent } from 'https'; const agent = new Agent({ keepAlive: true, maxSockets: 15, maxFreeSockets: 5, timeout: 30_000 }); // High socket count for parallel indexing across multiple datasources ``` ## Rate Limit Management ```typescript async function withGleanRateLimit(fn: () => Promise<any>): Promise<any> { try { return await fn(); } catch (err: any) { if (err.status === 429) { const retryMs = parseInt(err.headers?.['retry-after'] || '5') * 1000; await new Promise(r => setTimeout(r, retryMs)); return fn(); } throw err; } } ``` ## Monitoring ```typescript const metrics = { searches: 0, indexOps: 0, cacheHits: 0, p95LatencyMs: 0, errors: 0 }; const latencies: number[] = []; function trackSearch(startMs: number, cached: boolean) { const lat = Date.now() - startMs; latencies.push(lat); metrics.searches++; if (cached) metrics.cacheHits++; latencies.sort((a, b) => a - b); metrics.p95LatencyMs = latencies[Math.floor(latencies.length * 0.95)] || 0; } ``` ## Performance Checklist - [ ] Batch indexing calls at 100 docs per request with 3 concurrent workers - [ ] Use incremental indexing for real-time updates (< 100 docs) - [ ] Switch to bulkindexdocuments for daily full refreshes (> 1K docs) - [ ] Cache repeated search queries with 1-min TTL - [ ] Set descriptive document titles and full body text for relevance - [ ] Keep connector sync schedules staggered to avoid burst load - [ ] Monitor P95 search latency and indexing throughput - [ ] Enable keep-alive connections with high socket count for parallel ops ## Error Handling | Issue | Cause | Fix | |-------|-------|-----| | Slow cross-datasource search | Too many connectors queried in parallel | Prioritize datasources, set query scope | | 429 on bulk indexing | Batch size or concurrency too high | Reduce to 100/batch, 3 concurrent, 500ms interval | | Stale search results | Index lag after document updates | Use incremental indexing with webhooks on change | | Connector sync timeout | Large datasource with no checkpointing | Enable incremental sync with cursor tracking | | Missing documents in results | Incomplete metadata during indexing | Include title, body, author, and updated_at fields | ## Prerequisites - A baseline for latency percentiles, error rate, freshness lag, queue depth, and authorized-search coverage by datasource. - A staging workload made of synthetic, bounded data and an approved error budget; do not capture real queries or content as a performance trace. - A rollback revision for cache TTL, concurrency, batching, and connector schedules before production changes. ## Instructions 1. Establish a baseline and target one bottleneck at a time: source read, transform, index submission, permission sync, or query. 2. Test bounded batch and concurrency changes in staging with backpressure, idempotency, and strict retry limits. 3. Confirm cache invalidation after ACL and document updates so lower latency never serves unauthorized or stale results. 4. Canary one datasource, monitor latency, freshness, rate limits, and synthetic allow/deny probes, then promote or roll back. 5. Record the configuration revision and review cost, error budget, and authorization evidence together. ## Output Return a tuning receipt with baseline and canary percentile bands, batch/concurrency/TTL revisions, rate-limit and freshness outcomes, authorization probes, owner approval, and rollback reference. Use aggregates only. ## Examples `source=sandbox-guides; p95=420ms->310ms; batch=50; concurrency=2; freshness=pass; allow=pass; deny=pass; rollback=perf-r9` documents a safe canary. ## Resources - [Glean Developer Portal](https://developers.glean.com/) - Glean Indexing API Guide ## Next Steps See `glean-reference-architecture`.
Excerpt, first 5,854 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 4f83675
git clone https://github.com/jeremylongshore/claude-code-plugins-plus-skills git -C claude-code-plugins-plus-skills checkout 4f83675ca38a
The author documents no install command, so this uses the repository directly. Our verdict covers commit 4f83675ca38a only.
Works in which agents?
What its own text says, not a test
| Agent | Status | More |
|---|---|---|
| Claude Code | Mentioned in its text, not tested | Skills for Claude Code · About Claude Code |
| Cursor | Mentioned in its text, not tested | Skills for Cursor · About Cursor |
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
4f83675ca38a
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/jeremylongshore/glean-performance-tuning/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Deploy and orchestrate Vertex AI ADK agents using A2A protocol. Manages
Add this badge to your README
[](https://modelsatlas.com/skills/jeremylongshore/glean-performance-tuning/)
<a href="https://modelsatlas.com/skills/jeremylongshore/glean-performance-tuning/"><img src="https://modelsatlas.com/skills/jeremylongshore/glean-performance-tuning/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Glean Performance Tuning
What does the Glean Performance Tuning skill do?
Is Glean Performance Tuning safe to install?
What can Glean Performance Tuning access on my machine?
Which assistants does Glean Performance Tuning work with?
How current is this page?
Sources
- github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/ — the audited source at commit 4f83675ca38a and every finding aboveObserved · 8 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Glean Performance Tuning skill do?
- Is Glean Performance Tuning safe to install?
- What can Glean Performance Tuning access on my machine?