lex-primer

Review .lex files for structural correctness and syntax rules.

Updated May 1, 2026
One-click install
npx skills add https://github.com/arthur-debert/release --skill lex-primer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lex-primer
Source: https://github.com/arthur-debert/release/tree/main/skills/lex-primer
Command: npx skills add https://github.com/arthur-debert/release --skill lex-primer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you avoid common formatting and syntax mistakes when writing or reviewing Lex documents so your content parses as intended.

Core Features & Use Cases

  • Lex document syntax guidance: Explains indentation rules, structural markers, and how sessions, definitions, lists, verbatim blocks, tables, and annotations differ from one another.
  • Validation-focused review: Provides concrete correctness checks for title rules, required blank lines, table row formatting, and annotation attachment rules so you can diagnose why a .lex file fails to parse.
  • Correct conversion mindset: Translates the typical Markdown habits that cause errors into Lex-specific conventions, including inline formatting and indentation walls.

Quick Start

Use the lex-primer Skill to review a .lex draft for structural correctness by checking title, indentation, and element-specific blank-line rules against its guidance.

Frequently Asked Questions about lex-primer

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

FAQPage Schema
How do I write syntactically correct Lex documents with proper indentation and markers?

Writing correct Lex documents requires using indentation-based structure and the special :: marker rules that replace standard Markdown conventions. You must enforce Lex-specific precedence, required blank lines, and closing-marker formats for tables and verbatim blocks to ensure proper parsing.

Why does my .lex file fail to parse when converting from Markdown?

Converting Markdown-like content to .lex format fails when typical Markdown habits conflict with Lex-specific conventions. Inline formatting, indentation walls, and annotation attachment rules differ in Lex, requiring you to translate Markdown syntax into the correct Lex document structure to avoid parsing errors.

What are the required blank line and formatting rules for Lex tables and annotations?

Lex tables and annotations require specific formatting rules including correct table row formatting, proper closing-marker formats, and strict annotation attachment rules. You must maintain required blank lines around these structural elements and follow inline delimiter rules to guarantee the .lex file parses correctly.

When do I need to use the :: marker instead of standard Markdown syntax in a .lex file?

You need to use the :: marker in a .lex file whenever defining structural elements like sessions, definitions, lists, verbatim blocks, tables, and annotations. The :: marker replaces standard Markdown conventions to enforce Lex-specific precedence and indentation-based structure for correct document parsing.

How do I validate a .lex draft for structural correctness before parsing?

To validate a .lex draft, check title rules, indentation, and element-specific blank-line rules against Lex syntax guidance. Review the document for correct closing-marker formats, table row formatting, and annotation attachment to diagnose and prevent structural parsing failures.

Does Lex syntax support the same inline formatting and list structures as Markdown?

Lex syntax does not directly support Markdown inline formatting and list structures. It uses distinct inline delimiter rules, indentation walls, and specific structural markers that require translating Markdown habits into Lex-specific conventions to maintain document parsing correctness.