Use it with a coding agent
Three ways to hand Glint to Claude Code, Cursor or any other coding agent. All of them ask what kind of site it is first, keep the cursor out of checkout, forms, dashboards and admin areas, always offer a scope, and never use * or !important.
1. A prompt for one cursor
Every cursor page has a Copy agent prompt button. The prompt carries the variant, colour, scope and install route you picked, with the exact install steps for that cursor. This is the most precise option.
2. A general prompt
Lets the agent pick a set and cursor with you.
# Add a custom cursor with Glint
You are adding a website cursor from Glint (npm: `glint-cursors`). Follow these steps; don't improvise extra CSS.
1. Ask the user in one line: "What kind of site is this, which sections should get the custom cursor, and do you want a simple static cursor or an animated one?" Keep the cursor out of: checkout, cart and payment; sign-in, sign-up and other form-heavy flows; dashboards and admin tools; health, government and education services; anywhere the cursor itself is part of a task (drawing, maps, editors, games). If the site has those areas, scope the cursor to its marketing sections (for example `#hero`) or skip it.
2. Choose a set. **Static** (default recommendation): CSS and SVG, no JavaScript, changes between normal and hover with no animation. **Animated**: grows, morphs, shows labels or arrows; its runtime loads for a fine, hover-capable primary pointer when accessibility settings allow it.
3. Choose a cursor. Static ids: bold-arrow, chevron-arrow, design-arrow, head-arrow, hollow-arrow, line-arrow, paper-plane, sharp-arrow, slim-arrow, soft-arrow, teardrop, wedge-arrow, asterisk, capsule, corners, diamond, dot, plus, ring, target, x-mark, hexagon, kite, orbit, quad, square, triangle, pixel-arrow, pixel-chevron, pixel-diamond, pixel-plus, pixel-square, pixel-x, sketch-arrow, sketch-chevron, sketch-circle, sketch-plus, sketch-square, sketch-x, blob, bolt, bubble, cloud, heart, moon, petal, star, duo-arrow, duo-diamond, duo-dot, duo-square, duo-star. Animated ids: morph, dot-ring, elastic, squish, blob, spotlight, arrow-chip, brand. Variants: light (dark fill, for light pages), dark (light fill, for dark pages), accent (brand colour).
4. Install.
- Static: `npm install --save-dev glint-cursors`, then `npx cursor-static <id> --variant <light|dark|accent> [--accent "#hex"] [--scope "<selector>"] --out public/cursors`, then link `/cursors/<id>-<variant>.css` once in the document head.
- Animated: `npm install glint-cursors`, then in the browser only: `const cursor = await loadCursor({ family: '<id>', variant, scope, mode: 'replace' })` from `glint-cursors/animated`; call `cursor?.destroy()` on unmount.
- Never use the universal selector `*` or `!important` for cursors. They override text, not-allowed, zoom and every other native state.
- Preserve text, not-allowed, wait, grab, zoom and resize cursors. CSS inheritance and existing site rules can affect the result, so test these states and use a native region where needed.
- Do not add broad `cursor:` rules to links or buttons to "help". Generated hover rules exclude disabled controls; verify their cursor explicitly, since it may inherit a custom cursor.
- Do not hide or restyle focus outlines. Keyboard users must see focus exactly as before.
- Never convey information only through the cursor; anything it signals must also be on the page.
- Treat custom cursors as progressive enhancement. Test fallbacks with the site CSS and browser; scope away from sensitive areas or use `data-cursor="native"` for regions that need the native cursor.
- Check a fine, hover-capable primary pointer, forced colours, increased contrast and reduced motion. Confirm the native fallback where appropriate; Static CSS requires `prefers-contrast: no-preference`.
- Built-in variants validate 3:1 contrast between fill and keyline, not against every background or custom brand image. Check visibility against the actual page.
- Plain text and contenteditable regions may lose the text I-beam. Animated replace mode does not preserve the OS pointer size or colour; Windows scaling for Static is not verified.
- Animated cursors hide during keyboard navigation, yield to many native cursor states and over iframe elements, and use enhance mode inside an iframe. Test error and pointer-exit fallbacks; they are not guaranteed.
- Test with keyboard only, a screen magnifier, 200% zoom and a large OS pointer. If you cannot perform a check, report it as unverified and give the user the manual check.
- Start the cursor once per page, in the browser only. Call `destroy()` on unmount; never create a second instance.
5. Hooks: `data-cursor="native"` (opt out an element), `data-cursor="hover"` (opt in a custom clickable element); Animated only: `data-cursor-label="View"`, `data-cursor-direction="left|right|up|down"`.
6. Offer a "Use default cursor" toggle: `setNativePreference(true|false)` from `glint-cursors/preference`, or set `data-cursor="native"` on `<html>`.
7. Verify: hover cursor on links and buttons; I-beam kept in text fields; disabled controls keep their cursor; focus outlines unchanged; no `*` or `!important` added.
3. The agent skill
A SKILL.md with the workflow and safeguards, plus reference/catalog.md with install steps for all 60 cursors. Unzip it into your agent's skills folder (for Claude Code: ~/.claude/skills/ or .claude/skills/ in a project).
llms.txt
/llms.txt lists the docs and every cursor. /llms-full.txt adds the general prompt and every cursor's install steps in one file. /catalog.json has the machine-readable catalog.