返回 Skill 列表
extension
分类: 开发与工程无需 API Key

fynt-workflow-engine-runtime

在受Fynt启发的架构中构建和升级生产级别的工作流自动化引擎,该引擎具有类型化的节点契约、图验证、依赖感知执行、安全的执行器适配器、运行锁定、调度去重以及实时状态流。当实现n8n风格的工作流运行时逻辑、添加节点类型、加强执行正确性或重构工作者/调度器/实时子系统时使用。

person作者: jakexiaohubgithub

Fynt Workflow Engine Runtime

Use this skill to extract and apply the backend execution DNA of the platform.

Invocation Contract

  • $fynt-workflow-engine-runtime mode=clone
  • $fynt-workflow-engine-runtime mode=adapt
  • $fynt-workflow-engine-runtime mode=upgrade

If mode is missing, default to adapt.

Mode Behavior

  • clone: preserve Fynt runtime patterns closely (BullMQ worker, redis locks, strict template mode, evented run status).
  • adapt: keep reliability patterns and contracts while fitting another schema, stack, or brand.
  • upgrade: refactor an existing engine with measurable stability, safety, and observability improvements.

Required Output Contract

Always include:

  1. Runtime architecture plan (API -> queue -> worker -> storage -> realtime).
  2. Node contract plan (types, schemas, parse/validation boundaries, config rules).
  3. Execution semantics plan (batching, conditional routing, skips, retries, terminal state logic).
  4. Executor safety plan (credentials, SSRF protection, payload limits, external API error hints).
  5. Scheduling and concurrency plan (cron dedupe, run reservation, lock and rollback design).
  6. Realtime status plan (node/workflow event model and socket fallback strategy).
  7. Test strategy (unit, integration, failure-injection, idempotency checks).
  8. Rubric scorecard and pass/fail decision.

Do not finalize without passing references/quality-rubric.md.

Workflow

  1. Read references/source-pattern-map.md first.
  2. Load only needed references:
  3. Reuse assets when code is requested:
  4. Score output with rubric; iterate until pass.

Non-Negotiables

  • Enforce typed node contracts and input limits before execution.
  • Keep run reservation and concurrency checks atomic under lock.
  • Roll back usage reservations when enqueue fails.
  • Protect outbound requests against SSRF/private network targets.
  • Emit deterministic node and workflow status events.
  • Keep fallback behavior when redis/socket services degrade.

Anti-Patterns To Reject

  • Running unvalidated graph payloads directly in worker.
  • Node executors that swallow provider errors without actionable hints.
  • No dedupe on cron scheduling or no per-run lock in worker.
  • Credential handling that leaks secrets or bypasses ownership checks.
  • Realtime status that depends on socket-only success.