Token导航 LogoToken导航

Agent Skill · 研究检索

composable-commerce(可组合的商务)

composable-commerce 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

composable-commerce 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 56,419。

总安装 451周安装 19GitHub Stars 19下载 158核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:composable-commerce(可组合的商务)
来源仓库:https://github.com/finsilabs/awesome-ecommerce-skills
仓库路径:skills/composable-commerce
安装命令:
npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill composable-commerce
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill composable-commerce

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

composable-commerce 基于 MACH 原则(微服务、API 优先、云原生、无头)提供商务架构方案。适用于需要替换或升级单个商务能力而不影响整体系统的场景。支持服务间通过 API 和事件通信,实现最佳工具链集成和独立演进。涵盖 MACH 架构模式、服务集成、事件驱动协调等核心概念。

使用时需注意各能力模块(购物车、目录、搜索等)的独立性和接口规范。

来源仓库内路径:skills/composable-commerce

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill com…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

composable-commerce 怎么安装?

在终端执行 npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill composable-co…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

composable-commerce 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

composable-commerce 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

composable-commerce 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

composable-commerce 用的人多吗?

公开数据是累计安装 451 次,近一周安装 19 次,下载 158 次,GitHub 19 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

composable-commerce 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
composable-commerce

可组合的商务 · 本页

45119需要联网未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Composable Commerce

Overview

Composable commerce is an architectural approach based on MACH principles — Microservices, API-first, Cloud-native, Headless — where each commerce capability (cart, catalog, search, CMS, checkout, loyalty) is provided by a best-of-breed service rather than a monolithic platform. Services communicate via APIs and events, enabling teams to replace or upgrade individual capabilities without touching the rest of the system. This skill covers MACH architecture patterns, service integration, event-driven coordination, and the operational considerations of running a composable stack in production.

When to Use This Skill

  • When a monolithic platform (Magento, Salesforce CC) can no longer scale with your team or traffic patterns
  • When different domains (catalog, checkout, loyalty) have divergent release cadences and ownership
  • When you need to mix best-of-breed vendors — e.g., Algolia for search, Contentful for CMS, commercetools for commerce
  • When entering new markets requiring different fulfillment, pricing, or tax providers per region
  • When building a platform that must support multiple storefronts (web, mobile, in-store, B2B portal) from a single backend

Prerequisites & Platform Notes

This skill is written for custom/headless storefronts (Node.js, Python, or similar backend). The code examples use TypeScript/Node.js and can be adapted to any stack.

Shopify: Shopify Hydrogen is Shopify's headless framework. MACH/composable patterns apply when using Shopify as the commerce backend with a custom frontend, or when mixing Shopify with other best-of-breed services. WooCommerce: WooCommerce can serve as a headless backend via its REST API and WPGraphQL. These patterns apply when decoupling the frontend from WordPress. Magento: Magento's GraphQL API and PWA Studio support headless architectures. These composable patterns apply to Magento as a backend service in a MACH stack.

You'll need:

  • Node.js 18+ (or adapt to your backend language)
  • PostgreSQL (or your preferred relational database)
  • A search service (Algolia, Elasticsearch, or Typesense)
  • Stripe account and API keys
  • An email sending service (SendGrid, AWS SES, or Postmark)

Core Instructions

  1. Design service boundaries around commerce capabilities A typical composable commerce stack separates capabilities into discrete services: Capability Example Services Product Catalog commercetools, Akeneo PIM, Salsify Search & Discovery Algolia, Elasticsearch, Constructor.io CMS / Content Contentful, Sanity, Storyblok Cart & Checkout commercetools, Elastic Path, Medusa Payments Stripe, Adyen, Braintree Tax Avalara, TaxJar Shipping & Fulfillment EasyPost, ShipBob, custom OMS Customer Identity Auth0, Okta, Cognito Loyalty & Promotions Talon.One, Voucherify Email / Notifications SendGrid, Customer.io Define bounded contexts: each service owns its data and exposes it only via APIs. Never share databases between services.
  2. Implement an API composition layer (BFF) A Backend-for-Frontend (BFF) aggregates multiple upstream APIs into a single request, tailored to what the frontend needs: // bff/src/routes/product-page.ts import {getProduct} from '../services/catalog'; import {getSearchReviews} from '../services/reviews'; import {getRecommendations} from '../services/recommendations'; import {getInventory} from '../services/inventory'; export async function productPageData(productId: string, customerId?: string) {// Parallel fetch from independent services const [product, inventory, recommendations] = await Promise.all([getProduct(productId), getInventory(productId), getRecommendations(productId, customerId),]); // Sequential: reviews needs product.sku const reviews = await getSearchReviews(product.sku); return {product, inventory, recommendations, reviews,};} Expose the BFF as a GraphQL API using schema stitching or federation: import {buildHTTPExecutor} from '@graphql-tools/executor-http'; import {stitchSchemas} from '@graphql-tools/stitch'; const gatewaySchema = await stitchSchemas({subschemas: [{schema: await introspectSchema(catalogExecutor), executor: catalogExecutor}, {schema: await introspectSchema(inventoryExecutor), executor: inventoryExecutor}, {schema: await introspectSchema(reviewsExecutor), executor: reviewsExecutor},],});
  3. Use event-driven architecture for cross-service coordination Services should communicate asynchronously for workflows that span multiple capabilities (order placed → inventory reserved → fulfillment triggered → email sent): // Order service publishes an event after checkout import {EventBridge} from '@aws-sdk/client-eventbridge'; const eventBridge = new EventBridge({region: 'us-east-1'}); async function publishOrderPlaced(order: Order) {await eventBridge.putEvents({Entries: [{Source: 'commerce.orders', DetailType: 'OrderPlaced', Detail: JSON.stringify({orderId: order.id, customerId: order.customerId, lineItems: order.lineItems, totalAmount: order.totalAmount, currency: order.currency,}), EventBusName: 'commerce-events',},],});} // Inventory service subscribes and reserves stock // EventBridge rule routes OrderPlaced → Lambda → inventory-service export async function handler(event: EventBridgeEvent<'OrderPlaced', OrderPayload>) {const {orderId, lineItems} = event.detail; await reserveInventory(lineItems); await publishInventoryReserved(orderId);}
  4. Implement the Saga pattern for distributed transactions When a multi-step workflow must be atomic across services, use orchestrated sagas with compensating transactions: // Choreography-based saga for order fulfillment // Each service publishes events and reacts to others // Order Service on('CheckoutCompleted', async ({orderId, paymentIntentId}) => {await orders.create({orderId, status: 'pending_payment'}); await publish('OrderCreated', {orderId, paymentIntentId});}); // Payment Service on('OrderCreated', async ({orderId, paymentIntentId}) => {try {await capturePayment(paymentIntentId); await publish('PaymentCaptured', {orderId});} catch (err) {await publish('PaymentFailed', {orderId, reason: err.message});}}); // Fulfillment Service on('PaymentCaptured', async ({orderId}) => {await fulfillment.schedule(orderId);}); // Order Service — compensate on failure on('PaymentFailed', async ({orderId}) => {await orders.update(orderId, {status: 'payment_failed'}); await releaseInventory(orderId); await notifyCustomer(orderId, 'payment_failed');});
  5. Manage API versioning and backward compatibility In a composable stack, services evolve independently. Use additive versioning strategies: // Use content negotiation or URL versioning // GET /api/v2/products/:id // Accept: application/vnd.commerce.product.v2+json // Apply the Tolerant Reader pattern — ignore unknown fields interface ProductV1 {id: string; name: string; price: number;} // V2 adds fields — existing consumers still work interface ProductV2 extends ProductV1 {categories?: string[]; attributes?: Record<string, string>; brand?: string;} // Use feature flags to roll out breaking changes async function getProduct(id: string, apiVersion: '1' | '2' = '1') {const product = await catalog.findById(id); return apiVersion === '2'? toProductV2(product): toProductV1(product);}
  6. Implement circuit breakers for resilience When one service degrades, prevent cascading failures across the entire stack: import CircuitBreaker from 'opossum'; const inventoryCircuit = new CircuitBreaker(checkInventory, {timeout: 3000, // Request timeout in ms errorThresholdPercentage: 50, // Open circuit if 50% of requests fail resetTimeout: 30000, // Try again after 30 seconds}); inventoryCircuit.fallback(() => ({available: true, // Optimistic fallback — show as available quantity: null, // Don't show exact quantity})); inventoryCircuit.on('open', () => {logger.warn('Inventory service circuit OPEN — using fallback'); metrics.increment('circuit_breaker.inventory.open');}); // Usage const stock = await inventoryCircuit.fire(productId);

Examples

commercetools SDK integration for catalog

import {createApiBuilderFromCtpClient} from '@commercetools/platform-sdk';
import {ClientBuilder} from '@commercetools/sdk-client-v2';

const ctpClient = new ClientBuilder()
  .withProjectKey(process.env.CTP_PROJECT_KEY!)
  .withClientCredentialsFlow({
    host: 'https://auth.us-central1.gcp.commercetools.com',
    projectKey: process.env.CTP_PROJECT_KEY!,
    credentials: {
      clientId: process.env.CTP_CLIENT_ID!,
      clientSecret: process.env.CTP_CLIENT_SECRET!,
    },
    scopes: ['manage_project:' + process.env.CTP_PROJECT_KEY],
    fetch,
  })
  .withHttpMiddleware({host: 'https://api.us-central1.gcp.commercetools.com', fetch})
  .build();

const apiRoot = createApiBuilderFromCtpClient(ctpClient).withProjectKey({
  projectKey: process.env.CTP_PROJECT_KEY!,
});

// Fetch product by slug
const product = await apiRoot
  .products()
  .get({queryArgs: {where: `slug(en="${slug}")`, expand: ['productType']}})
  .execute();

Algolia search with Contentful CMS enrichment

import algoliasearch from 'algoliasearch';
import {createClient as createContentfulClient} from 'contentful';

const algolia = algoliasearch(process.env.ALGOLIA_APP_ID!, process.env.ALGOLIA_SEARCH_KEY!);
const contentful = createContentfulClient({space: process.env.CONTENTFUL_SPACE_ID!, accessToken: process.env.CONTENTFUL_TOKEN!});

async function searchProducts(query: string, filters?: string) {
  // Search in Algolia for product IDs and structured data
  const {hits} = await algolia.initIndex('products').search<AlgoliaProduct>(query, {
    filters,
    attributesToRetrieve: ['objectID', 'name', 'price', 'contentfulEntryId'],
  });

  // Enrich with rich content from Contentful
  const contentEntryIds = hits.map(h => h.contentfulEntryId).filter(Boolean);
  const contentEntries = await contentful.getEntries({
    content_type: 'productPage',
    'sys.id[in]': contentEntryIds.join(','),
  });

  const contentMap = new Map(contentEntries.items.map(e => [e.sys.id, e]));

  return hits.map(hit => ({
    ...hit,
    content: contentMap.get(hit.contentfulEntryId),
  }));
}

Best Practices

  • Define a clear data ownership model — each piece of data has exactly one system of record; other services read from it via API, never write to it directly
  • Design for eventual consistency — cross-service data will be temporarily inconsistent after an event; build UIs and workflows that tolerate this (e.g., optimistic inventory, compensating transactions)
  • Use an API gateway for cross-cutting concerns — authentication, rate limiting, request logging, and SSL termination belong at the gateway, not in every service
  • Implement distributed tracing — use OpenTelemetry with a trace ID propagated across all service calls; this is essential for debugging multi-service request failures
  • Version your events — event schemas change over time; include a schemaVersion field in every event payload and maintain backward-compatible consumers
  • Use a service mesh for service-to-service traffic — tools like Istio or AWS App Mesh handle mutual TLS, load balancing, and retries at the infrastructure layer
  • Start with a modular monolith — decompose into microservices only when you have clear team ownership boundaries and operational maturity; premature decomposition creates accidental complexity

Common Pitfalls

ProblemSolution
Distributed transaction failures leave data inconsistentImplement sagas with compensating transactions; use outbox pattern to guarantee event publication after DB write
Service latency compounds in the critical pathMove non-critical services off the critical path using async events; set aggressive timeouts and circuit breakers on all external calls
API contract breaks downstream consumersUse consumer-driven contract testing (Pact) so breaking changes are caught before deployment
Shared database creates hidden couplingEnforce the rule: one service, one schema; use event sourcing or change data capture for cross-service data propagation
Debugging failures across 10 servicesImplement distributed tracing with OpenTelemetry from day one; correlate logs with a single trace ID per user request

Related Skills

  • @commerce-api-gateway
  • @saleor-development
  • @shopify-hydrogen
  • @webhook-architecture
  • @flash-sale-scaling
  • @edge-commerce

平台分布

Codex

37.75%
按下载量换算60

Claude

31.68%
按下载量换算50

Cursor

18.55%
按下载量换算29

Gemini CLI

9.36%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills