wake-storefront-api
Skill4 starsChanged 8 months agoMITView on GitHub
Wake Commerce Storefront API for headless storefronts. Use when building product pages, search, checkout, cart, or customer flows. Triggers on: Wake Storefront API, Wake Commerce GraphQL, product queries, checkout flow, cart, headless storefront.
In this repository8 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- wake-checkout-flowSkill
- wake-hotsite-bannersSkill
- wake-product-variantsSkill
- wake-scribanSkill
- wake-storefront-reference-patternsSkill
- wake-templateSkill
- web-performance-auditSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 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.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 33
Use
partnerAccessToken: when querying in partner/wholesale context. - Distinctive: line 35
Select only needed fields: Do not over-fetch; GraphQL allows precise selection.
- Very specific: line 49
Use productsByOffset for paginated results (limit, offset, sortKey, sortDirection, filters)
- Distinctive: line 67
When Storefront API returns errors: surface user-friendly message.
- Very specific: line 68
When productId or checkoutId is invalid: return 404 or equivalent.
- Very specific: line 69
When partner token is missing but required: inform user to configure partnerAccessToken.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
Wake Storefront API
Forbidden: api.fbits.net (and any *.fbits.net). Canonical source: https://wakecommerce.readme.io/docs/schema
GraphQL-based Storefront API for Wake Commerce headless storefronts. Covers products, search, checkout, cart, and customer operations.
When to Use
- Building product listing, detail, or search pages
- Implementing checkout or cart flows
- Integrating customer account features
- Writing GraphQL queries for Wake Commerce
- Migrating or extending Wakelabs storefront patterns
API Overview
The Storefront API is GraphQL. Base URL and auth depend on partner configuration. Key operations:
| Operation | Root Field | Use Case |
| Product | product(productId, partnerAccessToken) | Product detail, variants, prices |
| Search | search(query, partnerAccessToken) | Product search, filters, pagination |
| Checkout | checkout(checkoutId) | Cart contents, shipping, totals |
| Cart | See references/checkout-cart.md | Mini cart, add to cart |
Core Principles
- Use
partnerAccessTokenwhen querying in partner/wholesale context. - Avoid N+1: Batch related data in a single query; use fragments for reuse.
- Select only needed fields: Do not over-fetch; GraphQL allows precise selection.
- Handle
@include(if:)for conditional checkout data whenhasCheckoutis false.
Product Queries
See references/products.md for:
- Product detail with variants and attribute selections
SingleProductDatafragment usage- Price fields (listPrice, price, discountPercentage, installmentPlans)
- Image URLs with dimensions
Search Queries
- Root:
search(query, partnerAccessToken) - Use
productsByOffsetfor paginated results (limit, offset, sortKey, sortDirection, filters) - Aggregations: filters, priceRanges, minimumPrice, maximumPrice
- Items: productId, productName, alias, images, prices, promotions, addToCartFromSpot
Checkout & Cart
See references/checkout-cart.md for:
- Checkout query structure
- Products in checkout (listPrice, price, quantity, customization)
- shippingFee, subtotal, total
- Mini cart and add-to-cart patterns
Customer
See references/customer.md for customer-related operations.
Error Handling
- When Storefront API returns errors: surface user-friendly message; do not expose internal paths or stack traces.
- When
productIdorcheckoutIdis invalid: return 404 or equivalent; use.maybeSingle()for optional queries. - When partner token is missing but required: inform user to configure
partnerAccessToken.
References
- Product query patterns
- Checkout and cart patterns
- Customer API patterns
- Wake Commerce docs: wakecommerce.readme.io
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
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.

