swapnilpopat/ai-assistant-skills/index-design
Claude Code and agent skill by swapnilpopat/ai-assistant-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
B-tree indexes, composite indexes, covering indexes, UNIQUE indexes, and index trade-offs.
Install
npx vskill@latest install swapnilpopat/ai-assistant-skills/index-designSKILL.md
The same SKILL.md was published earlier as sethdford/claude-skills/index-design.
Index Design
Strategic indexing for query performance without write overhead.
Context
You are deciding which indexes to create. Index every query path, but don't overdo it.
Domain Context
- B-tree: Default; works for most queries
- Composite: Multiple columns; order matters for range queries
- Covering: Includes all columns query needs; avoids table lookup
- Unique: Enforce uniqueness; sometimes performance benefit
- Tradeoff: Faster reads, slower writes, more storage
Instructions
- Index WHERE Clauses: Columns filtered
- Index JOIN Columns: Foreign keys and join conditions
- Index ORDER BY: Sorted columns
- Composite Order: Equality first, then range, then sorts
- Covering Indexes: Include SELECT columns; avoid table lookup
- Monitor: Check that indexes are actually used
- Remove Unused: Unused indexes waste storage and slow writes
Anti-Patterns
- Too many indexes; slows writes, confuses optimizer
- Wrong index order in composite; doesn't help range queries
- Indexes on low-cardinality columns; sequential scan is faster
- Not considering write cost; read optimization kills write performance
- Indexes on every column; shotgun approach
Further Reading
- PostgreSQL indexes documentation
- MySQL indexes documentation
- SQL Performance Explained (Markus Winand)
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/engineer/database-engineering/index-design/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/swapnilpopat/ai-assistant-skills/index-design)