Guides

Agents

Use prompts and reference files to help a coding agent install a cursor.

The prompts and skill give coding agents installation steps and ask them to:

  1. ask what kind of site it is (in one line) before changing anything;
  2. keep the cursor out of checkout, forms, dashboards and admin areas, scoping to marketing sections or skipping it;
  3. always offer a scope;
  4. apply the safeguards: avoid universal cursor overrides and !important in added cursor CSS, leave functional cursors native, and keep focus outlines;
  5. verify with a short checklist.

These are instructions, not guarantees. Review the agent’s changes and test the cursor and keyboard navigation on your site.

Per-cursor prompt

Every cursor page has Copy agent prompt. It carries your chosen variant, accent, scope, mode and install route (downloaded files or npm), with the exact commands and tags for that cursor. Downloaded zips include the same prompt as AGENT_PROMPT.md.

General prompt

On the Agents page: a prompt that lets the agent choose a set and cursor with you.

Agent skill

Download the skill: SKILL.md (the workflow and safeguards) plus reference/catalog.md (install steps for every cursor). Unzip it into your agent’s skills folder; for Claude Code that’s ~/.claude/skills/ or .claude/skills/ in a project.

llms.txt

  • /llms.txt: an index of the docs and every cursor.
  • /llms-full.txt: adds the general prompt and every cursor’s install steps.
  • /catalog.json: the machine-readable catalog (ids, sets, packs, hotspots, SVG source, options).

Building prompts yourself

The prompt builder is part of the package and is browser-safe. The following example uses JSON import attributes; support for these depends on your runtime or bundler:

import { agentPrompt } from 'glint-cursors/agent';
import catalog from 'glint-cursors/catalog.json' with { type: 'json' };
import product from 'glint-cursors/product.json' with { type: 'json' };

const entry = catalog.cursors.find((c) => c.slug === 'bold-arrow');
const prompt = agentPrompt(entry, { variant: 'dark', scope: '#hero', via: 'npm' }, product);