Diagnose Seq Scans — Development skill for Claude Code
Remedy high seq scans on a table.
How to install Diagnose Seq Scans
Installs to ~/.claude/commands/civitai-civitai-diagnose-seq-scans.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/civitai/civitai/HEAD/.claude/commands/diagnose-seq-scans.md -o ~/.claude/commands/civitai-civitai-diagnose-seq-scans.md Restart Claude Code, or start a new session, for it to be picked up.
What Diagnose Seq Scans does
description: Remedy high seq scans on a table argument-hint: "[table name]"
Your goal is to diagnose why there are high volumes of seq scans in a postgres database. You'll be using the postgres MCP to interact with a read replica of a postgres database.
Workflow
- To prepare, use context7 to review documentation about views, joins, indexes, seq scans, and available diagnostic and stat tables/queries in postgres 17.
- Review the structure of the target table: $ARGUMENTS
- Review e
Alternatives in Development
- Repair Table — /repair-table — 修复表格 322 ★
- Release & Shipping Burn Patterns — Research Summary — Research completed: 2026-02-10 Sources: ~/.claude/CLAUDE.md (This Has Burned You Before table), SESSION_HANDOF 216 ★
- Guard — Safety guardrails — blocks destructive commands (rm -rf, DROP TABLE, force-push) and optionally restricts edit 63 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Cpv Batch Scope Diagnose And Fix
Same-turn diagnose + fix across a fleet of project folders. One cpv-doctor-agent per project scans the request
Atharvan Dtd
remedy-first for a bug class; each remedy is a charm (the fix) and a rite (the verification), contraindication
Dbbs Claude Code Workshop
Public datasets for the DBBS Claude Code workshop (airway RNA-seq, Moving Pictures 16S)
Analyze Degs
Differential expression from a count matrix with DESeq2. Use when the user has bulk RNA-seq counts and wants D
Deconvolve Immune
Estimate immune cell composition from bulk RNA-seq. Use when the user asks about tumour microenvironment, immu
Osp
Single-sample scRNA-seq QC → clustering/DEG → HTML report, with optional Claude-agent cell-type annotation
Related Agents
SQL
SQL specialist — schema design, indexes, query optimization, migrations, eliminating table scans and N+1 patte
Log Format Auditor
Scans real Claude Code logs (~/.claude/projects) read-only and reports drift from Kairos's interpretation rule
Atacseq Pipeline
Execute ENCODE ATAC-seq pipeline from FASTQ to accessibility peaks with Tn5 correction, Bowtie2, and MACS2