litexml-authoring

Convert LiteXML documents to Lexical editor states and static HTML.

32|5|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/Innei/haklex --skill litexml-authoring
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: litexml-authoring
Source: https://github.com/Innei/haklex/tree/main/.claude/skills/litexml-authoring
Command: npx skills add https://github.com/Innei/haklex --skill litexml-authoring

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @haklex/rich-litexml, @haklex/rich-compose, and includes scripts (resource) components.

What problem does it solve?

Writing Haklex articles with Markdown combined with LiteXML can be complex and requires precise conversion tools to ensure content fidelity.

Core Features & Use Cases

  • Content Conversion: Convert LiteXML and LightXML files or fragments into Lexical SerializedEditorState JSON or static HTML renderings.
  • CLI Tools for Authors: Provides command-line utilities for transforming XML-based documentation into JSON for editors or previewing as static HTML pages.
  • Use Case: Authors can generate structured editor states from XML drafts and preview them as web pages with a single command.

Quick Start

Use the liteXML-authoring skill to convert an XML file to Lexical JSON and generate an HTML preview of the document.

Frequently Asked Questions about litexml-authoring

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

FAQPage Schema
How do I convert LiteXML documents to Lexical editor states?

You can convert LiteXML documents to Lexical SerializedEditorState JSON using the provided CLI-based transformation tools. This process supports structured editing and generates the required JSON output for editor state integration.

Can I preview LiteXML content as a static HTML page?

Yes, you can preview LiteXML content as a static HTML rendering. The authoring tools allow you to generate web page previews from XML drafts with a single command for immediate visual verification.

Do I need specific packages to use the LiteXML authoring tools?

Yes, you need the @haklex/rich-litexml and @haklex/rich-compose packages installed. These dependencies are required for the CLI-based transformations that convert XML drafts into editor states or static HTML.

What is the best way to author Haklex articles with LiteXML?

The best way to author Haklex articles is using schema-based content creation tools. This approach solves the complexity of writing Markdown combined with LiteXML by ensuring precise conversion and content fidelity.

Does the LiteXML conversion process support structured editing?

Yes, the LiteXML conversion process explicitly supports structured editing. It transforms XML-based documentation into JSON for editors, enabling structured content creation and schema-based document validation.