# Spatial Index

> Recommend and apply spatial index strategies for GIS datasets

- Skill: `danmaps/spatial-index` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add danmaps/spatial-index`
- Raw SKILL.md: https://api.skillmd.com/api/skills/danmaps/spatial-index/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: danmaps (https://skillmd.com/u/danmaps)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/danmaps/spatial-index

---


# Spatial Index

Recommend or apply spatial indexing to improve query performance.

## Inputs

- `dataset` (string)
- `platform` (string, optional: file_gdb, enterprise_gdb, shapefile)
- `operation` (string, optional: create, rebuild, check)

## Output

- Recommended index action
- Expected impact
- Exact ArcPy commands if applicable

## Example

**User:** “Create spatial index for Parcels in a file geodatabase.”

**Output:** ArcPy AddSpatialIndex step with warnings about locks.

## Intent

State the operational goal of the skill and what good output should accomplish.

## Outputs

Return a concise, usable result with the key artifacts or recommendations.

## Safety

Do not invent data, credentials, or system context. Flag uncertainty and risky operations clearly.


