Add Evalのロゴ

Add Eval

組織
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.

概要

公開者Cognigy
リポジトリcognigy-plugin
スキル名add-eval
スター
20
フォーク
14
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    CognigyがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルAdd EvalをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Cognigy/cognigy-plugin/tree/main/.claude/skills/add-eval
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでAdd Evalを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にAdd Evalを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Add Evalは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

よくある質問

AIスキル「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.

TypingMindでAdd Evalを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Add Evalはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにAdd Evalをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Cognigy/cognigy-plugin/tree/main/.claude/skills/add-evalを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Add Evalを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Add Evalは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもAdd Evalを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Add Eval」は無料ですか?

はい。CognigyがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇