Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/avsm/ocaml-claude-marketplaceWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/avsm/ocaml-claude-marketplace/port-to-dune)<a href="https://agentmods.dev/commands/avsm/ocaml-claude-marketplace/port-to-dune"><img src="https://agentmods.dev/badge/commands/avsm/ocaml-claude-marketplace/port-to-dune/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/avsm/ocaml-claude-marketplace/port-to-dune"><img src="https://agentmods.dev/badge/commands/avsm/ocaml-claude-marketplace/port-to-dune.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00012 | $0.00908 |
| Opus 5 | $0.00006 | $0.00454 |
| Sonnet 5 | $0.00002 | $0.00182 |
| Haiku 4.5 | $0.00001 | $0.00091 |
Grade A, and why
port-to-dune scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 163 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Port to Dune
This command migrates an OCaml project from ocamlbuild/topkg to dune.
Arguments
None - operates on the current directory.
Prerequisites
The command expects to find ocamlbuild artifacts:
_tags- ocamlbuild compilation flags*.mllibfiles - module lists for librariespkg/pkg.ml- topkg package description (optional)pkg/META- findlib metadata (optional)opam- package dependencies
Migration Process
1. Analyze Existing Build
Read and parse:
_tags- Extract package dependencies, compiler flags, thread usage*.mllib- Identify libraries and their modulespkg/pkg.ml- Find optional libraries and conditionspkg/META- Get public library namesopam- Current dependencies
2. Create dune-project
(lang dune 3.20)
(name <package-name>)
(generate_opam_files true)
; ... rest from existing opam metadata
3. Create Library dune Files
For each library identified from .mllib files:
(library
(name <library_name>)
(public_name <package.subname>)
(libraries <dependencies>))
For optional libraries (from pkg/pkg.ml):
(library
(name <library_name>)
(public_name <package.subname>)
(optional)
(libraries <dependencies>))
4. Handle Special Cases
Warning suppression (if needed):
(flags (:standard -w -27))
Toplevel init files (excluded from library):
(library
(name lib_name)
(modules lib_module)
(libraries deps))
(install
(package pkg)
(section lib)
(files lib_top_init.ml))
5. Create Test dune Files
(test
(name test_name)
(libraries lib_name alcotest))
6. Update opam File
- Rename
opamto<package>.opam - Remove ocamlbuild/topkg dependencies
- Add dune dependency
- Update build commands
7. Cleanup
List files to delete (don't delete automatically):
_tags.merlinpkg/pkg.mlpkg/META*.mllibfiles*.itargetfiles
Mapping Reference
| ocamlbuild | dune |
|---|---|
_tags: package(foo) |
(libraries foo) |
_tags: thread |
(libraries threads) |
foo.mllib |
(library (name foo)) |
pkg/pkg.ml: Pkg.mllib ~cond:x |
(library ... (optional)) |
pkg/META |
Auto-generated by dune |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago Changed 582dea20fb6a
- 12d ago First seen · 163 lines · 12 tokens per session scan A f3c563fa3595
port-to-dune is a command published in the GitHub repository avsm/ocaml-claude-marketplace (35 stars, last pushed 10d ago), licensed ISC. It adds 12 tokens to every session and 908 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
fastapi
FastAPI application design and implementation conventions. Use this skill when building, updating, or reviewing FastAPI services, routers, dependencies, request/response schemas, streaming endpoints, or API tests. Trigger on FastAPI-specific work such as path operation design, dependency injection, response models…
azure-graph-dotnet:deploy-azure
Deploy a C# Azure Functions or Container Job project to Azure — provision infrastructure with Bicep, push image to ACR, assign Managed Identity Graph permissions, and generate or update GitHub Actions or Azure DevOps CI/CD pipelines.
go-review
Go code review for idiomatic patterns.
kotlin-review
Comprehensive Kotlin code review for idiomatic patterns, null safety, coroutine safety, and security. Invokes the kotlin-reviewer agent.
savant-python
Python performance optimization with Python Developer agent.
cli-enhance
Add features to existing CLI applications like colors, progress bars, shell completions, and better error messages.