AGENT SKILL

workflow-engine

Operate on BiSheng's LangGraph workflow DAG engine, workflow nodes, graph state, callbacks, interruptions, and Celery workflow execution.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
workflow-engine
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Operate on BiSheng's LangGraph workflow DAG engine, workflow nodes, graph state, callbacks, interruptions, and Celery workflow execution.
disable-model-invocation
true

02 资源文件 3

03 SKILL.md 正文

workflow-engine

Use this sub-skill when a task touches BiSheng visual workflow execution: LangGraph DAG compilation, node registration, GraphState variable passing, conditional edges, callbacks, streaming events, input/output interruptions, workflow Celery tasks, or adding/debugging workflow nodes.

Start here

Run bundled helper commands from this sub-skill directory, or adjust the script path to this directory after import.

  1. Inspect node registration without importing the backend:
    python scripts/inspect_workflow_nodes.py --repo-root <bisheng-checkout>
    
  2. Read references/workflows.md for GraphEngine, node, callback, and worker workflows.
  3. Read references/troubleshooting.md when execution, resume, fan-in, callback, or Celery behavior is unclear.

Owned responsibilities

  • src/backend/bisheng/workflow/common/node.py node type definitions and node data schemas.
  • workflow/nodes/node_manage.py node factory and NODE_CLASS_MAP registration.
  • workflow/graph/graph_engine.py, graph_state.py, and workflow.py graph compilation and execution.
  • workflow/edges/edges.py conditional routing, fan-in, and branch handling.
  • workflow/callback/ callback events and LLM streaming bridges.
  • src/backend/bisheng/worker/workflow/tasks.py and Redis callback behavior for async execution, continuation, and stop signals.
  • Tests under src/backend/test/workflow/ and workflow-related API/service tests.

Route sibling areas instead of duplicating them

  • Use frontend-apps for React workflow canvas UI, node panels, route guards, or request wrappers.
  • Use knowledge-rag for KnowledgeRetriever, QA retriever, RAG pipeline internals, and retrieval quality.
  • Use linsight-mcp for Linsight autonomous task-mode workflows, SOP/Skill runtime, and MCP tools.
  • Use identity-permissions-tenancy for workflow app visibility, app permissions, tenant filters, and cursor list permission scans.
  • Use backend-core for route/envelope/service-layer changes not specific to workflow execution.

Non-negotiables

  • Add a workflow node by updating the enum, node class, and factory map together.
  • Preserve GraphState variable reference semantics ({node_id}.{variable_key} and indexed suffixes) when changing node outputs.
  • Respect INPUT and interactive OUTPUT interruption/resume behavior; do not bypass LangGraph checkpoints casually.
  • Keep callback event payloads compatible with frontend streaming and persisted message expectations.
  • Do not run long workflow executions, external tools, or LLM calls as verification unless the environment and credentials are explicitly approved.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351