This chapter describes some of the major components:
https://dev.realworldocaml.org/04-files-modules-and-programs.html
in the section “Designing with Modules”, and in particular in the “Create Uniform Interfaces” part.
We do have a more detailed internal style guide, but that’s not currently public.