Token导航 LogoToken导航

Agent Skill · 开发

catalog-import-export(目录导入导出)

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

catalog-import-export 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 16,648。

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

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill catalog-import-export

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

用于电商平台商品目录的批量导入导出,支持多格式转换。推荐优先使用各平台的 native 工具,仅定制开发超量需求时启用。适用于新商户入驻、价格批量更新或 Google Merchant Center 对接。需明确数据 schema 与验证规则以确保导入成功。

catalog-import-export 属于开发类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/catalog-import-export

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

catalog-import-export 怎么安装?

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

catalog-import-export 支持哪些 AI 工具?

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

catalog-import-export 需要什么权限?

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

catalog-import-export 是免费的吗?

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

catalog-import-export 用的人多吗?

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

catalog-import-export 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

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

开发类 Skill 对比

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

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
catalog-import-export

目录导入导出 · 本页

48519需要联网未明确通过

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

SKILL.md 原文

Catalog Import / Export

Overview

Bulk importing and exporting products is a core catalog management task — whether you're onboarding a new store from a supplier spreadsheet, doing mass price updates, or feeding products to Google Merchant Center. Every major platform has native import/export tools that handle this without custom code. Use them first; only build a custom pipeline if your volume, format, or validation requirements exceed what the platform offers.

When to Use This Skill

  • When onboarding a new merchant whose catalog lives in a spreadsheet or ERP system
  • When syncing product data from a supplier or PIM on a scheduled basis
  • When merchants need to do mass price or inventory updates without coding
  • When building a product feed export for Google Merchant Center, Amazon, or comparison shopping engines

Core Instructions

Step 1: Determine the platform and choose the right import tool

PlatformRecommended ToolWhy
ShopifyMatrixify (Bulk Product Import Export)Handles complex catalogs with metafields, variants, multiple images, and collections; supports scheduled sync and error reports
Shopify (simple)Shopify's built-in CSV importFree, sufficient for basic catalogs under a few hundred products with standard fields only
WooCommerceWP All Import ProMost powerful WooCommerce import tool; supports CSV/XML, field mapping, scheduled imports, and conditional logic
WooCommerce (built-in)WooCommerce Product CSV ImporterShips with WooCommerce; handles products, variations, and images for simple use cases
BigCommerceBuilt-in bulk import / FeedonomicsBigCommerce's native import handles most needs; Feedonomics for multi-channel feed management
Custom / HeadlessBuild a custom pipelineOnly if your platform has no native tools or your validation/transformation requirements are too complex

Step 2: Prepare your import file

Regardless of platform, product import files follow a similar structure. Use the platform's sample CSV as your template:

  • Shopify: Download the sample CSV from Products → Import → Download sample CSV
  • WooCommerce: Download from Products → Import → Download sample CSV
  • BigCommerce: Download from Products → Import & Export → Download template

Key fields almost every platform requires:

FieldNotes
Handle / SlugURL-safe unique identifier (e.g., blue-cotton-tshirt)
TitleProduct name
PriceDecimal, e.g., 29.99
SKUUnique per variant
Inventory QuantityInteger
ImagesComma-separated URLs or upload separately
Variant optionsSize, Color, etc.

Important formatting rules:

  • Save CSV files as UTF-8 encoding (in Excel: Save As → CSV UTF-8)
  • Use the exact column headers from the platform's sample template
  • Dates in ISO format: 2026-03-12
  • Boolean values: true / false (not yes/no or 1/0 unless the platform specifies)

Step 3: Platform-specific setup


Shopify

Option A: Built-in CSV import (simple catalogs)

  1. Go to Admin → Products → Import
  2. Download the sample CSV to use as a template
  3. Prepare your file following Shopify's column format exactly
  4. Upload the CSV and click Import products
  5. Shopify shows a summary of what will be created/updated; review before confirming

Limitations: No support for metafields, custom collections, or complex variant logic in the built-in importer.

Option B: Matrixify (recommended for complex catalogs)

  1. Install Matrixify from the Shopify App Store
  2. In Matrixify, click Export to download your current catalog as a reference spreadsheet
  3. Use the exported format to prepare your import file — it includes all supported columns with examples
  4. Upload your file and click Import
  5. Matrixify shows a row-by-row error report — download it and fix errors before re-running
  6. For scheduled sync: go to Matrixify → Schedules → Add schedule, set frequency (hourly, daily, etc.), and point to a Google Sheets URL or FTP path

Exporting for Google Merchant Center:

  1. In Matrixify, go to Export
  2. Choose Google Shopping as the export template
  3. Download the feed XML and upload to Google Merchant Center, or use Matrixify's direct Google Sheets sync

WooCommerce

Option A: Built-in product importer

  1. Go to WooCommerce → Products → Import
  2. Upload your CSV file
  3. On the column mapping screen, match your CSV columns to WooCommerce fields
  4. Click Run the importer — WooCommerce shows a progress bar and summary

Option B: WP All Import Pro (recommended for advanced needs)

  1. Install WP All Import Pro + the WooCommerce Add-On
  2. Go to All Import → New Import
  3. Upload your CSV or XML file, or enter a URL for scheduled imports
  4. Use the drag-and-drop field mapper to connect your file's columns to WooCommerce product fields
  5. Set up Scheduling: All Import → Manage Imports → Edit → Run automatically every X hours
  6. Review the import log at All Import → History — errors are listed with row numbers

For Google Merchant Center feed export:

  • Install Product Feed Pro for WooCommerce (free)
  • Go to Product Feed Pro → Manage Feeds → Add Feed
  • Select Google Shopping as the template
  • Configure and publish the feed URL directly to Google Merchant Center

BigCommerce

Built-in bulk import:

  1. Go to Products → Import & Export → Import Products
  2. Download the CSV template
  3. Prepare your file and upload
  4. BigCommerce validates the file and shows a preview before committing
  5. For images: host images at accessible URLs and include them in the Product Image URL column

Google Shopping feed:

  • Go to Channel Manager → Google Shopping
  • BigCommerce has native Google Shopping integration — connect your Google Merchant Center account and BigCommerce syncs the catalog automatically

For advanced multi-channel feeds: Install Feedonomics or GoDataFeed from the BigCommerce App Marketplace for Amazon, eBay, and comparison engine feeds.


Custom / Headless

For headless storefronts, build a pipeline that validates, transforms, and upserts products:

// lib/catalogImport.ts
import { z } from 'zod';
import { parse } from 'csv-parse';
import { createReadStream } from 'fs';

// Define and validate the import schema
const productRowSchema = z.object({
  handle: z.string().min(1).regex(/^[a-z0-9-]+$/, 'Handle must be lowercase alphanumeric with hyphens'),
  title: z.string().min(1).max(255),
  price: z.coerce.number().positive(),
  sku: z.string().min(1),
  inventory_quantity: z.coerce.number().int().min(0).default(0),
  image_url: z.string().url().optional(),
});

// Stream-parse large CSV files without loading into memory
export async function* parseCatalogCsv(filePath: string) {
  const parser = createReadStream(filePath).pipe(
    parse({ columns: true, skip_empty_lines: true, trim: true })
  );
  let rowIndex = 2;
  for await (const rawRow of parser) {
    const result = productRowSchema.safeParse(rawRow);
    yield result.success
      ? { row: rowIndex, data: result.data, errors: null }
      : { row: rowIndex, data: null, errors: result.error.issues.map(i => ({ field: i.path.join('.'), message: i.message })) };
    rowIndex++;
  }
}

// Process as an async job with upsert logic (idempotent, safe to re-run)
export async function runCatalogImport(filePath: string) {
  let processed = 0;
  const errors: { row: number; errors: { field: string; message: string }[] }[] = [];

  for await (const { row, data, errors: rowErrors } of parseCatalogCsv(filePath)) {
    if (rowErrors) { errors.push({ row, errors: rowErrors }); continue; }
    // Upsert by handle — re-running the same file won't create duplicates
    await db.products.upsert({ where: { handle: data!.handle }, create: data!, update: data! });
    processed++;
  }

  return { processed, errorCount: errors.length, errors: errors.slice(0, 50) };
}

For Google Merchant Center XML export:

import { create } from 'xmlbuilder2';

export async function exportGoogleFeed(products: Product[]) {
  const root = create({ version: '1.0', encoding: 'UTF-8' })
    .ele('rss', { version: '2.0', 'xmlns:g': 'http://base.google.com/ns/1.0' })
    .ele('channel');

  for (const product of products) {
    const item = root.ele('item');
    item.ele('g:id').txt(product.sku);
    item.ele('g:title').txt(product.title);
    item.ele('g:price').txt(`${product.price} USD`);
    item.ele('g:availability').txt(product.inStock ? 'in_stock' : 'out_of_stock');
    item.ele('g:link').txt(`https://yourstore.com/products/${product.handle}`);
    item.ele('g:image_link').txt(product.images[0]);
  }

  return root.end({ prettyPrint: true });
}

Step 4: Validate before committing

All platforms support a preview/dry-run step — always use it before committing a large import:

  • Shopify built-in: Review the "X products to create / X to update" summary before clicking Import
  • Matrixify: The import preview shows which rows have errors with the specific column and issue
  • WP All Import: Use "Dry Run" mode to preview what will be created/updated
  • BigCommerce: The upload validation step shows errors before processing

Fix all errors listed in the validation step before proceeding. A partial import — where some rows succeed and others fail — is harder to clean up than re-running a fully corrected file.


Step 5: Monitor and verify

After importing:

  1. Spot-check 5–10 random products in the admin to verify titles, prices, images, and variants loaded correctly
  2. Check the error log — Matrixify and WP All Import generate downloadable error reports with row numbers
  3. Verify inventory counts — if inventory was included in the import, confirm it matches expectations
  4. Test on the storefront — search for and open 2–3 imported products to verify they display correctly

Best Practices

  • Always use the platform's sample CSV as your starting template — hand-crafting a CSV from scratch almost always produces header mismatches
  • Import in batches of 500–1000 products for large catalogs — easier to debug errors and the platform UI stays responsive
  • Keep a backup of the current catalog before a large import — export the existing catalog first so you can restore if something goes wrong
  • Don't update inventory via a product import if you have a separate inventory sync running — two systems updating the same field will conflict
  • Use handles/slugs as the stable unique key, not titles — product titles change, handles should not
  • Schedule recurring imports at off-peak hours — large syncs can slow the admin interface during peak business hours

Common Pitfalls

ProblemSolution
CSV import fails with encoding errorsEnsure the file is saved as UTF-8 (in Excel: File → Save As → CSV UTF-8); special characters in product names are the most common cause
Images don't appear after importImages must be hosted at publicly accessible HTTPS URLs at import time; Shopify and WooCommerce download them during import
Variants not created correctlyEnsure your CSV has one row per variant (not one row per product); Shopify's CSV format uses repeated handle rows for multiple variants
Import creates duplicate products on re-runUse a tool that supports upsert by handle/SKU (Matrixify, WP All Import); avoid tools that only support insert
Inventory reset to 0 after product importKeep inventory out of the product import CSV if you manage it separately; most platforms let you skip inventory columns
Google feed rejected by Merchant CenterVerify required fields: id, title, description, link, image_link, availability, price, brand, gtin or mpn

Related Skills

  • @variant-matrix
  • @product-data-modeling
  • @multi-warehouse
  • @product-content-enrichment

平台分布

Codex

33.78%
按下载量换算53

Claude

31.61%
按下载量换算50

Cursor

17.25%
按下载量换算27

Gemini CLI

8.77%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills