lai-gen-evals

lai-gen-evals is a skill for Claude Code from eclipse-langium/langium-ai. It costs 42 tokens per session (5,358 once invoked), scanned A, original, MIT.

An evaluation-building aid for a Langium project, where Langium is a tool for creating custom programming languages. It creates test cases for syntax, meaning, user intent, unusual inputs, and language understanding.

In plain words
What is it for?
Use it to expand a small or missing evaluation suite, test new grammar or validation features, and compare how different language models perform.
Why use it?
It helps reveal when generated code merely looks valid but does not work correctly or follow the user's request. It also gives new language changes matching tests.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { create__DSL_NAME__Services } from '../src/__module_path__';.

Good fit Use it to expand a small or missing evaluation suite, test new grammar or validation features, and compare how different language models perform.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/eclipse-langium/langium-ai
agentmods
npx agentmods add skills/eclipse-langium/langium-ai/lai-gen-evals

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lai-gen-evals

README.md
[![agentmods](https://agentmods.dev/badge/skills/eclipse-langium/langium-ai/lai-gen-evals/github.svg)](https://agentmods.dev/skills/eclipse-langium/langium-ai/lai-gen-evals)
Your own site
<a href="https://agentmods.dev/skills/eclipse-langium/langium-ai/lai-gen-evals"><img src="https://agentmods.dev/badge/skills/eclipse-langium/langium-ai/lai-gen-evals/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for lai-gen-evals

Your own site · 80×15
<a href="https://agentmods.dev/skills/eclipse-langium/langium-ai/lai-gen-evals"><img src="https://agentmods.dev/badge/skills/eclipse-langium/langium-ai/lai-gen-evals.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,358 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.05358
Opus 5 $0.00021 $0.02679
Sonnet 5 $0.00008 $0.01072
Haiku 4.5 $0.00004 $0.00536

Measured 10d ago against content hash 5af17bb13366, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

lai-gen-evals scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/lai-gen-evals/SKILL.md · 557 lines

How it starts

The opening of the file, as written. The whole thing — 557 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Generate and Expand Evaluations

This skill guides the creation and expansion of a comprehensive evaluation suite for a Langium DSL project. A good eval suite measures not just whether an LLM can produce syntactically valid code, but whether it generates semantically correct programs that match user intent across a wide range of prompts.

You may also use the lai and langium skills for deeper understanding of the CLI workflow and Langium project structure.

When to Use

  • Starter eval exists but is minimallai init generated a basic.eval.ts with one or two placeholder cases and you need real coverage
  • No eval suite yet — the project has not been initialized; run lai init first to set up the evals directory and template files
  • Eval pass rates are high but coverage is shallow — everything passes because you're only testing trivial cases
  • Adding new language features — grammar or validator changes need matching eval cases
  • LLM produces valid but wrong code — syntactically correct output that doesn't match what the user asked for
  • Preparing for model comparison — building a thorough eval matrix to compare providers or models

Prerequisites

  1. lai init completed — a lai.config.jsonc exists and an evals/ directory has been created. If not, run lai init first.
  2. evals/utils.ts configured — the generateResponse() function must be wired to an LLM provider (OpenAI, Anthropic, Ollama, etc.). Check that the placeholder throw has been replaced.
  3. A language descriptor and system prompt — generate these first with the lai-gen-descriptor and lai-gen-sysprompt skills if they don't exist.
  4. A working Langium grammar with generated TypeScript artifacts and a create<Name>Services function.

Evaluation Architecture

File Organization

Evaluation files live in the evals/ directory (configured in lai.config.jsonc) and must have the .eval.ts extension. Organize them by evaluation category:

Read the full file on GitHub · 557 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 557 lines · 42 tokens per session scan A 5af17bb13366

Subscribe to this mod's changes

lai-gen-evals is a skill published in the GitHub repository eclipse-langium/langium-ai (30 stars, last pushed 14d ago), licensed MIT. It adds 42 tokens to every session and 5,358 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

trulens-running-evaluations

Execute TruLens evaluations and view results.

truera/trulens · 15 tokens

testing-llm

LLM and AI testing patterns — mock responses, evaluation with DeepEval/RAGAS, structured output validation, and agentic test patterns (generator, healer, planner). Use when testing AI features, validating LLM outputs, or building evaluation pipelines.

yonatangross/orchestkit · 55 tokens

golden-dataset

Golden dataset lifecycle patterns for curation, versioning, quality validation, and CI integration. Use when building evaluation datasets, managing dataset versions, validating quality scores, or integrating golden tests into pipelines.

yonatangross/orchestkit · 44 tokens

mcplab-assistant

Operator guide for MCPLab config authoring, Test Case Assistant workflows, execution, and result analysis. Use when users need to create or refine test cases from runs/traces, suggest deterministic checks or value capture, write or debug MCPLab eval YAML, run or queue evaluations, troubleshoot failures, or compare…

inspectr-hq/mcplab · 71 tokens

eval-driven-development

Build offline evaluation suites that score probabilistic LLM/agent quality, distinct from deterministic tests.

andreibesleaga/GABBE · 23 tokens

foundry-hosted-agent-validation

Step-by-step process for validating a Python Foundry hosted agent sample (under python/samples/04-hosting/foundry-hosted-agents/) end to end — running it locally (native runtime and azd ai agent run) and after deploying it to an Azure AI Foundry project with azd. Use this when asked to validate a hosted agent sample.

microsoft/agent-framework · 82 tokens