flows-and-events
Use when building or debugging CrewAI Flow graphs, stateful flow execution, decorators, routers, persistence, checkpointing, plotting, human feedback, event listeners, and method hook ordering.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- flows-and-events
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Use when building or debugging CrewAI Flow graphs, stateful flow execution, decorators, routers, persistence, checkpointing, plotting, human feedback, event listeners, and method hook ordering.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/api-reference.md8.8 KB
- 参考文档references/event-hooks.md8.5 KB
- 参考文档references/flow-patterns.md9.6 KB
- 参考文档references/troubleshooting.md10.7 KB
- 脚本scripts/validate_flow_graph.py15.4 KB
03 SKILL.md 正文
CrewAI Flows and Events
Use this sub-skill when the task is about CrewAI Flow classes, @start, @listen, @router, and_/or_ triggers, state, routing labels, event ordering, flow plotting, replay/resume, or human feedback inside flows.
Route by Intent
- Need exact decorator signatures, import paths, constructor options, or event types? Read API reference.
- Need flow graph design patterns, typed state, multiple starts, routers, persistence, checkpointing, plotting, conversational flows, or human feedback loops? Read Flow patterns.
- Need event listeners, event bus usage, flow method event ordering, scoped handlers, or before/after kickoff adjacency? Read Event hooks.
- Need to diagnose missing listeners, router labels, state errors, plotting failures, duplicate resumed calls, or HITL loops? Read Troubleshooting.
- Need a safe static graph check for a user-defined flow class? Run validate_flow_graph.py with
--helpfirst.
Boundaries
- For
Agent,Task,Crew,Process, guardrails, crew callbacks, or task-level human input, use core-runtime. - For
crewai create flow,crewai flow kickoff,crewai flow plot,crewai run, or project scaffolds, use cli-and-projects. - For tracing/export provider setup, telemetry integrations, LLM hooks, tool hooks, or observability destinations, use observability-and-hooks.
- For root routing context across CrewAI packages, return to the CrewAI root skill.
Safe Defaults
- Prefer static graph inspection and
flow.plot(...)before running a flow with live LLMs or tools. - Do not call
kickoff()while only validating graph shape;kickoff()can execute user code, crews, tools, LLMs, and human prompts. - Use explicit router
emit=[...]orLiteral[...]return annotations so static tools and plots can show intended route labels. - Keep flow method names and route label strings stable; listeners depend on exact method names or exact emitted labels.
04 同仓库更多 Skills
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.
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.
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.
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.
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.
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).