skills$openclaw/index-suggester
lxgicstudios6.0k

by lxgicstudios

index-suggester – OpenClaw Skill

index-suggester is an OpenClaw Skills integration for coding workflows. Get smart database index suggestions from query patterns. Use when queries are slow.

6.0k stars439 forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026coding

Skill Snapshot

nameindex-suggester
descriptionGet smart database index suggestions from query patterns. Use when queries are slow. OpenClaw Skills integration.
ownerlxgicstudios
repositorylxgicstudios/index-gen
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @lxgicstudios/index-gen
last updatedFeb 7, 2026

Maintainer

lxgicstudios

lxgicstudios

Maintains index-suggester in the OpenClaw Skills directory.

View GitHub profile
File Explorer
9 files
.
src
cli.ts
1.0 KB
index.ts
1.3 KB
_meta.json
287 B
package-lock.json
30.2 KB
package.json
663 B
README.md
546 B
SKILL.md
2.0 KB
tsconfig.json
251 B
SKILL.md

name: index-suggester description: Get smart database index suggestions from query patterns. Use when queries are slow.

Index Suggester

Your queries are slow but you're not sure what to index. This tool analyzes your query files and tells you exactly what indexes to create.

One command. Zero config. Just works.

Quick Start

npx @lxgicstudios/ai-index ./src/queries/

What It Does

  • Analyzes your query files for patterns
  • Identifies missing indexes
  • Suggests composite indexes for complex queries
  • Explains why each index helps

Usage Examples

# Analyze all query files
npx @lxgicstudios/ai-index ./src/queries/

# Single file
npx @lxgicstudios/ai-index ./src/queries/users.ts -o indexes.sql

# Prisma queries
npx @lxgicstudios/ai-index ./prisma/

Best Practices

  • Don't over-index - indexes slow down writes
  • Consider query frequency - index hot paths first
  • Use composite indexes wisely - column order matters
  • Test before deploying - indexes can change query plans

When to Use This

  • Query performance is degrading
  • Adding new queries to an app
  • Database audit and optimization
  • Learning about indexing strategies

Part of the LXGIC Dev Toolkit

This is one of 110+ free developer tools built by LXGIC Studios. No paywalls, no sign-ups, no API keys on free tiers. Just tools that work.

Find more:

Requirements

No install needed. Just run with npx. Node.js 18+ recommended. Needs OPENAI_API_KEY environment variable.

npx @lxgicstudios/ai-index --help

How It Works

Reads your query files, extracts WHERE clauses and JOIN conditions, then determines what indexes would speed up those queries. The AI considers selectivity and query patterns to prioritize suggestions.

License

MIT. Free forever. Use it however you want.

README.md

@lxgicstudios/ai-index

Analyze your query patterns and get smart database index suggestions. Tells you exactly what to create and why.

Install

npm install -g @lxgicstudios/ai-index

Usage

npx @lxgicstudios/ai-index ./src/queries/
# Analyzes all query files and suggests indexes

npx @lxgicstudios/ai-index ./src/queries/users.ts -o indexes.sql
# Single file, saves SQL to file

Setup

export OPENAI_API_KEY=sk-...

Options

  • -o, --output <path> - Save suggestions to file

License

MIT

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

No install needed. Just run with npx. Node.js 18+ recommended. Needs OPENAI_API_KEY environment variable. ```bash npx @lxgicstudios/ai-index --help ```

FAQ

How do I install index-suggester?

Run openclaw add @lxgicstudios/index-gen in your terminal. This installs index-suggester into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/lxgicstudios/index-gen. Review commits and README documentation before installing.