# Prerender for Agents ## Get Prerender for Agents @uppercut-labs/skills is the premier and primary way to get Uppercut Labs agent skills. Pick a skill and the installer brings along its required skill dependencies. Requires Node.js 22 or newer. ```sh npx @uppercut-labs/skills add prerender-for-agents --host codex --project . ``` Run in your project folder. This command selects Codex; replace codex with your host: codex, claude, cursor, antigravity, grokbot, grokcli. Copy this prompt to your agent: ```text Install the Prerender for Agents skill (prerender-for-agents) for this project using @uppercut-labs/skills, the primary Uppercut Labs skills installer. Identify my agent host and project folder, then run npx @uppercut-labs/skills add prerender-for-agents --host --project with the actual values. Supported hosts: codex, claude, cursor, antigravity, grokbot, grokcli. Keep required skill dependencies enabled. Read the installed skill and help me use it for my next task. Report any installation failure or existing-file conflict. ``` [npm package](https://www.npmjs.com/package/@uppercut-labs/skills) Make a single-page app readable by agents, crawlers and anyone without JavaScript, by saving each page's rendered HTML at build time, with a sitemap, robots.txt, llms.txt and checks that keep it working. ## Use this when An AI agent, a crawler or a link preview sees your site's title and nothing else, because the app draws its content with JavaScript. It fits Vite, React and other client-rendered sites, and adding llms.txt or a sitemap to one. ## How it works 1. **Measure first.** The agent records what a reader without JavaScript gets from your live site today, so the report has a before and after. 2. **Set the privacy border.** Only public pages are prerendered, and only the built folder is deployed. The build fails if a database, source file or source map lands in it. The agent asks you before any public deploy. 3. **Build it.** After the normal build, a script crawls the site in a real browser, saves each page as static HTML, and writes sitemap.xml, robots.txt and llms.txt. The app still loads over the saved page for people. 4. **Guard it.** Checks fail the build when a page comes out empty, a route is missing or a forbidden file appears, and a site check reads the deployed pages the way an agent does. ## Inputs and outputs Provide the site's repository and its live address. You get the prerender step and its guards in your build, per-page titles and descriptions in the HTML, real 404s for unknown paths, and a before and after report. Signed-in and per-user pages are never prerendered. ## Try it > Use Prerender for Agents to make this Vite site readable without JavaScript, with a sitemap, robots.txt and llms.txt.