Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Execute Glean primary workflow: search, chat, and AI-powered answers across enterprise data. Use when building search integrations, implementing Glean chat, or creating AI assistants. Trigger: "glean search API", "glean chat", "glean AI answers", "enterprise search".
.claude/skills/jeremylongshore-glean-core-workflow-a/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -18% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -24% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -25% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -31% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -37% | 0% |
Build search and chat experiences using the Glean Client API. Covers full-text search with filters, AI-powered chat answers, and autocomplete suggestions.
typescriptconst results = await fetch(`${GLEAN}/client/v1/search`, { method: 'POST', headers: searchHeaders, body: JSON.stringify({ query: 'kubernetes deployment best practices', pageSize: 20, requestOptions: { datasourceFilter: 'confluence,github', facetFilters: [{ fieldName: 'author', values: ['engineering-team'] }], }, }), }).then(r => r.json()); results.results?.forEach((r: any) => { console.log(`[${r.datasource}] ${r.title}`); console.log(` ${r.snippets?.[0]?.snippet ?? ''}`); });
typescriptconst chatResponse = await fetch(`${GLEAN}/client/v1/chat`, { method: 'POST', headers: searchHeaders, body: JSON.stringify({ messages: [{ role: 'USER', content: 'What is our deployment process for production?' }], applicationId: 'my-app', }), }).then(r => r.json()); console.log('Answer:', chatResponse.messages?.[0]?.content); console.log('Sources:', chatResponse.citations?.map((c: any) => c.title).join(', '));
typescriptconst suggestions = await fetch(`${GLEAN}/client/v1/autocomplete`, { method: 'POST', headers: searchHeaders, body: JSON.stringify({ query: 'deploy', datasourceFilter: 'confluence' }), }).then(r => r.json()); suggestions.results?.forEach((s: any) => console.log(` ${s.text}`));
| Error | Cause | Solution | |-------|-------|----------| | Empty results | Query too specific or datasource not indexed | Broaden query, check datasource status | | Chat returns no citations | Content not indexed for chat | Verify documents have body text | | 403 on search | User permissions | Ensure token has search scope |
For bulk indexing workflow, see glean-core-workflow-b.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 13,276 | 12,496 | -6% | 1 | 1 | 0% | 2,784 | 2,271 | -18% | 0 | 0 | — |
case-02 | fail→pass | 19,042 | 6,286 | -67% | 1 | 1 | 0% | 2,525 | 1,926 | -24% | 0 | 0 | — |
case-03 | fail→pass | 16,188 | 5,578 | -66% | 1 | 1 | 0% | 2,190 | 1,646 | -25% | 0 | 0 | — |
case-04 | fail→pass | 10,079 | 8,190 | -19% | 1 | 1 | 0% | 1,816 | 1,248 | -31% | 0 | 0 | — |
case-05 | fail→pass | 11,334 | 3,825 | -66% | 1 | 1 | 0% | 2,172 | 1,358 | -37% | 0 | 0 | — |
case-06 | pass→pass | 19,942 | 12,309 | -38% | 1 | 1 | 0% | 2,477 | 2,431 | -2% | 0 | 0 | — |
case-07 | fail→pass | 13,232 | 11,655 | -12% | 1 | 1 | 0% | 2,119 | 1,703 | -20% | 0 | 0 | — |
case-08 | pass→pass | 11,403 | 2,935 | -74% | 1 | 1 | 0% | 2,076 | 1,096 | -47% | 0 | 0 | — |
case-09 | fail→pass | 8,930 | 2,793 | -69% | 1 | 1 | 0% | 1,850 | 1,191 | -36% | 0 | 0 | — |
case-10 | pass→pass | 9,332 | 4,055 | -57% | 1 | 1 | 0% | 1,886 | 1,567 | -17% | 0 | 0 | — |
case-11 | pass→pass | 13,719 | 8,406 | -39% | 1 | 1 | 0% | 1,871 | 1,396 | -25% | 0 | 0 | — |
case-12 | fail→pass | 12,289 | 3,709 | -70% | 1 | 1 | 0% | 2,522 | 1,346 | -47% | 0 | 0 | — |
case-13 | fail→fail | 13,766 | 7,458 | -46% | 1 | 1 | 0% | 1,829 | 1,097 | -40% | 0 | 0 | — |
case-14 | fail→pass | 12,495 | 3,953 | -68% | 1 | 1 | 0% | 1,579 | 1,417 | -10% | 0 | 0 | — |
case-15 | pass→pass | 14,039 | 9,281 | -34% | 1 | 1 | 0% | 1,991 | 1,585 | -20% | 0 | 0 | — |
case-16 | pass→pass | 4,459 | 2,979 | -33% | 1 | 1 | 0% | 974 | 925 | -5% | 0 | 0 | — |
case-17 | pass→pass | 3,290 | 2,030 | -38% | 1 | 1 | 0% | 696 | 1,065 | +53% | 0 | 0 | — |
case-18 | fail→pass | 9,620 | 1,726 | -82% | 1 | 1 | 0% | 978 | 991 | +1% | 0 | 0 | — |
case-19 | fail→pass | 6,976 | 6,599 | -5% | 1 | 1 | 0% | 1,373 | 943 | -31% | 0 | 0 | — |
case-20 | fail→fail | 25,948 | 21,363 | -18% | 1 | 1 | 0% | 3,865 | 3,785 | -2% | 0 | 0 | — |
case-21 | fail→fail | 16,651 | 18,242 | +10% | 1 | 1 | 0% | 2,855 | 2,915 | +2% | 0 | 0 | — |
case-22 | fail→fail | 19,232 | 17,782 | -8% | 1 | 1 | 0% | 2,516 | 2,929 | +16% | 0 | 0 | — |
case-23 | pass→pass | 13,251 | 7,392 | -44% | 1 | 1 | 0% | 1,351 | 1,005 | -26% | 0 | 0 | — |
case-24 | fail→pass | 11,960 | 7,954 | -33% | 1 | 1 | 0% | 2,086 | 1,154 | -45% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 24 cases were attempted. The headline lift of +50 percentage points is the difference between those two pass rates over the 24 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.