Works with the AI Agents you already use

    Prompt Tree – Compare and Evaluate Prompt Edits

    by Brayson

    1

    Compare prompt edits on your own test cases and see which answers improved or regressed.

    Free

    Security scanned
    Prompt Tree – Compare and Evaluate Prompt Edits

    Prompt Tree – Compare and Evaluate Prompt Edits

    Example session with this skill installed

    Use $prompttree to compare edits to my restaurant booking prompt. Score exact matches for the requested field, select the prompt on validation, and show me how it compares with the original on held-out requests. Include an example where the answer changed.

    • Read your context and instructions
    • Compiled the prompt tree

    Restaurant8K booking-field extraction

    The experiment compared 17 prompt versions across six levels. L6-N1 was selected on validation. Both the original and the selected prompt then ran five times on the same 360 held-out requests.

    PromptMean test field accuracy
    L1-N1 (original)88.17%
    L6-N1 (selected)91.06%

    One changed answer. For “Booking for 2 people.” the expected party-size span is “2 people”. The original returned “2” in all five runs. L6-N1 returned “2 people” in all five.

    Why this version? L6-N2 led the initial screen with 326/360 versus 323/360. Across five fresh validation runs, L6-N1 averaged 90.61% and L6-N2 averaged 89.50%. The preset selection rule kept L6-N1.

    In the HTML report, select L1-N1 and L6-N1 to inspect the exact prompt changes and the five answers for each example.

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

    About this skill

    Start with a prompt your application uses, examples with expected answers, and a scoring rule. Prompt Tree measures the original prompt, uses failed examples to propose small edits, and builds an HTML report. Pick any two versions to see the exact instructions, scores and per-example answers side by side.

    On Restaurant8K, the original prompt returned “2” for “Booking for 2 people.” The selected prompt returned the complete phrase “2 people” in all five runs. Across 360 held-out requests, mean field accuracy rose from 88.17% to 91.06%. The experiment compared 17 prompt versions and used a separate validation set to select the final version.

    Results depend on the examples, scoring rule and model used. Set a call budget before comparing several versions. Running the local scripts requires Node.js 22 or later.

    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 3 days ago

    • Free with an Agensi account

    Software
    Node.js 22 or later

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed3 days ago

    What's inside

    Creator

    Brayson

    Brayson

    Frequently Asked Questions

    The report shows which examples improved and which regressed after each edit. Compare them with the baseline or any earlier branch before adopting a new version.

    Use Codex with Node.js 22 or later. Bring the prompt your application calls, examples with expected outputs, and a scoring rule. Codex can reuse your evaluator or help adapt the rule to your task.

    The skill generates a comprehensive summary, a detailed Prompt Tree showing the evolution of versions, and full HTML reports in both Chinese and English. These reports include performance metrics, version comparisons, and statistical evidence for why a specific prompt was locked.

    Each branch proposes a small change tied to an observed error. The report preserves the exact edit and its parent so you can see which cases changed.

    You can retest finalists over several rounds on validation examples. If you have a separate test set, use it to evaluate the selected prompt and compare the results with the original.

    The skill is limited by the quality and availability of the validation dataset you provide. Performance gains are highly dependent on having samples that accurately represent the task you want to optimize.

    New in Prompt & Skill Engineering

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Prompt & Skill Engineering.

    Free