Index of every page on this site: llms.txt
All skills
confident-ai avatar

/eval-trace

@1ae0870
Run it yourself

Capture and inspect a real AI application execution, or repair missing trace context before evaluation. Covers first local evidence and optional Confident AI tracing with confident-trace; not general infrastructure monitoring.

Use this Skill: https://skilld.dev/gh/confident-ai/eval-skills/eval-trace

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesapi-managed.md

≈777 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Operation names were checked against the available MCP inventory on 2026-09-30; individual REST recipes and live calls remain untested. Every MCP call except list_projects requires the selected project_id. Prefer the connected tool schema over spellings in examples.

First trace: managed on Confident AI

Connect

  1. The user creates a free account at app.confident-ai.com, opens the project's settings, and copies the API key. Never create the account or handle the key yourself; ask the user to add it to .env:

    CONFIDENT_API_KEY=...          # the user pastes this
    EVAL_SKILLS_TRACE_MODE=confident

    EU-region projects also set CONFIDENT_OTEL_ENDPOINT=https://eu.otel.confident-ai.com/v1/traces.

  2. Optional, recommended: connect the Confident AI MCP server so you can read traces and create queues, datasets, and metrics directly. The user runs one command with their key (Claude Code shown; other agents take the same URL and header in their MCP config):

    claude mcp add --transport http confident-ai https://mcp.confident-ai.com/mcp --header "Authorization: Bearer <CONFIDENT_API_KEY>"

    EU projects use https://eu.mcp.confident-ai.com/mcp. The MCP server is in beta and exposes many tools; if the user wants to keep the agent's context small, skip it and use the REST API below for the handful of calls these skills need.

Verify the first trace

After one run of the app:

  • With MCP: call list_traces (it takes page_size, environment, start, end), find the newest trace, then get_trace for its spans.

  • Without MCP:

    curl -s "https://api.confident-ai.com/v1/traces?pageSize=5" \
      -H "CONFIDENT_API_KEY: $CONFIDENT_API_KEY"

    (EU: https://eu.api.confident-ai.com.)

Share the trace's link with the user so they see it in the Confident AI UI, where spans, inputs, outputs, and token usage are laid out for reading.

If nothing arrives:

  • check EVAL_SKILLS_TRACE_MODE isn't local or off and the key is loaded into the process environment;
  • short scripts must end with confident_trace.shutdown() (Python) or await shutdown() (Node) so the last batch is sent;
  • turn on diagnostics: logging.getLogger("confident_trace.diagnostics").setLevel(logging.DEBUG) in Python.

What the platform gives you from here

  • Threads and users: set thread_id and user_id and conversations group automatically.
  • Environments: set environment to keep staging and production apart.
  • Annotation queues and failure-mode analysis (next skill: eval-error-analysis).

Record managed.region in .eval/default/workflow.json.

Bringing local history along

If the user was on a local track before, replay their recorded spans once:

python replay_spans.py --in .eval/default/traces       # or: node replay-spans.mjs --in .eval/default/traces

Run with --dry-run first to see how many batches will be sent. Move the replayed files aside afterwards so they aren't sent twice.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The eval-trace skill provides a professional framework for capturing and inspecting AI application traces, supporting both local and managed workflows. It includes robust utilities for workspace setup, trace normalization, and historical data replaying. The skill demonstrates strong security awareness by emphasizing local-first processing, providing guidance on data redaction, and instructing agents to handle credentials securely via environment variables. Network operations and data transfers are restricted to the vendor's own documented endpoints and are integral to the skill's purpose.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

Signed by skilld at 1ae0870. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 2 months ago
metadata
{
  "author": "Confident AI",
  "version": "1.1.0"
}

README badge

README badge for confident-ai/eval-skills/eval-trace