.claude/skills/reindex/SKILL.md
Trigger reindexing of a specific WordPress extension. Use to rebuild the search index for a plugin, theme, or core version.
npx skillsauth add PeterBooker/veloria reindexInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Trigger reindexing of a specific WordPress plugin, theme, or core version.
/reindex plugins akismet - Reindex the Akismet plugin/reindex themes flavor - Reindex the flavor theme/reindex cores 6.7.1 - Reindex WordPress core 6.7.1Parse arguments
$REPO: Repository type (plugins, themes, or cores)$SLUG: Extension slug (or version for cores)Ensure binary is current
go install ./...
Check if the server is running
curl -s http://localhost:8585/up 2>&1
If server is running, trigger reindex via API:
curl -s -X POST "http://localhost:8585/api/reindex/$REPO/$SLUG" 2>&1
If server is not running, use the index CLI directly:
veloria index --repo=$REPO --slug=$SLUG --zipurl="$ZIP_URL" 2>&1
Report results
## Reindex Results
- Extension: $REPO/$SLUG
- Method: API / CLI
- Status: success / failed
- Details: [output from command]
| 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.
development
Run Go unit tests. Use after code changes to verify correctness.
development
Run gosec and govulncheck to find security vulnerabilities. Use before releases or after dependency changes.
development
Run Go race detector to find data races in concurrent code. Use after any change to mutexes, goroutines, or channels.
tools
Run CPU and memory profiling with pprof to identify performance hotspots. Use when investigating high resource usage.