Reindex

From PeterBooker/veloria · View interactive version

Reindex is an AI agent skill from the GitHub repository PeterBooker/veloria. Trigger reindexing of a specific WordPress extension. Use to rebuild the search index for a plugin, theme, or core version.

How to use this skill

Skill file

Reindex Extension

Trigger reindexing of a specific WordPress plugin, theme, or core version.

Usage

Steps

  1. Parse arguments
  1. Ensure binary is current

```bash

go install ./...

```

  1. Check if the server is running

```bash

curl -s http://localhost:8585/up 2>&1

```

  1. If server is running, trigger reindex via API:

```bash

curl -s -X POST "http://localhost:8585/api/reindex/$REPO/$SLUG" 2>&1

```

  1. If server is not running, use the index CLI directly:

```bash

veloria index --repo=$REPO --slug=$SLUG --zipurl="$ZIP_URL" 2>&1

```

  1. Report results

```

## Reindex Results

```

CLI vs API

| Method | When | Notes |

|--------|------|-------|

| API (/api/reindex) | Server running | Handles zip URL lookup, DB update, and hot-swap |

| CLI (veloria index) | Server not running | Requires explicit --zipurl, no DB update |

The API method is preferred as it handles the full pipeline including database updates and live index hot-swap.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.