We adopt a geometric approach to describe the performance of adiabatic quantum machines, operating under slow time-dependent driving and in contact to two reservoirs with a temperature bias during all the cycle. We show that the problem of optimizing the power generation of a heat engine and the efficiency of both the heat engine and refrigerator operational modes is reduced to an isoperimetric problem with non-trivial underlying metrics and curvature. This corresponds to the maximization of the ratio between the area enclosed by a closed curve and its corresponding length. We illustrate this procedure in a qubit coupled to two reservoirs operating as a thermal machine by means of an adiabatic protocol. * These two authors contributed equally.Recently, it was proposed that the dissipation and the heatwork conversion mechanisms are respectively described by different components of the thermal geometric tensor. Furthermore, the heat-work conversion component can be expressed in terms of a Berry-type phase [15], which has an associated Berry-type curvature [27], and similar ideas were followed in [28,29]. Hence, a length and an area in the parameter space can be defined. On the other hand, it is well known that dissipation and entropy production admit a geometric description in terms of the concept of thermodynamic length [30][31][32][33][34][35][36][37][38]. This geometric approach has proven useful to optimize finite-time thermodynamic processes (examples can be found in [9,[39][40][41] for classical and [12, 42, 43] for quantum systems), including the finite-time Carnot cycle [11,12] and slowly driven engines [44][45][46][47][48].