lai

lai is a skill for Claude Code from eclipse-langium/langium-ai. It costs 52 tokens per session (3,978 once invoked), scanned A, original, MIT.

A guide to the langium-ai command-line tool, which helps build AI features for Langium-based custom languages. It covers generating language descriptions, creating system prompts, running tests, and improving results over time.

In plain words
What is it for?
Use it to initialize a project, create and validate a language description, generate prompts, run evaluations, compare results, and refine the setup.
Why use it?
It gives a repeatable workflow for turning a language project into agent guidance and checking whether that guidance produces correct results.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is - ./test/.

Good fit Use it to initialize a project, create and validate a language description…

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/eclipse-langium/langium-ai/lai.svg)](https://agentmods.dev/skills/eclipse-langium/langium-ai/lai)
Your own site
<a href="https://agentmods.dev/skills/eclipse-langium/langium-ai/lai"><img src="https://agentmods.dev/badge/skills/eclipse-langium/langium-ai/lai.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,978 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.
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.00052 $0.03978
Opus 5 $0.00026 $0.01989
Sonnet 5 $0.00010 $0.00796
Haiku 4.5 $0.00005 $0.00398

Measured 7d ago against content hash 0410ee164ebe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

lai 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 7d 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/SKILL.md · 464 lines

How it starts

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

langium-ai CLI (LAI) - Usage Guide

A CLI for bootstrapping AI-powered tooling in Langium projects. It generates language descriptors from your project structure, synthesizes system prompts from those descriptors, and runs evaluations to measure prompt quality — forming a refinement loop where you iteratively improve your descriptor and prompts based on evaluation results.

Workflow Overview

The core workflow is a loop:

init → generate descriptor → refine descriptor → generate sysprompt → evaluate → analyze results → refine → repeat
  1. Initialize (lai init) — one-time project setup
  2. Generate descriptor (lai gen descriptor) — map your Langium project into a structured YAML descriptor
  3. Validate descriptor (lai validate) — check the descriptor schema and verify all referenced files exist
  4. Refine the descriptor — manually correct and enrich the generated descriptor so it accurately represents your language
  5. Generate system prompt (lai gen sysprompt) — produce a system prompt from the descriptor
  6. Evaluate (lai evaluate) — run evaluation cases against the system prompt via your configured LLM
  7. Analyze results — use lai show, lai compare, lai stats, lai history to understand what passed and failed
  8. Refine and repeat — adjust the descriptor, or evaluation cases, then regenerate and re-evaluate

Step 1: Initialize

lai init

Interactive setup that:

  • Detects your Langium project structure (grammar files, langium-config.json, custom services)
  • Detects your registered languages from langium-config.json
  • Creates lai.config.jsonc with detected paths
  • Sets up an evals/ directory with starter template files (utils.ts and basic.eval.ts)

Your LLM provider (OpenAI, Anthropic, Ollama, etc.) is not configured here — it's wired up in evals/utils.ts by implementing generateResponse(). Pass -y/--yes to skip all prompts and use defaults (non-interactive/CI).

Reinitializing Parts of the Setup

Read the full file on GitHub · 464 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. 7d ago First seen · 464 lines · 52 tokens per session scan A 0410ee164ebe

Subscribe to this mod's changes

lai is a skill published in the GitHub repository eclipse-langium/langium-ai (30 stars, last pushed 10d ago), licensed MIT. It adds 52 tokens to every session and 3,978 once invoked, about $0.0003 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

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

evaluating-llms-harness

Evaluates LLMs across 60+ academic benchmarks (MMLU, HumanEval, GSM8K, TruthfulQA, HellaSwag). Use when benchmarking model quality, comparing models, reporting academic results, or tracking training progress. Industry standard used by EleutherAI, HuggingFace, and major labs. Supports HuggingFace, vLLM, APIs.

OpenRaiser/NanoResearch · 85 tokens

evaluating-llms-harness

Evaluates LLMs across 60+ academic benchmarks (MMLU, HumanEval, GSM8K, TruthfulQA, HellaSwag). Use when benchmarking model quality, comparing models, reporting academic results, or tracking training progress. Industry standard used by EleutherAI, HuggingFace, and major labs. Supports HuggingFace, vLLM, APIs.

sangrokjung/claude-forge · 85 tokens

ai-engineer

Builds production AI/ML systems — model training, fine-tuning, MLOps pipelines, model serving, evaluation frameworks, RAG optimization, and agent orchestration at scale. Use when the user asks to build, train, or deploy ML models, set up MLOps pipelines, optimize RAG systems, create inference endpoints, or design…

buiphucminhtam/forgewright · 78 tokens

evaluating-code-models

Evaluates code generation models across HumanEval, MBPP, MultiPL-E, and 15+ benchmarks with pass@k metrics. Use when benchmarking code models, comparing coding abilities, testing multi-language support, or measuring code generation quality. Industry standard from BigCode Project used by HuggingFace leaderboards.

sangrokjung/claude-forge · 68 tokens