Help us improve
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
By avsm
Accelerate OCaml development workflows: initialize dune/opam projects with CI, migrate from ocamlbuild, enforce idiomatic code style and Result patterns, add fuzz/Alcotest suites, integrate RFCs into docs, profile memory, harden security, publish to opam/npm, and leverage ocamllsp for code intelligence.
npx claudepluginhub avsm/ocaml-claude-marketplace --plugin ocaml-devFetch an IETF RFC and integrate it into the project with OCamldoc citations
Initialize a new OCaml project with dune, opam, CI, and standard files
Set up npm publishing for OCaml projects via js_of_ocaml/wasm_of_ocaml
Convert an ocamlbuild/topkg project to dune build system
Refactor and tidy OCaml code to be more idiomatic and maintainable
Use when writing or modifying OCaml code to annotate AI involvement. Triggers on any code generation, editing, or autonomous agent output in .ml/.mli files. Also use when creating or updating .opam files for packages containing AI-involved code.
Designing and implementing robust command-line interfaces using OCaml's cmdliner library. Use when Claude needs to: (1) Design a new CLI or subcommand layout, (2) Implement cmdliner terms and combinators, (3) Enforce clear, predictable, orthogonal options, (4) Produce high-quality --help output and error messages, (5) Integrate cmdliner CLIs into dune-based OCaml projects.
OCaml coding style and refactoring patterns. Use when the user asks to tidy, clean up, refactor, or improve OCaml code, reviewing code quality, enforcing naming conventions, or reducing complexity.
Migrating OCaml projects from ocamlbuild/topkg to dune. Use when discussing _tags files, .mllib files, pkg/pkg.ml, topkg, or build system migration.
OCaml 5 algebraic effects design patterns. Use when Claude needs to: (1) Design APIs that interact with effect-based schedulers, (2) Decide between effects vs exceptions, (3) Integrate libraries with Eio or affect, (4) Handle suspension vs error cases in streaming code, (5) Understand the layered effect design principle
Share bugs, ideas, or general feedback.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
OCaml language server
Scaffold new projects and add features with best-practice templates
Advanced Gleam programming skills for functional BEAM development
Ultracite multi-provider linting/formatting (Biome, ESLint, Oxlint). Use for v6/v7 setup, provider selection, Git hooks, MCP integration, AI hooks, migrations, or encountering configuration, type-aware linting, monorepo errors.
Automates pubm setup for new open source projects — configures registries, CI, and changesets with a single skill invocation.
Reorganizes project structure by cleaning root clutter, creating logical folder hierarchies, and moving files to optimal locations. Tracks dependencies and fixes broken imports/paths. Use PROACTIVELY when project structure becomes unwieldy or needs architectural cleanup.
A collection of Claude Code plugins for OCaml development, based initially on the experiences in https://anil.recoil.org/notes/2025-aoah
Add this marketplace to Claude Code:
/plugin marketplace add avsm/ocaml-claude-marketplace
Then install the OCaml development plugin:
/plugin install ocaml-dev@ocaml-claude-marketplace
Comprehensive OCaml development toolkit including:
Slash Commands:
/init-ocaml [name] - Initialize a new OCaml project with dune, opam, CI, and standard files/port-to-dune - Migrate ocamlbuild/topkg projects to dune/add-rfc <number> - Fetch an IETF RFC and integrate with ocamldoc citations/ocaml-npm - Set up npm publishing for js_of_ocaml/wasm_of_ocaml projects/tidy - Refactor OCaml code to be more idiomaticSkills (auto-invoked):
Project & Build:
Code Quality:
OCaml 5 & Concurrency:
Library-Specific:
Testing & Profiling:
OxCaml Extensions:
LSP Integration:
.ml, .mli, .mly, .mll filesCreate ~/.claude/ocaml-config.json for personalized settings:
{
"author": {
"name": "Your Name",
"email": "you@example.com"
},
"license": "ISC",
"ci_platform": "github",
"git_hosting": {
"type": "github",
"org": "your-username"
},
"ocaml_version": "5.2.0"
}
If not configured, commands will prompt for required values.
The plugin includes CI templates for:
Select your preferred platform in the configuration.
ISC License