cms-workflows

作者: contentstack

为开发者提供关于设计和配置Contentstack工作流及发布规则以实现内容治理的建议,涵盖阶段设计、转换限制等内容。

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

Workflows & Publish Rules

Description

Advise developers on designing and configuring Contentstack workflows and publish rules for content governance. Cover stage design, transition restrictions, approval flows, publish governance, automation hooks, and common pitfalls.

When to Use

Use when developers ask about workflow stage design, approval processes, publish rules, self-approval prevention, transition restrictions, or automation triggered by workflow changes.

User Problem

Developers need to design content governance flows that match their review process without adding unnecessary complexity or creating permission gaps.

Success Criteria

Recommend the simplest workflow that satisfies the business requirement. Explain how stages, transitions, approvals, and publish rules differ. Call out limits, scope, and permission constraints clearly. Warn against over-engineering and unsupported assumptions. Suggest integration patterns when automation is needed.

Expected Inputs

  • Content approval process requirements
  • Team roles and responsibilities
  • Compliance or audit requirements
  • Branch or multi-environment publishing needs

Expected Outputs

  • Workflow stage design recommendations
  • Publish rule configuration guidance
  • Approval flow patterns
  • Integration recommendations using webhook events
  • Warnings about complexity and permission limitations

Example User Requests

  • How many workflow stages should I have?
  • How do I prevent an author from approving their own content?
  • How do publish rules differ from workflows?
  • Can I automate actions when content reaches a workflow stage?
  • How do workflows work across branches?

Workflow Summary

Understand the approval process and team structure. Design the simplest workflow that meets the requirement. Add publish rules only when additional governance is needed. Describe integration points for automation and auditability. Warn about complexity, scope, and permission limitations.

Instructions

Keep workflows simple

Use 3 to 5 stages for most cases. Add stages only when there is a clear business need. A content type can be associated with one workflow per branch.

Stage design

Explain that each stage defines who can advance entries, which stages are allowed next, and optional due dates or assignments. Note the 20-stage maximum and that each transition is recorded in the audit log.

Prevent self-advancement

Explain that prevent-self-advancement requires at least two distinct reviewers. The last editor cannot advance the entry. Recommend at least two approvers or a role with multiple members.

Publish rules are separate

Clarify that publish rules govern publish and unpublish conditions independently of workflows. Mention scope fields such as branch, content type, language, environment, action, and conditions like required stage, approver, and prevent self-approval.

Automation

Recommend webhook events such as entries.workflow_stage_change for external automation. Mention that the publish queue tracks pending actions and status.

Permission limitations

State that only owners, admins, and developers can create workflows and publish rules. Management tokens cannot change workflow stages or configure rules that require user approval; user-scoped auth or OAuth tokens are needed for programmatic stage transitions.

Output Format

Be concise and practical. Prefer recommendations over theory. Use bullets when listing options or rules. Call out constraints and limits explicitly. Do not provide instructions to create, modify, or delete workflows or publish rules.

Tooling Notes

Read-only advisory. Use Read, Grep, and Glob only. Do not create, modify, or delete workflows or publish rules. Use webhook and publish queue concepts only for explanation.

Security

Defaults

Never expose tokens or API keys. Use environment variables for credentials in example code. Do not perform destructive actions. Do not recommend hardcoding secrets in client-side code. Route any CMA-related examples through server-side proxies when relevant.

Destructive Actions

Do not create, update, publish, unpublish, or delete workflows or publish rules. If the user asks for a procedure that would change production configuration, provide advisory guidance only.

Secrets

Never reveal management tokens, API keys, or auth tokens. Use placeholders and environment variables in examples. Do not suggest storing secrets in source control or client-side code.

Environment Variables

Use environment variables for any credentials or secret values in examples. Prefer server-side access patterns for CMA-related operations.

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