跳到技能内容
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
词映 AI导航
工具库Skills 技能
我的收藏
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
Skills directory/jeremylongshore/claude-code-plugins-plus-skills/analyzing-database-indexes

Database Index Advisor Skill for PostgreSQL Query Plans

Review query predicates in Claude Code, test a multicolumn index locally, and compare execution plans and buffer use.

中文

Install in Claude Code

Use psql, a disposable PostgreSQL database, and a synthetic orders table. Real workload analysis also needs approved read-only statistics access and representative data.

  1. Get the complete `plugins/database/database-index-advisor/skills/analyzing-database-indexes` directory from the pinned GitHub commit.
  2. Copy it into the target project's `.claude/skills/`. Check `.claude/skills/analyzing-database-indexes/SKILL.md`, start Claude Code at the project root, and call `/analyzing-database-indexes`.

Example task

Spread 100,000 orders across 100 customers and 100 dates. Capture EXPLAIN (ANALYZE, BUFFERS) for customer 17 in the final week. Add (customer_id, created_at), analyze the table, and rerun the same query.

What to check

Record scan nodes, rows, and buffers for both plans. Preserve a sequential plan if selected and investigate the measured selectivity.

Original SKILL.md on GitHub · Updated 2026-11-13

Frequently asked question

Does a sequential scan always require an index?

Assess the matching fraction, table size, frequency, and write cost. A sequential scan can be appropriate for a small table or broad predicate.

Browse Claude Code skills in the Chinese directory
词映 AI 导航Skills 技能
工具分类全部工具已本地化技能选型指南AI 快讯