investigate-feed-query-perf
Skill by hipstersmoothie
Walks through investigating slow read-model queries in the standard-reader feed, from Honeycomb spans to EXPLAIN ANALYZE plans and verification. Written for developers working on that feed code.
Install investigate-feed-query-perf
Built from the published package, never by AI.
git clone --depth 1 https://github.com/hipstersmoothie/standard-reader /tmp/standard-reader && mkdir -p ~/.claude/skills && cp -r /tmp/standard-reader/.agents/skills/investigate-feed-query-perf ~/.claude/skills/investigate-feed-query-perfRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install investigate-feed-query-perf in Claude Code
git clone --depth 1 https://github.com/hipstersmoothie/standard-reader /tmp/standard-reader && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/standard-reader/.agents/skills/investigate-feed-query-perf ~/.gemini/antigravity-cli/skills/investigate-feed-query-perfAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install investigate-feed-query-perf in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a repeatable playbook for investigating a slow read-model query in the standard-reader feed, covering home, latest, discover, tag and search reads. It starts by finding the slow span in Honeycomb, then reproduces the request against prod-scale Neon data. It then covers running and reading EXPLAIN ANALYZE, known regression patterns, fix templates and verification steps.
The fix guidance names two known patterns: a correlated cutoff subquery and an inlined aggregation across a join. It points to a gated EXPLAIN benchmark, run with pnpm perf:explain, that fails when a hot table gets a sequential scan or a query exceeds its time budget. It is aimed at developers maintaining this feed code, since it refers to the repository's own files, accounts and memory notes.
Written from the project's SKILL.md and checked against it.
What it can do
- Find the slow spanUses Honeycomb MCP tools such as get_workspace_context, list_spans, run_query and run_bubbleup to locate slow feed spans.
- Reproduce at prod scaleExplains how to run a slow request against prod-scale Neon data using a local .env and perf test scripts.
- Read EXPLAIN plansShows how to run EXPLAIN (ANALYZE, BUFFERS) and interpret signals such as Seq Scan, SubPlan loops and buffer hits.
- Known regression patternsDescribes a correlated cutoff subquery and an inlined aggregation across a join, with the signs to look for.
- Fix templatesLists fix patterns in order of preference, with reference implementations in the feed query code.
- Verify the fixGives steps for EXPLAIN before and after, type and lint checks, wall-clock tests and post-deploy Honeycomb review.
- Add a regression guardDescribes adding an EXPLAIN spec case that asserts no Seq Scan on a hot table and an execution-time budget.
What you need
- Honeycomb access to the standard-reader dataset
- A Neon production DATABASE_URL in a local .env file
- pnpm, run from the repository root
- Perf test account credentials such as PERF_TEST_SESSION_TOKEN or PERF_TEST_IDENTIFIER with PERF_TEST_APP_PASSWORD
Try asking
- Find the slow span for feed.getHomePage in Honeycomb over the last 7 days
- Run EXPLAIN ANALYZE on the follow feed candidate query and read the plan
- Check whether my feed query change still avoids a Seq Scan on documents
Good to know
- Written for the standard-reader repository, its Honeycomb dataset, Neon database and memory notes
- The source says local .env points at prod Neon, with about 230ms round-trip time
- The regression spec runs only with FEED_PERF_TEST=1 and is not run in CI
- The source notes pre-existing check failures on a clean tree, including some vitest perf specs
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/investigate-feed-query-perf/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to investigate-feed-query-perf
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
investigate-feed-query-perf: common questions
When should I use this playbook?
Use it when a feed, home or latest query feels slow, a perf budget is blown, or a Honeycomb p95 or p99 tail needs explaining.
Why does EXPLAIN need prod-scale data?
Local and CI Neon branches are near-empty, and the planner makes different choices on small tables, so results there are not meaningful.
Is the regression spec run in CI?
No. The spec is gated on FEED_PERF_TEST=1 and is an operator-run check before a perf-sensitive deploy.
How do I install investigate-feed-query-perf?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is investigate-feed-query-perf free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is investigate-feed-query-perf safe to use?
It scores 52 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to investigate-feed-query-perf?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
