Agent context
Documents @snap4id-sdk/app-embed 1.0.0 · @snap4id-sdk/partner-api 1.0.0
These docs are published in forms a coding agent can load:
| File | What |
|---|---|
/llms.txt |
index of every page, with the key rules up front |
/llms-full.txt |
all pages in one Markdown file |
/llms-small.txt |
the same, condensed |
/agent-context/AGENTS.md |
drop-in instructions for your repository |
/agent-context/CLAUDE.md |
for Claude Code: imports AGENTS.md |
/agent-context/skills/<name>/SKILL.md |
task skills: try the example locally, then go live, integrate the embed, verify receipts in your backend, debug a stuck purchase |
The same files are the agent-context/ folder of the SDK repository,
github.com/lradomski10m/snap4id-sdk. They describe only the public SDK
and hold no keys or partner data. Update them when you update the SDK.
Install the skills
Section titled “Install the skills”Your agent needs the rules (AGENTS.md) and the skills (skills/<name>/). Fetch the folder once, then run the
commands for your agent from your project’s root:
S4="$(mktemp -d)/snap4id-sdk"git clone --depth 1 --filter=blob:none --sparse https://github.com/lradomski10m/snap4id-sdk.git "$S4"git -C "$S4" sparse-checkout set agent-contextCodex, Antigravity and Cursor all read project skills from .agents/skills/, so one copy there serves all three.
Claude Code
Section titled “Claude Code”Install the skills as a plugin from the SDK repository (add --scope project to the second command to record it in
the project’s .claude/settings.json; each teammate still runs both commands once):
claude plugin marketplace add lradomski10m/snap4id-sdkclaude plugin install snap4id@snap4id-sdkIn a session, the same is /plugin marketplace add lradomski10m/snap4id-sdk and /plugin install snap4id@snap4id-sdk.
Plugin skills are namespaced, for example /snap4id:snap4id-integrate-embed. To copy the skills instead, use
.claude/skills/ (this project) or ~/.claude/skills/ (all your projects):
mkdir -p .claude/skills && cp -R "$S4/agent-context/skills/." .claude/skills/The rules are not part of the plugin. Claude Code reads CLAUDE.md and falls back to AGENTS.md only when there is no
CLAUDE.md, so copy the file and import it with the line @AGENTS.snap4id.md in your CLAUDE.md:
cp "$S4/agent-context/AGENTS.md" AGENTS.snap4id.mdCheck: /skills lists the four skills (/reload-skills picks up a newly copied one).
Codex reads skills from .agents/skills/ in every folder from the working directory up to the repository root, and
from ~/.agents/skills/ for all your projects. It reads AGENTS.md but has no import, so append the rules:
mkdir -p .agents/skills && cp -R "$S4/agent-context/skills/." .agents/skills/cat "$S4/agent-context/AGENTS.md" >> AGENTS.mdCheck: /skills lists them, or type $ to pick one. Restart Codex if one is missing (it reads AGENTS.md once per
run).
Antigravity
Section titled “Antigravity”Antigravity reads workspace skills from .agents/skills/ and global ones from ~/.gemini/config/skills/, and reads
AGENTS.md in the workspace as a rule:
mkdir -p .agents/skills && cp -R "$S4/agent-context/skills/." .agents/skills/cat "$S4/agent-context/AGENTS.md" >> AGENTS.mdCheck: the Customizations menu of the agent panel lists the skills; /snap4id-integrate-embed runs one.
Cursor
Section titled “Cursor”Cursor reads skills from .agents/skills/ or .cursor/skills/ (this project) and ~/.agents/skills/ or
~/.cursor/skills/ (all projects); it also loads .claude/skills/, so skills copied for Claude Code work too. It reads
AGENTS.md at the project root:
mkdir -p .agents/skills && cp -R "$S4/agent-context/skills/." .agents/skills/cat "$S4/agent-context/AGENTS.md" >> AGENTS.mdCheck: Customize → Skills lists them; type / in Agent chat to run one.
Other agents
Section titled “Other agents”Confirm in your agent’s documentation where it reads instructions and skills. The files can also be downloaded from these docs:
mkdir -p .agents/skillscurl -fsSL https://<these docs>/agent-context/AGENTS.md -o AGENTS.snap4id.mdfor s in snap4id-try-example snap4id-integrate-embed snap4id-verify-receipts-backend snap4id-debug-stuck-purchase; do mkdir -p ".agents/skills/$s" && curl -fsSL "https://<these docs>/agent-context/skills/$s/SKILL.md" -o ".agents/skills/$s/SKILL.md"doneThen reference AGENTS.snap4id.md from your own instructions file, or append it there.
