AGENT SKILL

observability-and-hooks

Guides agents configuring CrewAI telemetry, tracing, observability integrations, event listeners, execution hooks, kickoff hooks, output logs, task outputs, and security fingerprints.

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

01 前言 Front Matter

name
observability-and-hooks
license
MIT
metadata
{ "disco-role": "operating" }
description
Guides agents configuring CrewAI telemetry, tracing, observability integrations, event listeners, execution hooks, kickoff hooks, output logs, task outputs, and security fingerprints.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

CrewAI Observability and Hooks

Use this sub-skill when a task involves CrewAI tracing, anonymous telemetry, observability providers, event listeners, LLM/tool execution hooks, before/after kickoff hooks, output logs, latest task outputs, or component fingerprints.

Route by Intent

  • Need Crew/Flow tracing enablement, telemetry disable switches, privacy boundaries, output logs, latest task outputs, or replay-observability data? Read Tracing reference.
  • Need @before_kickoff, @after_kickoff, LLM hooks, tool hooks, hook registration/cleanup, event listener setup, callback signatures, or hook ordering? Read Hooks reference.
  • Need OpenTelemetry exporter patterns, OpenLIT, Datadog, Langfuse, LangDB, Phoenix, Portkey, Weave, Opik, MLflow, Patronus, or other provider integration boundaries? Read Integrations.
  • Need to debug duplicate/missing traces, env override confusion, endpoint/protocol mismatches, callback signature errors, hooks overriding each other, log/task-output gaps, or fingerprint changes? Read Troubleshooting.
  • Need a safe read-only snapshot of tracing-related env vars and installed observability packages? Run check_tracing_config.py with --help first.

Boundaries

  • Stay here for tracing, telemetry, event listeners used for monitoring, execution hooks, kickoff hooks, output logs, task output audit data, and fingerprints.
  • Use flows-and-events for Flow, @start, @listen, @router, flow graph mechanics, route labels, plotting, and flow persistence semantics.
  • Use cli-and-projects for exact crewai command syntax, project scaffolding, crewai traces, crewai log-tasks-outputs, replay flags, and deployment commands.
  • Use core-runtime for Agent, Task, Crew, Process, CrewOutput, TaskOutput, guardrails, callbacks outside observability, and core kickoff behavior.
  • Use tools-and-mcp for tool implementation, official tool classes, MCP adapters, and tool publishing beyond hook interception.
  • Return to the CrewAI root skill when a request spans multiple CrewAI capability areas and needs root routing context.

Safe Defaults

  • Prefer read-only inspection first: env/package checks, config review, and hook registration review before running a crew, flow, tool, LLM, or external exporter.
  • Treat hosted trace dashboards and third-party observability providers as credential-bound: document required env vars, but do not send traces or initialize SDKs without approval.
  • Use tracing=False on a specific Crew/Flow when a run must not emit CrewAI built-in traces; use telemetry disable env vars for OpenTelemetry-style anonymous telemetry spans.
  • Keep hooks small and deterministic; avoid network calls, destructive tools, blocking prompts, or secret-printing inside global hooks unless the user explicitly approves the side effect.
  • Clear or unregister global hooks in tests, notebooks, and long-lived workers to prevent duplicate behavior across repeated imports or @CrewBase instantiations.

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