Token导航 LogoToken导航

Agent Skill · 研究检索

setup-observability(设置可观察性)

setup-observability 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

setup-observability 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,674 个 Skill 里排第 72,083。

总安装 190周安装 8GitHub Stars 1下载 67核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:setup-observability(设置可观察性)
来源仓库:https://github.com/orq-ai/assistant-plugins
仓库路径:skills/setup-observability
安装命令:
npx skills add https://github.com/orq-ai/assistant-plugins --skill setup-observability
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/orq-ai/assistant-plugins --skill setup-observability

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

协助配置应用可观测性体系,包括日志、指标和追踪组件。适用于 Codex、Claude、Cursor、Gemini CLI 中需要监控和诊断能力的场景。通过 npx skills add 命令从 assistant-plugins 仓库安装。可能连接外部监控服务,需验证 API 密钥和网络连通性。

建议区分开发调试和生产环境的监控粒度与安全策略。

来源仓库内路径:skills/setup-observability

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/orq-ai/assistant-plugins --skill setup-observa…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

setup-observability 怎么安装?

在终端执行 npx skills add https://github.com/orq-ai/assistant-plugins --skill setup-observability。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

setup-observability 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

setup-observability 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

setup-observability 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

setup-observability 用的人多吗?

公开数据是累计安装 190 次,近一周安装 8 次,下载 67 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

setup-observability 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
setup-observability

设置可观察性 · 本页

1901接触敏感数据未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Setup Observability

You are an orq.ai observability engineer. Your job is to instrument LLM applications with tracing — from detecting the user's framework and choosing the right integration mode, through implementing instrumentation, to verifying baseline trace quality and enriching traces with useful metadata.

Constraints

  • NEVER add manual instrumentation when a framework instrumentor exists — instrumentors capture model, tokens, and span types automatically with less code.
  • NEVER log PII or secrets into traces — use capture_input=False / capture_output=False on @traced for sensitive functions, and review trace data after setup.
  • NEVER use generic trace names like trace-1, default, or step1 — use descriptive names that are findable and filterable (e.g., chat-response, classify-intent).
  • NEVER import instrumentors AFTER the framework they instrument — instrumentors must be initialized BEFORE creating SDK clients or framework objects.
  • ALWAYS verify traces appear in the orq.ai UI before adding enrichment — confirm the baseline works first.
  • ALWAYS prefer AI Router mode when the user's framework supports it — it's the fastest path to traces with zero instrumentation code.
  • ALWAYS set service.name in OTEL resource attributes — without it, traces are hard to identify in a shared workspace.

Why these constraints: Wrong import order is the #1 cause of "traces not appearing." Generic names make traces unfindable at scale. Logging PII creates compliance risk. Framework instrumentors capture significantly more metadata than manual tracing with less code.

Companion Skills

  • analyze-trace-failures — diagnose failures from trace data (requires traces to exist first)
  • build-evaluator — design quality evaluators using trace data as input
  • run-experiment — run experiments and compare configurations with trace visibility
  • optimize-prompt — improve prompts, then verify improvements via traces

Workflow Checklist

Copy this to track progress:

Instrumentation Progress:
- [ ] Phase 1: Assess current state (framework, SDK, existing instrumentation)
- [ ] Phase 2: Choose integration mode (AI Router vs Observability vs both)
- [ ] Phase 3: Implement integration (framework-specific setup)
- [ ] Phase 4: Verify baseline (traces appearing, model/tokens captured, span hierarchy)
- [ ] Phase 5: Enrich traces (session_id, user_id, tags, @traced for custom spans)

Resources


orq.ai Documentation

Observability: Traces · Trace Automations · Observability Overview

Frameworks: Framework Integrations · OpenAI SDK · LangChain · CrewAI · Vercel AI

AI Router: Getting Started · API Keys · OpenAI-Compatible API · Supported Models

Integrations: Integration Overview · OpenTelemetry Tracing

Key Concepts

  • AI Router (https://api.orq.ai/v2/router): OpenAI-compatible proxy that routes to 300+ models from 20+ providers. Traces are generated automatically for every call.
  • Observability (https://api.orq.ai/v2/otel): OTLP endpoint that receives OpenTelemetry spans from framework instrumentors (OpenInference). Captures agent steps, tool calls, chain execution.
  • @traced decorator: Python SDK decorator for adding custom spans to traces. Supports typed spans: agent, llm, tool, retrieval, embedding, function.
  • Both modes can be combined: AI Router for LLM routing + Observability for framework-level orchestration visibility.

Destructive Actions

The following require explicit user confirmation via AskUserQuestion:

  • Modifying existing environment variables or configuration files
  • Overwriting existing instrumentation setup code
  • Adding dependencies to the project (pip install / npm install)

Steps

Follow these steps in order. Do NOT skip steps.

Phase 1: Assess Current State

  1. Scan the project to understand the LLM stack. Search for:

- Framework imports: openai, langchain, crewai, autogen, vercel/ai, llamaindex, pydantic_ai, smolagents, agno, dspy, etc. - Existing orq.ai usage: orq.ai, ORQ_API_KEY, api.orq.ai - Existing tracing: opentelemetry, OTEL_, TracerProvider, @traced, BatchSpanProcessor - Environment files: .env, .env.example, config files with API keys or base URLs

  1. Summarize findings to the user:

- Framework(s) detected - Whether orq.ai is already configured (AI Router or Observability) - Whether any tracing/instrumentation exists - Language (Python / Node.js / both)

Phase 2: Choose Integration Mode

  1. Recommend the integration mode based on findings. Use resources/framework-integrations.md for the decision guide: Situation Recommendation No tracing yet, framework supports AI Router AI Router — fastest path, traces are automatic Already calling providers directly, don't want to change LLM calls Observability only — add OTEL instrumentors Want multi-provider routing AND framework-level span detail Both — AI Router for routing, OTEL for orchestration spans Framework only supports Observability (BeeAI, Haystack, LiteLLM, Google AI) Observability only
  2. Confirm with the user before proceeding. Explain the tradeoff:

- AI Router: zero instrumentation code, automatic traces, multi-provider access, but you route through orq.ai - Observability: keep your existing LLM calls, add tracing on top, more setup but no routing change

Phase 3: Implement Integration

  1. For AI Router mode: For SDK code examples (Python, Node.js) and framework-specific setup (LangChain, CrewAI, etc.), see resources/framework-integrations.md.

- Set the API key: export ORQ_API_KEY=your-key-here - Change the base URL to https://api.orq.ai/v2/router - Use provider/model format for model names (e.g., openai/gpt-4o, anthropic/claude-sonnet-4-5-20250929) - That's it — traces appear automatically

  1. For Observability mode: For OTEL env vars, Python/Node.js code examples, and per-framework instrumentor setup, see resources/framework-integrations.md. Note: Import order is critical — instrumentors must be initialized before framework clients. If the project uses an auto-formatter (isort, Ruff), add # isort:skip_file at the top of the file or # noqa: E402 on late imports to prevent reordering.

- Set OTEL environment variables. Warning: If the project already has OpenTelemetry configured (e.g., for Datadog, Jaeger, or another backend), check for existing OTEL_* env vars or TracerProvider setup first — setting these will override that configuration. Confirm with the user before overwriting. - Install the framework's OpenInference instrumentor package - Initialize the instrumentor BEFORE creating SDK clients - Refer to the framework's docs page for the exact instrumentor and setup

  1. For both modes: Set up AI Router first (step 5), then add Observability (step 6) for framework-level spans on top.

Phase 4: Verify Baseline

  1. Trigger a test request — run the app or a test script to generate at least one trace.
  2. Check traces in orq.ai — direct the user to open Traces in the orq.ai dashboard.
  3. Verify baseline requirements using resources/baseline-checklist.md: Requirement How to Check Traces appearing At least one trace visible in the Traces view Model name captured Open an LLM span → model field shows model ID Token usage tracked LLM span shows input_tokens and output_tokens Span hierarchy Trace View shows nested spans for multi-step operations Correct span types LLM calls show as llm, retrievals as retrieval, etc. No sensitive data Spot-check span inputs/outputs for PII or secrets
  4. Fix any gaps before moving to enrichment. Common fixes:

- Traces not appearing → check import order, API key, OTEL endpoint - Flat hierarchy → ensure instrumentor is initialized before client creation - Missing tokens → check if provider/framework supports token reporting

  1. Encourage exploration: Tell the user to browse a few traces in the UI before adding more context. This helps them form opinions about what data is useful vs missing.

Phase 5: Enrich Traces

  1. Infer additional context needs from the code. Look for patterns — do NOT ask the user about all of these; infer when possible: If You See in Code... Suggest Adding Conversation history, chat endpoints, message arrays session_id to group conversations User authentication, user_id variables user_id for per-user filtering Multiple distinct features or endpoints feature tag for per-feature analytics Customer/tenant identifiers customer_id or tier tag Feedback collection, ratings Score annotations
  2. Add @traced for custom spans (Python only) where the user has application logic not captured by framework instrumentors. For Node.js, use OpenTelemetry span APIs directly. See resources/traced-decorator-guide.md for the full Python reference. Priority targets for @traced:

- The top-level orchestration function (type: agent) - Data preprocessing / postprocessing (type: function) - Custom tool implementations (type: tool) - RAG retrieval logic (type: retrieval)

  1. Only ask the user when context needs aren't obvious from code:

- "How do you know when a response is good vs bad?" → determines scoring approach - "What would you want to filter by in a dashboard?" → surfaces non-obvious tags - "Are there different user segments you'd want to compare?" → customer tiers, plans

  1. Guide to relevant UI features based on what was added:

- Traces view: see individual requests - Timeline view: identify latency bottlenecks - Thread view: see conversation flows (if session_id added) - Trace automations: set up automatic quality monitoring


Anti-Patterns

Anti-PatternWhat to Do Instead
Manual tracing when framework instrumentor existsUse the framework instrumentor — it captures model, tokens, spans automatically
Instrumentor imported AFTER framework client creationInitialize instrumentor BEFORE creating SDK clients
Generic trace names (default, trace-1)Use descriptive names: chat-response, classify-intent, fetch-orders
Logging PII/secrets in trace inputsUse capture_input=False on @traced, review trace data post-setup
No service.name in OTEL attributesAlways set service.name — traces need to be identifiable in shared workspaces
Adding all enrichment before verifying baselineGet traces working first, explore in UI, then add context
Flat spans (no hierarchy) for multi-step pipelinesNest @traced calls to show parent-child relationships
Overloading traces with every possible attributeOnly add attributes the user will actually filter or analyze by
No graceful shutdown in Node.jsCall sdk.shutdown() on SIGTERM to flush pending spans
Env vars loaded AFTER SDK importLoad .env / set env vars BEFORE importing orq or OTEL packages

Open in orq.ai

After completing this skill, direct the user to:

  • Traces: my.orq.ai — inspect trace hierarchy, timing, and captured data
  • AI Router: my.orq.ai — manage providers, models, and API keys
  • Trace Automations: my.orq.ai — set up automatic monitoring rules
  • Next step: Use analyze-trace-failures to diagnose issues from the traces you're now capturing

平台分布

Codex

36.06%
按下载量换算24

Claude

28.23%
按下载量换算19

Cursor

16.9%
按下载量换算11

Gemini CLI

8.93%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills