lai-gen-descriptor

Generate and refine language.descriptor.yml files for Langium DSL projects.

28|4|Updated Apr 10, 2025
One-click install
npx skills add https://github.com/eclipse-langium/langium-ai --skill lai-gen-descriptor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lai-gen-descriptor
Source: https://github.com/eclipse-langium/langium-ai/tree/main/skills/lai-gen-descriptor
Command: npx skills add https://github.com/eclipse-langium/langium-ai --skill lai-gen-descriptor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you create and continuously improve the language.descriptor.yml that drives accurate prompt generation and evaluation for a Langium DSL project, avoiding broken paths, missing services, and generic outputs.

Core Features & Use Cases

  • Descriptor bootstrapping: Creates a language descriptor from your Langium project when none exists yet, using the lai workflow.
  • Guided iterative refinement: Reviews and improves descriptor fields such as grammar, langium config, services, examples, and documentation references.
  • Validation and downstream regeneration: Validates descriptor correctness and then regenerates system prompts and evaluation artifacts so changes are reflected immediately.
  • Common fixes for eval issues: Improves descriptor accuracy to address low success rates, validation failures, scoping misunderstandings, and vague LLM output.

Quick Start

Run the lai-gen-descriptor skill to generate a missing language.descriptor.yml for your Langium project, then iteratively validate and refine it so prompts and evaluations match your DSL’s real structure.

Frequently Asked Questions about lai-gen-descriptor

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

FAQPage Schema
How do I generate a language descriptor for a Langium DSL project?

To generate a language descriptor for a Langium DSL project, use the lai workflow to bootstrap a language.descriptor.yml file when none exists, extracting project structure for accurate downstream prompt generation and evaluation.

What is a language.descriptor.yml used for in Langium?

A language.descriptor.yml drives accurate system prompt generation and evaluation for a Langium DSL project by mapping grammar, configuration, services, examples, and documentation references to the actual project structure.

How do I fix broken file paths and missing services in my Langium descriptor?

Fix broken file paths and missing Langium service entries by iteratively refining the language.descriptor.yml, validating descriptor correctness, and regenerating system prompts to ensure they match your DSL's real structure.

Why does my Langium DSL prompt generation produce vague LLM output?

Vague LLM output during Langium DSL prompt generation often stems from an inaccurate language.descriptor.yml, which you can improve through guided iterative refinement of grammar, examples, and documentation references.

Can I validate a Langium descriptor and regenerate evaluation artifacts?

Yes, you can validate a Langium descriptor's correctness and immediately regenerate system prompts and evaluation artifacts so that iterative descriptor changes are reflected in downstream lai workflow outputs.

What's the best way to improve evaluation accuracy for a Langium DSL?

The best way to improve evaluation accuracy for a Langium DSL is guided iterative refinement of the language.descriptor.yml, correcting scoping misunderstandings and validation failures to align prompts with actual grammar and services.