Skip to main content
glean-debug-bundle Collect Glean diagnostic information for support including datasource config, indexing status, and search quality metrics.
Trigger: "glean debug", "glean support", "glean diagnostic".
설치로 이동 Skills Marketplace 커뮤니티가 만든 AI 스킬을 발견하고 탐색하세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/jeremylongshore/claude-code-plugins-plus-skills --skill glean-debug-bundle명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Zip 다운로드 다운로드 중... 이 저장소의 다른 Skills Implement user sign-up and sign-in flows with Clerk.
Use when building authentication UI, customizing sign-in experience,
or implementing OAuth social login.
Trigger with phrases like "clerk sign-in", "clerk sign-up",
"clerk login flow", "clerk OAuth", "clerk social login".
Implement session management and middleware with Clerk.
Use when managing user sessions, configuring route protection,
or implementing token refresh and custom JWT templates.
Trigger with phrases like "clerk session", "clerk middleware",
"clerk route protection", "clerk token", "clerk JWT".
Configure enterprise SSO, role-based access control, and organization management.
Use when implementing SSO integration, configuring role-based permissions,
or setting up organization-level controls.
Trigger with phrases like "clerk SSO", "clerk RBAC",
"clerk enterprise", "clerk roles", "clerk permissions", "clerk organizations".
jeremylongshore
jeremylongshore/claude-code-plugins-plus-skills
GitHub 저장소 열기 name glean-debug-bundle description Collect Glean diagnostic information for support including datasource config, indexing status, and search quality metrics.
Trigger: "glean debug", "glean support", "glean diagnostic".
allowed-tools Read, Bash(curl:*), Grep version 1.8.0 license MIT author Jeremy Longshore <jeremy@intentsolutions.io> tags ["saas","enterprise-search","glean"] compatibility Designed for Claude Code
Glean Debug Bundle
Overview
This debug bundle collects diagnostic evidence from Glean enterprise search integrations
for troubleshooting datasource configuration, document indexing pipelines, and search
quality issues. It captures indexing token validation, datasource configuration state,
crawl status, search query test results, and permission model health. The resulting
tarball provides the evidence needed to diagnose connector failures, stale index problems,
missing document results, and permission-based search gaps without requiring admin console access.
Prerequisites
curl, jq, tar installed
GLEAN_DOMAIN set to your Glean instance (e.g., your-company-be.glean.com)
GLEAN_INDEXING_TOKEN for datasource/indexing endpoints
GLEAN_CLIENT_TOKEN for search API endpoints
Debug Collection Script
#!/bin/bash
set -euo pipefail
BUNDLE="debug-glean-$(date +%Y%m%d-%H%M%S) "
mkdir -p "$BUNDLE "
echo "=== Environment ===" > "$BUNDLE /environment.txt"
echo "Glean Domain: ${GLEAN_DOMAIN:-NOT SET} " >> "$BUNDLE /environment.txt"
echo "Indexing Token: ${GLEAN_INDEXING_TOKEN:+SET (redacted)} " >> "$BUNDLE /environment.txt"
echo "Client Token: ${GLEAN_CLIENT_TOKEN:+SET (redacted)} " >> "$BUNDLE /environment.txt"
echo "Node: $(node -v 2>/dev/null || echo 'not installed') " >> "$BUNDLE /environment.txt"
echo "Timestamp: $(date -u) " >> "$BUNDLE /environment.txt"
echo "=== Datasource Config ===" > "$BUNDLE /datasource-config.json"
curl -sf -X POST "https://${GLEAN_DOMAIN} /api/index/v1/getdatasourceconfig" \
-H "Authorization: Bearer ${GLEAN_INDEXING_TOKEN} " \
-H "Content-Type: application/json" \
-d "{\"datasource\":\"${GLEAN_DATASOURCE:-custom} \"}" \
>> 2>&1 || >
>
curl -sf -X POST \
-H \
-H \
-d \
>> 2>&1 || >
>
curl -sf -X POST \
-H \
-H \
-H \
-d \
>> 2>&1 || >
>
-100 /var/log/glean-connector/*. >> 2>/dev/null || >>
>
curl -sI -X POST \
-H \
-H \
-d 2>/dev/null | grep -i >> || >>
>
npm 2>/dev/null | grep -i glean >> || >>
pip list 2>/dev/null | grep -i glean >> || >>
tar -czf && -rf
Analyzing the Bundle
tar -xzf debug-glean-*.tar.gz
cat debug-glean-*/environment.txt
jq '.objectType' debug-glean-*/datasource-config.json
jq '.status' debug-glean-*/indexing-status.json
jq '.results | length' debug-glean-*/search-test.json
Common Issues
Symptom Check in Bundle Fix 401 on indexing API environment.txt shows token NOT SETGenerate new indexing token in Glean admin under Datasources > API Datasource config returns empty datasource-config.json has no fieldsSet GLEAN_DATASOURCE env var to match your registered datasource name Search returns 0 results search-test.json results array is emptyCheck indexing-status.json for crawl completion; new datasources take 15-60 min to index 403 on search endpoint search-test.json shows permission errorClient token needs search scope; regenerate with correct permissions in admin Stale documents in results indexing-status.json shows old lastCrawlTimeTrigger a re-crawl via admin UI or POST to /api/index/v1/bulkindexdocuments Rate limited during bulk indexing rate-limits.txt shows retry-after headerBatch documents in groups of 100; respect 10 req/sec indexing limit
Automated Health Check
async function checkGleanHealth ( ): Promise <{
status : string ;
latencyMs : number ;
indexing : boolean ;
searchWorking : boolean ;
}> {
const domain = process.env .GLEAN_DOMAIN ;
const indexToken = process.env .GLEAN_INDEXING_TOKEN ;
const clientToken = process.env .GLEAN_CLIENT_TOKEN ;
const start = Date .now ();
const indexRes = await fetch (`https://${domain} /api/index/v1/getdatasourceconfig` , {
method : "POST" ,
headers : { Authorization : `Bearer ${indexToken} ` , "Content-Type" : "application/json" },
body : JSON .stringify ({ datasource : process.env .GLEAN_DATASOURCE || "custom" }),
});
const searchRes = await fetch (`https://${domain} /api/client/v1/search` , {
method : ,
: {
: ,
: ,
: ,
},
: . ({ : , : }),
});
{
: indexRes. && searchRes. ? : ,
: . () - start,
: indexRes. ,
: searchRes. ,
};
}
Resources
Next Steps
See glean-rate-limits.
"$BUNDLE /datasource-config.json"
echo
'{"error":"UNREACHABLE"}'
"$BUNDLE /datasource-config.json"
echo
"=== Indexing Status ==="
"$BUNDLE /indexing-status.json"
"https://${GLEAN_DOMAIN} /api/index/v1/getstatus"
"Authorization: Bearer ${GLEAN_INDEXING_TOKEN} "
"Content-Type: application/json"
"{\"datasource\":\"${GLEAN_DATASOURCE:-custom} \"}"
"$BUNDLE /indexing-status.json"
echo
'{"error":"FAILED"}'
"$BUNDLE /indexing-status.json"
echo
"=== Search Test ==="
"$BUNDLE /search-test.json"
"https://${GLEAN_DOMAIN} /api/client/v1/search"
"Authorization: Bearer ${GLEAN_CLIENT_TOKEN} "
"X-Glean-Auth-Type: BEARER"
"Content-Type: application/json"
'{"query":"test","pageSize":3}'
"$BUNDLE /search-test.json"
echo
'{"error":"SEARCH_FAILED"}'
"$BUNDLE /search-test.json"
echo
"=== Recent Logs ==="
"$BUNDLE /app-logs.txt"
tail
log
"$BUNDLE /app-logs.txt"
echo
"No connector logs found"
"$BUNDLE /app-logs.txt"
echo
"=== Rate Limits ==="
"$BUNDLE /rate-limits.txt"
"https://${GLEAN_DOMAIN} /api/index/v1/getdatasourceconfig"
"Authorization: Bearer ${GLEAN_INDEXING_TOKEN} "
"Content-Type: application/json"
'{}'
"x-rate\|retry-after\|x-ratelimit"
"$BUNDLE /rate-limits.txt"
echo
"No rate limit headers"
"$BUNDLE /rate-limits.txt"
echo
"=== Dependencies ==="
"$BUNDLE /deps.txt"
ls
"$BUNDLE /deps.txt"
echo
"No Glean npm packages found"
"$BUNDLE /deps.txt"
"$BUNDLE /deps.txt"
echo
"No Glean pip packages found"
"$BUNDLE /deps.txt"
"$BUNDLE .tar.gz"
"$BUNDLE "
rm
"$BUNDLE "
echo
"Bundle: $BUNDLE .tar.gz"
"POST"
headers
Authorization
`Bearer ${clientToken} `
"X-Glean-Auth-Type"
"BEARER"
"Content-Type"
"application/json"
body
JSON
stringify
query
"test"
pageSize
1
return
status
ok
ok
"healthy"
"degraded"
latencyMs
Date
now
indexing
ok
searchWorking
ok