ocaml-tutorials

Create interactive OCaml tutorials with executable MDX blocks in .mld documents.

46|6|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/aresbit/MateBot --skill ocaml-tutorials
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ocaml-tutorials
Source: https://github.com/aresbit/MateBot/tree/main/skills/ocaml/ocaml-tutorials
Command: npx skills add https://github.com/aresbit/MateBot --skill ocaml-tutorials

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

OCaml library developers and educators often need structured, interactive tutorials to teach usage and patterns. This skill provides a clear, MDX-backed workflow to author executable .mld tutorials, blending narrative with verifiable OCaml blocks.

Core Features & Use Cases

  • MDX-enabled: Create .mld tutorials that include executable OCaml blocks that can be verified at build time.
  • Structured documentation: Use the required doc/ layout (doc/, tutorial.mld, index.mld, dune) to organize content and build pipelines.
  • Best practices: Guide learners from setup through advanced examples with cross-references and reproducible results.

Quick Start

Create a doc/ directory containing tutorial.mld and index.mld, configure dune-project to enable MDX (mdx 0.4), and run dune build @doc to render the tutorial.

Frequently Asked Questions about ocaml-tutorials

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

FAQPage Schema
How do I create executable OCaml tutorials with MDX?

MDX-enabled .mld documents blend narrative text with verifiable OCaml code blocks. They allow developers to structure educational documentation that is automatically checked for accuracy during the build process, ensuring reproducible results for library learners.

What project structure is required to build .mld documentation?

To build .mld tutorials, create a doc/ directory containing tutorial.mld and index.mld files. Configure dune-project to enable MDX support, then execute dune build @doc to render the documentation and verify executable blocks.

Do I need Dune to verify executable blocks in OCaml documentation?

Yes, Dune is required to verify executable blocks in OCaml documentation. The workflow relies on Dune build pipelines to process the .mld files and validate OCaml code snippets during the @doc build target execution.

Can I use MDX to teach advanced OCaml library usage patterns?

Yes, you can use MDX to teach advanced OCaml library usage patterns by structuring .mld tutorials that progress from basic setup to complex examples. Cross-references and executable blocks ensure learners see reproducible results, guiding them through advanced library implementations.

What are the limitations of using .mld files for OCaml documentation?

Using .mld files for OCaml documentation requires MDX support and specific OCaml tooling. Tutorials must adhere to the structured doc/ directory layout, meaning any deviation from the required dune configuration will prevent executable blocks from being verified.