directory-load-performance
Skill by convex
Explains how to make public, read heavy Convex and Vite pages load faster on first visit, return visits and in app navigation. Written for developers working on the AI Plugin Index site or similar Convex and Netlify projects.
Install directory-load-performance
Built from the published package, never by AI.
git clone --depth 1 https://github.com/convex/components-submissions-directory /tmp/components-submissions-directory && mkdir -p ~/.claude/skills && cp -r /tmp/components-submissions-directory/.codex/skills/directory-load-performance ~/.claude/skills/directory-load-performanceRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install directory-load-performance in Claude Code
git clone --depth 1 https://github.com/convex/components-submissions-directory /tmp/components-submissions-directory && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/components-submissions-directory/.codex/skills/directory-load-performance ~/.gemini/antigravity-cli/skills/directory-load-performanceAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install directory-load-performance in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a performance playbook for public, read heavy pages built with Convex and Vite. It describes a checklist for any public page. The main pattern is a single bootstrap request: one internal Convex query serves the page data through a GET HTTP action, and an inline script in index.html starts that fetch before the JavaScript bundle loads. The page falls back to normal public queries if the bootstrap fails or stalls. Other parts cover caching the default view in localStorage, client side navigation between app pages, prefetching on hover, lazy loading analytics and markdown, sized image thumbnails, and checking Netlify headers with curl.
The source reports results from one perf pass on its repo: card render time went from about 1.5s to 0.9s, return visits from about 890ms to 190ms, and the entry bundle from 1,096 KB to 625 KB. It is aimed at developers maintaining a public catalog or content site on Convex with a Vite front end and Netlify hosting. Many file paths and examples refer to that specific repo.
Written from the project's SKILL.md and checked against it.
What it can do
- Bootstrap endpointServes all data for a public page in one GET request, with a fallback to normal queries.
- Early data fetchStarts the data request from an inline script in index.html before the bundle loads.
- Local cacheRenders a versioned, age limited localStorage copy of the default view, then revalidates.
- Client navigationUses history pushes between app pages while full loads stay for files, API routes and other origins.
- Hover prefetchStarts the next page's data and lazy chunks when a user hovers or touches a link.
- Lazy analyticsLoads analytics after the load event and idle time, inside an error boundary.
- Image sizingUses srcset, sizes, a CDN resize route and a fallback to the original image.
- Header verificationChecks live cache headers with curl after each deploy, since config files may not apply.
What you need
- Convex project
- Vite front end
- Netlify hosting for the _headers and _redirects rules
Try asking
- Make our public components page load faster on first visit
- Check whether our Netlify cache headers are live after deploy
- Add a lazy loaded analytics component to our public site without slowing the entry bundle
Good to know
- Many paths and examples are specific to the source repo.
- netlify.toml header and redirect blocks are ignored, so rules must go in netlify/_headers and netlify/_redirects.
- Custom headers do not apply to responses from an edge function.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .codex/skills/directory-load-performance/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to directory-load-performance
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
directory-load-performance: common questions
Does this work for any Convex and Vite site?
The patterns are general, but the source describes them using files and routes from one specific repo. Paths and URLs would need to be adapted.
Why does the playbook avoid useQuery for the first paint?
The source says a public catalog should load through a bootstrap GET request rather than useQuery, so the page does not wait for a websocket connection.
What performance results does the source report?
It reports card render time from about 1.5s to 0.9s, return visits from about 890ms to 190ms, and the entry bundle from 1,096 KB to 625 KB.
How do I install directory-load-performance?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is directory-load-performance free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is directory-load-performance safe to use?
It scores 54 of 100. Grades: maintenance B, 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 directory-load-performance?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
