/web-skills:ecommerce-builderfrom web-skills
Build a complete online shop for consumer electronics (phones, laptops, tablets, watches, audio, TVs, appliances, accessories) with storefront, cart, checkout, order tracking, customer account and an admin dashboard (orders, products, inventory, customers, promotions, reports). The site is generated by a script from one shop.json, so layout and behaviour do not depend on the model. Use when the user asks for an e-commerce site, online store, web bán hàng, shop điện thoại, cửa hàng điện máy, trang thương mại điện tử or a store admin dashboard. Made for electronics catalogues (variants such as storage and colour, specs, installment); for an app's own admin screens use app-ui.
Ships in web-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You do not write HTML, CSS or JavaScript. You write one file, shop.json. scripts/build.py turns it into a full shop: home, category pages with filters, product pages, search, compare, cart, checkout, order confirmation, order tracking, customer account, stores, policies, 404, and an admin dashboard. All templates, styles, scripts and product drawings already exist. Your job is to choose well and fill in correct content.
SKILL below means the folder that holds this file; use whichever path you loaded it from. If you cannot run shell commands, stop and tell the user: the build is required.
Read the request and take the first row that matches.
| The user | Path |
|---|---|
| asks to look at a shop this skill already built ("xem giúp", "review", "chỗ nào chưa ổn", sends its link or a screenshot) | Review. Run lint and QA with --sweep on its dist, open the screenshots, then send one table: each problem with its kind (Broken: fails for any brand, such as overflow, low contrast, clipped text; Off-system: differs from the rest of the shop; Taste: a preference) and the fix in shop.json. Change nothing until the user picks the rows |
asks to change a shop already built (sites/<slug>/shop.json exists): a colour, a section, some copy, a product | Edit. Change only what was asked in that shop.json, keep the style, blueprint and layout parts as they are, rebuild, lint, QA, and report what changed. Pick another style, blueprint or layout part only when the user asks |
| gives a site this skill did not build (their own code, WordPress, another builder) | Say in one line that this skill builds from shop.json and does not edit other code; offer to build a new shop from their content (Step 1) |
| anything else | Build a new shop: Step 1 onwards |
A static site that runs from a folder or any static host. Cart, wishlist, compare, accounts, orders and every admin change are kept in the browser's localStorage, so the whole flow works as a demo: place an order in the shop, open admin/, confirm it, and the customer's tracking page shows the new status. It is not a live store: there is no server, no payment, no shared database. references/going-live.md lists what a real launch needs. Say this in your report.
dist/admin/ is built from the same shop.json; you configure nothing except the optional staff list. It has an overview with a date range picker, KPI tiles and charts, orders with quick view and bulk actions, products, stock, customers, promotions, reports and settings, with keyboard shortcuts and stacked cards on phones. references/admin.md lists every screen and feature; read it when you describe the admin in the report.
"demo": false) the history is empty: the admin shows only orders placed in this browser, and traffic figures (lượt truy cập, phễu, tỷ lệ chuyển đổi) stay empty until a real backend and analytics are connected. Say which case applies in the report.demo is checked in the browser. On a real shop the login page and the top bar say the admin is an unsecured preview; it must not be published before references/going-live.md is done.dist/. Change shop.json and rebuild."[Địa chỉ trụ sở]") and goes in your report.highlights, descriptions, card chips, promotions, FAQ answers, benefits, announcements, shipping times, policies and banner texts, every figure and model code (14650HX, 90 Wh, 2560x1600, 300.000) must appear in the brief, and promises such as "chính hãng", "tặng", "miễn phí", "trả góp", "hoàn tiền", "trong ngày", "lắp đặt", "rẻ nhất" must too. Sentences copied from the example shop are errors: its facts are made up. When the brief does not give a spec, leave the row out; a short spec table from the brief is correct, a long invented one is not. Only when the user asks you to invent a whole sample shop with no catalogue of its own do you set "sample_content": true, which turns this check off."demo": true marks a sample shop: the footer and admin say the data is a sample, pages carry noindex, and the admin is filled with generated orders and customers. Ratings, reviews, "đã bán" counts and flash-sale "sold" numbers are only allowed on a demo shop. On a real shop ("demo": false) reviews must be copied word for word from the brief and the build rejects invented ones. Never set demo to true to get around this on a real client's shop.references/content-rules.md. The build fails on emoji, arrows, em or en dashes, curly quotes, banned AI words and phrases that mark text as machine-written. Fix the wording.references/shop-schema.md. Unknown keys are build errors.Ask one short message for anything marked * that is missing. Do not stall on the rest.
If the user only wants a sample or a demo and gives no catalogue, use examples/demo-electronics.shop.json as the model, set "demo": true and "sample_content": true, invent a shop with fictional brands (never real brands with made-up specs or prices) and say so in the report. When the user gives a brief with products, sample_content stays off even on a demo: write only what the brief says.
The storefront comes in five styles. Each has its own header, homepage hero, product card, product page, listing page, footer, type and colour preset, so shops in different styles do not look alike. Pick by what the shop sells and how it sells; the admin is the same in all of them.
| Style | Pick it for | Example to copy |
|---|---|---|
retail | mass-market phone and electronics chains: dense cards, promotions, installment, flash sales (Thegioididong, CellphoneS) | examples/demo-electronics.shop.json |
premium | authorised resellers of flagship models: large product pictures, few words, white space (Apple and Samsung stores) | examples/styles/premium.shop.json |
gaming | gaming laptops, PC parts and gear: dark theme, specs first, shop by need, setup bundles (GearVN) | examples/styles/gaming.shop.json |
appliance | TVs and home appliances for families: big category icons, shop by room, delivery and installation services (Dien May Xanh) | examples/styles/appliance.shop.json |
boutique | accessory shops with a small curated range: collections, editorial pictures, warm calm palette | examples/styles/boutique.shop.json |
Set "style" in shop.json. To make a shop differ from another one in the same style, override parts in "layout", for example {"header": "centered", "card": "clean"}; the parts and their variants are in references/shop-schema.md. When several shops sit in sites/, the build fails if a new one shares the style, five of the six layout parts and the preset with another, and names the variants still free. Each style's notes, with its section data shapes, are in references/styles/<style>.md.
python scripts/build.py --list prints them with a one-line description; references/variant-catalog.md is the same list. Pick parts by what the brief says: a shop with one flagship line needs a different header and card than a chain with 2,000 SKUs.layout.hero: showroom and give each slide a bg taken from the product's photo; references/patterns.md ("Product banner hero") says what the owner expects from it."variant" on the section ({"type": "reviews", "variant": "quotes"}); parts with "layout". Data shapes of every section are in references/variants/*.md."blueprint": "<id>". python scripts/blueprints.py --style <style> lists real shops of that kind with their section order (25 recorded in data/blueprints/, with the research in docs/research/ecommerce-homepages.md (in the job repository, not shipped with this skill)); --show <id> prints the order with the section types that fit each slot. The build enforces the order and at least 4 of the blueprint's roles; any slot may be left out, so a small catalogue is fine. It is required on every shop except a sample_content one. Do not choose a blueprint by how short it is: choose the real shop whose business is closest to the client's.mkdir sites/<shop-slug>
copy the example of the chosen style (table above) to sites/<shop-slug>/shop.json
Then replace every value with the client's content:
"brief".theme.preset: leave it out to use the style's preset, or pick another from references/shop-schema.md ("Presets"); put the logo colour in theme.accent.categories: one per product family. device sets the drawn product art (phone, laptop, tablet, tv, watch, headphones, earbuds, speaker, camera, gamepad, keyboard, mouse, monitor, chair, fridge, washer, aircon, charger, powerbank). facets are the filters on the category page; every product in the category should give a value for each facet key.products: follow the shape in the example, but take every value from the brief. Never copy the example's specs, descriptions, promotions or highlights. Put prices on one option only (usually storage or configuration). Colours go in an option whose values carry hex. card_specs are the 2-3 chips on the product card. specs is the grouped specification table: buyers of electronics compare these, so fill it from the brief.home: list the homepage sections in order. Start from the order in the style's example. For retail, real Vietnamese electronics stores use: hero, categories, flash-sale (only with a real time-limited deal), one rail per main category, banners, brands, grid, stores-cta. Every section works in every style; the style examples show which ones each style leans on.promotions, shipping, payments, benefits, stores, policies: from the brief. benefits are the 3-4 promises shown in the footer and on product pages; write only promises the brief makes.Run python SKILL/scripts/build.py --list for icon names, device kinds, presets and section types.
python SKILL/scripts/build.py sites/<slug>/shop.json --out sites/<slug>/dist
Every error names the JSON path and the fix. Fix shop.json and run again until it prints OK built. When an error says a figure is not in the brief, delete the detail (or the whole row or sentence); never add it to the brief to make the build pass. Read the WARN lines: missing facets, placeholder contacts, products without photos.
python SKILL/scripts/lint_output.py sites/<slug>/dist
It must print LINT PASSED.
python SKILL/scripts/qa.py sites/<slug>/dist
If python cannot import Playwright, use a Python that has it (on Windows py -0 lists the installed versions, then for example py -3.11).
(python works too where Playwright is installed.) It opens every page at 1440 and 390 px and checks script errors, sideways scrolling, broken images, wrapped button labels and layout that moves on hover, then runs the whole flow: choose a variant, add to cart, apply a voucher, submit an empty checkout (must be stopped), fill it, place the order, track it, find it in the admin, confirm it, see "Đã xác nhận" in tracking, change a price in the admin and see it on the product page. It must print QA PASSED. Before delivery run it once more with --sweep: it narrows the main pages from 1440 to 360 px in 20 px steps and fails a page that scrolls sideways or overlaps header items at any width in between. A page whose QA fails is not finished. If a failure is in a template rather than in shop.json, quote the lines and tell the user it is a library bug. Then open dist/qa/index-1440.png, index-390.png and admin_index-1440.png and look at them.
Tell the user briefly, in the language they wrote in:
sample_content. This is the only place where you may have guessed wrong, so it goes on topsites/<slug>/dist/index.html) and the admin (dist/admin/login.html, password demo). On a real shop ("demo": false) say that the admin is an unsecured preview (the password is checked in the browser and the page says so) and must not be published before references/going-live.md is donepython -m http.server inside distreferences/going-live.md the client needs before taking real ordersreferences/shop-schema.md: every key of shop.json, required or optional, with limits; presets; home sectionsreferences/content-rules.md: copy rules, demo versus real data, what the build checksreferences/patterns.md: what real electronics stores and admin panels do, with counts from the research, and where each pattern lives in the templatesreferences/styles/<style>.md: what each of the four added styles is for, its parts, the data shapes of its sections and how it was verifiedreferences/variant-contract.md: how to add a variant or a section (first-line description, hooks, tokens-only css) and how it is checkedreferences/variant-catalog.md (generated) and references/variants/*.md: every variant and the data shape of every sectionreferences/going-live.md: what a static build cannot do (payments, shared orders, live stock) and the options read from vendor docsreferences/admin.md: every admin screen and feature, for describing the admin in the reportreferences/maintaining.md: adding a rule, a part or a section, and the checks to run after a change to the libraryreferences/flat-style.md: the look of generated sites and the flat colour, shadow and gradient rules every variant follows (shared by all skills; lint checks the CSS)docs/research/ecommerce-electronics-dashboards.md, docs/research/ecommerce-overview-analytics.md (overview charts and date picker) and docs/research/ecommerce-mobbin-screens.md (in the job repository, not shipped with this skill)Adding a rule, a variant, a section or a check, and the regression tests to run afterwards, are in references/maintaining.md. Read it before editing build.py, a template, a schema or this file; building a page for a client does not need it.
data/blueprint-roles.json (opens in a new tab)data/blueprints/24hstore.json (opens in a new tab)data/blueprints/anphatpc.json (opens in a new tab)data/blueprints/apple-vn.json (opens in a new tab)data/blueprints/bestbuy.json (opens in a new tab)data/blueprints/cellphones.json (opens in a new tab)data/blueprints/clickbuy.json (opens in a new tab)data/blueprints/didongviet.json (opens in a new tab)data/blueprints/dienmaycholon.json (opens in a new tab)data/blueprints/dienmayxanh.json (opens in a new tab)data/blueprints/fptshop.json (opens in a new tab)data/blueprints/gearvn.json (opens in a new tab)data/blueprints/hacom.json (opens in a new tab)data/blueprints/hoanghamobile.json (opens in a new tab)data/blueprints/jbhifi.json (opens in a new tab)data/blueprints/mediamart.json (opens in a new tab)data/blueprints/memoryzone.json (opens in a new tab)data/blueprints/newegg.json (opens in a new tab)data/blueprints/nguyenkim.json (opens in a new tab)data/blueprints/oppo-vn.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/app-uiBuild the screens inside a web app or admin area as a clickable prototype (dashboard, table, list, record detail, multi-step form, long-job progress, preview to approve, settings, sign in, error pages) from a fixed HTML/CSS kit and screen recipes that follow real SaaS apps on Mobbin, so the look does not depend on the model. Use when the user asks for app screens, an admin dashboard, a prototype with many screens, màn hình app, giao diện quản trị, trang admin, form nhiều bước, dựng prototype, or to redo app screens that look AI-made. Not for landing pages (bpo-landing-builder) or online shops, their storefront or their store admin (ecommerce-builder)./bpo-landing-builderBuild a production-quality landing page, or a whole website with inner pages, for a BPO, outsourcing, contact center, offshore staffing, AI data annotation or outbound sales company. The page is assembled by a script from pre-built, pre-animated sections, so layout and quality do not depend on the model. Use when the user asks for a BPO or outsourcing website, landing page, homepage or giao dien outsourcing, or wants to turn a company brief into such a page.Other plugins' skills for the same job
/nail-salon-builderBuild a complete website for a nail salon, nail bar or nail art studio (tiệm nail, tiệm làm móng, nail spa) with services and prices, nail look gallery, online booking with technician and time slots, booking lookup and cancel, branches, offers, and an admin for the salon (day calendar by technician, appointment list, customers, services and prices, technicians, reports). The site is generated by a script from one salon.json, so layout and behaviour do not depend on the model. Use when the user asks for a nail salon website, web tiệm nail, trang đặt lịch làm nail, website nail spa or a salon booking admin. For hair salons, spas or clinics it is not a fit (the menu, art levels and nail gallery are nail-specific).npx claudepluginhub duchuyn04/web-skills --plugin web-skills