ek-dev-add-metric

Wrap external libraries into standardized Protocol metrics for the ek framework.

Updated Jun 23, 2026
One-click install
npx skills add https://github.com/thorwhalen/ek --skill ek-dev-add-metric
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ek-dev-add-metric
Source: https://github.com/thorwhalen/ek/tree/main/skills/ek-dev-add-metric
Command: npx skills add https://github.com/thorwhalen/ek --skill ek-dev-add-metric

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jiwer, anls_star, seqeval, nervaluate, networkx, apted, zss, rapidfuzz.

What problem does it solve?

This Skill provides the authoritative framework for developers to implement, wrap, and register new reference-based (offline) evaluation metrics within the ek ecosystem, ensuring consistency and mathematical correctness.

Core Features & Use Cases

  • Standardized Metric Protocol: Implements a strict typing.Protocol to ensure all metrics follow the required (pred, gold, *, grammar) signature.
  • Registry Integration: Provides the necessary steps to register new metrics for both type-based dispatch and explicit name-based resolution.
  • Use Case: When you need to add a specialized metric like a cost-weighted typed-graph edit distance or a custom table-structure metric, this Skill guides you through the contract, dependency gating, and canonicalization requirements.

Quick Start

Follow the implementation steps in the ek-dev-add-metric skill to wrap your custom metric library and register it for use in the ek score and evaluate facades.

Frequently Asked Questions about ek-dev-add-metric

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add custom reference-based evaluation metrics to my benchmarking workflow?

To add custom reference-based evaluation metrics, you wrap external scoring libraries into a standardized Protocol and register them within the ek ecosystem. This ensures mathematical correctness and consistency for your offline benchmarking tasks.

What is a metric Protocol in software evaluation and how does it work?

A metric Protocol is a strict typing interface requiring a specific signature of (pred, gold, *, grammar). It enforces standardization across reference-based evaluation metrics, ensuring all custom scoring functions conform to the ek framework's required structure.

How do I wrap external libraries for domain-specific scoring functions?

You wrap external libraries by implementing them into the standardized metric Protocol and registering them for both type-based dispatch and explicit name-based resolution. This enables domain-specific scoring for strings, fields, tables, and typed graphs.

Does ek-dev-add-metric support custom table-structure metrics and typed-graph edit distance?

Yes, it supports developing specialized metrics like cost-weighted typed-graph edit distance and custom table-structure metrics. It guides you through the required contract, dependency gating, and canonicalization standards for these offline evaluations.

Do I need to follow specific canonicalization standards when implementing offline evaluation metrics?

Yes, implementing offline evaluation metrics requires strict adherence to canonicalization standards and cost-weighting conventions. These standards ensure your custom metrics integrate correctly with the ek score and evaluate facades.

What are the limitations when registering custom metrics for type-based dispatch?

Registering custom metrics requires dependency gating and adherence to the ek registry architecture. Limitations include ensuring your external libraries conform to the strict typing Protocol and maintain mathematical correctness for offline evaluation.