Agent skill
glean-cost-tuning
Optimize Glean costs by managing indexed content volume, datasource efficiency, and connector resource usage. Trigger: "glean costs", "glean optimization", "reduce glean indexing".
Install this agent skill to your Project
npx add-skill https://github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/main/plugins/saas-packs/glean-pack/skills/glean-cost-tuning
SKILL.md
Glean Cost Tuning
Overview
Glean pricing scales with indexed content volume and user count. Reduce costs by indexing only relevant content, pruning stale data, and using incremental indexing.
Cost Reduction Strategies
| Strategy | Savings | Implementation |
|---|---|---|
| Filter irrelevant content | 20-40% | Skip drafts, templates, archived pages |
| Prune stale documents | 10-20% | Delete docs not updated in 12+ months |
| Use incremental indexing | Compute savings | Index only changed docs, not full corpus |
| Consolidate datasources | Admin savings | Fewer connectors to maintain |
| Set content size limits | Storage savings | Truncate body to ~50KB per doc |
Content Filtering Example
function shouldIndex(doc: SourceDocument): boolean {
if (doc.status === 'draft' || doc.status === 'archived') return false;
if (doc.updatedAt < oneYearAgo) return false;
if (doc.title.startsWith('[Template]')) return false;
if (doc.content.length < 50) return false; // Skip near-empty pages
return true;
}
const filtered = allDocs.filter(shouldIndex);
// Typically reduces corpus by 30-50%
Resources
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
dockerfile-generator
Dockerfile Generator - Auto-activating skill for DevOps Basics. Triggers on: dockerfile generator, dockerfile generator Part of the DevOps Basics skill category.
branch-naming-helper
Branch Naming Helper - Auto-activating skill for DevOps Basics. Triggers on: branch naming helper, branch naming helper Part of the DevOps Basics skill category.
readme-generator
Readme Generator - Auto-activating skill for DevOps Basics. Triggers on: readme generator, readme generator Part of the DevOps Basics skill category.
makefile-generator
Makefile Generator - Auto-activating skill for DevOps Basics. Triggers on: makefile generator, makefile generator Part of the DevOps Basics skill category.
gitignore-generator
Gitignore Generator - Auto-activating skill for DevOps Basics. Triggers on: gitignore generator, gitignore generator Part of the DevOps Basics skill category.
pre-commit-hook-setup
Pre Commit Hook Setup - Auto-activating skill for DevOps Basics. Triggers on: pre commit hook setup, pre commit hook setup Part of the DevOps Basics skill category.
Didn't find tool you were looking for?