agentleFS
Aetheria-Labs1Aetheria-Labs1/storefront-skills/skills/cart/SKILL.md

cart

Skill8 starsChanged 4 months agoMITView on GitHub

Inspect, assign, design, compose, or preview Lexsis cart profiles. Supports responsive design, scoped CSS, custom source-format modules, and read-only promotion diagnostics.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. 1398281322-a11y/java-backend-guardrails★ 2same name
    2. blyatiful1/ultraweb★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository10 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 2 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not invent products, prices, currencies, offers, or selling plans.

    line 28
  2. Very specific:

    Use page_id to inspect the effective profile and resolution source.

    line 40
  3. Very specific:

    Use cart_profile_id to inspect an editable profile.

    line 41
  4. Very specific:

    Use store_id to list profiles.

    line 42
  5. Very specific:

    Call lexsis_cart.capabilities before the first design or composition edit in a task.

    line 43
  6. Very specific:

    When requested, assign a published profile with lexsis_drafts action cart_set.

    line 48
  7. Very specific:

    Use before_module_id: "checkout" and region: "footer" for a block immediately above checkout.

    line 58
  8. Distinctive:

    Verify desktop and mobile.

    line 68
  9. Very specific:

    Use real catalog and review data in custom modules.

    line 71

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Configure a Cart

Cart profiles are managed separately from page section HTML.

Use lexsis_cart.get, lexsis_cart.capabilities, lexsis_cart.promotions, and lexsis_cart.preview. When requested, use lexsis_drafts.cart_set and lexsis_drafts.cart_edit. Resolve unfamiliar argument schemas with exact router/action discovery. An empty discovery result is not a cart outage; the actual cart call determines availability. Do not infer the effective cart profile from page HTML.

Resolve the target store from a page binding, an explicit saved choice, or the unambiguous default in work/storefront/setup/setup.json. If it is not saved, stop and ask the user to run /setup; never invoke setup automatically.

Rules

  • A page enables the cart through its supported page configuration; do not add DrawerShell or cart-line markup to page sections.
  • Effective profile order is page assignment, campaign assignment, store default, then legacy fallback.
  • Draft profile edits are not live until published in the Lexsis app.
  • Do not invent products, prices, currencies, offers, or selling plans.
  • Promotion, discount, offer, shipping-threshold, and cart-rule configuration is read-only through MCP. Never try to recreate those writes through another tool.
  • Custom modules use the same Lexsis source format as normal pages: HTML, <style>, section <script>, managed motion, and registered <lx-island> components. Cart lines, order summary, checkout, and DrawerShell remain renderer-owned.

Workflow

  1. Call lexsis_cart.get.
    • Use page_id to inspect the effective profile and resolution source.
    • Use cart_profile_id to inspect an editable profile.
    • Use store_id to list profiles.
  2. Call lexsis_cart.capabilities before the first design or composition edit in a task. Resolve island props through lexsis_design.island_schema.
  3. For discounts or offers, call lexsis_cart.promotions and report the configured profile values, active Shopify discounts, and readiness or conflict diagnostics without changing them.
  4. When requested, assign a published profile with lexsis_drafts action cart_set. Passing a null profile removes the page assignment.
  5. Edit a draft with lexsis_drafts action cart_edit and a partial patch. Supported areas are cart mode, typed design settings, responsive presentation, scoped custom CSS, and composition operations.
    • upsert adds or replaces one custom module from one source section.
    • move reorders a module within its header, body, or footer region.
    • set_enabled toggles custom or optional modules.
    • remove deletes only custom modules.
    • Use before_module_id: "checkout" and region: "footer" for a block immediately above checkout.
  6. Re-read the profile with lexsis_cart.get.
  7. Call lexsis_cart.preview.
    • Pass page_id to render the immutable cart draft version on the existing storefront page. The returned URL includes preview=1, cart_profile_id, and cart_version; it does not publish or synchronize Shopify discounts.
    • Omit page_id only when an isolated signed cart fixture preview is more useful. Verify desktop and mobile. Test both populated and empty cart states when the design changes structure.

Use real catalog and review data in custom modules. For example, a rotating review strip above checkout should use ReviewCarousel with an active review collection or merchant-confirmed reviews; never fabricate quotes or ratings. Cart triggers dispatch cart:open; they do not need a profile ID.

Custom CSS must remain scoped to the cart. External imports, remote URLs, script escapes, and unbalanced rules are not allowed.

Return

Report the effective profile, resolution source, composition and design changes, promotion diagnostics, preview URL/evidence, page assignment, and which actions still require review or publication in Lexsis.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.