Homology and modules of Yetter--Drinfeld braces
We introduce a unified theory of modules, homology and cohomology for skew braces, post-Lie algebras and Yetter--Drinfeld braces. Homology and cohomology are obtained as Tor and Ext functors in the new categories of modules. For skew braces, second cohomology classifies extensions by a trivial brace, while second homology recovers the Hopf formula of Gran, the author and Vendramin. For post-Lie algebras, suitable choices of coefficients recover the operadic homology complex of Vallette and the cohomology of Lazarev, Sheng and Tang.