Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

hydrogen-collection-browser

Skill by Shopify

Guides building collection and search browsing UI with @shopify/hydrogen. It covers filters, sort controls, active filter chips and URL-synced browse state. Intended for developers creating or reviewing Hydrogen collection and search pages.

  • Score 90
  • 2.2k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install hydrogen-collection-browser

Built from the published package, never by AI.

git clone --depth 1 https://github.com/Shopify/hydrogen /tmp/hydrogen && mkdir -p ~/.claude/skills && cp -r /tmp/hydrogen/packages/hydrogen/skills/hydrogen-collection-browser ~/.claude/skills/hydrogen-collection-browser

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install hydrogen-collection-browser in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

hydrogen-collection-browser is a Shopify agent skill for building collection and search browsing UI with @shopify/hydrogen. It covers /collections, /collections/:handle and /search routes, product grid filtering and sorting, active filter chips, clear links, and no-JS GET form fallbacks. Hydrogen's collection store manages browse intent such as filters, sort, URL params and loading status. The framework loader or server component owns Storefront API queries and passes products into the UI.

The skill sets rules for the server data contract, filter and sort controls, currency-aware price inputs, load-more links, and search terms kept in the q parameter. It also lists anti-patterns and verification steps, such as checking that filters persist after reload and work with JavaScript disabled. It is aimed at developers who build, modify or review storefront collection and search pages in Hydrogen.

Written from the project's SKILL.md and checked against it.

What it can do

  • Collection routesGuides building /collections and /collections/:handle pages with parsed filter, sort and URL params.
  • Search resultsCovers /search pages that reuse collection browse state and keep the search term in q.
  • Filter controlsChooses checkboxes for list and boolean filters and min/max inputs for price range filters.
  • Sort controlsBuilds sort options with getSortByValue and submits sort changes immediately on change.
  • Active filter chipsSerializes active filters into chips and removes one filter with getFilterRemovalUrl.
  • No-JS fallbacksUses a GET form with an explicit action and GET load-more links so filtering works without JavaScript.
  • Currency-aware price inputsShows the narrow currency symbol from formatMoney and labels inputs with the currency code.
  • Analytics view elementsPoints to ProductView and CollectionView wrapping rules in the hydrogen-analytics skill.

What you need

  • @shopify/hydrogen package
  • Storefront API access for product and filter queries

Try asking

  • Add a price range filter with a currency symbol to my Hydrogen collection page
  • Review my search page so filters keep the q parameter
  • Make my collection filters and sort work with JavaScript disabled

Good to know

  • Price inputs use type number, so comma decimals may submit empty in some browsers.
  • Search sorts other than price map back to RELEVANCE.
  • Products are not stored in the collection store and must come from the framework data response.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: packages/hydrogen/skills/hydrogen-collection-browser/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md11 KB
  • references/nextjs.md5 KB
  • references/nuxt.md4 KB
  • references/react.md13 KB

Alternatives to hydrogen-collection-browser

All alternatives →

Compare with shopify, shopify-development or ticketmaster

hydrogen-collection-browser: common questions

Does this skill fetch product data itself?

No. The source says the framework loader or server component owns Storefront API queries, and the collection store does not hold products.

How do filters work without JavaScript?

The browse form uses method get with an explicit action, so submitting loads the filtered URL. Load-more links carry the next-page cursor as a plain GET link.

How are price filter values written to the URL?

Price inputs are type number with min 0 and step any, so the URL carries plain numeric filter.v.price.gte and filter.v.price.lte values without a symbol.

How do I install hydrogen-collection-browser?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is hydrogen-collection-browser free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is hydrogen-collection-browser safe to use?

It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to hydrogen-collection-browser?

Similar skills: shopify, shopify-development, ticketmaster, seo-ecommerce.

hydrogen-collection-browser Install

Add to stack

Loading.