Database Indexing
Choose, design and maintain indexes — B-tree column order, covering and partial indexes, expression indexes, GIN/GiST/BRIN use cases, foreign-key indexing, write-cost trade-offs, finding unused or missing indexes and safe creation.
What it does
Choose, design and maintain indexes — B-tree column order, covering and partial indexes, expression indexes, GIN/GiST/BRIN use cases, foreign-key indexing, write-cost trade-offs, finding unused or missing indexes and safe creation.
- Category
- databaseperformancesql
- Platforms
- backend
- Frameworks and tools
- postgresqlmysqlsqlite
- Capabilities
- architecturereviewdebugging
Example tasks
- “Design indexes for a multi-tenant orders table queried by tenant, status and date.”
- “Audit a database for unused, duplicate and missing foreign-key indexes.”
- “Make case-insensitive search and JSONB filters fast with the right index types.”
Works with
Permissions summary
Files
Reads files only
Shell
No shell commands
Network
No network
Permissions are declared in the component manifest and compiled into each client's tool list. Components are built for least privilege.
Supported environments
| Client | Support | Installed as |
|---|---|---|
| Claude Code | Native | .claude/skills/<id>/SKILL.md |
| OpenAI Codex | Adapter | .codex/skills/<id>/SKILL.md |
| Cursor | Adapter | .cursor/rules/<id>.mdc |
| VS Code (Copilot) | Adapter | .github/instructions/<id>.instructions.md |
| Generic markdown | Adapter | docs/forgekit/skills/<id>.md |
Claude Code is the native reference. Other clients use adapters, so behaviour is close but not identical. See the compatibility matrix.
Included in packs
What is inside
This is a premium component, so its prompt is delivered only through signed downloads to licensed accounts. Here is the outline of its sections (82 lines in total).
- 01Database Indexing
- 021. Workflow
- 032. Composite B-tree design
- 043. Index types and when to use them
- 054. Always check these
- 065. Finding unused, duplicate and missing indexes
- 076. Engine notes
- 087. Maintenance
- 09Common mistakes
Version and changelog
Latest version 1.0.0. Requires DevBuildKit CLI 1.0.0 or newer.
Changelog — Database Indexing
1.0.0
- Initial release.