embeddables init injects Cursor rules, Claude project context, Codex context (AGENTS.md), and Antigravity rules so the assistant understands Embeddable components, keys, and conventions. Use the sections below to get the most out of each tool.
How the context files work
embeddables init creates a shared AI-README.md at the project root containing the full Embeddables CLI development guide (file structure, component types, id/key rules, action values, etc.). Each AI editor’s rule file is a short pointer to that shared file rather than duplicating the full content. This keeps the rule files small and easy for AI tools to load, while AI-README.md remains the single source of truth.
To keep all files up to date after a CLI upgrade, run embeddables upgrade — it automatically refreshes AI-README.md and all rule files to match the installed version.
Cursor
When you runembeddables init, the CLI can add a Cursor rule so Cursor AI has full context when you edit Embeddables:
- Where it goes:
.cursor/rules/embeddables-cli.md - What it does: A short pointer file marked
alwaysApply: truethat referencesAI-README.md. Cursor loads the shared guide automatically for every conversation, so you don’t need to mention it each time. - Referencing it in chat: If you want to be explicit, you can @-mention the file in the composer, e.g.
@AI-README.md, so the model is sure to use it for the current task. - Re-injecting: If you delete
.cursor/rules/embeddables-cli.mdor want the latest version, runembeddables initorembeddables upgrade; both will overwrite or recreate the rule file.
action values or keys that start with a number.
Claude
When you runembeddables init, the CLI can also add Claude (Claude Code / project) context:
- Where it goes:
.claude/withCLAUDE.md(short intro pointer) andembeddables-cli.md(pointer toAI-README.md). - What it does: Claude uses these files as project context when you work in the repo. The pointer in
.claude/embeddables-cli.mddirects Claude toAI-README.md, which covers pages, global components, styles, computed fields, actions, and component primitives. - Referencing it in prompts: In a Claude Code or project prompt, you can say: “Always read the Embeddables CLI context before starting (e.g.
AI-README.md).” For complex tasks (e.g. building multiple pages from designs), the CLI repo also includes example prompts in.prompts/custom/(e.g. build-funnel style) that you can adapt and paste into Claude. - Re-injecting: Run
embeddables initorembeddables upgradeto recreate or refresh.claude/with the latest content.
Codex
When you runembeddables init, the CLI generates an AGENTS.md file at the project root:
- Where it goes:
AGENTS.md(project root) - What it does: Follows the OpenAI Codex convention. A short pointer to
AI-README.md, giving Codex full awareness of the project’s file structure, component types, and conventions. - Re-injecting: Run
embeddables initorembeddables upgradeto regenerate or updateAGENTS.mdwith the latest content.
Antigravity
When you runembeddables init, the CLI generates an Antigravity rules file at .agent/rules/embeddables-cli.md:
- Where it goes:
.agent/rules/embeddables-cli.md - What it does: Follows the Antigravity convention. Includes Antigravity-specific frontmatter (
globs,alwaysOn: true) and points toAI-README.mdso the context is always active for relevant files. - Re-injecting: Run
embeddables initorembeddables upgradeto regenerate or update.agent/rules/embeddables-cli.mdwith the latest content.
Tips and best practices for prompt writing
Getting the best results from Cursor or Claude when editing Embeddables:-
Be specific about files and components.
Name the file you want changed (e.g.
embeddables/<id>/pages/welcome.page.tsx) and, when relevant, the component key or id (e.g. “the CustomButton with keysubmit_btn”). That keeps edits scoped and avoids accidental changes elsewhere. -
For big tasks (e.g. building from screenshots or docs), use a plan-first style.
Ask for a short plan and list of decisions/uncertainties before editing. Example: “Create a plan and highlight any decisions or things you’re unsure about, especially around which components to use. Then implement.” The CLI’s example prompt in
.prompts/custom/build-funnel.mdfollows this pattern (plan, then build, then summary of decisions/assumptions/uncertainties). - Attach images when possible. If you have a screenshot of what you want the result to look like (for example, “build a page like this example layout”), include it with your prompt. Likewise, if something’s wrong with the page as rendered, adding a screenshot of the issue can help Cursor or Claude diagnose and fix the problem much more quickly. Screenshots provide visual clarity that’s sometimes hard to convey with just words or code snippets.
- Model choice. For best results, use Opus 4.6 when available (e.g. in Claude). It thinks a little longer but produces very accurate results for Embeddables edits.

