Skip to main content Skills Marketplace Découvrez et explorez les compétences IA créées par la communauté.
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Copier le promptAfficher les détails du prompt Une commande directe contourne le prompt de vérification. Examinez la source avant de l'exécuter.
npx skills add https://github.com/jeremylongshore/tons-of-skills-marketplace --skill algolia-debug-bundleLa commande reste sur une seule ligne. Faites défiler horizontalement pour la vérifier avant de la copier.
Vous préférez une copie locale ? Téléchargez les fichiers actuellement disponibles dans SkillsMP.
Télécharger Zip Téléchargement... Plus depuis ce dépôt langchain-deploy-integration Deploy a LangChain 1.0 / LangGraph 1.0 app to Cloud Run, Vercel, or LangServe correctly — with timeouts sized for chain length, cold-start mitigation, SSE anti-buffering headers, and Secret Manager over .env. Use when prepping a first production deploy, debugging a stream that hangs behind a proxy, or diagnosing p99 latency spikes. Trigger with "langchain deploy", "langchain cloud run", "langchain vercel python", "langchain langserve", or "langchain docker".
langchain-langgraph-agents Build a correct LangGraph 1.0 ReAct agent with create_react_agent — typed tools, error propagation, recursion caps, and stop conditions that actually stop. Use when writing a first tool-calling agent, migrating from AgentExecutor or initialize_agent, or diagnosing an agent that loops on vague prompts. Trigger with "langgraph agent", "create_react_agent", "langgraph tool calling", "AgentExecutor migration", or "agent loop cost".
langchain-langgraph-human-in-loop Build LangGraph 1.0 human-in-the-loop approval flows with interrupt_before /
interrupt_after and Command(resume=...) — JSON-serializable state, clean
resume semantics, and UI wiring for approval decisions. Use when adding an
approval gate before an expensive tool call, wiring a Slack/web UI for agent
approvals, or debugging a graph that crashes on interrupt.
Trigger with "langgraph human in loop", "langgraph interrupt_before",
"langgraph approval flow", "Command resume", "langgraph HITL".
name algolia-debug-bundle description Collect Algolia debug evidence: index stats, API key ACLs, query logs,
and network diagnostics for support tickets.
Trigger: "algolia debug", "algolia support bundle", "collect algolia logs",
"algolia diagnostic", "algolia troubleshoot".
allowed-tools Read, Bash(curl:*), Bash(npm:*), Bash(tar:*), Bash(jq:*), Grep version 1.7.0 license MIT author Jeremy Longshore <jeremy@intentsolutions.io> tags ["saas","search","algolia"] compatibility Designed for Claude Code
Algolia Debug Bundle
Overview
Collect all necessary diagnostic information for Algolia support tickets or internal troubleshooting. Uses real Algolia API endpoints to gather index stats, key permissions, and query performance data.
Prerequisites
ALGOLIA_APP_ID and ALGOLIA_ADMIN_KEY environment variables set
curl and jq available
Permission to read API key ACLs and index settings
Instructions
Examples
The bundle script below is the support-ready example. It gathers configuration and response metadata into a timestamped directory while redacting secret values from the collected files.
Step 1: Create the Debug Bundle Script
#!/bin/bash
set -euo pipefail
APP_ID="${ALGOLIA_APP_ID:?Set ALGOLIA_APP_ID} "
API_KEY="${ALGOLIA_ADMIN_KEY:?Set ALGOLIA_ADMIN_KEY} "
BUNDLE_DIR="algolia-debug-$(date +%Y%m%d-%H%M%S) "
BASE_URL="https://${APP_ID} -dsn.algolia.net"
HEADERS=(-H "X-Algolia-Application-Id: ${APP_ID} " -H "X-Algolia-API-Key: ${API_KEY} " )
mkdir -p "$BUNDLE_DIR "
echo "=== Algolia Debug Bundle ===" | tee "$BUNDLE_DIR /summary.txt"
echo "Generated: $(date -u +%Y-%m-%dT%H:%M:%SZ) " | tee -a "$BUNDLE_DIR /summary.txt"
echo "App ID: $APP_ID " | tee -a "$BUNDLE_DIR /summary.txt"
echo "--- Indices ---" >> "$BUNDLE_DIR /summary.txt"
curl -s "${BASE_URL} /1/indexes" "${HEADERS[@]} " \
| jq '.items[] | {name, entries, dataSize, lastBuildTimeS}' \
> "$BUNDLE_DIR /indices.json" 2>/dev/null
echo "Indices saved" >>
>>
curl -s \
| jq \
> 2>/dev/null
>>
>>
curl -s \
| jq \
> 2>/dev/null
>>
>>
host ;
RESULT=$(curl -s -o /dev/null -w 2>/dev/null || )
>>
>>
node --version >> 2>/dev/null || >>
npm list algoliasearch 2>/dev/null >> || >>
>>
curl -s https://status.algolia.com/api/v2/status.json \
| jq -r >> 2>/dev/null
tar -czf
-rf
Step 2: Programmatic Debug Data Collection
import { algoliasearch } from 'algoliasearch' ;
async function collectDebugInfo ( ) {
const client = algoliasearch (
process.env .ALGOLIA_APP_ID !,
process.env .ALGOLIA_ADMIN_KEY !
);
const debug : Record <string , any > = {};
const { items } = await client.listIndices ();
debug.indices = items.map (i => ({
name : i.name ,
entries : i.entries ,
dataSize : i.dataSize ,
lastBuildTimeS : i.lastBuildTimeS ,
}));
const indexName = 'products' ;
try {
debug.settings = await client.getSettings ({ indexName });
} catch (e) {
debug.settings = `Failed: ${e} ` ;
}
const { logs } = await client.getLogs ({
indexName,
: ,
: ,
});
debug. = logs. ( ({
: l. ,
: l. ,
: l. ,
: l. ,
}));
{
keyInfo = client. ({
: process. . !,
});
debug. = keyInfo. ;
} (e) {
debug. = ;
}
debug;
}
Sensitive Data Handling
ALWAYS REDACT before sharing:
Full API keys (only share last 4 chars)
User PII in query logs
Internal hostnames or IPs
Safe to include:
App ID (it's in every frontend bundle)
Error codes and status codes
Index names and record counts
SDK and Node.js versions
Processing times and latencies
Output
The command creates a timestamped diagnostic bundle containing index, key-permission, and query-health evidence suitable for an internal incident or Algolia support ticket, without including raw API keys.
Error Handling
Issue Cause Solution getLogs returns emptyLogs retention is 7 days (Grow) or 30 days (Premium) Run sooner after incident getApiKey 403Non-admin key can only read its own info Use Admin key curl returns 000 DNS or firewall blocking Check outbound HTTPS to *.algolia.net No jq available Not installed apt install jq or parse JSON differently
Resources
Next Steps
For rate limit issues, see algolia-rate-limits.
"$BUNDLE_DIR /summary.txt"
echo
"--- API Key ACL ---"
"$BUNDLE_DIR /summary.txt"
"${BASE_URL} /1/keys"
"${HEADERS[@]} "
'.keys[] | {description, acl, indexes, maxQueriesPerIPPerHour, validity}'
"$BUNDLE_DIR /api-keys-acl.json"
echo
"Key ACLs saved (keys redacted)"
"$BUNDLE_DIR /summary.txt"
echo
"--- Query Logs ---"
"$BUNDLE_DIR /summary.txt"
"${BASE_URL} /1/logs?length=100&type=all"
"${HEADERS[@]} "
'.logs[] | {timestamp, method, url, answer_code, processing_time_ms, query_nb_hits}'
"$BUNDLE_DIR /query-logs.json"
echo
"Last 100 log entries saved"
"$BUNDLE_DIR /summary.txt"
echo
"--- Network Diagnostics ---"
"$BUNDLE_DIR /summary.txt"
for
in
"${APP_ID} -dsn.algolia.net"
"${APP_ID} -1.algolianet.com"
"${APP_ID} -2.algolianet.com"
do
"%{http_code},%{time_total}"
"https://${host} /1/indexes"
"${HEADERS[@]} "
echo
"FAILED"
echo
" ${host} : ${RESULT} "
"$BUNDLE_DIR /summary.txt"
done
echo
"--- Environment ---"
"$BUNDLE_DIR /summary.txt"
"$BUNDLE_DIR /summary.txt"
echo
"node: not found"
"$BUNDLE_DIR /summary.txt"
"$BUNDLE_DIR /summary.txt"
echo
"algoliasearch: not installed"
"$BUNDLE_DIR /summary.txt"
echo
"--- Algolia Status ---"
"$BUNDLE_DIR /summary.txt"
'.status.description'
"$BUNDLE_DIR /summary.txt"
"${BUNDLE_DIR} .tar.gz"
"$BUNDLE_DIR "
rm
"$BUNDLE_DIR "
echo
""
echo
"Bundle created: ${BUNDLE_DIR} .tar.gz"
length
50
type
'error'
recentErrors
map
l =>
timestamp
timestamp
method
method
answerCode
answer_code
processingTimeMs
processing_time_ms
try
const
await
getApiKey
key
env
ALGOLIA_ADMIN_KEY
currentKeyAcl
acl
catch
currentKeyAcl
'Unable to read key ACL'
return