lai

Official

Iterate better Langium AI prompts with LAI

Authoreclipse-langium
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It solves the challenge of building reliable AI-powered tooling for a Langium DSL by turning your language project into a descriptor-driven workflow that supports evaluation and continuous prompt refinement.

Core Features & Use Cases

  • Descriptor generation and refinement: Create and iteratively improve a YAML language descriptor from your Langium project structure so prompt generation stays aligned with your grammar, services, and examples.
  • System prompt synthesis: Generate a DSL-aware system prompt directly from the descriptor to guide LLM behavior during evaluation.
  • Evaluation loop with diagnostics: Run evaluation suites against real Langium parsing/validation to measure outputs, compare runs, and diagnose failures so you can refine the descriptor and prompts.
  • Workflow automation for common scenarios: Use it to bootstrap a new Langium AI project, regenerate descriptors/prompts from scratch, validate file/path correctness, and maintain evaluation history for prompt improvements.
  • Use case: After you update your grammar or validation rules, regenerate the descriptor and system prompt, re-run evaluations, and use history/compare/stats to confirm that improvements increased pass rates and reduced diagnostics.

Quick Start

Tell an AI assistant: "Guide me through running lai init, generating a language descriptor, generating a system prompt, and running lai evaluate to measure and improve my Langium DSL prompt quality."

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: lai
Download link: https://github.com/eclipse-langium/langium-ai/archive/main.zip#lai

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.