agentlens-tracing-instrument
БесплатноБез исполняемых скриптовНе проверенAdd Forge AgentLens tracing to Python or TypeScript agents. Use when asked to trace agent turns, model calls, tools, or subagents with Forge or AgentLens.
от wandb★ 77 звёзд на GitHubОб этом скилле
Forge AgentLens instrumentation
Complete the login check before editing or initializing. If no valid login exists, send only that section's reply and stop.
Forge exports explicit agent spans through a private OTel provider. It does not auto-instrument frameworks, replace the global provider, or export that provider's spans.
After a valid login, read the Python or TypeScript reference and trace fidelity before editing. Verify the APIs against the installed SDK version.
Check login first
Before editing code or initializing tracing, verify the existing W&B login for
the target deployment with a noninteractive, read-only identity request through
the configured SDK or connector. Use credentials in place; never print, copy,
or inspect secret values. Do not call login or tracing init as a login probe.
If no valid login exists, stop. Do not edit, initialize, or continue this skill.
Do not run wandb login in this session. This session's shell is not a normal
terminal, so wandb login --verify exits with No API key configured instead
of prompting. Do not ask for a key in this chat or create credentials.
Send only this, and nothing else. No decisions, notes, plans, or documentation links:
There's no W&B login yet, so this stops here. Open a new terminal tab and run
wandb login --verify. Create an API key at
https://wandb.ai/authorize?ref=models. If the browser opens a different page,
open that link again. Paste the key in that terminal, not here, and type
continue.
On a self-hosted or dedicated deployment, use wandb login --verify --host <base-url>
and the authorize page that command prints. Still send only that.
- If the check is unavailable or fails because of connectivity or permissions, report login/access as unverified and stop; do not assume credentials are invalid.
- After the user continues, confirm the application runtime can use its own
configured credentials and access
entity/project. A browser login does not establish SDK authentication. Node/Forge runtimes without a.netrcfallback need credentials configured by the user through their runtime secret mechanism.
Instrument
- Confirm
entity/project; a bare project cannot resolve its entity. Initialize once per process with runtimeWANDB_API_KEY. Never print or commit credentials. - Map Conversation → Turn → LLM/Tool/SubAgent to real boundaries: one turn per user exchange, one LLM span through stream consumption, one tool per execution. Preserve provider tool-call IDs and use explicit parents for delegated work.
- Preserve outputs, exceptions, retries, and cancellation. Close spans on failure; avoid duplicate capture from existing instrumentation.
- Keep project routing stable while work is active. Flush/shutdown at process exit, not per request. Python supports content suppression; this TypeScript revision requires omitting sensitive fields explicitly. Neither redacts PII.
Implement incrementally
Add one traced path at a time: a model call, its tool loop, then delegation or concurrency where applicable. After each change, run the path, run the health check, then follow read-back verification. Compare emitted and stored spans with the actual execution before extending the instrumentation.
Fix mismatches and rerun the same check before continuing. Empty results, failed queries, and unavailable checks are unverified, not passes. Stop at that boundary and report what the user must do to unblock verification.
Verify
Run the conformance check
for the paths you instrumented, including success, failure, and overlapping requests.
If the full suite requires CI, browsers, or unavailable services, run feasible
local checks and report the skipped coverage.
Assert parentage, tool-call IDs, and gen_ai.operation.name values
invoke_agent, chat, and execute_tool using Forge's provider or a local
OTLP receiver. Confirm backend arrival when authorized credentials are available;
otherwise report it unverified. Init/flush success alone is not delivery proof.
Установить agentlens-tracing-instrument в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл agentlens-tracing-instrument?
Add Forge AgentLens tracing to Python or TypeScript agents. Use when asked to trace agent turns, model calls, tools, or subagents with Forge or AgentLens.
Как установить скилл agentlens-tracing-instrument?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agentlens-tracing-instrument запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic