Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

product-categorizationproduct categorization 搜索

Agent Skill

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

总安装

465

周安装

19

GitHub Stars

19

下载量

149
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill product-categorization

简介

用于查找、检索和筛选产品分类与标签体系方案。

  • 适合在电商平台、知识库或内容管理系统中建立分类结构。
  • 通过 GitHub 安装,支持 Codex、Claude、Cursor 和 Gemini CLI 等宿主环境。
  • 使用时需考虑用户心智模型与搜索习惯进行优化调整。
  • 安装前建议确认权限范围,防止误改线上分类树。

SKILL.md

Product Categorization

Overview

A well-structured product taxonomy makes products findable and drives SEO through category pages. Every platform handles categorization differently: Shopify uses Collections and tags, WooCommerce uses hierarchical Categories and tags, and BigCommerce uses Categories with subcategories. Understanding the platform's native model and configuring it correctly is more impactful than building a custom taxonomy system.

When to Use This Skill

  • When building a product catalog that needs a navigable category tree (clothing > women > dresses)
  • When migrating a flat product list into a structured taxonomy
  • When breadcrumb navigation is missing or generating wrong paths
  • When category pages need SEO-optimized URLs and meta tags
  • When ingesting large supplier catalogs that need automatic categorization

Core Instructions

Step 1: Understand how your platform handles categories

PlatformCategory ModelURL Structure
ShopifyCollections (flat or nested via themes); tags for additional filtering/collections/womens-dresses
WooCommerceHierarchical categories (parent/child) + tags/product-category/clothing/womens/dresses/
BigCommerceNested categories (unlimited depth)/clothing/womens/dresses/
Custom / HeadlessBuild with materialized paths for efficient breadcrumb queries/c/clothing/women/dresses

Choose a depth strategy before building:

  • 2–3 levels is optimal for most stores (e.g., Clothing → Womens → Dresses)
  • 4 levels maximum — deeper hierarchies confuse shoppers and dilute SEO
  • Flat + tags works well for small catalogs (under 200 products)

Step 2: Platform-specific setup


Shopify

Shopify uses Collections as the primary categorization mechanism. Collections can be manual (hand-curated) or automated (rules-based).

Creating a collection hierarchy:

  1. Go to Admin → Products → Collections → Create collection
  2. For the "Women's Dresses" example:

- Create a parent collection: "Clothing" (manual, for navigation menu) - Create a child collection: "Women's Dresses" (automated, rule: tag contains womens-dress)

  1. Set the collection's SEO fields: Title, Meta description, and URL handle
  2. Add a collection image and description — these improve SEO and conversion on the collection page

Automated collections (rule-based — recommended):

  • Set rules like: Product type equals "Dress" AND tags contain "womens"
  • Products matching the rules are automatically added — no manual curation needed
  • Best for large catalogs where you can't manually assign every product

Manual collections:

  • Best for curated edits (e.g., "Summer Picks", "Staff Favorites")
  • Add products by hand from the collection edit page

Navigation menu hierarchy:

  1. Go to Online Store → Navigation
  2. Open the main menu
  3. Add each collection as a menu item; nest items by dragging sub-items under parent items
  4. This creates the visual hierarchy in your storefront's navigation even though Shopify collections are technically flat

Tags for additional filtering:

  • Add product tags like color-red, size-M, material-cotton
  • Use a faceted filtering app (Boost Commerce, Searchpie) to turn tags into filterable attributes on collection pages

Breadcrumbs: Most Shopify themes include breadcrumbs automatically. If not:

  • Go to Online Store → Themes → Customize
  • Search for "breadcrumb" in theme settings — many themes have a toggle
  • For Dawn/Debut: breadcrumbs are theme-specific and may need liquid code changes

WooCommerce

WooCommerce has hierarchical product categories — the closest to a traditional category tree.

Create a category hierarchy:

  1. Go to Products → Categories → Add New Category
  2. Create your top-level category: "Clothing"
  3. Create a child category: "Women's" — select "Clothing" as the Parent Category
  4. Create a grandchild: "Dresses" — select "Women's" as the Parent

WooCommerce generates SEO-friendly URLs automatically:

  • Clothing: /product-category/clothing/
  • Women's: /product-category/clothing/womens/
  • Dresses: /product-category/clothing/womens/dresses/

Assign products to categories:

  1. Open a product and go to the Product Categories widget in the sidebar
  2. Check all applicable categories (products can belong to multiple categories)
  3. Check the Primary category for breadcrumb display (requires Yoast SEO)

Category page SEO:

  1. Edit a category: Products → Categories → [Category] → Edit
  2. Set a Description (unique text appears above the product grid — important for SEO)
  3. Upload a Thumbnail image
  4. With Yoast SEO: scroll to the Yoast section on the category edit page and set SEO title and Meta description for each category

Breadcrumbs:

  • Install Yoast SEO (free) — it adds breadcrumb navigation automatically
  • Or enable breadcrumbs in WooCommerce → Settings → Advanced → Breadcrumbs
  • Configure the breadcrumb separator and home label

BigCommerce

BigCommerce has a nested category system with unlimited depth.

Create categories:

  1. Go to Products → Product Categories → Add
  2. Enter the category name, description, and URL (BigCommerce lets you customize the URL)
  3. Select a Parent category to nest it
  4. Upload a category image
  5. Set SEO Title and Meta description for each category

Assign products to categories:

  1. Edit a product
  2. Under Categories, check all applicable categories
  3. BigCommerce supports assigning a product to multiple categories

Category sort order:

  • Set sort order per category: manual, price ascending/descending, newest, bestselling
  • Configure under the category edit page → Sort Products By

Breadcrumbs: BigCommerce themes include breadcrumbs by default, automatically following the nested category path. Customize the breadcrumb template in your theme's Stencil files if needed.


Custom / Headless

For headless storefronts, use a materialized path model for efficient breadcrumb queries:

// Category model with materialized path
interface Category {
  id: string;
  name: string;
  slug: string;
  parentId: string | null;
  path: string;       // e.g., "clothing/women/dresses" — ancestor slugs joined by /
  pathIds: string[];  // IDs for fast joins: ['cat_root', 'cat_clothing', 'cat_women', 'cat_dresses']
  depth: number;
  position: number;   // Sort order among siblings
  published: boolean;
  seoTitle?: string;
  seoDescription?: string;
}

// Get breadcrumbs in one query using materialized path
export async function getCategoryWithBreadcrumb(slug: string) {
  const category = await db.categories.findUnique({ where: { slug } });
  if (!category) return null;

  // Fetch all ancestors in one query using pathIds
  const ancestors = await db.categories.findMany({
    where: { id: { in: category.pathIds.slice(0, -1) } },
    orderBy: { depth: 'asc' },
  });

  return {
    ...category,
    breadcrumbs: [
      ...ancestors.map(a => ({ name: a.name, url: `/c/${a.path}` })),
      { name: category.name, url: `/c/${category.path}` },
    ],
  };
}

// Update materialized paths when a category is moved
export async function moveCategory(categoryId: string, newParentId: string | null) {
  const category = await db.categories.findUnique({ where: { id: categoryId } });
  const newParent = newParentId ? await db.categories.findUnique({ where: { id: newParentId } }) : null;

  const newPath = newParent ? `${newParent.path}/${category.slug}` : category.slug;
  const newPathIds = newParent ? [...newParent.pathIds, categoryId] : [categoryId];

  // Update this category and all descendants in a transaction
  const descendants = await db.categories.findMany({ where: { path: { startsWith: category.path + '/' } } });

  await db.$transaction([
    db.categories.update({
      where: { id: categoryId },
      data: { parentId: newParentId, path: newPath, pathIds: newPathIds, depth: newPath.split('/').length },
    }),
    ...descendants.map(desc => db.categories.update({
      where: { id: desc.id },
      data: {
        path: desc.path.replace(category.path, newPath),
        pathIds: [...newPathIds, ...desc.pathIds.slice(category.pathIds.length)],
        depth: desc.path.replace(category.path, newPath).split('/').length,
      },
    })),
  ]);
}

Step 3: Optimize category pages for SEO

Regardless of platform, every category page needs:

  1. Unique description: 100–200 words of original text describing what's in this category. "Shop women's dresses" is not enough — describe the styles, materials, occasions.
  2. Category image: A hero or banner image relevant to the category
  3. SEO title: Format — [Category Name] | [Store Name] (e.g., "Women's Dresses | YourStore")
  4. Meta description: 150–160 characters highlighting what makes your selection unique
  5. Canonical URL: The category's clean URL without filter parameters (e.g., /clothing/womens/dresses, not /clothing/womens/dresses?color=red)

Canonical URLs for filtered pages:

  • Shopify: themes handle this automatically for collection pages
  • WooCommerce + Yoast SEO: Yoast sets the canonical automatically
  • BigCommerce: set canonicals in category settings

Step 4: Bulk-assign categories for large catalogs

For catalogs with hundreds or thousands of products to categorize:

Shopify:

  • In Admin → Products, select multiple products using the checkboxes
  • Click Bulk actions → Add to collection to assign them all at once
  • For automated collections, products are assigned automatically when they match the rules

WooCommerce:

  • Use WP All Import to bulk-assign categories via CSV
  • Or use the Products Bulk Edit in WooCommerce admin

AI-assisted categorization (any platform):

  • Export your product catalog with titles and descriptions
  • Use an AI tool to suggest categories based on product content
  • Import the suggested categories back in bulk using Matrixify (Shopify) or WP All Import (WooCommerce)
  • Always review AI suggestions for accuracy before publishing

Best Practices

  • Use automated (rule-based) collections on Shopify for the main taxonomy — they self-update as products are added; manual collections are for curated editorial picks
  • Write unique descriptions for every category page — pages without descriptions are thin content and rarely rank; even 100 words of original text makes a meaningful SEO difference
  • Limit depth to 3 levels for most stores — the extra specificity of level 4 rarely helps SEO and creates navigation complexity
  • Use tags for cross-cutting attributes (color, material, occasion) rather than categories — tags power faceted filtering without multiplying your category tree
  • Update paths in a transaction when moving categories — a partially updated tree creates broken breadcrumbs; always update the category and all its descendants atomically

Common Pitfalls

ProblemSolution
Breadcrumb shows wrong categoryOn WooCommerce, install Yoast SEO and set the primary category per product; without a primary category, the breadcrumb may show any assigned category
Shopify collection page has no unique contentAdd a collection description in Admin → Collections → [Collection] → Description; many merchants leave this blank and miss an SEO opportunity
Duplicate content on category + filtered URLsSet canonical tags pointing to the clean category URL for all filter variations; block crawling of paginated pages beyond page 2
Products assigned to too many categoriesEach product should have one primary category plus optional secondary ones; too many categories dilutes the signals and confuses navigation
Category rename breaks existing linksWhen renaming, set up a URL redirect from the old URL to the new URL; all platforms support redirects in settings

Related Skills

  • @product-data-modeling
  • @product-content-enrichment
  • @catalog-import-export

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.31%
按下载量换算53

Claude

31.6%
按下载量换算47

Cursor

19.19%
按下载量换算29

Gemini CLI

9.78%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills