# Build Indexes

> Build a feature's index-database — component/archetype indexes for O(1) lookup. As needed.

- Skill: `adobe/build-indexes` (Agent Skill)
- Install (CLI): `npx skillmds@latest add adobe/build-indexes`
- Raw SKILL.md: https://api.skillmd.com/api/skills/adobe/build-indexes/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: Adobe (https://skillmd.com/u/adobe)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/adobe/build-indexes

---


Skip if this feature doesn't contain or require indexes.

Create `services/main-service/index-database/`: `index-database.ts` (extends `CoreDatabase`, adds the `indexes`
facet from `./indexes/index.js`) plus an `indexes/` folder — one index per file + an `index.ts`
barrel.

Only if the feature needs indexed lookups. Comes after `core-database`.

The how is in the auto-loading `features/services/main-service/indexes.md` rule.

