/ocaml-dev:init-ocaml project-namefrom ocaml-dev
Scaffolds a new OCaml project with dune, opam, CI config, source files, and test skeleton. Prompts for author, license, CI platform, and git hosting.
Ships in ocaml-dev. Installing the plugin adds it to Claude Code.
This command creates a new OCaml project with all standard files and configuration.
Project name: $ARGUMENTS (defaults to current directory name if not provided)
Read user configuration from ~/.claude/ocaml-config.json. If it doesn't exist, prompt the user for:
Offer to save configuration to ~/.claude/ocaml-config.json for future use.
(data_only_dirs third_party).github/workflows/build.yml.tangled/workflows/build.yml.gitlab-ci.ymldoc-style skill, which you should invoke before writing any doc commentdune build @check to verify setupReplace these in templates:
{{PROJECT_NAME}} - Project name (snake_case){{PROJECT_NAME_KEBAB}} - Project name (kebab-case){{AUTHOR_NAME}} - From config{{AUTHOR_EMAIL}} - From config{{YEAR}} - Current year{{LICENSE}} - License identifier{{OCAML_VERSION}} - Minimum OCaml version{{GIT_URL}} - Full git URL based on hosting config{{SOURCE_STANZA}} - dune source stanza based on hosting:
(source (tangled handle/{{PROJECT_NAME_KEBAB}}))(source (github user/{{PROJECT_NAME_KEBAB}}))(source (gitlab user/{{PROJECT_NAME_KEBAB}}))/init-ocaml my-library
/init-ocaml
Created OCaml project: my-library
Files created:
- dune-project
- dune
- .ocamlformat
- .gitignore
- LICENSE.md
- README.md
- .github/workflows/build.yml
- lib/dune
- lib/my_library.ml
- lib/my_library.mli
- test/dune
- test/test_my_library.ml
Next steps:
1. Run `opam install . --deps-only` to install dependencies
2. Run `dune build` to build the project
3. Run `dune runtest` to run tests
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub avsm/ocaml-claude-marketplace --plugin ocaml-dev5 commands in this plugin
/add-rfcAdd RFCFetch an IETF RFC and integrate it into the project with OCamldoc citations/ocaml-npmOCaml NPM SetupSet up npm publishing for OCaml projects via js_of_ocaml/wasm_of_ocaml/port-to-dunePort to DuneConvert an ocamlbuild/topkg project to dune build system/tidyTidy OCaml CodeRefactor and tidy OCaml code to be more idiomatic and maintainableOther plugins' commands for the same job