Skip to main content

Implement with an AI Assistant

Faslet ships an AI assistant skill that integrates the widget into your storefront for you. Drop it into your repository, ask your coding assistant to implement Faslet, and it walks through the full integration in context — the product-page widget, variant and add-to-cart wiring, and order tracking — using the same steps documented in this section.

It works with Claude Code, OpenAI Codex / Cursor, and GitHub Copilot. The skill body is identical across all three; only the file you install differs.

Install

Run the matching command from the root of your storefront repository.

Claude Code

curl --create-dirs -o .claude/skills/implement-faslet/SKILL.md \
https://docs.faslet.net/skills/implement-faslet/SKILL.md

Then, in Claude Code, run:

/implement-faslet

OpenAI Codex / Cursor

curl -o AGENTS.md https://docs.faslet.net/skills/implement-faslet/AGENTS.md

If you already have an AGENTS.md, append the downloaded file to it instead of overwriting, then ask your assistant to "implement Faslet".

GitHub Copilot

curl --create-dirs -o .github/copilot-instructions.md \
https://docs.faslet.net/skills/implement-faslet/copilot-instructions.md

Then ask Copilot Chat to "implement Faslet".

What it does

Once invoked, the assistant:

  1. Detects your platform and picks the lightest integration path (a Faslet app or package where one exists, otherwise the headless web component).
  2. Adds the <faslet-app> widget to the product page.
  3. Wires up variants, colors, and add-to-cart via the window._faslet object.
  4. Adds order tracking to your order-confirmation / thank-you page.
  5. Checks the result against the Integration Checklist.

It will ask you for anything it can't find in the repo — most importantly your shop ID (provided by Faslet) and the product identifiers described in Product IDs and Variants.

tip

The skill is a starting point that follows our recommended integration. Always validate against the Integration Checklist, and reach out to support@faslet.me or the Partner Portal if the button, styling, or features don't appear as expected.