Compétences workflow-orchestration-patterns
🧭

workflow-orchestration-patterns

Sûr 🌐 Accès réseau⚙️ Commandes externes

设计持久的 Temporal 工作流

Également disponible depuis: sickn33

分布式事务缺乏清晰的编排就会失败。本技能提供 Temporal 模式,用于确定性工作流、重试和补偿操作。

Prend en charge: Claude Codex Code(CC)
📊 71 Adéquat
1

Télécharger le ZIP du skill

2

Importer dans Claude

Allez dans Paramètres → Capacités → Skills → Importer un skill

3

Activez et commencez à utiliser

Tester

Utilisation de "workflow-orchestration-patterns". Outline a Temporal saga for booking travel with rollback steps.

Résultat attendu:

  • Register compensations before each step
  • Reserve flight, compensate by canceling reservation
  • Book hotel, compensate by canceling booking
  • Charge payment, compensate by refunding payment
  • On failure, run compensations in reverse order (LIFO)

Utilisation de "workflow-orchestration-patterns". When should I use a child workflow versus parallel activities?

Résultat attendu:

  • Use child workflows for complex, reusable process segments
  • Use parallel activities for simple independent tasks
  • Child workflows have their own execution history and timeouts
  • Activities share parent workflow history and run faster

Utilisation de "workflow-orchestration-patterns". How do I handle long-running activities that might stall?

Résultat attendu:

  • Implement heartbeat within activity to report progress
  • Set heartbeat timeout to detect stalled work
  • Use heartbeat details to enable progress-based retry
  • Break long tasks into smaller idempotent steps

Audit de sécurité

Sûr
v4 • 1/17/2026

Pure documentation skill containing only markdown guidance about Temporal workflow patterns. No executable code, scripts, or network activity. All 43 static findings are false positives triggered by documentation metadata and code block syntax - specifically git hash identifiers flagged as weak crypto, markdown backticks flagged as shell execution, and normal error classification flagged as reconnaissance.

2
Fichiers analysés
462
Lignes analysées
2
résultats
4
Total des audits

Score de qualité

38
Architecture
100
Maintenabilité
85
Contenu
29
Communauté
100
Sécurité
91
Conformité aux spécifications

Ce que vous pouvez construire

设计支付编排

规划具有补偿、重试和幂等活动的多步骤支付工作流。

建模长期实体

为账户或购物车选择使用信号和可查询状态的实体工作流。

强化故障恢复

为关键活动定义重试限制、退避和心跳策略。

Essayez ces prompts

工作流或活动
将我的订单流程的每个步骤分类为工作流或活动并解释原因。
Saga 清单
为预留库存、收取付款和发货订单起草一个包含补偿和幂等性规则的 saga 计划。
并行扩展
使用子工作流和有界工作流大小,为 500,000 个任务提出扇出和扇入设计。
版本控制策略
为具有向后兼容性约束的长期运行工作流更新推荐版本控制方法。

Bonnes pratiques

  • 保持工作流的确定性,将所有 I/O 移至活动
  • 使活动幂等、短命,并始终配置超时
  • 使用子工作流扩展大型并行工作负载

Éviter

  • 直接从工作流调用外部 API
  • 在工作流中使用系统时间或随机函数
  • 在执行步骤前跳过补偿注册

Foire aux questions

这是否兼容所有 Temporal SDK?
是的,这些模式与 SDK 无关,专注于架构和设计原则。
涵盖的主要限制有哪些?
它解决了确定性、有效负载大小、重试行为和长期运行执行约束的问题。
如何将其与现有服务集成?
对外部调用使用活动,并保持工作流专注于编排和决策逻辑。
它是否访问或存储我的数据?
不,这只是文档,不包含代码或数据处理功能。
如果我的工作流反复失败怎么办?
使用带有限制的重试策略,对不可重试的错误进行分类,并为部分失败添加补偿。
它与 Airflow 或 Kafka 相比如何?
它针对长期运行的编排和分布式事务,而非批处理管道或实时流。

Détails du développeur

Structure de fichiers

📄 SKILL.md