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/tidy)<a href="https://agentmods.dev/commands/avsm/ocaml-claude-marketplace/tidy"><img src="https://agentmods.dev/badge/commands/avsm/ocaml-claude-marketplace/tidy/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/tidy"><img src="https://agentmods.dev/badge/commands/avsm/ocaml-claude-marketplace/tidy.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.00015 | $0.01143 |
| Opus 5 | $0.00008 | $0.00571 |
| Sonnet 5 | $0.00003 | $0.00229 |
| Haiku 4.5 | $0.00002 | $0.00114 |
Grade A, and why
tidy 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 7d 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 — 194 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Tidy OCaml Code
This command analyzes and refactors OCaml code to make it more idiomatic, maintainable, and concise.
Arguments
Optional file or directory path: $ARGUMENTS (defaults to current directory)
Before You Start
Invoke the doc-style skill. Comments and documentation are part of tidying,
and that skill is the standard for both.
Analysis Categories
1. Option and Result Patterns
Look for:
- Verbose match expressions that could use combinators
- Nested Option/Result handling without let*/let+
- Direct pattern matching where
Option.map,Option.bind, etc. would be clearer
Transform:
(* Before *)
match get_value () with
| Some x -> Some (x + 1)
| None -> None
(* After *)
Option.map (fun x -> x + 1) (get_value ())
2. Monadic Syntax
Look for:
- Deeply nested match expressions on Result/Option
- Manual error propagation chains
Transform:
(* Before *)
match fetch_user id with
| Ok user ->
(match fetch_perms user with
| Ok perms -> Ok (user, perms)
| Error e -> Error e)
| Error e -> Error e
(* After *)
let open Result.Syntax in
let* user = fetch_user id in
let+ perms = fetch_perms user in
(user, perms)
3. Pattern Matching vs Conditionals
Look for:
- Nested if/then/else chains
- Boolean condition checking that could be pattern matching
Transform:
(* Before *)
if x > 0 then
if x < 10 then "small"
else "large"
else "negative"
(* After *)
match x with
| x when x < 0 -> "negative"
| x when x < 10 -> "small"
| _ -> "large"
4. Code Duplication
Look for:
- Repeated error message patterns
- Similar function implementations
- Copy-pasted code blocks
Suggest:
- Helper functions
- Parameterized abstractions
- Shared error constructors
5. Module Hygiene
Look for:
- Generic module names (Util, Helpers, Common)
- Exposed record types without abstract
type t - Missing pretty-printers for main types
- Unlabeled boolean parameters
6. Comments and Documentation
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.
- 7d ago Changed · +19 lines e6ff243980fc
- 11d ago First seen · 175 lines · 15 tokens per session scan A 9b8a4c21d47b
tidy is a command published in the GitHub repository avsm/ocaml-claude-marketplace (35 stars, last pushed 9d ago), licensed ISC. It adds 15 tokens to every session and 1,143 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
rust-review
Review the current Rust diff (or specified files/PR) for idiomatic Rust patterns and hexagonal-architecture compliance, in one pass.
cargo-clippy
Command "cargo-clippy" from olorehq/olore, covering cargo-clippy(1), name, description and see also.
review-rust
Focused Rust/Tauri backend review with rust-backend-architect (Primary Owner).
unsafe-review
Interactive review session for unsafe Rust code.
rust-review
Lightweight Rust code review using clippy.
rust-critique
Deep code critique — read the target Rust code and apply the full review process. Evaluates soundness, ownership, error handling, type design, async correctness, performance, and architecture. Think like a senior Rust engineer giving honest feedback.