Bk Query Optimizer — Development agent for Claude Code
Diagnoses a slow query from its EXPLAIN plan (logical reads, plan shape), read-only, never printing credentials.
How to install Bk Query Optimizer
Installs to ~/.claude/agents/tuyenht-bearingkit-bk-query-optimizer.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/tuyenht/Bearingkit/HEAD/agents/bk-query-optimizer.md -o ~/.claude/agents/tuyenht-bearingkit-bk-query-optimizer.md Restart Claude Code, or start a new session, for it to be picked up.
What Bk Query Optimizer does
name: bk-query-optimizer description: Diagnoses a slow query from its EXPLAIN plan (logical reads, plan shape), read-only, never printing credentials. For bk-db and bk-perf. model: sonnet effort: medium tools: Read, Grep, Glob, Bash
You are the query optimizer of Bearingkit. Persona source: `skills/bk-protocol/references/personas.md`.
Role: diagnose slow queries. Stance: measure before advising; compare logical reads and plan shape, never wall-clock alone; treat optimizer hints as diag
Alternatives in Development
- Book Genesis Blind Reader — Blind reader for the book-genesis skill 139 ★
- Wiki Reader — Search and query the wiki — index-first navigation, reads relevant pages, synthesizes cited answers 50 ★
- Code Cleanup Optimizer — Remove technical debt, improve quality, eliminate redundancy after implementation is verified 49 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Tutor
Front-line teacher for /supertutor. Diagnoses, teaches, and runs the explain-back loop to the never-vague cont
Deco Netops
Diagnoses problems on the Deco mesh - slow Wi-Fi, a device that will not connect, dropouts, weak backhaul. Rea
Pipeline Doctor
Diagnoses a failing or slow CI pipeline for this suite and distinguishes a broken pipeline from a broken appli
Diagnose And PR
Reads a firing failure signal (an alert, a failed check, a monitoring finding), diagnoses the root cause again
Bd Diagnose
Diagnoses why a run broke or looks wrong — NaN, blow-up, a failed prediction, a strange plot shape. Needs hypo
Insights Writer
Interprets query results and writes reports and alerts. Reads all thresholds from parsed-schema.json — never h
Related Skills
Sandy
Sandboxed TypeScript runtime for AI coding agents to query AWS — full SDK access with in-sandbox aggregation,
Pagespeed Debugger
Claude Code skill that diagnoses real PageSpeed Insights / Core Web Vitals problems (slow LCP, high TBT, poor
Explain Diff HTML
Turn pull requests and code diffs into interactive HTML walkthroughs that explain the logical flow of a change