Agent Skills
› NeverSight/learn-skills.dev
› workflows-orchestration
workflows-orchestration
GitHub用于实现多步骤用户旅程和跨能力流程的编排技能。通过事件驱动的状态机协调应用层逻辑,确保确定性状态转换、并发控制及端到端可观测性,避免直接导入耦合。
Trigger Scenarios
需要实现多步骤业务流程
设计长运行或事件驱动的协调逻辑
构建跨模块的复杂用户旅程
Install
npx skills add NeverSight/learn-skills.dev --skill workflows-orchestration -g -y
SKILL.md
Frontmatter
{
"name": "workflows-orchestration",
"description": "Workflow orchestration patterns for src\/app\/workflows, focusing on application-layer use cases, long-running flows, event-driven coordination, and deterministic state transitions; use when implementing multi-step user journeys or cross-capability processes."
}
Workflows Orchestration
Intent
Implement multi-step processes as explicit application workflows that coordinate capabilities via events, not via direct imports.
Workflow Model
- A workflow is a state machine: explicit states, transitions, and terminal states.
- Keep transitions deterministic and driven by events/commands.
Where Logic Lives
- Workflow coordination lives in the Application layer (stores/use cases).
- Domain invariants stay in Domain; do not encode rules in UI components.
Event-Driven Coordination
- Workflows subscribe to events to advance state.
- Publish events only after persistence (append-before-publish).
Concurrency
- Choose explicit concurrency semantics for async operations (cancel, queue, ignore).
- Avoid parallel append/publish operations that break causal ordering.
Observability
- Include correlation IDs so a whole workflow run can be traced end-to-end.
Version History
- e0220ca Current 2026-07-05 21:27


