Neway Commerce OS
БесплатноЗапускает вложенные скриптыНе проверенGenerate, scaffold, build and verify a React + Vite + Hono commerce storefront from a short product brief — catalog, cart, wishlist, three-step checkout…
от lwter1 030 установок в других каталогахОб этом скилле
Neway Commerce OS
One prompt in, one runnable storefront out.
This file is the single source of truth for generation. templates/base,
scripts/ and references/ are all downstream of it. If a rule here conflicts
with anything in the template or the scripts, this file wins — and the
inconsistency should be reported to the user, not silently resolved.
0. IRON RULES (highest priority — never violate, never "improve")
These three rules come from the user and apply to every artifact this skill produces. They are enforced by machine gates (G-01, G-02) — a violation is a hard failure, not a style preference.
| # | Rule | Concrete meaning |
|---|---|---|
| IR-1 | Even px, never below 12 | Every font-size in px must be even and ≥ 12. text-[10px], text-[11px], text-[13px] are forbidden. Minimum is 12. |
| IR-2 | No emoji in UI | No emoji anywhere in UI source — not in JSX, not in product data, not in mock responses, not as icon substitutes, not in i18n strings, not decoratively. |
| IR-3 | lucide line icons only | All icons come from lucide-react (line style, no fill, single colour). Never a filled icon set, never an emoji glyph, and an inline SVG only when lucide genuinely lacks the glyph. |
IR-2 and IR-3 reinforce each other: an emoji used as an icon violates both. Replace
🛒with<ShoppingCart />,❤️with<Heart />,✓with<Check />.
1. HARD GATES (all must pass before delivery)
scripts/validate_generated_project.py implements every gate below. Run it on
the generated project. Exit code 0 is a precondition for delivery; a failing
gate means fixing the output, not the gate.
python <skill>/scripts/validate_generated_project.py <project_dir> --lang en --currency CNY
| Gate | Rule |
|---|---|
| F-01 | All required files exist (see §3) |
| F-02 | Style file exists (src/styles.css) |
| F-03 | Deployment files exist (warn) |
| F-04 | No template leftovers: AccountPage.tsx, AiConcierge.tsx, products.json, src/lib/api.ts |
| P-01 | Zero __PLACEHOLDER__ tokens left in any file |
| P-02 | No placeholder copy: Product One, Category A, category-a, Lorem ipsum, TODO:, example.com |
| G-01 | IR-2: no emoji in src/, functions/, index.html |
| G-02 | IR-1: every text-[Npx] is even and ≥ 12 |
| G-03 | Currency consistent: CNY output contains no $<digit>, USD output contains no ¥<digit> |
| D-01 | ≥ 8 products |
| D-02 | Each product's images[0] !== images[1] (hover swap must be visible) |
| D-03 | ≥ 5 real categories, no generic category-a style keys |
| D-04 | Product interface has every required field (§5) |
| D-05 | PROMO_CODES exported (warn) |
| S-01 | Cart store contract: persist, addItem, removeItem, updateQuantity, clearCart, itemCount, total, toggleCart |
| S-02 | useWishlistStore exists and is persisted |
| U-01 | AIChatWidget is mounted once (in App.tsx, not also in a page) |
| U-02 | No window.location navigation — SPA routing only |
| U-03 | AI widget has ≥ 8 keyword scenarios |
| U-04 | HomePage / ShopPage / ProductPage / CheckoutPage section coverage (warn) |
| T-01 | Two complete colour palettes (brand + fresh/leaf) |
| T-02 | Palette scale spans 50–900 (warn) |
| T-03 | Component classes defined: btn-primary, btn-outline, btn-ghost, tag, section-title, section-subtitle, input-field |
| T-04 | lucide-react in package.json dependencies |
| L-01 | index.html lang matches the detected language |
| I-01 | Every local /images/* reference resolves to a real file |
| I-02 | Remote images reachable (only with --check-images) |
Build gate (not covered by the script — run it yourself):
cd <project_dir> && npm install && npm run build # tsc --noEmit && vite build
Must exit 0 with zero TypeScript errors. A project that does not build is not a deliverable.
Repo hygiene (not an output gate):
scripts/check_skill_language.pyfails if any Chinese text appears in the skill itself. This skill ships to a global audience, so everything exceptREADME.cn.mdand thedescription_zh/display_namefrontmatter lines must be English — commit messages included. A file that genuinely needs CJK data (e.g. a regex that must also match a zh-CN build) carries it as a\uXXXXescape, never a literal character.
2. EXECUTION WORKFLOW (follow exactly)
- Detect language.
powershell -Command "Get-Culture | Select-Object -ExpandProperty Name"on Windows,locale | grep LANGelsewhere.zh*→ Chinese UI andlang="zh-CN". Otherwise → English UI. If detection fails or is unavailable, default to English — never block on this step. - Normalize the prompt into a brief: brand name, product category, tone, hero product, palette hint.
- Scaffold — never copy files by hand:
python <skill>/scripts/scaffold_project.py "<promp
Установить Neway Commerce OS в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Neway Commerce OS?
Generate, scaffold, build and verify a React + Vite + Hono commerce storefront from a short product brief — catalog, cart, wishlist, three-step checkout, admin dashboard, AI sales assistant and EdgeOne Pages deployment files. Use when the user wants a complete ecommerce/store website skeleton from one sentence, especially for digital products, creator stores, productized services, multi-product studios or NewayStudio-style product matrices.
Как установить скилл Neway Commerce OS?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Neway Commerce OS запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
gtm-enterprise-account-planning
Strategic account planning and execution for enterprise deals. Use when planning complex sales cycles, managing multiple stakeholders, applying MEDDICC…
от GitHubgtm-partnership-architecture
Build and scale partner ecosystems that drive revenue and platform adoption. Use when building partner programs from scratch, tiering partnerships, managing…
от GitHublanding-page-conversion-audit
Audit a landing page, sales page or checkout page for conversion leaks and return a fix list ordered by expected revenue impact. Use when asked to review…
от GitHubpower-platform-architect
Use this skill when the user needs to transform business requirements, use case descriptions, or meeting transcripts into a technical Power Platform solution…
от GitHub