Skip to content

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.

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:

Terminal window
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-context

Codex, Antigravity and Cursor all read project skills from .agents/skills/, so one copy there serves all three.

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):

Terminal window
claude plugin marketplace add lradomski10m/snap4id-sdk
claude plugin install snap4id@snap4id-sdk

In 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):

Terminal window
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:

Terminal window
cp "$S4/agent-context/AGENTS.md" AGENTS.snap4id.md

Check: /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:

Terminal window
mkdir -p .agents/skills && cp -R "$S4/agent-context/skills/." .agents/skills/
cat "$S4/agent-context/AGENTS.md" >> AGENTS.md

Check: /skills lists them, or type $ to pick one. Restart Codex if one is missing (it reads AGENTS.md once per run).

Antigravity reads workspace skills from .agents/skills/ and global ones from ~/.gemini/config/skills/, and reads AGENTS.md in the workspace as a rule:

Terminal window
mkdir -p .agents/skills && cp -R "$S4/agent-context/skills/." .agents/skills/
cat "$S4/agent-context/AGENTS.md" >> AGENTS.md

Check: the Customizations menu of the agent panel lists the skills; /snap4id-integrate-embed runs one.

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:

Terminal window
mkdir -p .agents/skills && cp -R "$S4/agent-context/skills/." .agents/skills/
cat "$S4/agent-context/AGENTS.md" >> AGENTS.md

Check: Customize → Skills lists them; type / in Agent chat to run one.

Confirm in your agent’s documentation where it reads instructions and skills. The files can also be downloaded from these docs:

Terminal window
mkdir -p .agents/skills
curl -fsSL https://<these docs>/agent-context/AGENTS.md -o AGENTS.snap4id.md
for 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"
done

Then reference AGENTS.snap4id.md from your own instructions file, or append it there.