algolia-core-workflow-b

v2026.09.24

Build a reliable Algolia indexing pipeline for full replacements, incremental updates, settings, synonyms, and rules. Use when a source of truth must publish deterministic search state. Trigger with "Algolia indexing workflow", "replace index records", or "sync Algolia".

GitHub
安装命令
npx skhub add jeremylongshore/algolia-core-workflow-b
Markdown
SKILL.md

Algolia Indexing Contract

Overview

This skill designs the write path from an authoritative dataset to Algolia. It separates record transformation, validation, transport, task completion, and publication so a failed run cannot silently leave ambiguous search state.

Prerequisites

  • A named repository, environment, and Algolia application or index in scope
  • The local lockfile and installed client types as implementation authority
  • A safe read-only query or explicitly disposable test target
  • Current first-party documentation for any provider behavior that affects the change

Tool Discipline

Use Read, Glob, and Grep to inspect local code, configuration names, tests, and dependency versions. Use WebFetch only for current official Algolia documentation. Use Write or Edit only after identifying the target files, constraints, and verification plan.

Current Contract

  • Generate stable objectID values from source identities and reject duplicates before upload.
  • Choose saveObjects for bounded upserts and replaceAllObjects only for an intentional full-state replacement.
  • Wait for returned task IDs before verification or traffic cutover.
  • Version settings, synonyms, and rules as reviewable inputs; do not infer them from production state during deployment.

Authentication

Run indexing only from a trusted backend with a custom key restricted to the target indices and required write ACLs. Keep search-only keys out of indexing jobs.

Instructions

  1. Identify the source of truth, deletion semantics, index aliases or replicas, and acceptable publication window.
  2. Transform and validate records locally, including size, required fields, stable IDs, and prohibited data.
  3. Select incremental or full replacement based on source deletion guarantees and rollback needs.
  4. Submit bounded batches, retain task IDs, and wait for completion with an overall timeout.
  5. Verify counts, sentinel records, settings hashes, and representative queries.
  6. Record the source snapshot, target index, completed tasks, and rollback or prior-index path.

Approval Boundaries

Do not run a full replacement, delete records, change settings, or swap a production target until the source snapshot and rollback plan are approved.

Output

Return the data contract, operation choice, validation report, task receipts, post-write checks, deletion behavior, and rollback instructions.

Error Handling

ConditionResponse
Duplicate objectIDFail before upload and report source records.
Partial batch failureStop publication and preserve successful task IDs.
Task timeoutDo not assume failure or success; query task state.
Verification mismatchKeep the prior production target and investigate.

Examples

Use this compact input and expected handoff to calibrate scope and evidence quality.

Input:

source=snapshot-2026-09-10; mode=full-replacement; target=products_next

Expected handoff:

records=48012; tasks=49-complete; sentinel-query=pass; cutover=pending-approval

Resources

发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

2026年9月24日

分类

未分类

许可证

MIT

源路径

skills/.curated/algolia-core-workflow-b

默认分支

main

最新提交

e5a6c3b

Tree SHA

c2dc8e8