index-design
B-tree indexes, composite indexes, covering indexes, UNIQUE indexes, and index trade-offs.
от sethdford★ 51 звезда на GitHub
Установить index-design в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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)
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл index-design?
B-tree indexes, composite indexes, covering indexes, UNIQUE indexes, and index trade-offs.
Как установить скилл index-design?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл index-design запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…