cms-taxonomy

作者: contentstack

指导开发者使用Contentstack Taxonomy进行结构化、层级化的内容分类及交付端过滤。涵盖分类法与标签的区别,…

npx skills add https://github.com/contentstack/contentstack-agent-skills --skill cms-taxonomy

Contentstack Taxonomy

Description

Advise developers on using Contentstack Taxonomy for structured, hierarchical content classification and delivery-side filtering. Covers taxonomy vs tags, labels, and references; hierarchy design; CDA query operators; localization; and import/export.

When to Use

Use when developers need help classifying content, designing category hierarchies, choosing between taxonomy and other classification approaches, or querying entries by category on the delivery side.

User Problem

Developers need a governed way to classify content so it can be filtered, navigated, and organized in delivery experiences. They also need guidance on when taxonomy is the right mechanism versus tags, labels, or references.

Success Criteria

Recommends taxonomy only when it fits the use case Explains hierarchy design and term relationships clearly Uses CDA taxonomy operators for filtering examples Distinguishes taxonomy from tags, labels, and references Covers localization and import/export when relevant

Expected Inputs

  • Classification or filtering requirements
  • Hierarchy depth and structure
  • Delivery-side query needs
  • Localization requirements
  • Migration or import needs

Expected Outputs

  • Taxonomy vs alternatives recommendation
  • Hierarchy design guidance
  • CDA query operator examples
  • Localization guidance
  • Import/export advice

Example User Requests

  • Should I use taxonomy or tags for product categories?
  • How do I query entries by taxonomy term on the CDA?
  • How do I design a taxonomy hierarchy for my site?
  • Can I localize taxonomy terms?
  • Should categories be a separate content type with references or taxonomy?

Workflow Summary

Understand the classification need and delivery requirements. Recommend the right mechanism: taxonomy, tags, labels, or references. If taxonomy fits, guide hierarchy design and term modeling. Show CDA taxonomy query operators for filtering. Cover localization and import/export if relevant.

Instructions

Use taxonomy when

Use taxonomy for structured, hierarchical classification that must be queried on the delivery side. Good fits include product categories, geographic regions, content topics, and document types.

Do not use taxonomy when

Do not use taxonomy for freeform labels, internal CMS organization, or rich category pages with their own content model. Use tags for freeform labels, labels for internal organization, and a Category content type with references for rich landing pages.

Hierarchy design

Plan the hierarchy before creating it. Keep it practical, usually 3-4 levels max. Terms are parent-child ordered. Moving a term with children is blocked by default unless the force flag is explicitly used.

CDA filtering

Use taxonomy query operators instead of manual filtering: $taxonomy_exists for any term, $taxonomy_equal for a specific term, $taxonomy_below for a term and descendants, and $taxonomy_above for ancestors.

Localization and import/export

Note that taxonomy localization is plan-dependent. Localized terms share the same UID as the master term. Import/export supports JSON and CSV; invalid CSV rows are skipped while valid rows are processed.

Output Format

Be concise and practical. State the taxonomy-vs-alternatives decision first. Show CDA query operators inline. Use examples only when they clarify the recommendation.

Tooling Notes

Read-only advisory skill. Do not create, modify, or delete taxonomies or terms. Restrict tool use to read/search tools when possible.

Security

Defaults

Never expose tokens or API keys. Use environment variables for credentials in example code. Do not perform destructive actions. Avoid suggesting client-side access to management credentials.

Destructive Actions

Do not create, update, move, delete, or import taxonomy data. Provide guidance only.

Secrets

Never reveal management tokens, API keys, or other secrets. Use placeholders and environment variables in any example code.

Environment Variables

Use environment variables for credentials in examples and implementation guidance. Never hardcode secrets in client-side code.

Product Context

    • Product: CMS
    • Description: Contentstack headless CMS: content types, entries, assets, environments, publishing, workflows, webhooks, and the Content Management API (CMA).
    • Product safety rules: - Never expose management tokens or API keys.
  • Always use environment variables for credentials.
  • Route all CMA calls through server-side proxies in browser apps.
  • Never hardcode stack API keys in client-side code.
    • Default tools: ["CMA API", "Content Types", "Entries", "Assets", "Workflows", "Webhooks", "Environments", "Releases", "Publish Queue"]
    • Default connectors: ["CMA Proxy", "Webhooks"]

来自 contentstack 的更多技能

brand-kit-assistant
contentstack
为用户提供关于Contentstack品牌工具包的概念、设置、治理及符合品牌规范的AI生成建议。将API相关任务引导至正确的品牌工具包功能或…
official
cms-assets
contentstack
为开发者提供关于在Contentstack中组织、交付和转换资源的建议。涵盖文件夹结构、图片交付API转换、发布……
official
cms-branches-aliases
contentstack
指导开发者使用Contentstack分支进行独立内容开发,以及使用别名实现零停机内容部署。涵盖分支策略、…
official
cms-data-modeling-best-practices
contentstack
指导开发者使用最简单可复用的结构在Contentstack中建模内容。该技能解释了何时使用内容类型、引用、全局…
official
cms-entries
contentstack
为开发者提供关于查询、本地化、版本管理、发布和结构化Contentstack条目的建议,以实现高效交付。重点介绍CDA的使用、引用…
official
cms-environments-publishing
contentstack
为开发者提供关于配置环境、发布内容、使用分发和预览令牌、利用同步API以及理解CDN和……的建议
official
cms-live-preview-visual-builder-support-assistant
contentstack
诊断并指导Contentstack Live Preview和Visual Builder的实现。追踪预览上下文,识别损坏的契约,并推荐…
official
cms-localization
contentstack
为开发者提供Contentstack本地化建议:语言设置、回退链、本地化与非本地化条目、不可本地化字段及多语言环境…
official