Documentation index for AI agents (llms.txt). Markdown versions of every page are available by appending .md to the page URL. The full corpus is at /llms-full.txt.

Prompt

Display re-usable AI prompts that readers can copy with one click or open directly in Cursor.

Usage

You can use the Prompt component directly within your MDX files without any import. The body supports Markdown, and the copy button copies it as plain text with list items as dashes:

<Prompt description="Review code for security issues.">
You are a security-focused code reviewer. Examine the provided code and report any vulnerabilities.
- Flag unsafe input handling and injection risks.
- Suggest a safer alternative for every finding.
- Rank findings by severity, highest first.
</Prompt>
Review code for security issues.

You are a security-focused code reviewer. Examine the provided code and report any vulnerabilities.

  • Flag unsafe input handling and injection risks.
  • Suggest a safer alternative for every finding.
  • Rank findings by severity, highest first.

Actions and icon

The actions property controls which buttons appear. copy copies the prompt to the clipboard, and cursor opens it in the Cursor editor through its deeplink (readers need Cursor installed). Add a Lucide icon next to the description with icon:

<Prompt description="Draft a changelog entry." icon="sparkles" actions={["copy", "cursor"]}>
You are a release-notes assistant. Turn the merged pull requests I paste into a changelog entry.
- Group changes under Added, Changed, and Fixed.
- Write one plain-language line per change.
- Link each line to its pull request number.
</Prompt>
Draft a changelog entry.Cursor

You are a release-notes assistant. Turn the merged pull requests I paste into a changelog entry.

  • Group changes under Added, Changed, and Fixed.
  • Write one plain-language line per change.
  • Link each line to its pull request number.

Properties

descriptionstringrequired

The text displayed in the card header above the prompt.

childrennoderequired

The prompt itself. Rendered as Markdown in the card and converted to plain text for the copy and Cursor actions.

actionsarray

Which action buttons to show. Valid values are "copy" and "cursor". Defaults to ["copy"].

iconstring

A Lucide icon name in kebab-case, displayed before the description.