/algolia-pack:algolia-prod-checklistfrom algolia-pack
Executes Algolia production readiness checklist covering index settings, API key security, replica configuration, monitoring, and rollback procedures.
Ships in algolia-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Complete checklist for deploying Algolia search to production. Covers index configuration, API key security, replica setup, monitoring, and rollback procedures.
searchableAttributes ordered by priority (first = highest)attributesForFaceting set for all filterable attributescustomRanking configured (business metrics as tie-breakers)unretrievableAttributes set for fields that should be searchable but not returnedattributesToRetrieve limited to fields needed by the UItypoTolerance tested (default: enabled, min 4 chars for 1 typo, min 8 for 2)removeStopWords configured for your language(s)distinct set if deduplication needed (e.g., one result per product group)// Verify production settings
const settings = await client.getSettings({ indexName: 'products' });
console.log(JSON.stringify(settings, null, 2));
referers restrictionmaxQueriesPerIPPerHour set on all public keysmaxHitsPerQuery limited on search keysindexes where possible// Replicas give users alternate sort orders
await client.setSettings({
indexName: 'products',
indexSettings: {
// Standard replicas: share parent's data, use their own relevance settings
replicas: [
'products_price_asc', // Sort by price ascending
'products_price_desc', // Sort by price descending
'products_newest', // Sort by newest first
],
},
});
// Configure each replica's ranking
await client.setSettings({
indexName: 'products_price_asc',
indexSettings: {
ranking: [
'asc(price)', // Primary: price ascending
'typo', 'geo', 'words', 'filters', 'proximity', 'attribute', 'exact', 'custom',
],
},
});
// Health check endpoint
async function algoliaHealthCheck() {
const start = Date.now();
try {
const { items } = await client.listIndices();
const latencyMs = Date.now() - start;
return {
status: 'healthy',
latencyMs,
indexCount: items.length,
totalRecords: items.reduce((sum, i) => sum + (i.entries || 0), 0),
};
} catch (error) {
return { status: 'unhealthy', error: String(error), latencyMs: Date.now() - start };
}
}
// If Algolia is down, fall back to database search
async function searchWithFallback(query: string) {
try {
const { hits } = await client.searchSingleIndex({
indexName: 'products',
searchParams: { query, hitsPerPage: 20 },
});
return { source: 'algolia', results: hits };
} catch (error) {
console.error('Algolia unavailable, falling back to DB', error);
const dbResults = await db.products.find({
name: { $regex: query, $options: 'i' },
}).limit(20);
return { source: 'database', results: dbResults };
}
}
#!/bin/bash
echo "=== Algolia Production Pre-Flight ==="
# 1. Verify connectivity
HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" \
"https://${ALGOLIA_APP_ID}-dsn.algolia.net/1/indexes" \
-H "X-Algolia-Application-Id: ${ALGOLIA_APP_ID}" \
-H "X-Algolia-API-Key: ${ALGOLIA_ADMIN_KEY}")
echo "API connectivity: HTTP $HTTP_CODE"
[ "$HTTP_CODE" != "200" ] && echo "FAIL: Cannot reach Algolia" && exit 1
# 2. Check Algolia service status
STATUS=$(curl -s https://status.algolia.com/api/v2/status.json | jq -r '.status.indicator')
echo "Algolia status: $STATUS"
[ "$STATUS" != "none" ] && echo "WARNING: Algolia reporting issues"
# 3. Verify index has data
RECORDS=$(curl -s "https://${ALGOLIA_APP_ID}-dsn.algolia.net/1/indexes/products" \
-H "X-Algolia-Application-Id: ${ALGOLIA_APP_ID}" \
-H "X-Algolia-API-Key: ${ALGOLIA_ADMIN_KEY}" | jq '.entries')
echo "Products index: $RECORDS records"
[ "$RECORDS" -lt 1 ] && echo "FAIL: Index is empty" && exit 1
echo ""
echo "All checks passed. Ready to deploy."
| Alert | Condition | Severity | Action |
|---|---|---|---|
| Search errors | 5xx or 403 errors > 5/min | P1 | Check API keys, Algolia status |
| High latency | P95 > 200ms for 5+ min | P2 | Check index size, network |
| Rate limited | 429 errors > 10/min | P2 | Reduce request rate, check key limits |
| Index stale | Last updated > 1 hour ago | P3 | Check sync pipeline |
For version upgrades, see algolia-upgrade-migration.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
algolia, production-checklist, search, deployment, index-configuration
24 skills in this plugin
/algolia-ci-integrationConfigure Algolia CI/CD: GitHub Actions for index validation, automated reindexing
on deploy, and integration testing against real Algolia indices.
Trigger: "algolia CI", "algolia GitHub Actions", "algolia automated tests",
"CI algolia", "algolia deploy pipeline".
/algolia-common-errorsDiagnose and fix the top Algolia API errors: 400, 403, 404, 429, ApiError,
RetryError, and indexing failures.
Trigger: "algolia error", "fix algolia", "algolia not working",
"debug algolia", "algolia 429", "algolia 403".
/algolia-core-workflow-anpx claudepluginhub flight505/skill-forge --plugin algolia-packOther plugins' skills for the same job