agentleFS
Goodeye-LabsGoodeye-Labs/truesight-mcp-skills/skills/create-evaluation/SKILL.md

create-evaluation

Skill7 starsChanged 8 months agoMITView on GitHub

Scope what quality should be measured, convert it into one or more actionable binary evaluations, deploy those evaluations through Truesight MCP, and generate a companion skill that applies them correctly. Use when a user wants to create new evals, quality checks, guardrails, or pass/fail criteria for AI outputs.

  • Sends data out

The file

Show its rules and text

We split this skill into the rules it gives an agent

33 rules. About 0 are common, 27 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈27

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run this skill when a user asks to create evals for a task, workflow, or output type.

    line 8
  2. Distinctive:

    Use binary evaluations by default.

    line 21
  3. Distinctive:

    Create separate evals per dimension by default.

    line 22
  4. Distinctive:

    Avoid asking implementation-detail questions unless they change product intent.

    line 23
  5. Distinctive:

    Do NOT call template provisioning tools, create datasets, deploy evaluations, generate cURLs, or produce a companion skill until scoping is …

    line 29
  6. Very specific:

    BEFORE the first scoping question, search for a structured question tool (e.g., AskUserQuestion or similar interactive widget) and load it.

    line 33
  7. Distinctive:

    Do not skip the interactive scoping loop, even when the use case seems simple.

    line 38
  8. Distinctive:

    Clarifying dialogue: Ask one question at a time.

    line 45
  9. Distinctive:

    Build authorization checkpoint: Ask for explicit go-ahead before any MCP build or deploy action.

    line 52
  10. Distinctive:

    Every scoping question in the checklist above MUST be asked during the clarifying dialogue.

    line 56
  11. Distinctive:

    Ask exactly one clarifying question per message during scoping.

    line 61
  12. Distinctive:

    Use the structured question tool (loaded per the HARD-GATE above) for every scoping question.

    line 62
  13. Distinctive:

    If the user response is ambiguous, ask one follow-up question before moving forward.

    line 63
  14. Distinctive:

    Keep questions focused on quality intent, failure cost, and decision thresholds.

    line 64
  15. Very specific:

    If the user wants a quick trial or does not yet have a strong evaluation concept, route to bootstrap-template-evaluation instead of running …

    line 68
  16. Very specific:

    Use create-evaluation for from-scratch evaluation design and deployment.

    line 70
  17. Distinctive:

    Ask questions that define quality, not plumbing.

    line 76
  18. Distinctive:

    Do not ask about dataset schema, API structure, key storage, or endpoint wiring unless the user explicitly wants custom handling.

    line 84
  19. Distinctive:

    Use strict binary pass/fail boundaries by default.

    line 91
  20. Distinctive:

    Prefer code-based checks for objective constraints and reserve LLM judgment for interpretive criteria.

    line 94
  21. Distinctive:

    Avoid holistic criteria like "is this good?" or "is this helpful?" without concrete boundaries.

    line 96
  22. Distinctive:

    Default to real traces from user workflows whenever available.

    line 100
  23. Distinctive:

    Avoid obvious pass or obvious fail examples.

    line 123
  24. Distinctive:

    After labeling, present a summary to the user for approval:

    line 135
  25. Distinctive:

    If the user flags issues, adjust the labeling approach and re-label.

    line 139
  26. Very specific:

    Write all labels (user seed labels and agent-generated labels) into the judgment_column and notes_column fields for their respective rows.

    line 143
  27. Distinctive:

    Use Truesight MCP to implement approved evals.

    line 157
  28. Very specific:

    Create/upload dataset with upload_dataset or create_dataset

    line 160
  29. Very specific:

    Use idempotency_key for safe retries in agentic loops

    line 163
  30. Distinctive:

    Verify endpoint works with a real call

    line 199
  31. Distinctive:

    Frontmatter: Every companion skill MUST start with YAML frontmatter:

    line 276
  32. Distinctive:

    IMPORTANT: Document MCP tool calls in natural language with exact parameter names and values.

    line 297
  33. Distinctive:

    If any verification fails, stop and return a concrete fix plan instead of marking done.

    line 308

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Create Evaluation

Run this skill when a user asks to create evals for a task, workflow, or output type.

Outcome

Produce all of the following in one flow:

  1. Scoped evaluation dimensions with clear pass/fail boundaries
  2. Deployed live eval endpoints
  3. Full runnable cURL per endpoint (must include exact live eval ID and exact API key)
  4. A generated companion skill that explains how to use the evals in the user's workflow

Default behavior

  • Prioritize non-technical scoping first.
  • Use binary evaluations by default.
  • Create separate evals per dimension by default.
  • Avoid asking implementation-detail questions unless they change product intent.
  • Infer technical defaults and execute.

Interactive Q&A protocol (mandatory)

<HARD-GATE> Do NOT call template provisioning tools, create datasets, deploy evaluations, generate cURLs, or produce a companion skill until scoping is complete and the user explicitly approves the scoped evaluation design. </HARD-GATE><HARD-GATE> BEFORE the first scoping question, search for a structured question tool (e.g., `AskUserQuestion` or similar interactive widget) and load it. Use that tool for EVERY scoping question. Fall back to plain-text lettered options ONLY if no such tool exists in the environment. </HARD-GATE>

Anti-pattern: "This is obvious, skip questions"

Do not skip the interactive scoping loop, even when the use case seems simple. Fast assumption-heavy execution creates weak criteria and poor downstream behavior. Keep the dialogue short when possible, but do not skip it.

Checklist (complete in order)

You MUST complete each item in order:

  1. Initial framing. Restate the use case and intended operator outcome.
  2. Clarifying dialogue. Ask one question at a time; prefer multiple-choice when possible.
  3. Approach options. Propose 2-3 decomposition options with trade-offs and recommendation.
  4. Design approval loop. Present these sections and get approval after each section:
    • Quality dimensions
    • Pass/fail boundaries and strictness
    • Operational usage pattern (gate, rank, revise loop, monitor)
  5. Seed labeling. Have the user label a small sample of traces to calibrate the LLM judge (see Seed labeling section below).
  6. Build authorization checkpoint. Ask for explicit go-ahead before any MCP build or deploy action.
  7. Implementation and verification. Execute from-scratch flow, verify, then deliver artifacts.
<HARD-GATE> Every scoping question in the checklist above MUST be asked during the clarifying dialogue. The only exception: skip a question if the user has already explicitly answered it earlier in the conversation. Do not infer answers. Do not skip because the answer seems obvious. </HARD-GATE>

Dialogue rules

  • Ask exactly one clarifying question per message during scoping.
  • Use the structured question tool (loaded per the HARD-GATE above) for every scoping question. Structure each with a short header, 2-4 options with labels and descriptions, and place the recommended option first. Do not add "(Recommended)" or similar annotations to option labels.
  • If the user response is ambiguous, ask one follow-up question before moving forward.
  • Keep questions focused on quality intent, failure cost, and decision thresholds.

Quick trial redirect

If the user wants a quick trial or does not yet have a strong evaluation concept, route to bootstrap-template-evaluation instead of running this skill.

Use create-evaluation for from-scratch evaluation design and deployment.


Scoping workflow (high-information questions only)

Ask questions that define quality, not plumbing. Cover:

  • What is being evaluated
  • What "good" and "bad" look like
  • Highest-cost failure modes
  • Whether existing sample data or traces are available (if yes, read them early because they inform dimension selection, criterion wording, and borderline calibration)
  • Strictness preference (precision vs recall)
  • How results should be used (gating, ranking, revision loop, monitoring, etc.)

Do not ask about dataset schema, API structure, key storage, or endpoint wiring unless the user explicitly wants custom handling.

Criterion quality standard

For each proposed quality dimension:

  • Make it atomic: one dimension per criterion.
  • Use strict binary pass/fail boundaries by default.
  • Define explicit fail conditions, not just pass intent.
  • Include at least one borderline example in scoping discussion when ambiguity risk is high.
  • Prefer code-based checks for objective constraints and reserve LLM judgment for interpretive criteria.

Avoid holistic criteria like "is this good?" or "is this helpful?" without concrete boundaries.

Real traces first, synthetic fallback via generate-synthetic-data

Default to real traces from user workflows whenever available.

<HARD-GATE> If fewer than 20 real traces are available, invoke the `generate-synthetic-data` skill to augment the dataset before building. Pass all scoping context already gathered (system type, trace structure, failure modes) so the user is not re-asked. Do NOT proceed to dataset creation or deployment with fewer than 20 traces. </HARD-GATE>

Synthetic traces are a bootstrap aid, not a replacement for production traces.

Seed labeling

<HARD-GATE> Before building the dataset, the user must label a small sample of traces. These labels improve evaluation accuracy and set the standard for how all remaining traces are labeled. The agent then uses those examples to label all remaining traces. No trace may be uploaded without a pre-filled label and reasoning for every judgment column. Skip this step ONLY if the traces already have both labels AND reasoning in every judgment column. </HARD-GATE>

Step 1: User labels seed traces

Select the minimum number of traces needed to capture the labeling pattern. Start with 2-3. Only request more if the first batch does not cover enough variation to label the rest confidently. Absolute maximum: 10 traces.

Prioritize the highest-information traces:

  • Borderline cases where pass/fail is genuinely ambiguous
  • Traces that span different failure modes
  • Cases where the criterion wording could be interpreted multiple ways

Avoid obvious pass or obvious fail examples. They add no labeling signal.

For each selected trace, present it to the user using the structured question tool (loaded per the AskUserQuestion HARD-GATE above). For each judgment dimension, ask:

  • The label (Pass/Fail for binary, the category for categorical, the score for continuous)
  • A 1-2 sentence reason explaining why that label applies

Present one trace per message. Do not batch them.

Step 2: Agent labels remaining traces

Using the user's seed labels as examples, label all remaining traces with both the judgment value and reasoning for every judgment column. Match the user's labeling style, strictness, and reasoning depth.

After labeling, present a summary to the user for approval:

  • Total traces labeled per judgment value (e.g., "62 Pass, 25 Fail")
  • 2-3 example auto-labeled traces so the user can spot-check quality

If the user flags issues, adjust the labeling approach and re-label. Do not upload until the user approves the distribution and spot-check.

Step 3: Record labels

Write all labels (user seed labels and agent-generated labels) into the judgment_column and notes_column fields for their respective rows.

Synthesis step

After scoping, return:

  • Proposed eval dimensions
  • Recommended number of evals and why
  • Criterion text for each eval with explicit pass/fail boundary
  • Intended usage pattern for eval outputs in downstream workflow

Get explicit user approval on the scoped design before build.

Build step (Truesight MCP)

Use Truesight MCP to implement approved evals.

For each eval:

  1. Create/upload dataset with upload_dataset or create_dataset

    • Pass input_columns and judgment_configs inline to avoid separate configure calls
    • The columns array MUST include all judgment_column and notes_column names from judgment_configs, in addition to your input columns. The API will reject the request if judgment/notes columns are missing from columns.
    • Use idempotency_key for safe retries in agentic loops

    Example (text input):

    create_dataset(
        name="My Eval",
        columns=["conversation", "quality", "quality_reasoning"],  # includes judgment + notes columns
        input_columns=["conversation"],
        judgment_configs=[{
            "judgment_column": "quality",
            "notes_column": "quality_reasoning",
            "judgment_type": "binary",
            "criterion": "..."
        }]
    )

    Example (image-only input). Use media_url_column with input_columns=[]. The image column cannot also be an input column:

    create_dataset(
        name="My Image Eval",
        columns=["image_url", "quality", "quality_reasoning"],
        input_columns=[],
        media_url_column="image_url",
        judgment_configs=[{
            "judgment_column": "quality",
            "notes_column": "quality_reasoning",
            "judgment_type": "binary",
            "criterion": "..."
        }]
    )

    At run_eval time, pass inputs={} and provide the image via the media_url parameter.

  2. Deploy using create_and_deploy_evaluation(dataset_id)
    • CRITICAL: the full api_key is ONLY returned at creation. Capture and store it immediately.
    • The live evaluation public_id is also needed for run_eval calls
  3. Verify endpoint works with a real call

judgment_configs reference

Each judgment_configs entry defines one scoring dimension. Pass as a list to upload_dataset or create_dataset.

Binary (pass/fail), the most common type:

[{
  "judgment_column": "quality",
  "judgment_type": "binary",
  "criterion": "The response fully addresses the user's question without factual errors. Pass if it does, Fail if it does not."
}]

Categorical (multiple labels):

[{
  "judgment_column": "tone",
  "judgment_type": "categorical",
  "options": ["professional", "neutral", "unprofessional"],
  "criterion": "Classify the tone of the response."
}]

Continuous (numeric score):

[{
  "judgment_column": "relevance",
  "judgment_type": "continuous",
  "min_value": 0,
  "max_value": 10,
  "criterion": "Score how relevant the response is to the question, from 0 (irrelevant) to 10 (perfectly relevant)."
}]

Multiple dimensions in one dataset:

[
  {"judgment_column": "accuracy", "judgment_type": "binary", "criterion": "..."},
  {"judgment_column": "tone", "judgment_type": "categorical", "options": ["formal", "casual"], "criterion": "..."}
]

Optional fields per config:

  • notes_column (str): column for judge reasoning text. Highly recommended so the judge has the reasoning for why the judgment was made.

cURL requirement (mandatory)

For every deployed eval, construct and store the full runnable cURL using:

  • Live eval endpoint ID (public_id)
  • Its corresponding API key (api_key)

Template:

curl -sS -X POST "https://api.truesight.goodeyelabs.com/api/eval/<public_id>" \
  -H "Authorization: Bearer <api_key>" \
  -H "Content-Type: application/json" \
  -d '{"inputs": { ... }}'

You must preserve exact endpoint IDs and keys returned from deployment. No placeholders in final delivered skill unless user asked for placeholders.

Verification requirement (mandatory)

  • Execute the exact cURL written into the companion skill for each eval.
  • Confirm successful response and extractable judgment fields.
  • Report verification evidence before claiming completion.

Companion skill generation

Generate a new usage skill tailored to the scoped workflow.

File conventions

  • Directory: .claude/skills/<skill-name>/SKILL.md (the file MUST be named SKILL.md in all caps)
  • Frontmatter: Every companion skill MUST start with YAML frontmatter:
---
name: <kebab-case-name>
description: <1-2 sentence description>. Use when <trigger phrases>.
---

The description field drives skill discovery. Include explicit "Use when..." trigger phrases that match how users will ask for this skill.

Required content

The companion skill must include:

  • Clear trigger description: what the eval suite does and when to use it
  • Input contract: what inputs must be provided
  • Eval execution instructions aligned to scoped usage (not hardcoded to one pattern)
  • Output parsing guidance: how to read pass/fail and reasoning
  • Full cURL blocks for every eval endpoint
  • Operator loop logic for the approved usage pattern (for example: revise-until-pass, gate-on-fail, or monitor-only)

IMPORTANT: Document MCP tool calls in natural language with exact parameter names and values. Never use function-call syntax with parentheses. Example: "Invoke the run_eval tool with live_evaluation_id set to \"live_xxx\" and inputs set to {...}." Parenthesized call syntax triggers security hooks.

Final delivery format

Return:

  1. Scoping summary
  2. Eval catalog (dimension + criterion + pass/fail boundary)
  3. Deployment manifest (dataset IDs, eval IDs, live eval IDs, API keys)
  4. Companion skill path
  5. Verification results for every cURL

If any verification fails, stop and return a concrete fix plan instead of marking done.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.