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.
npx skills add avsm/ocaml-claude-marketplace --skill code-stylegit 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/skills/avsm/ocaml-claude-marketplace/code-style)<a href="https://agentmods.dev/skills/avsm/ocaml-claude-marketplace/code-style"><img src="https://agentmods.dev/badge/skills/avsm/ocaml-claude-marketplace/code-style/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/skills/avsm/ocaml-claude-marketplace/code-style"><img src="https://agentmods.dev/badge/skills/avsm/ocaml-claude-marketplace/code-style.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00044 | $0.01417 |
| Opus 5 | $0.00022 | $0.00709 |
| Sonnet 5 | $0.00009 | $0.00283 |
| Haiku 4.5 | $0.00004 | $0.00142 |
Grade A, and why
code-style 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 5d 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 — 186 lines — stays where its author put it; the contents beside it link to each section on GitHub.
OCaml Code Style
Core Philosophy
- Interface-First: Design
.mlifirst. Clean interface > clever implementation. - Modularity: Small, focused modules. Compose for larger systems.
- Simplicity (KISS): Clarity over conciseness. Avoid obscure constructs.
- Explicitness: Explicit control flow and error handling. No exceptions for recoverable errors.
- Purity: Prefer pure functions. Isolate side-effects at edges.
- NEVER use Obj.magic: Breaks type safety. Always a better solution.
Naming Conventions
| Element | Convention | Example |
|---|---|---|
| Files | lowercase_underscores |
user_profile.ml |
| Modules | Snake_case |
User_profile |
| Types | snake_case, primary type is t |
type user_profile, type t |
| Values | snake_case |
find_user, create_channel |
| Variants | Snake_case |
Waiting_for_input, Processing_data |
Function naming:
find_*returnsoption(may not exist)get_*returns value directly (must exist)
Avoid: Long names with many underscores (get_user_profile_data_from_database_by_id).
Refactoring Patterns
Option/Result Combinators
(* Before *)
match get_value () with Some x -> Some (x + 1) | None -> None
(* After *)
Option.map (fun x -> x + 1) (get_value ())
Prefer: Option.map, Option.bind, Option.value, Result.map, Result.bind
Monadic Syntax (let*/let+)
(* Before - nested matches *)
match fetch_user id with
| Ok user -> (match fetch_perms user with Ok p -> Ok (user, p) | 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)
Pattern Matching Over Conditionals
(* 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"
Function Design
Keep functions small: Under 50 lines. One purpose per function.
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.
- 5d ago Changed · +35 lines eb93265740c5
- 9d ago First seen · 151 lines · 44 tokens per session scan A 32f331a5b810
code-style is a skill published in the GitHub repository avsm/ocaml-claude-marketplace (35 stars, last pushed 7d ago), licensed ISC. It adds 44 tokens to every session and 1,417 once invoked, about $0.0002 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 skills, from other repositories
autoreview
Pre-commit/ship code review: Codex default; optional Claude or Pi.
rework-rate
Measure and interpret PR rework rate — the emerging 5th DORA metric.
omh-code-review
This is a Hermes-native code-review workflow skill.
revdiff-plan
Review the last Codex assistant message (plan, analysis, or proposal) with inline annotations in a TUI overlay. Extracts the most recent response from Codex rollout files and opens it in revdiff for review and annotation. Activates on "revdiff-plan", "review plan with revdiff", "annotate plan", "review last response"…
code-reviewer
Code review specialist focused on patterns, bugs, security, and performance.
agent-teams-simplify-and-harden
Implementation + audit loop using parallel agent teams with structured simplify, harden, and document passes. Spawns implementation agents to do the work, then audit agents to find complexity, security gaps, and spec deviations, then loops until code compiles cleanly, all tests pass, and auditors find zero issues or…