Add Eval logo

Add Eval

Organization
Cognigy
add-eval

Add or edit a plugin eval case under plugin/evals (claude plugin eval) — prompt, graders, MCP mocks — and run, compare and re-baseline the suite. Use when writing a new eval, changing a grader or mock, checking a skill/agent/tool-description change for regressions, or when evals:compare reports a drop.

Overview

PublisherCognigy
Repositorycognigy-plugin
Skill nameadd-eval
Stars
20
Forks
14
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Cognigy on GitHub. Read the source before you install it.

Installation

Install the Add Eval AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Cognigy/cognigy-plugin/tree/main/.claude/skills/add-eval
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Cognigy/cognigy-plugin.git /tmp/cognigy-plugin
mkdir -p .claude/skills
cp -r /tmp/cognigy-plugin/.claude/skills/add-eval .claude/skills/add-eval
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Add Eval in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Add Eval on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Add Eval is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Evals run the plugin in a sandboxed claude -p child against a mocked platform server and grade the transcript. Reference: https://code.claude.com/docs/en/plugin-evals.md (claude plugin eval --help matches it).

Layout

text
plugin/evals/
  <group>/<case>/prompt.md        frontmatter (tags, max_turns, allowed_tools) + the prompt, sent verbatim
  <group>/<case>/graders/<name>.md  one grader per file
  <group>/<case>/mocks/platform/<tool>.md  per-case override of one tool
  mocks/platform/_server.md       judge model plays a fixed demo tenant for every tool
  mocks/platform/_tools.json      real descriptions/schemas — generated, never hand-edit
  baseline.json                   committed per-grader pass rates, see "Run and compare"
  results/                        gitignored run output

Groups today: skill-triggers/, tool-choice/. The demo tenant (Demo Project, Billing Bot, Phone Support, GPT-4o) is defined in _server.md; write prompts against it.

Write a case

  1. Copy the closest existing case. The prompt is phrased like a user, never names the skill or tool, and contains everything needed — the run starts in an empty directory and cannot ask follow-ups. Add "I'm not around to answer questions, so pick sensible defaults and go ahead." unless asking IS the behaviour under test (tool-choice/backup-gate).
  2. Give it one grader on the steps (tool_used / tool_order / trace regex) and, where there is a result to judge, one on the outcome (regex on last_message, or a short llm rubric written as PASS/FAIL conditions).
  3. Set max_turns generously (25–30 for build flows); hitting it is a run error. Judge-played mocks get 4 × max_turns calls.
  4. Smoke it: npm run evals -- --case <name> --runs 1 --keep-temp, then read <kept>/out/trace.jsonl and out/mock-calls.jsonl to confirm the run took the path you meant — a pass can be for the wrong reason.
  5. Run it at 3 runs and re-baseline (below).

MCP tools are named mcp__plugin_cognigy_platform__<tool>; plugin skills are invoked as cognigy:<skill>.

Grader rules learned the hard way

  • Accept the subagent path. The Agent tool is available in every run even when allowed_tools omits it, and models delegate to cognigy-agent-builder / cognigy-voice-go-live. A tool_used: Skill grader then fails although the plugin did the right thing. Use a trace regex that accepts either path, and make sure the subagent preloads the skill (skills: in its frontmatter):
    yaml
    type: regex
    target: trace
    pattern: '"skill":"(?:cognigy:)?agent-creation"|"subagent_type":"(?:cognigy:)?cognigy-agent-builder"'
  • Match call inputs, never bare names. The trace's first line lists every agent, skill and tool name, so pattern: cognigy-voice-go-live always passes. Anchor on "skill":", "subagent_type":" or "name":"mcp__…".
  • tool_used counts calls made inside subagents — no special handling needed for MCP calls.
  • tool_order compares the FIRST matching call of each side. It cannot express "the retry after the decline succeeded" when the first attempt is held. Grade the mock's answer instead: target: mock_calls, pattern: '\\?"changesApplied\\?"\s*:\s*true', arm: both.
  • "Must not happen" graders (min: 0, max: 0) pass for free in the no-plugin arm. Fine for npm run evals (single arm); just don't read them as signal there.
  • No (?i) in patterns — use flags: i. expect: in mocks takes a restricted regex dialect (no groups/alternation; use a list of literals).

Mocks

  • _server.md answers every tool from the tenant description. To make one tool behave differently for one case, add <case>/mocks/platform/<tool>.md — it overrides only that tool.
  • Fixed mock: body is the literal tool result (copy real shapes, incl. _hints, from src/tools/handlers.ts). Stateful behaviour: type: agent with instructions — agent mocks see earlier calls to every mocked tool, which is how voice-apply-fixes holds the first apply: true until manage_snapshots decline.
  • After changing src/tools/definitions.ts: npm run evals:tools. A new tool must also be added to tools: in _server.md. evalMocks.test.ts fails on either drift.
  • Mocks carry no src/instructions.ts, so evals measure skills, agents and tool descriptions — not the server instructions.
  • plugin/evals/ is in .prettierignore on purpose: Prettier escapes _ in markdown and corrupts JSON mock bodies. Don't format these files.

Run and compare

bash
npm run evals                          # full suite, pinned Sonnet agent + Haiku judge
npm run evals -- --case 'voice-*'      # subset (globs on case name), --tag works too
npm run evals:compare                  # newest run vs plugin/evals/baseline.json; exit 1 on a drop
npm run evals:compare -- --update      # newest run becomes the baseline
  • A drop with 3 runs (3/3 → 2/3) can be one flaky run. Re-run that case with --runs 5, and on main if still unsure, before calling it a regression.
  • changed means the case's files (or shared mocks) differ from the baseline's fingerprint — expected after editing a case; re-baseline.
  • ERRORED means a run ended abnormally (timeout, usage or rate limit); errored runs are still graded, so they are never compared — re-run. --update refuses a run that errored or skipped any case, so re-baseline from a clean full run, in the PR that intentionally changes behaviour or a case, so the baseline.json diff is reviewed. Commit the code first so the baseline records the commit it ran on. If you change the pinned models in package.json, re-baseline too.
  • Never commit results/. Runs make paid model calls on your own credential; --max-cost-usd caps a run.

Frequently asked questions

What does the Add Eval AI skill do?

Add or edit a plugin eval case under plugin/evals (claude plugin eval) — prompt, graders, MCP mocks — and run, compare and re-baseline the suite. Use when writing a new eval, changing a grader or mock, checking a skill/agent/tool-description change for regressions, or when evals:compare reports a drop.

Why use Add Eval on TypingMind?

Because you install it once and use it with any model. Add Eval is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Add Eval in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Cognigy/cognigy-plugin/tree/main/.claude/skills/add-eval. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Add Eval?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Add Eval?

As many as you like. As long as a model supports skills, you can use Add Eval with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Add Eval AI skill free?

Yes. It is published on GitHub by Cognigy under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇