Skip to content

Aetheria-Labs1/storefront-skills / skills/ab-test

ab-test

Verified

Analyze an editable Lexsis landing-page URL, plan one controlled change, build verified challenger pages, and create or evaluate a draft A/B test. Use for URL-first storefront experimentation, not ordinary page editing.

FileKindSize
SKILL.mdskill md2.5 KB
agents/openai.yamlconfig471 B
references/ab-testing.mdmarkdown6.3 KB
references/ad-to-page.mdmarkdown1.3 KB
references/animation-system.mdmarkdown11.1 KB
references/anti-patterns/copy-anti-patterns.mdmarkdown12.2 KB
references/anti-patterns/cro-anti-patterns.mdmarkdown17.8 KB
references/anti-patterns/dark-patterns.mdmarkdown23.9 KB
references/anti-patterns/design-anti-patterns.mdmarkdown9.3 KB
references/anti-patterns/mobile-anti-patterns.mdmarkdown9.7 KB
references/asset-prep.mdmarkdown6.9 KB
references/assets/asset-sourcing-sequence.mdmarkdown12.2 KB
references/assets/generation-policy.mdmarkdown25.9 KB
references/assets/image-jobs-by-page-type.mdmarkdown31.8 KB
references/assets/imagery-by-vertical.mdmarkdown24.8 KB
references/assets/slot-spec.mdmarkdown20.2 KB
references/assets/video-rules.mdmarkdown17.6 KB
references/authoring/css-and-styling.mdmarkdown4.0 KB
references/authoring/source-authoring.mdmarkdown9.0 KB
references/blob-shapes.mdmarkdown1018 B
references/cart-composition.mdmarkdown7.2 KB
references/cart-profile-management.mdmarkdown17.1 KB
references/consumer-behavior-cro.mdmarkdown12.7 KB
references/copy/copy-frameworks.mdmarkdown20.5 KB
references/copy/headline-and-cta-rules.mdmarkdown12.9 KB
references/copy/message-match.mdmarkdown9.2 KB
references/copy/voice-of-customer-mining.mdmarkdown10.9 KB
references/design-assets.mdmarkdown366 B
references/design-enrichment.mdmarkdown334 B
references/design-rules.mdmarkdown15.5 KB
references/generate-collection.mdmarkdown555 B
references/generation-protocol.mdmarkdown3.2 KB
references/islands/collection-grid/index.mdmarkdown5.4 KB
references/islands/collection-swipe/index.mdmarkdown4.1 KB
references/lexsis-mcp-contract.mdmarkdown14.2 KB
references/merchant-templates.mdmarkdown2.6 KB
references/module-authoring.mdmarkdown9.0 KB
references/offers/campaign-calendar.mdmarkdown21.4 KB
references/offers/funnel-stages.mdmarkdown17.6 KB
references/offers/offer-ledger.mdmarkdown5.1 KB
references/offers/offer-strategy.mdmarkdown9.6 KB
references/offers/offer-types.mdmarkdown36.6 KB
references/offers/price-presentation.mdmarkdown18.0 KB
references/offers/urgency-scarcity.mdmarkdown17.5 KB
references/page-editing.mdmarkdown9.7 KB
references/page-files.mdmarkdown2.7 KB
references/page-types/_checklist-format.mdmarkdown11.1 KB
references/page-types/_index.mdmarkdown21.9 KB
references/page-types/collection-landing.mdmarkdown21.9 KB
references/product-grid.mdmarkdown2.0 KB
references/proof/before-after-and-claims.mdmarkdown19.2 KB
references/proof/numbers-and-counts.mdmarkdown16.0 KB
references/proof/press-and-media-mentions.mdmarkdown12.5 KB
references/proof/proof-ledger.mdmarkdown8.3 KB
references/proof/reviews-sourcing.mdmarkdown24.8 KB
references/proof/trust-badges-certifications.mdmarkdown21.8 KB
references/proof/ugc-rights-and-display.mdmarkdown16.0 KB
references/publishing.mdmarkdown2.4 KB
references/qa-recipe.mdmarkdown4.3 KB
references/quiz-authoring.mdmarkdown14.5 KB
references/resource-templates.mdmarkdown7.7 KB
references/scroll-patterns.mdmarkdown1.2 KB
references/source-artifact-workflow.mdmarkdown3.7 KB
references/styling-hooks.mdmarkdown7.8 KB
references/traffic-source-google.mdmarkdown1.6 KB
references/traffic-source-meta.mdmarkdown1.5 KB
references/traffic-source-tiktok.mdmarkdown1.5 KB
references/vertical-beauty.mdmarkdown1.8 KB
references/vertical-fashion.mdmarkdown1.7 KB
references/vertical-food.mdmarkdown1.6 KB
references/vertical-home.mdmarkdown1.7 KB
references/vertical-luxury.mdmarkdown1.6 KB
references/vertical-supplements.mdmarkdown1.7 KB
references/workflow-intent.mdmarkdown2.0 KB
references/workflows/_how-to-read.mdmarkdown2.7 KB
references/workflows/copy-workflow.mdmarkdown1.5 KB
references/workflows/island-selection-workflow.mdmarkdown4.8 KB
references/workflows/section-asset-workflow.mdmarkdown5.8 KB

references/islands/collection-grid/index.md

View on GitHub
# CollectionGrid

For `CollectionGrid`, fetch `lexsis_design.islands` and
`lexsis_design.island_schema` during the decision that needs this behavior.
Use the current authoring example, variants, props, parts, hydration and
headless support; the bundled JSON is a compatibility reference, not a
second source of defaults.

`references/workflows/island-selection-workflow.md` owns selection and
linked state. `references/authoring/source-authoring.md` owns source syntax;
`references/authoring/css-and-styling.md` owns styling. Placement and evidence
come from the selected page-type contract and its domain policies.

## When to use

The product grid of a collection or category page, and any edit with more
than about 24 products. It loads the collection live from the Storefront API
by handle, so every product stays reachable with current price and stock.
Filters (the store's Search & Discovery filters), sort and the loaded page
live in the URL under Shopify theme names (`filter.p.product_type`,
`filter.v.price.gte`, `sort_by`, `page`), so a filtered view can be shared,
reloaded and crawled. "Load more" is a real link to the next `page`, not
endless scroll.

Not for a hand-picked rail of three to eight products (ProductCarousel or
FeaturedCollectionStage) or one product (BuyBox). A small curated edit whose
cards are chosen by hand may stay a static card list from
`references/product-grid.md`.

## Props that carry decisions

- `collection`: the collection handle from `lexsis_catalog.collections`.
  On a collection resource template use `"$resource"` (or omit it); the
  URL's collection binds at render time (`references/resource-templates.md`).
- `filterPlacement`: `chips` (default), `sidebar` (desktop column), `none`.
- `initialSort`, `pageSize` (default 24), `columns` per breakpoint,
  `aspectRatio` (one aspect across every card).
- `quickAdd`: on by default; Quick Add per card, direct add for one variant
  and a picker for several. `openCartOnAdd` opens the cart after each add
  (grid default); set `false` for a silent add that only updates the bag.
- `hideSoldOut`, `showCompareAt` (only with a ledger basis for compare-at),
  `hoverSecondImage`, `showSort`, `syncUrl`, `loadMoreLabel`, `emptyText`.
- `hideOnMobile`: render and fetch nothing below 768px. Use only together
  with a CollectionSwipe in the same section.
- `metafields`: every metafield a card template reads, as `namespace.key`.

## Card and empty-state templates

The default card is image, second image on hover, title, price and Quick
Add. For a merchant card, put `<template data-slot="card">` inside the
island; `<template data-slot="empty-state">` replaces the no-results message.
Card markup binds to each product with read-only attributes:

- `data-lx-product="<path>"` sets text; `data-lx-product-src`,
  `data-lx-product-href` (URL paths `url` or `images.N.url`) and
  `data-lx-product-alt` set attributes.
- `data-lx-product-if` / `data-lx-product-unless` keep or remove a node
  when the path is truthy, or for `tag:<tag>`.
- Paths: `id`, `handle`, `url`, `title`, `type`, `vendor`, `description`,
  `price`, `compareAt`, `available`, `images.0` to `images.3` with `.url`
  or `.alt`, and `metafields.<ns>.<key>` (listed in `metafields`).

Managed slots inside the card: `<lx-slot name="quick-add">` receives Quick
Add and is required exactly once while `quickAdd` is on;
`<lx-slot name="media">` receives a photo carousel of the product's images.

The compiler rejects unknown slots or paths, bindings outside the card
template, metafields missing from `metafields`, `<script>` and inline
handlers, emoji, and hover scale or translate classes. Hover feedback is
colour, shadow or the second-image crossfade.

## Parts

Style through the section id plus parts: `root`, `toolbar`, `filters`,
`filter-group`, `filter-chip`, `filter-price`, `filter-clear`,
`filter-count`, `sort`, `count`, `grid`, `card`, `card-media`, `card-image`,
`card-image-alt`, `card-title`, `card-price`, `compare-price`, `card-tag`,
`card-skeleton`, `quick-add`, `load-more`, `empty`, `error`, plus the
`quick-add-*` picker parts. Column count and aspect come from `columns` and
`aspectRatio` (`--lx-cg-*`), not page CSS.

## Examples

Live collection with chip filters:

```html
<lx-island name="CollectionGrid">
  <script type="application/json">{"collection":"festive-jewellery","pageSize":24,"initialSort":"best-selling","columns":{"mobile":2,"tablet":3,"desktop":4},"filterPlacement":"chips","quickAdd":{"enabled":true}}</script>
</lx-island>
```

Collection template bound to the URL's collection:

```html
<lx-island name="CollectionGrid">
  <script type="application/json">{"collection":"$resource","filterPlacement":"sidebar"}</script>
</lx-island>
```

Merchant card template with a metafield line:

```html
<lx-island name="CollectionGrid">
  <script type="application/json">{"collection":"festive-jewellery","metafields":["lexsis.card_line"]}</script>
  <template data-slot="card"><li class="xg-card"><a class="xg-card-media" data-lx-product-href="url"><lx-slot name="media"></lx-slot><span class="xg-tag" data-lx-product-unless="available">Sold out</span></a><a class="xg-card-name" data-lx-product-href="url" data-lx-product="title"></a><p class="xg-card-line" data-lx-product="metafields.lexsis.card_line"></p><p class="xg-card-price" data-lx-product="price"></p><lx-slot name="quick-add"></lx-slot></li></template>
</lx-island>
```

Desktop grid paired with the mobile deck: see
`references/islands/collection-swipe/index.md`.
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 198kUpdated Claude CodeCodexVerifiedInstall