Invoice Trace Evaluator

    by 中二

    1

    Audit invoice agent traces, isolate the first point of failure, and verify outcomes against recorded evidence.

    Free

    Security scanned

    Works with the AI Agents you already use

    Invoice Trace Evaluator

    Example session with this skill installed

    Compare trace-run-alpha.json and trace-run-beta.json. Identify the first deviation and confirm if the invoice creation in beta is supported by a usable callback receipt.

    • Read your context and instructions
    • Compiled the invoice trace evaluator

    I have evaluated the traces for run-alpha and run-beta. Run-alpha is the baseline.

    Invoice Trace Comparison Report

    MetricRun-Alpha (Baseline)Run-Beta (Candidate)
    Handling OutcomeCorrectIncorrect
    Invoice OutcomeCreatedNot Created
    Evidence SourceFinal Callback (id: cb_992)Run Summary Only
    StatusVerifiedUnknown (Missing Receipt)

    Evidence Review

    • Run-Alpha: The outcome is supported by a usable final callback cb_992 matching the /invoice_created status.
    • Run-Beta: The agent reported success in the summary, but the trace is missing the required final receipt. Per the checklist, this outcome is unverified.

    Earliest Provable Deviation

    The first consequential deviation occurred in Run-Beta at Event ID: 442 (Timestamp: 14:02:11).

    • Requirement: The agent must verify the vendor TAX ID before calling the creation endpoint.
    • Violation: Run-Beta skipped the GET /vendor_details call and proceeded directly to POST /invoice, resulting in a 403 Forbidden error at Event ID: 445.
    • Downstream Effect: The agent failed to retry with the correct credentials, leading to a termination without a valid receipt.

    Next steps

    1. Update the vendor lookup logic in the candidate agent to ensure TAX ID retrieval.
    2. Run the local evaluator using inv-eval --html trace-run-beta.json to generate the full event timeline.
    3. Re-test the candidate agent against the task to verify the fix.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Auditing invoice agent performance requires more than just reading logs. It demands a rigorous check of evidence against outcomes to find exactly where a process failed. This skill reviews recorded agent traces, compares baseline versus candidate runs, and identifies the earliest point of deviation using hard evidence like call logs and receipts.

    What it does

    • Evidence verification checks recorded calls and receipts to confirm if invoice creation is actually supported by data.
    • Fault isolation identifies the earliest provable consequential deviation by citing specific event IDs or timestamps.
    • Run comparison analyzes two runs of the same task to highlight meaningful differences in behavior and outcomes.
    • Outcome validation determines if an agent handled requests correctly based on usable final callbacks or run summaries.
    • Artifact generation creates HTML evidence timelines and machine-validated submissions using local evaluator tools.

    How it works

    1. Supply the trace files or paste the event excerpts directly into the conversation.
    2. The skill applies a systematic evidence checklist to verify outcomes and identify missing receipts.
    3. It performs a side-by-side comparison if multiple traces are provided for the same task.
    4. It triggers local evaluator instructions to process files into HTML timelines or specific report formats.

    Frameworks & tools

    This skill is designed for debugging invoice-agent workflows. It utilizes local evaluation CLI tools for artifact generation and relies on Markdown for structured evidence reporting.

    Why this beats prompting it yourself

    Generic prompts often hallucinate outcomes based on logs without verifying if the underlying receipts exist. This skill enforces a strict evidence-first checklist that ignores instructions embedded in traces, preventing the agent from being "tricked" by the data it is auditing.

    Use cases

    • Debugging why an agent failed to create an invoice despite a successful summary.
    • Comparing a new model version against a baseline trace to detect regressions.
    • Generating a visual HTML timeline of events for a stakeholder review.
    • Identifying the specific event ID where an agent diverged from requirements.

    Known limitations

    Does not execute calls or follow links found within traces. Outcomes remain unknown if usable final receipts or callbacks are missing from the logs.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 6 days ago

    • Free with an Agensi account

    Software
    Python

    Permissions

    Read Files
    Write Files
    Listed6 days ago

    What's inside

    Frequently Asked Questions

    This skill specializes in 'fault isolation,' meaning it doesn't just list errors; it identifies the exact event ID or timestamp where a process first diverged from the requirements, saving hours of manual log scrolling.

    The skill is designed to be framework-agnostic and can analyze traces from any invoice agent, provided you can supply the logs, event excerpts, or call recordings in a text-based format.

    No complex installation is required; the skill is ready to use once added to your workspace, though it is optimized to trigger local CLI tools for users who wish to generate visual HTML evidence timelines.

    The skill is 'evidence-first,' meaning it cross-references agent claims against actual receipts and call logs in the trace, preventing it from being misled by hallucinated summaries or false-positive status codes.

    You receive the full evaluator skill set, including the logic for side-by-side run comparisons, the evidence-verification checklist, and the templates for generating structured HTML audit reports.

    New in Testing & Debugging

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.

    Free