|
1 | | -# Algolia Agent Skill |
| 1 | +# Algolia Skills |
2 | 2 |
|
3 | | -An [Agent Skill](https://agentskills.io/) that connects to Algolia for natural language search, analytics, and recommendations. |
| 3 | +[Agent skills](https://agentskills.io/) for managing Algolia search, analytics, recommendations, and index configuration. |
4 | 4 |
|
5 | | -### ✨ Features |
| 5 | +## ✨ Skills |
6 | 6 |
|
7 | | -- 🔍 **Natural Language Search** - Search your Algolia indices conversationally |
8 | | -- 📊 **Analytics Insights** - Get search analytics through simple questions |
9 | | -- 🎯 **Smart Recommendations** - Product recommendations (bought-together, related, trending, similar) |
10 | | -- 🚀 **Easy Setup** - Connect in minutes with `/algolia-mcp:connect` in Claude Code |
11 | | -- 📚 **Usage Examples** - Run `/algolia-mcp:examples` for copy-paste prompts |
| 7 | +Pick the skill that fits your workflow. |
12 | 8 |
|
13 | | -### 🛠️ Usage |
| 9 | +| Skill | Description | |
| 10 | +|-----------------------------|-------------------------------------------------------------------| |
| 11 | +| [algolia-mcp](#algolia-mcp) | Search, analytics, and recommendations via the Algolia MCP server | |
| 12 | +| [algolia-cli](#algolia-cli) | Manage indices, settings, rules, and synonyms via the Algolia CLI | |
14 | 13 |
|
15 | | -The skill gives you `/algolia-mcp:connect` and `/algolia-mcp:examples` slash commands, plus guided setup and interactive examples. |
| 14 | +### algolia-mcp |
16 | 15 |
|
17 | | -#### Installation |
| 16 | +Search your Algolia indices with natural language, explore search analytics, and get product recommendations (bought-together, related, trending, similar) — all through the Algolia MCP server. |
18 | 17 |
|
19 | | -##### Option 1: From Marketplace (Recommended) |
| 18 | +#### Commands |
20 | 19 |
|
21 | | -**Two steps:** |
| 20 | +| Command | Description | Docs | |
| 21 | +|-------------------------|----------------------------------------------------|-------------------------------------| |
| 22 | +| `/algolia-mcp:connect` | Set up or update your Algolia MCP connection | [connect.md](commands/connect.md) | |
| 23 | +| `/algolia-mcp:examples` | Interactive usage examples with copy-paste prompts | [examples.md](commands/examples.md) | |
22 | 24 |
|
23 | | -1. Add the Algolia marketplace: |
24 | | - ```bash |
25 | | - /plugin marketplace add algolia/skills |
26 | | - ``` |
| 25 | +`/algolia-mcp:examples` accepts an optional category: `search`, `analytics`, or `recommendations`. |
27 | 26 |
|
28 | | -2. Install the plugin: |
29 | | - ```bash |
30 | | - /plugin install algolia-mcp |
31 | | - ``` |
| 27 | +#### Prerequisites |
32 | 28 |
|
33 | | -**Or direct install (one step):** |
| 29 | +- [Algolia account](https://www.algolia.com/users/sign_up) with at least one index containing data |
| 30 | +- Algolia MCP enabled in Dashboard (Generate AI > MCP Servers > Productivity) |
| 31 | +- MCP client — Claude Code, Codex, VS Code, Cursor, etc. |
| 32 | +- Node.js 18+ (required for `mcp-remote` bridge on non-Claude Code clients) |
34 | 33 |
|
35 | | -```bash |
36 | | -/plugin install algolia-mcp@algolia-skills |
37 | | -``` |
| 34 | +### algolia-cli |
38 | 35 |
|
39 | | -##### Option 2: Via npx |
| 36 | +Manage Algolia indices, records, settings, rules, and synonyms from the terminal using the [Algolia CLI](https://www.algolia.com/doc/tools/cli/get-started). |
40 | 37 |
|
41 | | -```bash |
42 | | -npx skills add https://github.com/algolia/skills |
43 | | -``` |
| 38 | +#### Commands |
44 | 39 |
|
45 | | -##### Option 3: Manual |
| 40 | +| Command | Description | Docs | |
| 41 | +|----------------------|-------------------------------------------------|-------------------------------| |
| 42 | +| `/algolia-cli:setup` | Install the Algolia CLI and configure a profile | [setup.md](commands/setup.md) | |
46 | 43 |
|
47 | | -1. Clone this repository: |
48 | | - ```bash |
49 | | - git clone https://github.com/algolia/skills.git |
50 | | - cd skills |
51 | | - ``` |
| 44 | +#### Prerequisites |
52 | 45 |
|
53 | | -2. Copy the skill to your Claude skills directory: |
54 | | - ```bash |
55 | | - mkdir -p ~/.claude/skills |
56 | | - cp -r skills/algolia-mcp ~/.claude/skills/ |
57 | | - ``` |
| 46 | +- [Algolia account](https://www.algolia.com/users/sign_up) with Application ID and Admin API key ([Dashboard > Settings > API Keys](https://dashboard.algolia.com/account/api-keys/all)) |
| 47 | +- Homebrew (macOS) or a compatible package manager |
58 | 48 |
|
59 | | -3. Restart Claude Code to load the skill. |
| 49 | +## 🛠️ Installation |
60 | 50 |
|
61 | | -#### Verify Installation |
| 51 | +### From Marketplace (recommended) |
62 | 52 |
|
| 53 | +```bash |
| 54 | +/plugin marketplace add algolia/skills |
| 55 | +/plugin install algolia-mcp # or algolia-cli |
63 | 56 | ``` |
64 | | -What skills are available? |
65 | | -``` |
66 | | - |
67 | | -You should see `algolia-mcp` in the list. |
68 | | - |
69 | | -#### Getting Started |
70 | | - |
71 | | -Once installed, set up your Algolia MCP connection: |
72 | | - |
73 | | -- **If your client supports commands**, run `/algolia-mcp:connect` — it will guide you through the entire setup. |
74 | | -- **Otherwise**, ask the agent to set up Algolia MCP (e.g. *"Set up Algolia MCP"*) and it will follow the skill's instructions. |
75 | 57 |
|
76 | | -Then try: |
| 58 | +Or install directly: |
77 | 59 |
|
| 60 | +```bash |
| 61 | +/plugin install algolia-mcp@algolia-skills # or algolia-cli@algolia-skills |
78 | 62 | ``` |
79 | | -"Search my products index for laptop under $1000" |
80 | | -"What were the top searches yesterday?" |
81 | | -"Show me trending products in electronics" |
82 | | -``` |
83 | | - |
84 | | -#### Commands |
85 | | - |
86 | | -##### `/algolia-mcp:connect` |
87 | 63 |
|
88 | | -Set up or update your Algolia MCP connection. |
| 64 | +### Via npx |
89 | 65 |
|
| 66 | +```bash |
| 67 | +npx skills add https://github.com/algolia/skills |
90 | 68 | ``` |
91 | | -/algolia-mcp:connect |
92 | | -``` |
93 | | - |
94 | | -[Full command documentation](commands/connect.md) |
95 | 69 |
|
96 | | -##### `/algolia-mcp:examples` |
| 70 | +### Clone / Copy |
97 | 71 |
|
98 | | -Interactive usage examples with copy-paste prompts. |
| 72 | +Clone the repo and copy the skill folder to your agent's skills directory: |
99 | 73 |
|
| 74 | +```bash |
| 75 | +git clone https://github.com/algolia/skills.git |
| 76 | +cp -r skills/algolia-mcp <skills-directory> # or algolia-cli |
100 | 77 | ``` |
101 | | -/algolia-mcp:examples # All examples |
102 | | -/algolia-mcp:examples search # Search patterns |
103 | | -/algolia-mcp:examples analytics # Analytics patterns |
104 | | -/algolia-mcp:examples recommendations # Recommendations patterns |
105 | | -``` |
106 | | - |
107 | | -[Full command documentation](commands/examples.md) |
108 | 78 |
|
109 | | -### 📋 Prerequisites |
| 79 | +| Agent | Skills directory | |
| 80 | +|--------------|------------------------------| |
| 81 | +| Claude Code | `~/.claude/skills/` | |
| 82 | +| Cursor | `~/.cursor/skills/` | |
| 83 | +| OpenAI Codex | `~/.codex/skills/` | |
| 84 | +| OpenCode | `~/.config/opencode/skills/` | |
110 | 85 |
|
111 | | -- **Algolia account** - [Sign up free](https://www.algolia.com/users/sign_up) |
112 | | -- **At least one index** with data in your Algolia application |
113 | | -- **Algolia MCP enabled** in Dashboard (Generate AI → MCP Servers → Productivity) |
114 | | -- **MCP client** - Claude Code (for the full skill experience), or Codex, VS Code, Cursor, etc. |
115 | | -- **Node.js 18+** - Required for the `mcp-remote` bridge used by non-Claude Code clients |
| 86 | +Restart your agent to load the skill. |
116 | 87 |
|
117 | | -### 📄 License |
| 88 | +## 📄 License |
118 | 89 |
|
119 | | -MIT License - see [LICENSE](LICENSE) file for details. |
| 90 | +MIT — see [LICENSE](LICENSE) for details. |
0 commit comments