agentleFS
Ghost7802Ghost7802/awesome-api-skills/skills/algolia/SKILL.md

algolia

Skill13 starsChanged 27 days agoMITView on GitHub

  • Installs packages

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use Secured API Keys to restrict frontend search access (e.g., scoping a user's search token to only return their own data).

    line 29
  2. Distinctive:

    Do not store massive text blocks (like full articles) in a single record attribute.

    line 35
  3. Distinctive:

    If search results are inaccurate, check the index's 'Searchable Attributes' configuration in the Algolia Dashboard.

    line 38
  4. Distinctive:

    Use this when your agent works with algolia — structured patterns beat pasted docs and prevent common hallucinations.

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Algolia API Skill

Overview

Algolia provides ultra-fast full-text search. This skill focuses on indexing data from the backend and searching from the frontend.

Installation

npm install algoliasearch
pip install algoliasearch

Authentication

Frontend clients use the Search-Only API Key. Backends use the Admin API Key for indexing. Never expose the Admin key.

Core Concepts

  • Index: A collection of searchable JSON records.
  • ObjectID: The unique identifier for a record.
  • Facets: Attributes used for filtering and categorization.

Common Workflows

  1. Backend: Initialize client with Admin Key.
  2. Push records to index via saveObjects.
  3. Frontend: Initialize client with Search Key and query.

Error Handling

Handle ApiError. Common errors are Payload Too Large (chunk your saveObjects calls) and Invalid Credentials.

Security

Use Secured API Keys to restrict frontend search access (e.g., scoping a user's search token to only return their own data).

Rate Limits

Limits are massive, but batch indexing should be limited to chunks of 1,000 to 10,000 records to prevent timeout.

Best Practices

Do not store massive text blocks (like full articles) in a single record attribute. Truncate or chunk records to keep them under the 10KB to 100KB limits.

Troubleshooting

If search results are inaccurate, check the index's 'Searchable Attributes' configuration in the Algolia Dashboard.

References

Why use this skill

Use this when your agent works with algolia — structured patterns beat pasted docs and prevent common hallucinations.

AI pitfalls

  • Using outdated SDK or API versions from training data
  • Inventing environment variable names
  • Omitting error handling and retry logic

Production checklist

  • Secrets in environment variables, not source code
  • Error handling and logging in place
  • Rate limits and timeouts configured

Related skills

  • meilisearch — alternative to
  • typesense — alternative to
  • nextjs — integrates with

Last Verified: 2026-07-02

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.