with one click
analytics
// Analyze your AI agent's performance using LangWatch analytics. Use when the user wants to understand costs, latency, error rates, usage trends, or debug specific traces. Works with any LangWatch-instrumented agent.
// Analyze your AI agent's performance using LangWatch analytics. Use when the user wants to understand costs, latency, error rates, usage trends, or debug specific traces. Works with any LangWatch-instrumented agent.
Generate realistic synthetic evaluation datasets by analyzing the user's codebase, prompts, production traces, and reference materials. Interactive, consultant-style — asks clarifying questions, proposes a plan, generates a preview for approval, then delivers a complete dataset uploaded to LangWatch. Use when user asks to generate, create, or build a dataset for evaluation, testing, or benchmarking.
Set up comprehensive evaluations for your AI agent with LangWatch — experiments (batch testing), evaluators (scoring functions), datasets, online evaluation (production monitoring), and guardrails (real-time blocking). Supports both code (SDK) and platform (CLI) approaches. Use when the user wants to evaluate, test, benchmark, monitor, or safeguard their agent.
Take your AI agent to the next level with full LangWatch integration. Adds tracing, prompt versioning, evaluation experiments, and simulation tests in one go. Use when the user wants comprehensive observability, testing, and prompt management for their agent.
Version and manage your agent's prompts with LangWatch Prompts CLI. Use for both onboarding (set up prompt versioning for an entire codebase) and targeted operations (version a specific prompt, create a new prompt version). Supports Python and TypeScript.
Debug and improve your LangWatch traces. Inspects production traces for missing input/output, disconnected spans, unlabeled traces, and missing metadata. Use when traces look broken or incomplete.
Evaluate multimodal AI agents that process images, audio, PDFs, or other files. Sets up evaluations using LangWatch's LLM-as-judge with image inputs, Scenario's multimodal testing, and document parsing evaluation patterns. Use when your agent handles non-text inputs.
| name | analytics |
| user-prompt | How is my agent performing? |
| description | Analyze your AI agent's performance using LangWatch analytics. Use when the user wants to understand costs, latency, error rates, usage trends, or debug specific traces. Works with any LangWatch-instrumented agent. |
| license | MIT |
| compatibility | Works with Claude Code and similar AI assistants. The `langwatch` CLI is the only interface. |
This skill queries and presents analytics. It does NOT write code.
Use langwatch docs <path> to read documentation as Markdown. Some useful entry points:
langwatch docs # Docs index
langwatch docs integration/python/guide # Python integration
langwatch docs integration/typescript/guide # TypeScript integration
langwatch docs prompt-management/cli # Prompts CLI
langwatch scenario-docs # Scenario docs index
Discover commands with langwatch --help and langwatch <subcommand> --help. List and get commands accept --format json for machine-readable output. Read the docs first instead of guessing SDK APIs or CLI flags.
If no shell is available, fetch the same Markdown over plain HTTP — append .md to any docs path (e.g. https://langwatch.ai/docs/integration/python/guide.md). Index: https://langwatch.ai/docs/llms.txt. Scenario index: https://langwatch.ai/scenario/llms.txt
langwatch status
This shows resource counts (traces, evaluators, scenarios, datasets, etc.) and reminds you which subcommands are available.
Use langwatch analytics query for time-series data and aggregate metrics. Start with the presets:
langwatch analytics query --metric trace-count # Total traces over the last 7 days
langwatch analytics query --metric total-cost # Total LLM cost
langwatch analytics query --metric avg-latency # Average completion latency
langwatch analytics query --metric p95-latency # P95 completion latency
langwatch analytics query --metric eval-pass-rate # Evaluation pass rate
Refine with --start-date, --end-date, --group-by, --time-scale, and --aggregation. Use langwatch analytics query --help to see every flag and --format json to feed the output to other tools.
If you don't know which preset names exist or want a non-preset metric path:
langwatch analytics query --help # Lists presets and flags
langwatch docs analytics/custom-metrics # Background on the metric model
langwatch trace search -q "error" --limit 10 # Find error traces by keyword
langwatch trace search --start-date 2026-01-01 # Custom date range
langwatch trace search --format json # Machine-readable output
langwatch trace get <traceId> # Human-readable digest (default)
langwatch trace get <traceId> -f json # Raw JSON for full detail
langwatch trace export --format csv -o traces.csv # Bulk export as CSV
langwatch trace export --format jsonl --limit 500 # Bulk export as JSONL
For each interesting trace, look at:
Summarize the data clearly for the user:
langwatch analytics query --metric ... (trace-count, total-cost, avg-latency, etc.); do NOT hardcode raw metric paths unless the preset list doesn't cover what you needlangwatch evaluator create / langwatch monitor create here — this skill is read-only analytics