algolia-migration

algolia-migration is a skill for Claude Code, Codex from algolia/skills. It costs 183 tokens per session (1,502 once invoked), scanned A, original, MIT.

A guide for updating Algolia's programming libraries when their older API has changed. Algolia is a hosted search service, and an API is the set of functions code uses to communicate with it.

In plain words
What is it for?
Use it to migrate supported Algolia clients, such as JavaScript, Python, Go, PHP, Java, C#, Ruby, Kotlin, Scala and Swift, to newer major versions.
Why use it?
It helps fix broken search integrations after a major library upgrade, including changed imports, method names and request patterns.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/algolia/skills/algolia-migration
Any agent
npx skills add algolia/skills --skill algolia-migration
Clone the repo
git clone --depth 1 https://github.com/algolia/skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for algolia-migration

README.md
[![agentmods](https://agentmods.dev/badge/skills/algolia/skills/algolia-migration.svg)](https://agentmods.dev/skills/algolia/skills/algolia-migration)
Your own site
<a href="https://agentmods.dev/skills/algolia/skills/algolia-migration"><img src="https://agentmods.dev/badge/skills/algolia/skills/algolia-migration.svg" alt="Measured on agentmods" height="20"></a>
Per session 183 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,502 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00183 $0.01502
Opus 5 $0.00092 $0.00751
Sonnet 5 $0.00037 $0.00300
Haiku 4.5 $0.00018 $0.00150

Measured 4d ago against content hash 5d2047937b87, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

algolia-migration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/algolia-migration/SKILL.md · 114 lines

How it starts

The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Algolia API Client Migration

This skill covers API client upgrades (backend and frontend search-only builds). For frontend search UI, see instantsearch. For index operations, see algolia-cli.

Supported migrations

Language Migration Reference
JavaScript v4 → v5 references/javascript.md
Python v3 → v4 references/python.md
Go v3 → v4 references/go.md
PHP v3 → v4 references/php.md
Java v3 → v4 references/java.md
C# v6 → v7 references/csharp.md
Ruby v2 → v3 references/ruby.md
Kotlin v2 → v3 references/kotlin.md
Scala v1 → v2 references/scala.md
Swift v8 → v9 references/swift.md

Open the matching reference file before writing any migration code.

Universal breaking changes

Every language migration shares the same set of architectural shifts. Understand these first; the reference files add language-specific syntax on top.

1. initIndex is gone

The index object pattern is eliminated in every language. All methods moved to the client with indexName as an explicit parameter.

The fix: remove initIndex / init_index / index(withName:), call the method on the client, pass indexName.

Grep to find all affected call sites:

grep -r "initIndex\|init_index\|InitIndex\|index(withName" .

2. .wait() chaining is gone

Chained .wait() / ! bang methods on task responses are replaced by dedicated wait helpers.

Old New
index.saveObjects(records).wait() client.waitForTask(...) with the index name and task ID
index.save_objects!(objects) (Ruby) client.save_objects(index_name, objects, true)

Read the full file on GitHub · 114 lines

Files

What ships with it

11 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 114 lines · 183 tokens per session scan A 5d2047937b87

Subscribe to this mod's changes

algolia-migration is a skill published in the GitHub repository algolia/skills (12 stars, last pushed yesterday), licensed MIT. It adds 183 tokens to every session and 1,502 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

gpt-researcher

GPT Researcher is an autonomous deep research agent that conducts web and local research, producing detailed reports with citations. Use this skill when helping developers understand, extend, debug, or integrate with GPT Researcher - including adding features, understanding the architecture, working with the API…

assafelovic/gpt-researcher · 79 tokens

local-tools

Access local system resources including Calendar on macOS and Windows. Use this skill when you need to manage user's schedule directly on their device.

netease-youdao/LobsterAI · 30 tokens

seedance

Generate AI videos using Volcengine Seedance model. Supports text-to-video (T2V), image-to-video (I2V), and audio-synced video generation. Use this skill when the user wants to create or generate videos.

netease-youdao/LobsterAI · 52 tokens

develop-web-game

Use when Codex is building or iterating on a web game (HTML/JS) and needs a reliable development + testing loop: implement small changes, run a Playwright-based test script with short input bursts and intentional pauses, inspect screenshots/text, and review console errors with rendergametotext.

netease-youdao/LobsterAI · 64 tokens

article-writer

Multi-style article creation skill. Supports 5 writing styles (deep analysis, practical guide, story-driven, opinion, news brief), including complete workflow: material collection → outline → content → formatting. Activated when users mention "write article", "write post", "create", or "draft".

netease-youdao/LobsterAI · 62 tokens

skin-creator

Create and apply a two-asset LobsterAI visual skin from the user's style description. Use only when the AI Skin Designer kit supplies the structured skinpack workflow marker; do not use for ordinary theme or image requests.

netease-youdao/LobsterAI · 48 tokens