Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Design safe Django and PostgreSQL indexes from measured query plans, including B-tree, composite, covering, partial, expression, GIN/JSONB, BRIN, and concurrent migration patterns. Use when a Django query plan suggests missing or mismatched indexes, a production table needs an index without write downtime, or existing indexes need review.
.claude/skills/hashgraph-online-django-index-design/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | -10% | 0% |
| case-01 | ✗→✓ | ▲ Improved | -11% | 0% |
| case-03 | ✓→✓ | = Same ✓ | -12% | 0% |
| case-04 | ✓→✓ | = Same ✓ | -7% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 55% | 0% |
Use this skill to add or change indexes only after profiling shows a specific query can benefit. Indexes speed selected reads and constraints, but they add write cost, migration risk, and maintenance overhead.
ORDER BY for LIMIT queries when possible.Meta.indexes for normal model-owned indexes.AddIndexConcurrently and RemoveIndexConcurrently for live PostgreSQL tables.QuerySet.explain() or EXPLAIN ANALYZE.See index-patterns.md for index examples and migration templates.
atomic = False.Finish with before/after plan evidence, the exact migration operation, and the operational risk assessment for locks, writes, and rollback.
Other measured skills in the registry, with their headline benchmark lift.