neway commerce os

SKILL开发
开发 未标注权限 许可证不明确
安装这个技能

Generate, scaffold, build, and prepare deployment for a reusable react + vite + hono commerce operating system focused on digital products, storefronts, subscriptions, ai-assisted sales, admin dashboards, and international stripe-style payments. use when the user wants a complete website skeleton from a short prompt, especially for ecommerce launches, creator stores, productized services, multi-product studios, or newaystudio-style product matrices with edgeone pages deployment and full-stack edge functions. demo static images fetch https://github.com/lwter/neway-commerce-os/tree/master/templates/base/static/images

一句话选型结论

按资料字段整理

neway commerce os是开发类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类开发 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_217d8d33/neway-commerce-os
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

开发
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_217d8d33仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791665318
正文体量19.1 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
写代码与改 bug

按需求补代码、定位并修掉报错。

读仓库与生成改动

让模型读懂项目结构,再给出可落地的改动。

跑测试与排查故障

按现象排查问题,补测试用例并复跑。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在开发场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
neway commerce os当前 未标注权限 未标注 未标注 未标注 有
技能审查员 浏览器控制 ClawHub 市场 877.9 万 OpenClaw 有
Vercel React 最佳实践 浏览器控制 GitHub 仓库 849.1 万 Codex、Claude、Cursor 有
GitHub 代码协作 联网访问 ClawHub 市场 763.3 万 OpenClaw 有
网页设计指南 联网访问 GitHub 仓库 668.6 万 Codex、Claude、Cursor 有
本体论 只读 ClawHub 市场 663.7 万 OpenClaw 有

SKILL.md 全文

19.1 KB
模型实际读到的说明书原文,来自技能仓库

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.py fails
> if any Chinese text appears in the skill itself. This skill ships to a global
> audience, so everything except README.cn.md and the description_zh /
> display_name frontmatter 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 \uXXXX escape, never a literal character.


2. EXECUTION WORKFLOW (follow exactly)

  1. Detect language. powershell -Command "Get-Culture | Select-Object -ExpandProperty Name" on Windows, locale | grep LANG elsewhere. zh* → Chinese UI and lang="zh-CN". Otherwise → English UI. If detection fails or is unavailable, default to English — never block on this step.
  2. Normalize the prompt into a brief: brand name, product category, tone, hero product, palette hint.
  3. Scaffold — never copy files by hand:
    bash python <skill>/scripts/scaffold_project.py "<prompt>" --output <cwd> --brand "<Brand>" [--site-name "<Name>"]
    This copies templates/base, resolves every placeholder, and never deletes an existing directory (a re-run renames the old one to <slug>.bak-<timestamp>).
  4. Fill content. Open every page and component in the scaffold and replace the demo catalog with content that fits the brief: products, categories, brand story, promo codes, AI responses. Keep the structure and conventions — the template is a compliant reference implementation, not a blank page.
  5. Apply conventions (§6–§11).
  6. Localize money (§7).
  7. Run the gate: validate_generated_project.py. Fix every FAIL and re-run until clean.
  8. Run the build gate: npm install && npm run build. Fix every error.
  9. Preview: npm run dev, confirm all 7 routes render.
  10. Deliver with Handoff Notes (§12) plus the gate and build evidence.

> Fail-stop rule: if a gate or the build fails, fix the output and re-run.
> Never deliver with a failing gate, never edit the validator to make a failure
> disappear, and never describe a failing project as "ready except for…".


3. Output location & file structure

Generate into the current working directory (or a directory the user names)
as <slug>/. Never generate inside the skill directory, never overwrite an
existing project, never modify templates/base while generating.

<slug>/
├── index.html                  ← lang attr + Google Fonts
├── package.json
├── tailwind.config.js          ← two palettes + font families
├── postcss.config.js
├── vite.config.ts              ← publicDir: 'static'
├── tsconfig.json
├── .env.example
├── .gitignore
├── edgeone.json
├── README.md
├── static/images/              ← bundled demo image pool
├── src/
│   ├── main.tsx
│   ├── App.tsx                 ← 7 routes + global CartDrawer + AIChatWidget
│   ├── styles.css
│   ├── utils/format.ts         ← formatPrice() — the only money formatter
│   ├── components/
│   │   ├── Navbar.tsx
│   │   ├── Footer.tsx
│   │   ├── ProductCard.tsx
│   │   ├── CartDrawer.tsx
│   │   └── AIChatWidget.tsx
│   ├── pages/
│   │   ├── HomePage.tsx
│   │   ├── ShopPage.tsx
│   │   ├── ProductPage.tsx
│   │   ├── CartPage.tsx
│   │   ├── CheckoutPage.tsx
│   │   ├── WishlistPage.tsx
│   │   └── AdminPage.tsx
│   ├── data/products.ts        ← single source of truth (TypeScript, not JSON)
│   ├── store/cartStore.ts      ← cart + wishlist stores, both persisted
│   └── types/index.ts
└── functions/
    ├── api/products.ts
    ├── api/checkout.ts
    ├── api/assistant.ts
    └── node/stripe-webhook.ts

Route table — all 7 must exist and render.

Path Page Notes
/ HomePage
/shop ShopPage category tabs + filter + sort + grid/list
/product/:id ProductPage dynamic slug, 404 state when not found
/cart CartPage full-page fallback
/checkout CheckoutPage three steps
/wishlist WishlistPage reads wishlistStore
/admin AdminPage mock metrics + orders

4. Language

One rule, no exceptions: every user-facing string is in the detected
language — nav, hero, buttons, placeholders, error messages, checkout steps,
footer, AI greeting / quick replies / mock responses, admin metric labels and
table headers, category names, filter options, and mock data (order rows,
customer names, AI replies).

For en output, name = English and nameEn = an optional short subtitle. For
zh-CN output, every product sets name = Chinese and nameEn = the Latin name.

The bundled template ships en. When the detected language is zh-CN,
translate every string — do not leave English copy in a zh-CN build. Gate L-01
catches the lang attribute; the rest is on you.


5. Product data contract

src/data/products.ts is the only product source. products.json must not exist.
All money is CNY unless the market says otherwise (§7).

export interface Product {
  id: string;             // URL-safe slug, used by /product/:id
  name: string;           // primary display name
  nameEn?: string;        // optional secondary line — short subtitle or Latin name
  brand: string;
  category: string;       // must match a Category.key
  price: number;          // current price
  originalPrice?: number; // crossed-out price
  unit?: string;          // e.g. 'item'
  images: string[];       // >= 2 — [0] primary, [1] hover swap (must differ)
  colors: { name: string; hex: string }[];
  sizes: string[];
  description: string;    // full paragraph
  details: string[];      // feature bullets
  highlight: string;      // one-line selling point on the card
  tags: string[];         // must match the shop filter tag list
  material: string;
  fit: string;
  rating: number;         // 0–5
  reviewCount: number;
  stock: number;          // <= 10 renders the low-stock badge
  isNew: boolean;
  isSale: boolean;
}

Also export categories (each with key, label, icon = a lucide component,
and image) and PROMO_CODES.

Requirements: ≥ 8 products, ≥ 5 real categories (natural names for the
domain — never category-a), each category with at least one product.


6. Images

Default: the bundled local pool. templates/base/static/images/ holds 16
demo photos (apparel, bags, accessories, plus one interior shot for story blocks).
vite.config.ts sets publicDir: 'static', so they resolve as
/images/<file>.jpg and are copied to dist/images/ on build.

  • Prefer local images: deterministic, offline-safe, immune to proxy/network
    failures. Gate I-01 verifies every local reference exists.
  • Use a remote URL only when the brief's domain has no match in the pool. Then
    every URL must return HTTP 200 — verify with --check-images and record any
    replacement in the handoff notes.
  • Never invent an image path. Never reference static/images/... in code —
    always /images/....

7. Currency

  • The symbol lives in exactly one place: src/utils/format.ts
    (CURRENCY_SYMBOL). Components must call formatPrice(); hardcoding ¥ or $
    in JSX is a gate failure (G-03).
  • Default market is CN → CNY (¥). For a non-CN market, change CURRENCY_SYMBOL
    and .env's VITE_DEFAULT_CURRENCY, then run the gate with --currency USD.
  • The free-shipping threshold lives in format.ts as FREE_SHIPPING_THRESHOLD
    and must be imported by CartDrawer / ProductPage / CheckoutPage, never re-typed.

8. Code conventions

Fonts — index.html must load:

<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Serif+SC:wght@400;600;700&family=Playfair+Display:wght@400;700&display=swap" rel="stylesheet">

tailwind.config.js defines font-body (Noto Sans SC + Latin fallback) and
font-display (Playfair Display + Noto Serif SC, so Chinese headings do not
fall back to sans).

Icons — lucide-react only; size 12–22 matched to surrounding text; no fill.
See §0 IR-3.

Typography — even px only, ≥ 12 (IR-1). Prefer Tailwind's scale (text-xs,
text-sm, text-base) over arbitrary values.

State — Zustand + persist. Cart key <slug>-cart, wishlist key
<slug>-wishlist. Wishlist must use the store, never local useState.

Routing — react-router-dom v6. Always useNavigate() / <Link>; never
window.location (gate U-02).

Animation — framer-motion. Hover lift { y: -4, scale: 1.02 }, page enter
{ opacity: 0, y: 20 } → { opacity: 1, y: 0 }, stagger staggerChildren: 0.08.
Ease-out, never bounce.

TypeScript — strict: true, no any outside placeholder API handlers, and
npm run build must be clean.

Dependencies — the stack is fixed. Do not add packages: no component
libraries, no icon sets other than lucide, no axios, no date libraries.

Visual language — off-white or near-black backgrounds (never pure #000 or
#fff), soft borders, rounded corners, muted gradients only, generous whitespace.


9. Quality floor (minimum complexity per screen)

If time is short, build fewer pages at higher quality rather than spreading thin.

HomePage — hero (overlay text + 2 CTAs), category banner grid (image + label,
hover colour change), new arrivals (4–8 isNew products with stagger),
bestsellers (rating ≥ 4.7, 4 products), brand story (two-column text + image),
AI assistant entry section.

ShopPage — sticky category tab bar driven by ?category=, toolbar with
filter toggle / sort dropdown / grid-list toggle, filter panel (tag multi-select +
price slider), responsive grid (2/3/4 cols), empty state.

ProductPage — image gallery (aspect-[4/5] + thumbnail strip), badges,
name + optional subtitle, 5-level quality bar, rating, price + crossed original,
colour and size selectors, add-to-cart + wishlist, spec rows (fit / material),
description, detail bullets, delivery info, related products (same category, ≤ 4).

ProductCard — hover image swap, badges (new / sale / low stock), heart toggle,
quick-add on hover, brand + name + optional nameEn, 5-level quality bar, rating,
highlight line, price + crossed original, colour dots, and a layout prop
('grid' | 'list').

CartDrawer — right-side slide-in (max-w-sm), backdrop, item rows with
quantity steppers and delete, subtotal, free-shipping hint, checkout + continue
shopping, empty state. Mounted once in App.tsx, toggled from the Navbar.

CheckoutPage — three steps (shipping → payment & promo → review) with a
numbered stepper: full name, email, country select, city, postal code, street
address; 3 shipping methods with fees; promo code validated against PROMO_CODES
with applied/error feedback; payment methods with lucide icons; invoice
toggle; order notes; review step with edit links, item list and agreement
checkbox; sticky order summary; success screen with a generated order number.
clearCart() runs only on the final review submit — never earlier.

WishlistPage — reads wishlistStore, empty state, add-all-to-cart.

AdminPage — 4 metric cards, recent orders table with status pills, top
products, stock overview driven by product.stock.

AIChatWidget — FAB → chat panel (w-96, max-h-[600px]), brand-coloured
header, ≥ 8 keyword scenarios, product card embeds, typing indicator, 4
quick-reply chips. Keywords must be written in the same language as the UI —
English keywords for an en build, Chinese for a zh-CN build.

Footer — service banner row (4 lucide icons), four-column link grid,
newsletter block, dynamic copyright year.


10. Animation & interaction standard

Smooth, restrained, purposeful. Every interactive element has a hover and active
state. No layout shift on hover, no transition longer than 0.8s, no infinite
decorative loops.


11. Anti-patterns (things that have actually gone wrong here)

  • Mounting AIChatWidget in both App.tsx and a page → two floating buttons.
  • Using window.location.href for in-app navigation → full reload and lost SPA state.
  • Referencing an icon component that was never imported → build failure.
  • Reusing the same URL for images[0] and images[1] → hover swap does nothing.
  • Keyword language drifting from the UI language → the AI assistant goes silent.
  • Copying the template's demo catalog verbatim → the store sells the wrong
    products, and gates P-02 / D-01 / D-03 fire.
  • Deleting or relaxing validator rules instead of fixing the output.

12. Handoff Notes (the only delivery document)

Deliver in the reply — do not create a second NEWAY_BRIEF.md (that duplication
was removed on purpose).

## Handoff Notes — <Brand> Store

### Gates
- validate_generated_project.py: PASS (0 errors, 0 warnings)
- npm run build: exit 0 (tsc --noEmit + vite build clean)

### Scaffold status
- [x] 7 routes implemented and rendering
- [x] Product data wired (N products, M categories)
- [x] Cart + wishlist persisted
- [x] Three-step checkout with promo codes
- [x] AI concierge (K scenarios, zh + en keywords)
- [x] Admin dashboard scaffold
- [x] Iron rules verified (no emoji / even px >= 12 / lucide icons)
- [x] Images resolved (local pool or verified remote)

### Production wiring still required
- [ ] Stripe live keys (STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET)
- [ ] AI endpoint (AI_API_BASE, AI_API_KEY, AI_MODEL)
- [ ] Real order persistence
- [ ] VITE_SITE_NAME / VITE_DEFAULT_CURRENCY in EdgeOne env

### Run it
npm install && npm run dev   →  http://localhost:5173

13. References

Read on demand — do not load everything up front.

File When to read
references/architecture.md Explaining the layer model, or extending the scaffold
references/commerce-flows.md Wiring a real cart / checkout / payment backend
references/deployment.md Deploying to EdgeOne Pages, env vars, webhook setup

常见问题

5 问
答案由本站依据条目字段整理
neway commerce os怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_217d8d33/neway-commerce-os。安装方式为未标注。装完刷新技能列表或重开客户端。

neway commerce os支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

neway commerce os权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

neway commerce os收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

neway commerce os用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。